Changeset 3342
- Timestamp:
- Jan 13, 2009, 12:51:27 AM (14 years ago)
- Location:
- libpipi/trunk
- Files:
-
- 44 edited
Legend:
- Unmodified
- Added
- Removed
-
libpipi/trunk/examples/edd.c
r3341 r3342 50 50 /* Load image, convert it to grayscale, dither it with Floyd-Steinberg */ 51 51 img = pipi_load(argv[1]); 52 pipi_set_colorspace(img, PIPI_PIXELS_Y_F );52 pipi_set_colorspace(img, PIPI_PIXELS_Y_F32); 53 53 gauss = pipi_gaussian_blur(img, sigma); 54 54 kernel = pipi_load("ediff:fs"); -
libpipi/trunk/examples/img2rubik.c
r3341 r3342 35 35 pipi_image_t *dst = pipi_reduce(src, NCOLORS, mypal); 36 36 37 pipi_pixels_t *p = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );37 pipi_pixels_t *p = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 38 38 float *data = (float *)p->pixels; 39 39 w = p->w; -
libpipi/trunk/pipi-php/php_pipi.c
r3340 r3342 151 151 REGISTER_LONG_CONSTANT("PIPI_SCAN_SERPENTINE", PIPI_SCAN_SERPENTINE, CONST_CS | CONST_PERSISTENT); 152 152 REGISTER_LONG_CONSTANT("PIPI_PIXELS_UNINITIALISED", PIPI_PIXELS_UNINITIALISED, CONST_CS | CONST_PERSISTENT); 153 REGISTER_LONG_CONSTANT("PIPI_PIXELS_RGBA_ C", PIPI_PIXELS_RGBA_C, CONST_CS | CONST_PERSISTENT);154 REGISTER_LONG_CONSTANT("PIPI_PIXELS_BGR_ C", PIPI_PIXELS_BGR_C, CONST_CS | CONST_PERSISTENT);155 REGISTER_LONG_CONSTANT("PIPI_PIXELS_RGBA_F ", PIPI_PIXELS_RGBA_F, CONST_CS | CONST_PERSISTENT);156 REGISTER_LONG_CONSTANT("PIPI_PIXELS_Y_F ", PIPI_PIXELS_Y_F, CONST_CS | CONST_PERSISTENT);157 REGISTER_LONG_CONSTANT("PIPI_PIXELS_MASK_ C", PIPI_PIXELS_MASK_C, CONST_CS | CONST_PERSISTENT);153 REGISTER_LONG_CONSTANT("PIPI_PIXELS_RGBA_U8", PIPI_PIXELS_RGBA_U8, CONST_CS | CONST_PERSISTENT); 154 REGISTER_LONG_CONSTANT("PIPI_PIXELS_BGR_U8", PIPI_PIXELS_BGR_U8, CONST_CS | CONST_PERSISTENT); 155 REGISTER_LONG_CONSTANT("PIPI_PIXELS_RGBA_F32", PIPI_PIXELS_RGBA_F32, CONST_CS | CONST_PERSISTENT); 156 REGISTER_LONG_CONSTANT("PIPI_PIXELS_Y_F32", PIPI_PIXELS_Y_F32, CONST_CS | CONST_PERSISTENT); 157 REGISTER_LONG_CONSTANT("PIPI_PIXELS_MASK_U8", PIPI_PIXELS_MASK_U8, CONST_CS | CONST_PERSISTENT); 158 158 REGISTER_LONG_CONSTANT("PIPI_PIXELS_MAX", PIPI_PIXELS_MAX, CONST_CS | CONST_PERSISTENT); 159 159 REGISTER_LONG_CONSTANT("PIPI_COLOR_R", PIPI_COLOR_R, CONST_CS | CONST_PERSISTENT); -
libpipi/trunk/pipi/analysis/histogram.c
r3341 r3342 44 44 if(!h) return -1; 45 45 46 p = pipi_get_pixels(img, PIPI_PIXELS_RGBA_ C);46 p = pipi_get_pixels(img, PIPI_PIXELS_RGBA_U8); 47 47 data = (uint8_t *)p->pixels; 48 48 memset(h->a, 0, 256*(sizeof(unsigned int))); -
libpipi/trunk/pipi/analysis/measure.c
r3341 r3342 43 43 44 44 /* FIXME: this is not right */ 45 pipi_get_pixels(i1, PIPI_PIXELS_Y_F );46 pipi_get_pixels(i2, PIPI_PIXELS_Y_F );45 pipi_get_pixels(i1, PIPI_PIXELS_Y_F32); 46 pipi_get_pixels(i2, PIPI_PIXELS_Y_F32); 47 47 48 p1 = (float *)i1->p[PIPI_PIXELS_Y_F ].pixels;49 p2 = (float *)i2->p[PIPI_PIXELS_Y_F ].pixels;48 p1 = (float *)i1->p[PIPI_PIXELS_Y_F32].pixels; 49 p2 = (float *)i2->p[PIPI_PIXELS_Y_F32].pixels; 50 50 51 51 for(y = 0; y < h; y++) -
libpipi/trunk/pipi/codec/coreimage.m
r3340 r3342 48 48 img = pipi_new(w, h); 49 49 50 img->p[PIPI_PIXELS_RGBA_ C].w = w;51 img->p[PIPI_PIXELS_RGBA_ C].h = h;52 img->p[PIPI_PIXELS_RGBA_ C].pitch = ([myImage bytesPerRow]/8) * img->w;53 img->p[PIPI_PIXELS_RGBA_ C].bpp = [myImage bitsPerPixel];54 img->p[PIPI_PIXELS_RGBA_ C].bytes = ([myImage bitsPerPixel]/8) * img->w * img->h;55 img->last_modified = PIPI_PIXELS_RGBA_ C;50 img->p[PIPI_PIXELS_RGBA_U8].w = w; 51 img->p[PIPI_PIXELS_RGBA_U8].h = h; 52 img->p[PIPI_PIXELS_RGBA_U8].pitch = ([myImage bytesPerRow]/8) * img->w; 53 img->p[PIPI_PIXELS_RGBA_U8].bpp = [myImage bitsPerPixel]; 54 img->p[PIPI_PIXELS_RGBA_U8].bytes = ([myImage bitsPerPixel]/8) * img->w * img->h; 55 img->last_modified = PIPI_PIXELS_RGBA_U8; 56 56 57 57 … … 60 60 */ 61 61 62 int pitch = (img->p[PIPI_PIXELS_RGBA_ C].bpp/8);62 int pitch = (img->p[PIPI_PIXELS_RGBA_U8].bpp/8); 63 63 unsigned char *tmp = (unsigned char*)malloc(h*w*pitch); 64 64 unsigned char *orig = (unsigned char*)[myImage bitmapData]; … … 88 88 o+=a; 89 89 } 90 img->p[PIPI_PIXELS_RGBA_ C].pixels = tmp;91 img->p[PIPI_PIXELS_RGBA_ C].pitch = w*([myImage bitsPerPixel]/8);90 img->p[PIPI_PIXELS_RGBA_U8].pixels = tmp; 91 img->p[PIPI_PIXELS_RGBA_U8].pitch = w*([myImage bitsPerPixel]/8); 92 92 93 93 … … 98 98 infos->format = [myImage bitmapFormat]; 99 99 100 pipi_pixels_t *p = pipi_get_pixels(img, PIPI_PIXELS_RGBA_ C);100 pipi_pixels_t *p = pipi_get_pixels(img, PIPI_PIXELS_RGBA_U8); 101 101 102 102 img->codec_free = pipi_free_coreimage; … … 110 110 { 111 111 NSAutoreleasePool *autoreleasepool = [[NSAutoreleasePool alloc] init]; 112 pipi_pixels_t *p = pipi_get_pixels(img, PIPI_PIXELS_RGBA_ C);112 pipi_pixels_t *p = pipi_get_pixels(img, PIPI_PIXELS_RGBA_U8); 113 113 114 114 int i; -
libpipi/trunk/pipi/codec/gdi.c
r3341 r3342 54 54 55 55 img = pipi_new(binfo.bmiHeader.biWidth, binfo.bmiHeader.biHeight); 56 p = pipi_get_pixels(img, PIPI_PIXELS_RGBA_ C);56 p = pipi_get_pixels(img, PIPI_PIXELS_RGBA_U8); 57 57 data = p->pixels; 58 58 … … 95 95 int x, y, padding; 96 96 97 p = pipi_get_pixels(img, PIPI_PIXELS_RGBA_ C);97 p = pipi_get_pixels(img, PIPI_PIXELS_RGBA_U8); 98 98 data = p->pixels; 99 99 -
libpipi/trunk/pipi/codec/gdiplus.cpp
r3340 r3342 66 66 67 67 pipi_image_t *img = pipi_new(b->GetWidth(), b->GetHeight()); 68 pipi_pixels_t *p = pipi_get_pixels(img, PIPI_PIXELS_RGBA_ C);68 pipi_pixels_t *p = pipi_get_pixels(img, PIPI_PIXELS_RGBA_U8); 69 69 memcpy(p->pixels, bdata.Scan0, bdata.Width * bdata.Height * 4); 70 70 … … 139 139 } 140 140 141 pipi_pixels_t *p = pipi_get_pixels(img, PIPI_PIXELS_RGBA_ C);141 pipi_pixels_t *p = pipi_get_pixels(img, PIPI_PIXELS_RGBA_U8); 142 142 memcpy(bdata.Scan0, p->pixels, bdata.Width * bdata.Height * 4); 143 143 -
libpipi/trunk/pipi/codec/imlib.c
r3341 r3342 48 48 img = pipi_new(imlib_image_get_width(), imlib_image_get_height()); 49 49 50 img->p[PIPI_PIXELS_RGBA_ C].pixels = imlib_image_get_data();51 img->p[PIPI_PIXELS_RGBA_ C].w = img->w;52 img->p[PIPI_PIXELS_RGBA_ C].h = img->h;53 img->p[PIPI_PIXELS_RGBA_ C].pitch = 4 * img->w;54 img->p[PIPI_PIXELS_RGBA_ C].bpp = 32;55 img->p[PIPI_PIXELS_RGBA_ C].bytes = 4 * img->w * img->h;56 img->last_modified = PIPI_PIXELS_RGBA_ C;50 img->p[PIPI_PIXELS_RGBA_U8].pixels = imlib_image_get_data(); 51 img->p[PIPI_PIXELS_RGBA_U8].w = img->w; 52 img->p[PIPI_PIXELS_RGBA_U8].h = img->h; 53 img->p[PIPI_PIXELS_RGBA_U8].pitch = 4 * img->w; 54 img->p[PIPI_PIXELS_RGBA_U8].bpp = 32; 55 img->p[PIPI_PIXELS_RGBA_U8].bytes = 4 * img->w * img->h; 56 img->last_modified = PIPI_PIXELS_RGBA_U8; 57 57 58 58 img->codec_priv = (void *)priv; 59 img->codec_format = PIPI_PIXELS_RGBA_ C;59 img->codec_format = PIPI_PIXELS_RGBA_U8; 60 60 img->codec_free = pipi_free_imlib2; 61 61 … … 77 77 78 78 /* FIXME: check pitch differences here */ 79 if(img->last_modified == PIPI_PIXELS_RGBA_ C)79 if(img->last_modified == PIPI_PIXELS_RGBA_U8) 80 80 { 81 memcpy(data, img->p[PIPI_PIXELS_RGBA_ C].pixels,81 memcpy(data, img->p[PIPI_PIXELS_RGBA_U8].pixels, 82 82 4 * img->w * img->h); 83 free(img->p[PIPI_PIXELS_RGBA_ C].pixels);83 free(img->p[PIPI_PIXELS_RGBA_U8].pixels); 84 84 } 85 85 86 img->p[PIPI_PIXELS_RGBA_ C].pixels = data;87 img->p[PIPI_PIXELS_RGBA_ C].w = imlib_image_get_width();88 img->p[PIPI_PIXELS_RGBA_ C].h = imlib_image_get_height();89 img->p[PIPI_PIXELS_RGBA_ C].pitch = 4 * imlib_image_get_width();90 img->p[PIPI_PIXELS_RGBA_ C].bpp = 32;91 img->p[PIPI_PIXELS_RGBA_ C].bytes = 4 * img->w * img->h;86 img->p[PIPI_PIXELS_RGBA_U8].pixels = data; 87 img->p[PIPI_PIXELS_RGBA_U8].w = imlib_image_get_width(); 88 img->p[PIPI_PIXELS_RGBA_U8].h = imlib_image_get_height(); 89 img->p[PIPI_PIXELS_RGBA_U8].pitch = 4 * imlib_image_get_width(); 90 img->p[PIPI_PIXELS_RGBA_U8].bpp = 32; 91 img->p[PIPI_PIXELS_RGBA_U8].bytes = 4 * img->w * img->h; 92 92 93 93 img->codec_priv = (void *)priv; 94 img->codec_format = PIPI_PIXELS_RGBA_ C;94 img->codec_format = PIPI_PIXELS_RGBA_U8; 95 95 img->codec_free = pipi_free_imlib2; 96 96 -
libpipi/trunk/pipi/codec/modular/jpeg.c
r3341 r3342 113 113 img = pipi_new(cinfo.output_width, cinfo.output_height); 114 114 115 img->p[PIPI_PIXELS_RGBA_ C].pixels = image;116 img->p[PIPI_PIXELS_RGBA_ C].w = cinfo.output_width;117 img->p[PIPI_PIXELS_RGBA_ C].h = cinfo.output_height;118 img->p[PIPI_PIXELS_RGBA_ C].pitch = cinfo.output_width*4;119 img->p[PIPI_PIXELS_RGBA_ C].bpp = 24;120 img->p[PIPI_PIXELS_RGBA_ C].bytes = 4 * img->w * img->h;121 img->last_modified = PIPI_PIXELS_RGBA_ C;115 img->p[PIPI_PIXELS_RGBA_U8].pixels = image; 116 img->p[PIPI_PIXELS_RGBA_U8].w = cinfo.output_width; 117 img->p[PIPI_PIXELS_RGBA_U8].h = cinfo.output_height; 118 img->p[PIPI_PIXELS_RGBA_U8].pitch = cinfo.output_width*4; 119 img->p[PIPI_PIXELS_RGBA_U8].bpp = 24; 120 img->p[PIPI_PIXELS_RGBA_U8].bytes = 4 * img->w * img->h; 121 img->last_modified = PIPI_PIXELS_RGBA_U8; 122 122 123 123 img->codec_priv = (void *)&cinfo; 124 img->codec_format = PIPI_PIXELS_RGBA_ C;124 img->codec_format = PIPI_PIXELS_RGBA_U8; 125 125 img->codec_free = pipi_free_jpeg; 126 126 … … 144 144 unsigned char *line = NULL; 145 145 146 pipi_pixels_t *pixels = pipi_get_pixels(img, PIPI_PIXELS_RGBA_ C);146 pipi_pixels_t *pixels = pipi_get_pixels(img, PIPI_PIXELS_RGBA_U8); 147 147 148 148 if (!pixels) … … 213 213 static int pipi_free_jpeg(pipi_image_t *img) 214 214 { 215 if(img->p[PIPI_PIXELS_RGBA_ C].pixels)216 free(img->p[PIPI_PIXELS_RGBA_ C].pixels);215 if(img->p[PIPI_PIXELS_RGBA_U8].pixels) 216 free(img->p[PIPI_PIXELS_RGBA_U8].pixels); 217 217 return 0; 218 218 } -
libpipi/trunk/pipi/codec/opencv.c
r3341 r3342 44 44 img = pipi_new(priv->width, priv->height); 45 45 46 img->p[PIPI_PIXELS_BGR_ C].pixels = priv->imageData;47 img->p[PIPI_PIXELS_BGR_ C].w = priv->width;48 img->p[PIPI_PIXELS_BGR_ C].h = priv->height;49 img->p[PIPI_PIXELS_BGR_ C].pitch = priv->widthStep;50 img->p[PIPI_PIXELS_BGR_ C].bpp = 24;51 img->p[PIPI_PIXELS_BGR_ C].bytes = 3 * img->w * img->h;52 img->last_modified = PIPI_PIXELS_BGR_ C;46 img->p[PIPI_PIXELS_BGR_U8].pixels = priv->imageData; 47 img->p[PIPI_PIXELS_BGR_U8].w = priv->width; 48 img->p[PIPI_PIXELS_BGR_U8].h = priv->height; 49 img->p[PIPI_PIXELS_BGR_U8].pitch = priv->widthStep; 50 img->p[PIPI_PIXELS_BGR_U8].bpp = 24; 51 img->p[PIPI_PIXELS_BGR_U8].bytes = 3 * img->w * img->h; 52 img->last_modified = PIPI_PIXELS_BGR_U8; 53 53 54 54 img->codec_priv = (void *)priv; 55 img->codec_format = PIPI_PIXELS_BGR_ C;55 img->codec_format = PIPI_PIXELS_BGR_U8; 56 56 img->codec_free = pipi_free_opencv; 57 57 … … 70 70 71 71 /* FIXME: check pitch differences here */ 72 if(img->last_modified == PIPI_PIXELS_BGR_ C)72 if(img->last_modified == PIPI_PIXELS_BGR_U8) 73 73 { 74 memcpy(priv->imageData, img->p[PIPI_PIXELS_BGR_ C].pixels,74 memcpy(priv->imageData, img->p[PIPI_PIXELS_BGR_U8].pixels, 75 75 3 * img->w * img->h); 76 free(img->p[PIPI_PIXELS_BGR_ C].pixels);76 free(img->p[PIPI_PIXELS_BGR_U8].pixels); 77 77 } 78 78 79 img->p[PIPI_PIXELS_BGR_ C].pixels = priv->imageData;80 img->p[PIPI_PIXELS_BGR_ C].w = priv->width;81 img->p[PIPI_PIXELS_BGR_ C].h = priv->height;82 img->p[PIPI_PIXELS_BGR_ C].pitch = priv->widthStep;83 img->p[PIPI_PIXELS_BGR_ C].bpp = 24;84 img->p[PIPI_PIXELS_BGR_ C].bytes = 3 * img->w * img->h;79 img->p[PIPI_PIXELS_BGR_U8].pixels = priv->imageData; 80 img->p[PIPI_PIXELS_BGR_U8].w = priv->width; 81 img->p[PIPI_PIXELS_BGR_U8].h = priv->height; 82 img->p[PIPI_PIXELS_BGR_U8].pitch = priv->widthStep; 83 img->p[PIPI_PIXELS_BGR_U8].bpp = 24; 84 img->p[PIPI_PIXELS_BGR_U8].bytes = 3 * img->w * img->h; 85 85 86 86 img->codec_priv = (void *)priv; 87 img->codec_format = PIPI_PIXELS_BGR_ C;87 img->codec_format = PIPI_PIXELS_BGR_U8; 88 88 img->codec_free = pipi_free_opencv; 89 89 -
libpipi/trunk/pipi/codec/oric.c
r3341 r3342 65 65 66 66 img = pipi_new(WIDTH, HEIGHT); 67 p = pipi_get_pixels(img, PIPI_PIXELS_RGBA_ C);67 p = pipi_get_pixels(img, PIPI_PIXELS_RGBA_U8); 68 68 data = p->pixels; 69 69 … … 145 145 else 146 146 tmp = img; 147 p = pipi_get_pixels(tmp, PIPI_PIXELS_RGBA_F );147 p = pipi_get_pixels(tmp, PIPI_PIXELS_RGBA_F32); 148 148 data = p->pixels; 149 149 screen = malloc(WIDTH * HEIGHT / 6); -
libpipi/trunk/pipi/codec/sdl.c
r3341 r3342 49 49 img = pipi_new(priv->w, priv->h); 50 50 51 img->p[PIPI_PIXELS_RGBA_ C].pixels = priv->pixels;52 img->p[PIPI_PIXELS_RGBA_ C].w = priv->w;53 img->p[PIPI_PIXELS_RGBA_ C].h = priv->h;54 img->p[PIPI_PIXELS_RGBA_ C].pitch = priv->pitch;55 img->p[PIPI_PIXELS_RGBA_ C].bpp = 32;56 img->p[PIPI_PIXELS_RGBA_ C].bytes = 4 * img->w * img->h;57 img->last_modified = PIPI_PIXELS_RGBA_ C;51 img->p[PIPI_PIXELS_RGBA_U8].pixels = priv->pixels; 52 img->p[PIPI_PIXELS_RGBA_U8].w = priv->w; 53 img->p[PIPI_PIXELS_RGBA_U8].h = priv->h; 54 img->p[PIPI_PIXELS_RGBA_U8].pitch = priv->pitch; 55 img->p[PIPI_PIXELS_RGBA_U8].bpp = 32; 56 img->p[PIPI_PIXELS_RGBA_U8].bytes = 4 * img->w * img->h; 57 img->last_modified = PIPI_PIXELS_RGBA_U8; 58 58 59 59 img->codec_priv = (void *)priv; 60 img->codec_format = PIPI_PIXELS_RGBA_ C;60 img->codec_format = PIPI_PIXELS_RGBA_U8; 61 61 img->codec_free = pipi_free_sdl; 62 62 … … 74 74 75 75 /* FIXME: check pitch differences here */ 76 if(img->last_modified == PIPI_PIXELS_RGBA_ C)76 if(img->last_modified == PIPI_PIXELS_RGBA_U8) 77 77 { 78 memcpy(priv->pixels, img->p[PIPI_PIXELS_RGBA_ C].pixels,78 memcpy(priv->pixels, img->p[PIPI_PIXELS_RGBA_U8].pixels, 79 79 priv->pitch * priv->h); 80 free(img->p[PIPI_PIXELS_RGBA_ C].pixels);80 free(img->p[PIPI_PIXELS_RGBA_U8].pixels); 81 81 } 82 82 83 img->p[PIPI_PIXELS_RGBA_ C].pixels = priv->pixels;84 img->p[PIPI_PIXELS_RGBA_ C].w = priv->w;85 img->p[PIPI_PIXELS_RGBA_ C].h = priv->h;86 img->p[PIPI_PIXELS_RGBA_ C].pitch = priv->pitch;87 img->p[PIPI_PIXELS_RGBA_ C].bpp = 32;88 img->p[PIPI_PIXELS_RGBA_ C].bytes = 4 * img->w * img->h;83 img->p[PIPI_PIXELS_RGBA_U8].pixels = priv->pixels; 84 img->p[PIPI_PIXELS_RGBA_U8].w = priv->w; 85 img->p[PIPI_PIXELS_RGBA_U8].h = priv->h; 86 img->p[PIPI_PIXELS_RGBA_U8].pitch = priv->pitch; 87 img->p[PIPI_PIXELS_RGBA_U8].bpp = 32; 88 img->p[PIPI_PIXELS_RGBA_U8].bytes = 4 * img->w * img->h; 89 89 90 90 img->codec_priv = (void *)priv; 91 img->codec_format = PIPI_PIXELS_RGBA_ C;91 img->codec_format = PIPI_PIXELS_RGBA_U8; 92 92 img->codec_free = pipi_free_sdl; 93 93 -
libpipi/trunk/pipi/combine/mean.c
r3340 r3342 38 38 39 39 dst = pipi_new(w, h); 40 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );40 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 41 41 dstdata = (float *)dstp->pixels; 42 42 43 img1p = pipi_get_pixels(img1, PIPI_PIXELS_RGBA_F );43 img1p = pipi_get_pixels(img1, PIPI_PIXELS_RGBA_F32); 44 44 img1data = (float *)img1p->pixels; 45 img2p = pipi_get_pixels(img2, PIPI_PIXELS_RGBA_F );45 img2p = pipi_get_pixels(img2, PIPI_PIXELS_RGBA_F32); 46 46 img2data = (float *)img2p->pixels; 47 47 -
libpipi/trunk/pipi/combine/minmax.c
r3340 r3342 38 38 39 39 dst = pipi_new(w, h); 40 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );40 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 41 41 dstdata = (float *)dstp->pixels; 42 42 43 img1p = pipi_get_pixels(img1, PIPI_PIXELS_RGBA_F );43 img1p = pipi_get_pixels(img1, PIPI_PIXELS_RGBA_F32); 44 44 img1data = (float *)img1p->pixels; 45 img2p = pipi_get_pixels(img2, PIPI_PIXELS_RGBA_F );45 img2p = pipi_get_pixels(img2, PIPI_PIXELS_RGBA_F32); 46 46 img2data = (float *)img2p->pixels; 47 47 … … 87 87 88 88 dst = pipi_new(w, h); 89 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );89 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 90 90 dstdata = (float *)dstp->pixels; 91 91 92 img1p = pipi_get_pixels(img1, PIPI_PIXELS_RGBA_F );92 img1p = pipi_get_pixels(img1, PIPI_PIXELS_RGBA_F32); 93 93 img1data = (float *)img1p->pixels; 94 img2p = pipi_get_pixels(img2, PIPI_PIXELS_RGBA_F );94 img2p = pipi_get_pixels(img2, PIPI_PIXELS_RGBA_F32); 95 95 img2data = (float *)img2p->pixels; 96 96 -
libpipi/trunk/pipi/combine/mulscreen.c
r3340 r3342 38 38 39 39 dst = pipi_new(w, h); 40 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );41 dstdata = (float *)dstp->pixels; 42 43 img1p = pipi_get_pixels(img1, PIPI_PIXELS_RGBA_F );44 img1data = (float *)img1p->pixels; 45 img2p = pipi_get_pixels(img2, PIPI_PIXELS_RGBA_F );40 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 41 dstdata = (float *)dstp->pixels; 42 43 img1p = pipi_get_pixels(img1, PIPI_PIXELS_RGBA_F32); 44 img1data = (float *)img1p->pixels; 45 img2p = pipi_get_pixels(img2, PIPI_PIXELS_RGBA_F32); 46 46 img2data = (float *)img2p->pixels; 47 47 … … 87 87 88 88 dst = pipi_new(w, h); 89 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );90 dstdata = (float *)dstp->pixels; 91 92 img1p = pipi_get_pixels(img1, PIPI_PIXELS_RGBA_F );93 img1data = (float *)img1p->pixels; 94 img2p = pipi_get_pixels(img2, PIPI_PIXELS_RGBA_F );89 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 90 dstdata = (float *)dstp->pixels; 91 92 img1p = pipi_get_pixels(img1, PIPI_PIXELS_RGBA_F32); 93 img1data = (float *)img1p->pixels; 94 img2p = pipi_get_pixels(img2, PIPI_PIXELS_RGBA_F32); 95 95 img2data = (float *)img2p->pixels; 96 96 … … 136 136 137 137 dst = pipi_new(w, h); 138 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );139 dstdata = (float *)dstp->pixels; 140 141 img1p = pipi_get_pixels(img1, PIPI_PIXELS_RGBA_F );142 img1data = (float *)img1p->pixels; 143 img2p = pipi_get_pixels(img2, PIPI_PIXELS_RGBA_F );138 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 139 dstdata = (float *)dstp->pixels; 140 141 img1p = pipi_get_pixels(img1, PIPI_PIXELS_RGBA_F32); 142 img1data = (float *)img1p->pixels; 143 img2p = pipi_get_pixels(img2, PIPI_PIXELS_RGBA_F32); 144 144 img2data = (float *)img2p->pixels; 145 145 … … 185 185 186 186 dst = pipi_new(w, h); 187 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );188 dstdata = (float *)dstp->pixels; 189 190 img1p = pipi_get_pixels(img1, PIPI_PIXELS_RGBA_F );191 img1data = (float *)img1p->pixels; 192 img2p = pipi_get_pixels(img2, PIPI_PIXELS_RGBA_F );187 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 188 dstdata = (float *)dstp->pixels; 189 190 img1p = pipi_get_pixels(img1, PIPI_PIXELS_RGBA_F32); 191 img1data = (float *)img1p->pixels; 192 img2p = pipi_get_pixels(img2, PIPI_PIXELS_RGBA_F32); 193 193 img2data = (float *)img2p->pixels; 194 194 -
libpipi/trunk/pipi/combine/rgb.c
r3340 r3342 38 38 39 39 dst = pipi_new(w, h); 40 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );40 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 41 41 dstdata = (float *)dstp->pixels; 42 42 43 i1p = pipi_get_pixels(i1, PIPI_PIXELS_Y_F );43 i1p = pipi_get_pixels(i1, PIPI_PIXELS_Y_F32); 44 44 i1data = (float *)i1p->pixels; 45 i2p = pipi_get_pixels(i2, PIPI_PIXELS_Y_F );45 i2p = pipi_get_pixels(i2, PIPI_PIXELS_Y_F32); 46 46 i2data = (float *)i2p->pixels; 47 i3p = pipi_get_pixels(i3, PIPI_PIXELS_Y_F );47 i3p = pipi_get_pixels(i3, PIPI_PIXELS_Y_F32); 48 48 i3data = (float *)i3p->pixels; 49 49 … … 73 73 74 74 dst = pipi_new(w, h); 75 dstp = pipi_get_pixels(dst, PIPI_PIXELS_Y_F );75 dstp = pipi_get_pixels(dst, PIPI_PIXELS_Y_F32); 76 76 dstdata = (float *)dstp->pixels; 77 77 78 srcp = pipi_get_pixels(src, PIPI_PIXELS_RGBA_F );78 srcp = pipi_get_pixels(src, PIPI_PIXELS_RGBA_F32); 79 79 srcdata = (float *)srcp->pixels; 80 80 … … 97 97 98 98 dst = pipi_new(w, h); 99 dstp = pipi_get_pixels(dst, PIPI_PIXELS_Y_F );99 dstp = pipi_get_pixels(dst, PIPI_PIXELS_Y_F32); 100 100 dstdata = (float *)dstp->pixels; 101 101 102 srcp = pipi_get_pixels(src, PIPI_PIXELS_RGBA_F );102 srcp = pipi_get_pixels(src, PIPI_PIXELS_RGBA_F32); 103 103 srcdata = (float *)srcp->pixels; 104 104 … … 121 121 122 122 dst = pipi_new(w, h); 123 dstp = pipi_get_pixels(dst, PIPI_PIXELS_Y_F );123 dstp = pipi_get_pixels(dst, PIPI_PIXELS_Y_F32); 124 124 dstdata = (float *)dstp->pixels; 125 125 126 srcp = pipi_get_pixels(src, PIPI_PIXELS_RGBA_F );126 srcp = pipi_get_pixels(src, PIPI_PIXELS_RGBA_F32); 127 127 srcdata = (float *)srcp->pixels; 128 128 -
libpipi/trunk/pipi/combine/subadd.c
r3340 r3342 39 39 40 40 dst = pipi_new(w, h); 41 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );41 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 42 42 dstdata = (float *)dstp->pixels; 43 43 44 img1p = pipi_get_pixels(img1, PIPI_PIXELS_RGBA_F );44 img1p = pipi_get_pixels(img1, PIPI_PIXELS_RGBA_F32); 45 45 img1data = (float *)img1p->pixels; 46 img2p = pipi_get_pixels(img2, PIPI_PIXELS_RGBA_F );46 img2p = pipi_get_pixels(img2, PIPI_PIXELS_RGBA_F32); 47 47 img2data = (float *)img2p->pixels; 48 48 … … 88 88 89 89 dst = pipi_new(w, h); 90 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );90 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 91 91 dstdata = (float *)dstp->pixels; 92 92 93 img1p = pipi_get_pixels(img1, PIPI_PIXELS_RGBA_F );93 img1p = pipi_get_pixels(img1, PIPI_PIXELS_RGBA_F32); 94 94 img1data = (float *)img1p->pixels; 95 img2p = pipi_get_pixels(img2, PIPI_PIXELS_RGBA_F );95 img2p = pipi_get_pixels(img2, PIPI_PIXELS_RGBA_F32); 96 96 img2data = (float *)img2p->pixels; 97 97 … … 137 137 138 138 dst = pipi_new(w, h); 139 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );139 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 140 140 dstdata = (float *)dstp->pixels; 141 141 142 img1p = pipi_get_pixels(img1, PIPI_PIXELS_RGBA_F );142 img1p = pipi_get_pixels(img1, PIPI_PIXELS_RGBA_F32); 143 143 img1data = (float *)img1p->pixels; 144 img2p = pipi_get_pixels(img2, PIPI_PIXELS_RGBA_F );144 img2p = pipi_get_pixels(img2, PIPI_PIXELS_RGBA_F32); 145 145 img2data = (float *)img2p->pixels; 146 146 -
libpipi/trunk/pipi/context.c
r3340 r3342 704 704 if(ctx->nimages < 1) 705 705 return -1; 706 pipi_get_pixels(ctx->images[ctx->nimages - 1], PIPI_PIXELS_Y_F );706 pipi_get_pixels(ctx->images[ctx->nimages - 1], PIPI_PIXELS_Y_F32); 707 707 } 708 708 else if(!strcmp(cmd, "free")) -
libpipi/trunk/pipi/dither/dbs.c
r3340 r3342 70 70 71 71 src = pipi_copy(img); 72 pipi_get_pixels(src, PIPI_PIXELS_Y_F );72 pipi_get_pixels(src, PIPI_PIXELS_Y_F32); 73 73 74 74 tmp1 = pipi_convolution(src, NN, NN, kernel); 75 tmp1p = pipi_get_pixels(tmp1, PIPI_PIXELS_Y_F );75 tmp1p = pipi_get_pixels(tmp1, PIPI_PIXELS_Y_F32); 76 76 tmp1data = (float *)tmp1p->pixels; 77 77 78 78 dst = pipi_dither_random(src); 79 dstp = pipi_get_pixels(dst, PIPI_PIXELS_Y_F );79 dstp = pipi_get_pixels(dst, PIPI_PIXELS_Y_F32); 80 80 dstdata = (float *)dstp->pixels; 81 81 … … 83 83 84 84 tmp2 = pipi_convolution(dst, NN, NN, kernel); 85 tmp2p = pipi_get_pixels(tmp2, PIPI_PIXELS_Y_F );85 tmp2p = pipi_get_pixels(tmp2, PIPI_PIXELS_Y_F32); 86 86 tmp2data = (float *)tmp2p->pixels; 87 87 -
libpipi/trunk/pipi/dither/ediff.c
r3340 r3342 42 42 43 43 dst = pipi_copy(img); 44 dstp = pipi_get_pixels(dst, PIPI_PIXELS_Y_F );44 dstp = pipi_get_pixels(dst, PIPI_PIXELS_Y_F32); 45 45 dstdata = (float *)dstp->pixels; 46 46 47 kerp = pipi_get_pixels(ker, PIPI_PIXELS_Y_F );47 kerp = pipi_get_pixels(ker, PIPI_PIXELS_Y_F32); 48 48 kerdata = (float *)kerp->pixels; 49 49 for(kx = 0; kx < kw; kx++) -
libpipi/trunk/pipi/dither/ordered.c
r3340 r3342 64 64 65 65 dst = pipi_copy(img); 66 dstp = pipi_get_pixels(dst, PIPI_PIXELS_Y_F );66 dstp = pipi_get_pixels(dst, PIPI_PIXELS_Y_F32); 67 67 dstdata = (float *)dstp->pixels; 68 68 69 kernelp = pipi_get_pixels(kernel, PIPI_PIXELS_Y_F );69 kernelp = pipi_get_pixels(kernel, PIPI_PIXELS_Y_F32); 70 70 kerneldata = (float *)kernelp->pixels; 71 71 … … 113 113 epsilon = 1. / (w * h + 1); 114 114 115 srcp = pipi_get_pixels(src, PIPI_PIXELS_Y_F );115 srcp = pipi_get_pixels(src, PIPI_PIXELS_Y_F32); 116 116 srcdata = (float *)srcp->pixels; 117 117 118 118 dst = pipi_new(w, h); 119 dstp = pipi_get_pixels(dst, PIPI_PIXELS_Y_F );119 dstp = pipi_get_pixels(dst, PIPI_PIXELS_Y_F32); 120 120 dstdata = (float *)dstp->pixels; 121 121 -
libpipi/trunk/pipi/dither/ostromoukhov.c
r3340 r3342 77 77 78 78 dst = pipi_copy(img); 79 dstp = pipi_get_pixels(dst, PIPI_PIXELS_Y_F );79 dstp = pipi_get_pixels(dst, PIPI_PIXELS_Y_F32); 80 80 dstdata = (float *)dstp->pixels; 81 81 -
libpipi/trunk/pipi/dither/random.c
r3340 r3342 34 34 35 35 dst = pipi_copy(img); 36 dstp = pipi_get_pixels(dst, PIPI_PIXELS_Y_F );36 dstp = pipi_get_pixels(dst, PIPI_PIXELS_Y_F32); 37 37 dstdata = (float *)dstp->pixels; 38 38 -
libpipi/trunk/pipi/filter/autocontrast.c
r3340 r3342 40 40 h = src->h; 41 41 42 gray = (src->last_modified == PIPI_PIXELS_Y_F );42 gray = (src->last_modified == PIPI_PIXELS_Y_F32); 43 43 44 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F )45 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F );44 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F32) 45 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F32); 46 46 srcdata = (float *)srcp->pixels; 47 47 … … 81 81 82 82 dst = pipi_new(w, h); 83 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F )84 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );83 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F32) 84 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 85 85 dstdata = (float *)dstp->pixels; 86 86 -
libpipi/trunk/pipi/filter/blur.c
r3340 r3342 136 136 if(src->wrap) 137 137 { 138 if(src->last_modified == PIPI_PIXELS_Y_F )138 if(src->last_modified == PIPI_PIXELS_Y_F32) 139 139 return boxblur_gray_wrap(src, m, n); 140 140 … … 143 143 else 144 144 { 145 if(src->last_modified == PIPI_PIXELS_Y_F )145 if(src->last_modified == PIPI_PIXELS_Y_F32) 146 146 return boxblur_gray(src, m, n); 147 147 … … 164 164 size = (2 * m + 1) * (2 * n + 1); 165 165 166 srcp = FLAG_GRAY ? pipi_get_pixels(src, PIPI_PIXELS_Y_F )167 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F );166 srcp = FLAG_GRAY ? pipi_get_pixels(src, PIPI_PIXELS_Y_F32) 167 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F32); 168 168 srcdata = (float *)srcp->pixels; 169 169 170 170 dst = pipi_new(w, h); 171 dstp = FLAG_GRAY ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F )172 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );171 dstp = FLAG_GRAY ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F32) 172 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 173 173 dstdata = (float *)dstp->pixels; 174 174 -
libpipi/trunk/pipi/filter/color.c
r3340 r3342 37 37 h = src->h; 38 38 39 gray = (src->last_modified == PIPI_PIXELS_Y_F );40 41 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F )42 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F );43 srcdata = (float *)srcp->pixels; 44 45 dst = pipi_new(w, h); 46 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F )47 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );39 gray = (src->last_modified == PIPI_PIXELS_Y_F32); 40 41 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F32) 42 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F32); 43 srcdata = (float *)srcp->pixels; 44 45 dst = pipi_new(w, h); 46 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F32) 47 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 48 48 dstdata = (float *)dstp->pixels; 49 49 … … 118 118 h = src->h; 119 119 120 gray = (src->last_modified == PIPI_PIXELS_Y_F );121 122 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F )123 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F );124 srcdata = (float *)srcp->pixels; 125 126 dst = pipi_new(w, h); 127 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F )128 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );120 gray = (src->last_modified == PIPI_PIXELS_Y_F32); 121 122 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F32) 123 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F32); 124 srcdata = (float *)srcp->pixels; 125 126 dst = pipi_new(w, h); 127 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F32) 128 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 129 129 dstdata = (float *)dstp->pixels; 130 130 … … 209 209 h = src->h; 210 210 211 gray = (src->last_modified == PIPI_PIXELS_Y_F );212 213 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F )214 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F );215 srcdata = (float *)srcp->pixels; 216 217 dst = pipi_new(w, h); 218 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F )219 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );211 gray = (src->last_modified == PIPI_PIXELS_Y_F32); 212 213 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F32) 214 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F32); 215 srcdata = (float *)srcp->pixels; 216 217 dst = pipi_new(w, h); 218 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F32) 219 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 220 220 dstdata = (float *)dstp->pixels; 221 221 … … 253 253 h = src->h; 254 254 255 gray = (src->last_modified == PIPI_PIXELS_Y_F );256 257 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F )258 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F );259 srcdata = (float *)srcp->pixels; 260 261 dst = pipi_new(w, h); 262 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F )263 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );255 gray = (src->last_modified == PIPI_PIXELS_Y_F32); 256 257 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F32) 258 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F32); 259 srcdata = (float *)srcp->pixels; 260 261 dst = pipi_new(w, h); 262 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F32) 263 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 264 264 dstdata = (float *)dstp->pixels; 265 265 -
libpipi/trunk/pipi/filter/convolution.c
r3340 r3342 71 71 if(fabs(p - q) > 0.0001 * 0.0001) 72 72 { 73 if(src->last_modified == PIPI_PIXELS_Y_F )73 if(src->last_modified == PIPI_PIXELS_Y_F32) 74 74 { 75 75 if(src->wrap) … … 97 97 vvec[j] = mat[j * m + besti] / tmp; 98 98 99 if(src->last_modified == PIPI_PIXELS_Y_F )99 if(src->last_modified == PIPI_PIXELS_Y_F32) 100 100 ret = src->wrap ? sepconv_gray_wrap(src, m, hvec, n, vvec) 101 101 : sepconv_gray(src, m, hvec, n, vvec); … … 122 122 h = src->h; 123 123 124 srcp = FLAG_GRAY ? pipi_get_pixels(src, PIPI_PIXELS_Y_F )125 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F );124 srcp = FLAG_GRAY ? pipi_get_pixels(src, PIPI_PIXELS_Y_F32) 125 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F32); 126 126 srcdata = (float *)srcp->pixels; 127 127 128 128 dst = pipi_new(w, h); 129 dstp = FLAG_GRAY ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F )130 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );129 dstp = FLAG_GRAY ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F32) 130 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 131 131 dstdata = (float *)dstp->pixels; 132 132 … … 190 190 h = src->h; 191 191 192 srcp = FLAG_GRAY ? pipi_get_pixels(src, PIPI_PIXELS_Y_F )193 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F );192 srcp = FLAG_GRAY ? pipi_get_pixels(src, PIPI_PIXELS_Y_F32) 193 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F32); 194 194 srcdata = (float *)srcp->pixels; 195 195 196 196 dst = pipi_new(w, h); 197 dstp = FLAG_GRAY ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F )198 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );197 dstp = FLAG_GRAY ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F32) 198 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 199 199 dstdata = (float *)dstp->pixels; 200 200 -
libpipi/trunk/pipi/filter/dilate.c
r3340 r3342 41 41 h = src->h; 42 42 43 gray = (src->last_modified == PIPI_PIXELS_Y_F );43 gray = (src->last_modified == PIPI_PIXELS_Y_F32); 44 44 45 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F )46 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F );45 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F32) 46 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F32); 47 47 srcdata = (float *)srcp->pixels; 48 48 49 49 dst = pipi_new(w, h); 50 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F )51 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );50 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F32) 51 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 52 52 dstdata = (float *)dstp->pixels; 53 53 … … 110 110 h = src->h; 111 111 112 gray = (src->last_modified == PIPI_PIXELS_Y_F );112 gray = (src->last_modified == PIPI_PIXELS_Y_F32); 113 113 114 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F )115 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F );114 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F32) 115 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F32); 116 116 srcdata = (float *)srcp->pixels; 117 117 118 118 dst = pipi_new(w, h); 119 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F )120 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );119 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F32) 120 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 121 121 dstdata = (float *)dstp->pixels; 122 122 -
libpipi/trunk/pipi/filter/median.c
r3340 r3342 56 56 size = (2 * rx + 1) * (2 * ry + 1); 57 57 58 gray = (src->last_modified == PIPI_PIXELS_Y_F );58 gray = (src->last_modified == PIPI_PIXELS_Y_F32); 59 59 60 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F )61 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F );60 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F32) 61 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F32); 62 62 srcdata = (float *)srcp->pixels; 63 63 64 64 dst = pipi_new(w, h); 65 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F )66 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );65 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F32) 66 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 67 67 dstdata = (float *)dstp->pixels; 68 68 -
libpipi/trunk/pipi/filter/transform.c
r3340 r3342 37 37 h = src->h; 38 38 39 gray = (src->last_modified == PIPI_PIXELS_Y_F );40 41 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F )42 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F );39 gray = (src->last_modified == PIPI_PIXELS_Y_F32); 40 41 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F32) 42 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F32); 43 43 srcdata = (float *)srcp->pixels; 44 44 45 45 dst = pipi_new(w, h); 46 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F )47 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );46 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F32) 47 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 48 48 dstdata = (float *)dstp->pixels; 49 49 … … 83 83 h = src->h; 84 84 85 gray = (src->last_modified == PIPI_PIXELS_Y_F );86 87 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F )88 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F );85 gray = (src->last_modified == PIPI_PIXELS_Y_F32); 86 87 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F32) 88 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F32); 89 89 srcdata = (float *)srcp->pixels; 90 90 91 91 dst = pipi_new(w, h); 92 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F )93 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );92 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F32) 93 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 94 94 dstdata = (float *)dstp->pixels; 95 95 … … 123 123 h = src->h; 124 124 125 gray = (src->last_modified == PIPI_PIXELS_Y_F );126 127 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F )128 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F );125 gray = (src->last_modified == PIPI_PIXELS_Y_F32); 126 127 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F32) 128 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F32); 129 129 srcdata = (float *)srcp->pixels; 130 130 131 131 dst = pipi_new(h, w); 132 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F )133 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );132 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F32) 133 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 134 134 dstdata = (float *)dstp->pixels; 135 135 … … 169 169 h = src->h; 170 170 171 gray = (src->last_modified == PIPI_PIXELS_Y_F );172 173 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F )174 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F );171 gray = (src->last_modified == PIPI_PIXELS_Y_F32); 172 173 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F32) 174 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F32); 175 175 srcdata = (float *)srcp->pixels; 176 176 177 177 dst = pipi_new(w, h); 178 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F )179 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );178 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F32) 179 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 180 180 dstdata = (float *)dstp->pixels; 181 181 … … 215 215 h = src->h; 216 216 217 gray = (src->last_modified == PIPI_PIXELS_Y_F );218 219 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F )220 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F );217 gray = (src->last_modified == PIPI_PIXELS_Y_F32); 218 219 srcp = gray ? pipi_get_pixels(src, PIPI_PIXELS_Y_F32) 220 : pipi_get_pixels(src, PIPI_PIXELS_RGBA_F32); 221 221 srcdata = (float *)srcp->pixels; 222 222 223 223 dst = pipi_new(h, w); 224 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F )225 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );224 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F32) 225 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 226 226 dstdata = (float *)dstp->pixels; 227 227 -
libpipi/trunk/pipi/paint/bezier.c
r2902 r3342 35 35 uint32_t c, int n, int aa) 36 36 { 37 if(img->last_modified == PIPI_PIXELS_RGBA_ C)37 if(img->last_modified == PIPI_PIXELS_RGBA_U8) 38 38 { 39 39 float t; -
libpipi/trunk/pipi/paint/floodfill.c
r3340 r3342 78 78 79 79 80 if(src->last_modified == PIPI_PIXELS_RGBA_ C) {80 if(src->last_modified == PIPI_PIXELS_RGBA_U8) { 81 81 uint32_t *dstdata; 82 82 unsigned char nr, ng, nb, na; 83 83 84 84 /* Get ARGB32 pointer */ 85 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_ C);85 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_U8); 86 86 dstdata = (uint32_t *)dstp->pixels; 87 87 … … 96 96 97 97 } else { 98 int gray = (dst->last_modified == PIPI_PIXELS_Y_F );98 int gray = (dst->last_modified == PIPI_PIXELS_Y_F32); 99 99 float *dstdata; 100 100 float or, og, ob, oa; 101 101 102 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F )103 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );102 dstp = gray ? pipi_get_pixels(dst, PIPI_PIXELS_Y_F32) 103 : pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 104 104 105 105 dstdata = (float *)dstp->pixels; -
libpipi/trunk/pipi/paint/line.c
r3340 r3342 68 68 69 69 /* No Transparency routine for u32 yet, fallback to float version */ 70 if(img->last_modified == PIPI_PIXELS_RGBA_ C)70 if(img->last_modified == PIPI_PIXELS_RGBA_U8) 71 71 { 72 72 if(!aa) 73 73 { 74 74 uint32_t *dstdata; 75 dstdata = (uint32_t *)pipi_get_pixels(img, PIPI_PIXELS_RGBA_ C)->pixels;75 dstdata = (uint32_t *)pipi_get_pixels(img, PIPI_PIXELS_RGBA_U8)->pixels; 76 76 s.color32 = c; 77 77 s.buf_u32 = dstdata; … … 81 81 { 82 82 float *dstdata; 83 dstdata = (float *)pipi_get_pixels(img, PIPI_PIXELS_RGBA_F )->pixels;83 dstdata = (float *)pipi_get_pixels(img, PIPI_PIXELS_RGBA_F32)->pixels; 84 84 s.colorf[2] = ((c&0x00FF0000)>>16)/255.0f; /* XXX FIXME */ 85 85 s.colorf[1] = ((c&0x0000FF00)>>8)/255.0f; /* XXX FIXME */ … … 89 89 } 90 90 } 91 else if(img->last_modified == PIPI_PIXELS_Y_F )91 else if(img->last_modified == PIPI_PIXELS_Y_F32) 92 92 { 93 93 float *dstdata; 94 dstdata = (float *)pipi_get_pixels(img, PIPI_PIXELS_Y_F )->pixels;94 dstdata = (float *)pipi_get_pixels(img, PIPI_PIXELS_Y_F32)->pixels; 95 95 s.colorf[0] = (c & 0xff) / 255.0f; /* XXX FIXME */ 96 96 s.buf_f = dstdata; … … 100 100 { 101 101 float *dstdata; 102 dstdata = (float *)pipi_get_pixels(img, PIPI_PIXELS_RGBA_F )->pixels;102 dstdata = (float *)pipi_get_pixels(img, PIPI_PIXELS_RGBA_F32)->pixels; 103 103 s.colorf[2] = ((c&0x00FF0000)>>16)/255.0f; /* XXX FIXME */ 104 104 s.colorf[1] = ((c&0x0000FF00)>>8)/255.0f; /* XXX FIXME */ -
libpipi/trunk/pipi/paint/tile.c
r3340 r3342 35 35 36 36 dst = pipi_new(w, h); 37 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );37 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 38 38 dstdata = (float *)dstp->pixels; 39 39 40 tilep = pipi_get_pixels(tile, PIPI_PIXELS_RGBA_F );40 tilep = pipi_get_pixels(tile, PIPI_PIXELS_RGBA_F32); 41 41 tiledata = (float *)tilep->pixels; 42 42 -
libpipi/trunk/pipi/pipi.h
r3341 r3342 46 46 47 47 /* pipi_format_t: this enum is a list of all possible pixel formats for 48 * our internal images. RGBA 32is the most usual format when an image has49 * just been loaded, but RGBA_F is a lot better for complex operations. */48 * our internal images. RGBA_U8 is the most usual format when an image has 49 * just been loaded, but RGBA_F32 is a lot better for complex operations. */ 50 50 typedef enum 51 51 { 52 52 PIPI_PIXELS_UNINITIALISED = -1, 53 53 54 PIPI_PIXELS_RGBA_ C= 0,55 PIPI_PIXELS_BGR_ C= 1,56 PIPI_PIXELS_RGBA_F = 2,57 PIPI_PIXELS_Y_F = 3,58 59 PIPI_PIXELS_MASK_ C= 4,54 PIPI_PIXELS_RGBA_U8 = 0, 55 PIPI_PIXELS_BGR_U8 = 1, 56 PIPI_PIXELS_RGBA_F32 = 2, 57 PIPI_PIXELS_Y_F32 = 3, 58 59 PIPI_PIXELS_MASK_U8 = 4, 60 60 61 61 PIPI_PIXELS_MAX = 5 -
libpipi/trunk/pipi/pixels.c
r3341 r3342 49 49 50 50 /* Handle special cases */ 51 if(type == PIPI_PIXELS_MASK_ C)51 if(type == PIPI_PIXELS_MASK_U8) 52 52 return &img->p[type]; 53 53 54 54 /* Preliminary conversions */ 55 if(img->last_modified == PIPI_PIXELS_RGBA_ C56 && type == PIPI_PIXELS_Y_F )57 pipi_get_pixels(img, PIPI_PIXELS_RGBA_F );58 else if(img->last_modified == PIPI_PIXELS_BGR_ C59 && type == PIPI_PIXELS_Y_F )60 pipi_get_pixels(img, PIPI_PIXELS_RGBA_F );61 else if(img->last_modified == PIPI_PIXELS_Y_F 62 && type == PIPI_PIXELS_RGBA_ C)63 pipi_get_pixels(img, PIPI_PIXELS_RGBA_F );64 else if(img->last_modified == PIPI_PIXELS_Y_F 65 && type == PIPI_PIXELS_BGR_ C)66 pipi_get_pixels(img, PIPI_PIXELS_RGBA_F );55 if(img->last_modified == PIPI_PIXELS_RGBA_U8 56 && type == PIPI_PIXELS_Y_F32) 57 pipi_get_pixels(img, PIPI_PIXELS_RGBA_F32); 58 else if(img->last_modified == PIPI_PIXELS_BGR_U8 59 && type == PIPI_PIXELS_Y_F32) 60 pipi_get_pixels(img, PIPI_PIXELS_RGBA_F32); 61 else if(img->last_modified == PIPI_PIXELS_Y_F32 62 && type == PIPI_PIXELS_RGBA_U8) 63 pipi_get_pixels(img, PIPI_PIXELS_RGBA_F32); 64 else if(img->last_modified == PIPI_PIXELS_Y_F32 65 && type == PIPI_PIXELS_BGR_U8) 66 pipi_get_pixels(img, PIPI_PIXELS_RGBA_F32); 67 67 68 68 /* Allocate pixels if necessary */ … … 71 71 switch(type) 72 72 { 73 case PIPI_PIXELS_RGBA_ C:73 case PIPI_PIXELS_RGBA_U8: 74 74 bytes = img->w * img->h * 4 * sizeof(uint8_t); 75 75 bpp = 4 * sizeof(uint8_t); 76 76 break; 77 case PIPI_PIXELS_BGR_ C:77 case PIPI_PIXELS_BGR_U8: 78 78 bytes = img->w * img->h * 3 * sizeof(uint8_t); 79 79 bpp = 3 * sizeof(uint8_t); 80 80 break; 81 case PIPI_PIXELS_RGBA_F :81 case PIPI_PIXELS_RGBA_F32: 82 82 bytes = img->w * img->h * 4 * sizeof(float); 83 83 bpp = 4 * sizeof(float); 84 84 break; 85 case PIPI_PIXELS_Y_F :85 case PIPI_PIXELS_Y_F32: 86 86 bytes = img->w * img->h * sizeof(float); 87 87 bpp = sizeof(float); … … 99 99 100 100 /* Convert pixels */ 101 if(img->last_modified == PIPI_PIXELS_RGBA_ C102 && type == PIPI_PIXELS_RGBA_F )103 { 104 uint8_t *src = (uint8_t *)img->p[PIPI_PIXELS_RGBA_ C].pixels;101 if(img->last_modified == PIPI_PIXELS_RGBA_U8 102 && type == PIPI_PIXELS_RGBA_F32) 103 { 104 uint8_t *src = (uint8_t *)img->p[PIPI_PIXELS_RGBA_U8].pixels; 105 105 float *dest = (float *)img->p[type].pixels; 106 106 … … 113 113 = u8tof32(src[4 * (y * img->w + x) + i]); 114 114 } 115 else if(img->last_modified == PIPI_PIXELS_BGR_ C116 && type == PIPI_PIXELS_RGBA_F )117 { 118 uint8_t *src = (uint8_t *)img->p[PIPI_PIXELS_BGR_ C].pixels;115 else if(img->last_modified == PIPI_PIXELS_BGR_U8 116 && type == PIPI_PIXELS_RGBA_F32) 117 { 118 uint8_t *src = (uint8_t *)img->p[PIPI_PIXELS_BGR_U8].pixels; 119 119 float *dest = (float *)img->p[type].pixels; 120 120 … … 133 133 } 134 134 } 135 else if(img->last_modified == PIPI_PIXELS_RGBA_F 136 && type == PIPI_PIXELS_RGBA_ C)137 { 138 float *src = (float *)img->p[PIPI_PIXELS_RGBA_F ].pixels;135 else if(img->last_modified == PIPI_PIXELS_RGBA_F32 136 && type == PIPI_PIXELS_RGBA_U8) 137 { 138 float *src = (float *)img->p[PIPI_PIXELS_RGBA_F32].pixels; 139 139 uint8_t *dest = (uint8_t *)img->p[type].pixels; 140 140 … … 169 169 } 170 170 } 171 else if(img->last_modified == PIPI_PIXELS_RGBA_F 172 && type == PIPI_PIXELS_BGR_ C)173 { 174 float *src = (float *)img->p[PIPI_PIXELS_RGBA_F ].pixels;171 else if(img->last_modified == PIPI_PIXELS_RGBA_F32 172 && type == PIPI_PIXELS_BGR_U8) 173 { 174 float *src = (float *)img->p[PIPI_PIXELS_RGBA_F32].pixels; 175 175 uint8_t *dest = (uint8_t *)img->p[type].pixels; 176 176 … … 205 205 } 206 206 } 207 else if(img->last_modified == PIPI_PIXELS_Y_F 208 && type == PIPI_PIXELS_RGBA_F )209 { 210 float *src = (float *)img->p[PIPI_PIXELS_Y_F ].pixels;211 float *dest = (float *)img->p[PIPI_PIXELS_RGBA_F ].pixels;207 else if(img->last_modified == PIPI_PIXELS_Y_F32 208 && type == PIPI_PIXELS_RGBA_F32) 209 { 210 float *src = (float *)img->p[PIPI_PIXELS_Y_F32].pixels; 211 float *dest = (float *)img->p[PIPI_PIXELS_RGBA_F32].pixels; 212 212 213 213 init_tables(); … … 223 223 } 224 224 } 225 else if(img->last_modified == PIPI_PIXELS_RGBA_F 226 && type == PIPI_PIXELS_Y_F )227 { 228 float *src = (float *)img->p[PIPI_PIXELS_RGBA_F ].pixels;229 float *dest = (float *)img->p[PIPI_PIXELS_Y_F ].pixels;225 else if(img->last_modified == PIPI_PIXELS_RGBA_F32 226 && type == PIPI_PIXELS_Y_F32) 227 { 228 float *src = (float *)img->p[PIPI_PIXELS_RGBA_F32].pixels; 229 float *dest = (float *)img->p[PIPI_PIXELS_Y_F32].pixels; 230 230 231 231 init_tables(); -
libpipi/trunk/pipi/quantize/reduce.c
r3340 r3342 379 379 debug(""); 380 380 381 srcp = pipi_get_pixels(src, PIPI_PIXELS_RGBA_F );381 srcp = pipi_get_pixels(src, PIPI_PIXELS_RGBA_F32); 382 382 srcdata = (float *)srcp->pixels; 383 383 … … 386 386 387 387 dst = pipi_new(w, h); 388 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );388 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 389 389 dstdata = (float *)dstp->pixels; 390 390 -
libpipi/trunk/pipi/render/noise.c
r3340 r3342 35 35 36 36 ret = pipi_new(w, h); 37 pix = pipi_get_pixels(ret, PIPI_PIXELS_RGBA_F );37 pix = pipi_get_pixels(ret, PIPI_PIXELS_RGBA_F32); 38 38 data = (float *)pix->pixels; 39 39 -
libpipi/trunk/pipi/render/screen.c
r3340 r3342 45 45 46 46 ret = pipi_new(w, h); 47 pix = pipi_get_pixels(ret, PIPI_PIXELS_Y_F );47 pix = pipi_get_pixels(ret, PIPI_PIXELS_Y_F32); 48 48 data = (float *)pix->pixels; 49 49 … … 108 108 109 109 ret = pipi_new(w * 2, h * 2); 110 pix = pipi_get_pixels(ret, PIPI_PIXELS_Y_F );110 pix = pipi_get_pixels(ret, PIPI_PIXELS_Y_F32); 111 111 data = (float *)pix->pixels; 112 112 -
libpipi/trunk/pipi/resize.c
r3340 r3342 32 32 int x, y, x0, y0, sw, dw, sh, dh, remy; 33 33 34 srcp = pipi_get_pixels(src, PIPI_PIXELS_RGBA_F );34 srcp = pipi_get_pixels(src, PIPI_PIXELS_RGBA_F32); 35 35 srcdata = (float *)srcp->pixels; 36 36 37 37 dst = pipi_new(w, h); 38 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F );38 dstp = pipi_get_pixels(dst, PIPI_PIXELS_RGBA_F32); 39 39 dstdata = (float *)dstp->pixels; 40 40 -
libpipi/trunk/pipi/stock.c
r3340 r3342 174 174 175 175 ret = pipi_new(w, h); 176 pix = pipi_get_pixels(ret, PIPI_PIXELS_Y_F );176 pix = pipi_get_pixels(ret, PIPI_PIXELS_Y_F32); 177 177 memcpy(pix->pixels, ker, w * h * sizeof(float)); 178 178 -
libpipi/trunk/pipi/tiles.c
r3341 r3342 88 88 switch(fmt) 89 89 { 90 case PIPI_PIXELS_RGBA_ C:91 case PIPI_PIXELS_BGR_ C:90 case PIPI_PIXELS_RGBA_U8: 91 case PIPI_PIXELS_BGR_U8: 92 92 bytes = sizeof(uint8_t) * TILE_SIZE * TILE_SIZE; 93 93 break; 94 case PIPI_PIXELS_RGBA_F :95 case PIPI_PIXELS_Y_F :94 case PIPI_PIXELS_RGBA_F32: 95 case PIPI_PIXELS_Y_F32: 96 96 bytes = sizeof(float) * TILE_SIZE * TILE_SIZE; 97 97 break; -
libpipi/trunk/test/u8tof32tou8.c
r3340 r3342 35 35 img2 = pipi_load("mona.png"); 36 36 37 pix1 = pipi_get_pixels(img1, PIPI_PIXELS_RGBA_ C);37 pix1 = pipi_get_pixels(img1, PIPI_PIXELS_RGBA_U8); 38 38 data1 = (uint32_t *)pix1->pixels; 39 39 40 pipi_get_pixels(img2, PIPI_PIXELS_RGBA_F );41 pix2 = pipi_get_pixels(img2, PIPI_PIXELS_RGBA_ C);40 pipi_get_pixels(img2, PIPI_PIXELS_RGBA_F32); 41 pix2 = pipi_get_pixels(img2, PIPI_PIXELS_RGBA_U8); 42 42 data2 = (uint32_t *)pix2->pixels; 43 43
Note: See TracChangeset
for help on using the changeset viewer.