/external/ImageMagick/coders/ |
H A D | map.c | 50 #include "MagickCore/colormap.h" 51 #include "MagickCore/colormap-private.h" 88 % ReadMAPImage() reads an image of raw RGB colormap and colormap index 136 *colormap, 171 colormap=(unsigned char *) AcquireQuantumMemory(image->colors,packet_size* 172 sizeof(*colormap)); 174 (colormap == (unsigned char *) NULL)) 177 Read image colormap. 179 count=ReadBlob(image,packet_size*image->colors,colormap); 133 *colormap, local 362 *colormap, local [all...] |
H A D | mpc.c | 52 #include "MagickCore/colormap.h" 839 Create image colormap. 849 *colormap; 852 Read image colormap from file. 855 colormap=(unsigned char *) AcquireQuantumMemory(image->colors, 856 packet_size*sizeof(*colormap)); 857 if (colormap == (unsigned char *) NULL) 859 count=ReadBlob(image,packet_size*image->colors,colormap); 863 p=colormap; 877 image->colormap[ 845 *colormap; local 1383 *colormap, local [all...] |
H A D | rle.c | 47 #include "MagickCore/colormap.h" 48 #include "MagickCore/colormap-private.h" 190 *colormap, 264 colormap=(unsigned char *) NULL; 270 colormap=(unsigned char *) AcquireQuantumMemory(number_colormaps, 271 3*map_length*sizeof(*colormap)); 272 if (colormap == (unsigned char *) NULL) 274 p=colormap; 399 colormap=(unsigned char *) RelinquishMagickMemory(colormap); 187 *colormap, local [all...] |
H A D | miff.c | 50 #include "MagickCore/colormap.h" 51 #include "MagickCore/colormap-private.h" 1163 Create image colormap. 1174 *colormap; 1177 Read image colormap from file. 1180 colormap=(unsigned char *) AcquireQuantumMemory(image->colors, 1181 packet_size*sizeof(*colormap)); 1182 if (colormap == (unsigned char *) NULL) 1184 count=ReadBlob(image,packet_size*image->colors,colormap); 1185 p=colormap; 1169 *colormap; local 2337 *colormap, local [all...] |
H A D | gif.c | 50 #include "MagickCore/colormap.h" 51 #include "MagickCore/colormap-private.h" 169 % o opacity: The colormap index associated with the transparent color. 449 SetPixelViaPixelInfo(image,image->colormap+index,q); 1273 Inititialize colormap. 1283 Use global colormap. 1288 image->colormap[i].red=(double) ScaleCharToQuantum(*p++); 1289 image->colormap[i].green=(double) ScaleCharToQuantum(*p++); 1290 image->colormap[i].blue=(double) ScaleCharToQuantum(*p++); 1293 image->colormap[ 1294 *colormap; local 1508 *colormap, local [all...] |
/external/libjpeg-turbo/ |
H A D | wrrle.c | 60 rle_map *colormap; /* RLE-style color map, or NULL if none */ member in struct:__anon10912 113 /* Convert colormap, if any, to RLE format. */ 115 dest->colormap = NULL; 120 dest->colormap = (rle_map *) (*cinfo->mem->alloc_small) 122 MEMZERO(dest->colormap, cmapsize); 128 dest->colormap[ci * CMAPLENGTH + i] = 129 GETJSAMPLE(cinfo->colormap[ci][i]) << 8; 203 header.cmap = dest->colormap; 204 /* Add a comment to the output image with the true colormap length. */
|
H A D | rdrle.c | 45 * GRAYSCALE - 8 bits, no colormap 47 * PSEUDOCOLOR - 8 bits, 3 channel colormap 48 * TRUECOLOR - 24 bits, 3 channel colormap 49 * DIRECTCOLOR - 24 bits, no colormap 213 rle_map *colormap; local 216 colormap = source->header.cmap; 224 *dest_row++ = (JSAMPLE) (colormap[val ] >> 8); 225 *dest_row++ = (JSAMPLE) (colormap[val + 256] >> 8); 226 *dest_row++ = (JSAMPLE) (colormap[val + 512] >> 8); 250 rle_map *colormap; local [all...] |
H A D | rdbmp.c | 62 JSAMPARRAY colormap; /* BMP colormap (converted to my format) */ member in struct:_bmp_source_struct 87 /* Read the colormap from a BMP file */ 95 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); 96 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); 97 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); 103 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); 104 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); 105 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); 125 /* This version is for reading 8-bit colormap indexe 128 register JSAMPARRAY colormap = source->colormap; local [all...] |
H A D | rdtarga.c | 56 JSAMPARRAY colormap; /* Targa colormap (converted to my format) */ member in struct:_tga_source_struct 104 /* Read the colormap from a Targa file */ 113 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); 114 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); 115 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); 193 /* This version is for reading 8-bit colormap indexes */ 199 register JSAMPARRAY colormap = source->colormap; local 205 *ptr++ = colormap[ [all...] |
H A D | wrbmp.c | 191 /* Write a Windows-style BMP file header, including colormap if needed */ 206 /* Compute colormap size and total file size */ 221 /* Grayscale output. We need to fake a 256-entry colormap. */ 226 headersize = 14 + 40 + cmap_entries * 4; /* Header and colormap */ 267 /* Write an OS2-style BMP file header, including colormap if needed */ 274 /* Compute colormap size and total file size */ 289 /* Grayscale output. We need to fake a 256-entry colormap. */ 294 headersize = 14 + 12 + cmap_entries * 3; /* Header and colormap */ 326 * Write the colormap. 334 JSAMPARRAY colormap local [all...] |
H A D | wrgif.c | 213 /* Emit 3 copies of same byte value --- handy subr for colormap construction */ 222 emit_header (gif_dest_ptr dinfo, int num_colors, JSAMPARRAY colormap) argument 224 /* If colormap==NULL, synthesize a grayscale colormap */ 265 if (colormap != NULL) { 268 putc(GETJSAMPLE(colormap[0][i]) >> cshift, dinfo->pub.output_file); 269 putc(GETJSAMPLE(colormap[1][i]) >> cshift, dinfo->pub.output_file); 270 putc(GETJSAMPLE(colormap[2][i]) >> cshift, dinfo->pub.output_file); 273 put_3bytes(dinfo, GETJSAMPLE(colormap[0][i]) >> cshift); 310 emit_header(dest, cinfo->actual_number_of_colors, cinfo->colormap); [all...] |
H A D | jquant1.c | 30 * In 1-pass quantization the colormap must be chosen in advance of seeing the 36 * Since the colormap is orthogonal, the representative value for each color 38 * then these indexes can be combined into a colormap index by a standard 44 * index of the colormap entry closest to a given pixel value is just 145 /* Initially allocated colormap is saved here */ 151 * premultiplied as described above. Since colormap indexes must fit into 172 * These routines determine the colormap to be used. The rest of the module 173 * only assumes that the colormap is orthogonal. 272 * Create the colormap. 279 JSAMPARRAY colormap; /* Create local [all...] |
H A D | jpeglib.h | 508 int desired_number_of_colors; /* max # colors to use in created colormap */ 511 boolean enable_external_quant;/* enable future use of external colormap */ 524 /* output_components is 1 (a colormap index) when quantizing colors; 533 /* When quantizing colors, the output colormap is described by these fields. 534 * The application can supply a colormap by setting colormap non-NULL before 535 * calling jpeg_start_decompress; otherwise a colormap is created during 540 JSAMPARRAY colormap; /* The color map as a 2-D pixel array */ member in struct:jpeg_decompress_struct
|
/external/libpng/contrib/gregbook/ |
H A D | rpng-x.c | 150 static Colormap colormap; variable 515 colormap = XCreateColormap(display, root, visual, AllocNone); 516 if (!colormap) { 551 attr.colormap = colormap; 567 XSetWindowColormap(display, window, colormap); 890 XFreeColormap(display, colormap);
|
H A D | rpng2-x.c | 298 static Colormap colormap; variable 896 colormap = XCreateColormap(display, root, visual, AllocNone); 897 if (!colormap) { 927 attr.colormap = colormap; 943 XSetWindowColormap(display, window, colormap); 2114 XFreeColormap(display, colormap);
|
/external/ImageMagick/MagickCore/ |
H A D | quantize.c | 96 % number of colors in the output image (currently log2(colormap size)). 182 #include "MagickCore/colormap.h" 510 Allocate image colormap. 620 image->colormap[index].red),q); 622 image->colormap[index].green),q); 624 image->colormap[index].blue),q); 627 image->colormap[index].alpha),q); 663 (GetPixelInfoLuma(image->colormap+0) > 664 GetPixelInfoLuma(image->colormap+1))) 666 image->colormap[ 3308 *colormap; local [all...] |
H A D | image.h | 182 *colormap, member in struct:_Image
|
H A D | xwindow-private.h | 249 colormap; member in struct:_XResourceInfo
|
/external/libpng/ |
H A D | pngwrite.c | 1500 png_const_voidp colormap; member in struct:__anon11547 1774 const void *cmap = display->colormap; 1927 int colormap = (format & PNG_FORMAT_FLAG_COLORMAP); local 1928 int linear = !colormap && (format & PNG_FORMAT_FLAG_LINEAR); /* input */ 1929 int alpha = !colormap && (format & PNG_FORMAT_FLAG_ALPHA); 1930 int write_16bit = linear && !colormap && (display->convert_to_8bit == 0); 1978 if (display->colormap != NULL && image->colormap_entries > 0) 2051 if (colormap == 0 && (format & PNG_FORMAT_FLAG_COLOR) != 0) 2060 if (colormap == 0 && (format & PNG_FORMAT_FLAG_ALPHA) != 0) 2069 if (colormap ! 2200 png_image_write_to_memory(png_imagep image, void *memory, png_alloc_size_t * PNG_RESTRICT memory_bytes, int convert_to_8bit, const void *buffer, png_int_32 row_stride, const void *colormap) argument 2267 png_image_write_to_stdio(png_imagep image, FILE *file, int convert_to_8bit, const void *buffer, png_int_32 row_stride, const void *colormap) argument 2316 png_image_write_to_file(png_imagep image, const char *file_name, int convert_to_8bit, const void *buffer, png_int_32 row_stride, const void *colormap) argument [all...] |
H A D | pngread.c | 1272 png_voidp colormap; member in struct:__anon11545 1872 png_uint_16p entry = png_voidcast(png_uint_16p, display->colormap); 1927 png_bytep entry = png_voidcast(png_bytep, display->colormap); 2364 * colormap containing gray levels (for the opaque grays), a 2565 * the colormap and that completely transparent pixels map to 2715 if (memcmp((png_const_bytep)display->colormap + 2717 (png_const_bytep)display->colormap + 2789 png_const_colorp colormap = png_ptr->palette; local 2821 png_colormap_compose(display, colormap[i].red, 2823 png_colormap_compose(display, colormap[ 4077 png_image_finish_read(png_imagep image, png_const_colorp background, void *buffer, png_int_32 row_stride, void *colormap) argument [all...] |
/external/pdfium/third_party/libpng16/ |
H A D | pngwrite.c | 1500 png_const_voidp colormap; member in struct:__anon16745 1774 const void *cmap = display->colormap; 1927 int colormap = (format & PNG_FORMAT_FLAG_COLORMAP); local 1928 int linear = !colormap && (format & PNG_FORMAT_FLAG_LINEAR); /* input */ 1929 int alpha = !colormap && (format & PNG_FORMAT_FLAG_ALPHA); 1930 int write_16bit = linear && !colormap && (display->convert_to_8bit == 0); 1978 if (display->colormap != NULL && image->colormap_entries > 0) 2051 if (colormap == 0 && (format & PNG_FORMAT_FLAG_COLOR) != 0) 2060 if (colormap == 0 && (format & PNG_FORMAT_FLAG_ALPHA) != 0) 2069 if (colormap ! 2200 png_image_write_to_memory(png_imagep image, void *memory, png_alloc_size_t * PNG_RESTRICT memory_bytes, int convert_to_8bit, const void *buffer, png_int_32 row_stride, const void *colormap) argument 2267 png_image_write_to_stdio(png_imagep image, FILE *file, int convert_to_8bit, const void *buffer, png_int_32 row_stride, const void *colormap) argument 2316 png_image_write_to_file(png_imagep image, const char *file_name, int convert_to_8bit, const void *buffer, png_int_32 row_stride, const void *colormap) argument [all...] |
H A D | pngread.c | 1273 png_voidp colormap; member in struct:__anon16744 1873 png_uint_16p entry = png_voidcast(png_uint_16p, display->colormap); 1928 png_bytep entry = png_voidcast(png_bytep, display->colormap); 2365 * colormap containing gray levels (for the opaque grays), a 2566 * the colormap and that completely transparent pixels map to 2716 if (memcmp((png_const_bytep)display->colormap + 2718 (png_const_bytep)display->colormap + 2790 png_const_colorp colormap = png_ptr->palette; local 2822 png_colormap_compose(display, colormap[i].red, P_FILE, 2824 png_colormap_compose(display, colormap[ 4079 png_image_finish_read(png_imagep image, png_const_colorp background, void *buffer, png_int_32 row_stride, void *colormap) argument [all...] |
/external/skia/third_party/libpng/ |
H A D | pngwrite.c | 1500 png_const_voidp colormap; member in struct:__anon18545 1774 const void *cmap = display->colormap; 1927 int colormap = (format & PNG_FORMAT_FLAG_COLORMAP); local 1928 int linear = !colormap && (format & PNG_FORMAT_FLAG_LINEAR); /* input */ 1929 int alpha = !colormap && (format & PNG_FORMAT_FLAG_ALPHA); 1930 int write_16bit = linear && !colormap && (display->convert_to_8bit == 0); 1978 if (display->colormap != NULL && image->colormap_entries > 0) 2051 if (colormap == 0 && (format & PNG_FORMAT_FLAG_COLOR) != 0) 2060 if (colormap == 0 && (format & PNG_FORMAT_FLAG_ALPHA) != 0) 2069 if (colormap ! 2200 png_image_write_to_memory(png_imagep image, void *memory, png_alloc_size_t * PNG_RESTRICT memory_bytes, int convert_to_8bit, const void *buffer, png_int_32 row_stride, const void *colormap) argument 2267 png_image_write_to_stdio(png_imagep image, FILE *file, int convert_to_8bit, const void *buffer, png_int_32 row_stride, const void *colormap) argument 2316 png_image_write_to_file(png_imagep image, const char *file_name, int convert_to_8bit, const void *buffer, png_int_32 row_stride, const void *colormap) argument [all...] |
H A D | pngread.c | 1263 png_voidp colormap; member in struct:__anon18543 1863 png_uint_16p entry = png_voidcast(png_uint_16p, display->colormap); 1918 png_bytep entry = png_voidcast(png_bytep, display->colormap); 2355 * colormap containing gray levels (for the opaque grays), a 2556 * the colormap and that completely transparent pixels map to 2706 if (memcmp((png_const_bytep)display->colormap + 2708 (png_const_bytep)display->colormap + 2780 png_const_colorp colormap = png_ptr->palette; local 2812 png_colormap_compose(display, colormap[i].red, P_FILE, 2814 png_colormap_compose(display, colormap[ 4069 png_image_finish_read(png_imagep image, png_const_colorp background, void *buffer, png_int_32 row_stride, void *colormap) argument [all...] |
/external/libpng/contrib/libtests/ |
H A D | pngstest.c | 588 png_uint_16 colormap[256*4]; member in struct:__anon11525 1991 * the different algorithms used in libpng for colormap and direct conversions 2014 * Mapping to a colormap smashes the colors, it is necessary to have separate 2127 /* The caller handles the colormap->pixel value conversion, so the 2129 * currently contains a different implementation for mapping a colormap if 2155 * that for the colormap (i.e. linear colormapped output) black is used. 2638 /* First shortcut the two colormap case by comparing the image data; if it 2645 /* Only check colormap entries that actually exist; */ 2686 png_const_bytep a_cmap = (png_const_bytep)a->colormap; 2687 png_const_bytep b_cmap = (png_const_bytep)b->colormap; [all...] |