Changeset 2905
- Timestamp:
- Oct 9, 2008, 1:53:43 AM (14 years ago)
- Location:
- libpipi/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
libpipi/trunk/genethumb/mygetopt.c
r2546 r2905 28 28 #ifndef __intptr_t_defined 29 29 #ifndef _UINTPTR_T 30 typedef unsigned int 30 typedef unsigned int uintptr_t; 31 31 #endif 32 32 #endif -
libpipi/trunk/pipi/codec/coreimage.m
r2903 r2905 26 26 pipi_image_t *pipi_load_coreimage(const char *name) 27 27 { 28 NSAutoreleasePool 28 NSAutoreleasePool *autoreleasepool = [[NSAutoreleasePool alloc] init]; 29 29 NSString *n = [NSString stringWithCString: name]; 30 30 CIImage *source; … … 61 61 int pipi_save_coreimage(pipi_image_t *img, const char *name) 62 62 { 63 NSAutoreleasePool 63 NSAutoreleasePool *autoreleasepool = [[NSAutoreleasePool alloc] init]; 64 64 printf("%d\n", img->last_modified); 65 65 pipi_pixels_t *p = pipi_getpixels(img, PIPI_PIXELS_RGBA_C); -
libpipi/trunk/pipi/colorstring.c
r2904 r2905 57 57 pipi_pixel_t *pipi_get_color_from_string(const char* s) 58 58 { 59 59 pipi_pixel_t *color; 60 60 61 61 if(!s) return NULL; -
libpipi/trunk/pipi/histogram/histogram.c
r2904 r2905 43 43 if(!h) return -1; 44 44 45 45 data = (uint8_t *)pipi_getpixels(img, PIPI_PIXELS_RGBA_C)->pixels; 46 46 47 47 for(i=0; i< img->w*img->h*4; i+=4) -
libpipi/trunk/pipi/quantize/reduce.c
r2904 r2905 155 155 { 156 156 double k1[3]; 157 157 double yk1; 158 158 k1[R] = pal[i][R] - p0[R]; 159 159 k1[G] = pal[i][G] - p0[G]; … … 171 171 double yk2, s; 172 172 173 173 if(i == j) 174 174 continue; 175 175 … … 250 250 for(i = 2; i < npts; /* */) 251 251 { 252 252 double k1, k2; 253 253 254 254 if(i < 2) … … 286 286 double acx = pts[i][X] - pts[0][X]; 287 287 double acy = pts[i][Y] - pts[0][Y]; 288 288 double area; 289 289 double sqarea = (abx * abx + aby * aby) * (acx * acx + acy * acy) 290 290 - (abx * acx + aby * acy) * (abx * acx + aby * acy); … … 359 359 360 360 pipi_image_t *dst; 361 362 363 361 pipi_pixels_t *srcp, *dstp; 362 float *srcdata, *dstdata; 363 hull_t *rgbhull, *myhull; 364 364 int i, j, w, h; 365 365 -
libpipi/trunk/pipi/render/screen.c
r2904 r2905 97 97 for(x = 0; x < w; x++) 98 98 { 99 99 double dy = ((double)y + .07) / h - .5; 100 100 double dx = (double)x / w - .5; 101 101 /* Using dx²+dy² here creates another interesting halftone. */
Note: See TracChangeset
for help on using the changeset viewer.