Searched refs:ncolors (Results 1 – 11 of 11) sorted by relevance
/external/libjpeg-turbo/ |
D | rdcolmap.c | 52 int ncolors = cinfo->actual_number_of_colors; in add_map_entry() local 56 for (index = 0; index < ncolors; index++) { in add_map_entry() 64 if (ncolors >= (MAXJSAMPLE+1)) in add_map_entry() 68 colormap0[ncolors] = (JSAMPLE) R; in add_map_entry() 69 colormap1[ncolors] = (JSAMPLE) G; in add_map_entry() 70 colormap2[ncolors] = (JSAMPLE) B; in add_map_entry()
|
D | rdrle.c | 127 if (source->header.ncolors == 1 && source->header.ncmap == 0) { in start_input_rle() 130 } else if (source->header.ncolors == 1 && source->header.ncmap == 1) { in start_input_rle() 134 } else if (source->header.ncolors == 1 && source->header.ncmap == 3) { in start_input_rle() 138 } else if (source->header.ncolors == 3 && source->header.ncmap == 3) { in start_input_rle() 142 } else if (source->header.ncolors == 3 && source->header.ncmap == 0) { in start_input_rle() 169 (JDIMENSION) (width * source->header.ncolors), in start_input_rle() 298 for (channel = 0; channel < source->header.ncolors; channel++) { in load_image()
|
D | jquant2.c | 640 int i, x, ncolors; in find_nearby_colors() local 745 ncolors = 0; in find_nearby_colors() 748 colorlist[ncolors++] = (JSAMPLE) i; in find_nearby_colors() 750 return ncolors; in find_nearby_colors()
|
D | jquant1.c | 399 make_odither_array (j_decompress_ptr cinfo, int ncolors) in make_odither_array() argument 413 den = 2 * ODITHER_CELLS * ((JLONG) (ncolors - 1)); in make_odither_array()
|
D | wrrle.c | 196 header.ncolors = cinfo->output_components; in finish_output_rle()
|
/external/ImageMagick/coders/ |
D | sixel.c | 234 … size_t /* out */ *ncolors /* palette size (<= 256) */) in sixel_decode() 534 *ncolors = max_color_index + 1; in sixel_decode() 535 *palette = (unsigned char *) AcquireQuantumMemory(*ncolors,4); in sixel_decode() 536 for (n = 0; n < (ssize_t) *ncolors; ++n) { in sixel_decode() 648 sixel_node_t *np, int ncolors, int keycolor) in sixel_put_node() argument 652 if (ncolors != 2 || keycolor == -1) { in sixel_put_node() 676 unsigned char *palette, size_t ncolors, int keycolor, in sixel_encode_impl() argument 696 if (ncolors < 1) { in sixel_encode_impl() 699 len = ncolors * width; in sixel_encode_impl() 723 if (ncolors != 2 || keycolor == -1) { in sixel_encode_impl() [all …]
|
D | xwd.c | 319 if (header.ncolors != 0) in ReadXWDImage() 324 length=(size_t) header.ncolors; in ReadXWDImage() 331 for (i=0; i < (ssize_t) header.ncolors; i++) in ReadXWDImage() 352 for (i=0; i < (ssize_t) header.ncolors; i++) in ReadXWDImage() 404 if ((header.ncolors == 0U) || (ximage->red_mask != 0) || in ReadXWDImage() 409 image->colors=header.ncolors; in ReadXWDImage() 464 if (index < header.ncolors) in ReadXWDImage() 468 if (index < header.ncolors) in ReadXWDImage() 472 if (index < header.ncolors) in ReadXWDImage() 563 if (header.ncolors != 0) in ReadXWDImage() [all …]
|
/external/glide/third_party/gif_decoder/src/main/java/com/bumptech/glide/gifdecoder/ |
D | GifHeaderParser.java | 273 private int[] readColorTable(int ncolors) { in readColorTable() argument 274 int nbytes = 3 * ncolors; in readColorTable() 286 while (i < ncolors) { in readColorTable()
|
/external/ImageMagick/MagickCore/ |
D | xwdfile.h_vms | 85 CARD32 ncolors B32; /* Number of XWDColor structures */ 96 * the file. XWDFileHeader.ncolors tells how many XWDColor structures
|
/external/libpng/contrib/libtests/ |
D | makepng.c | 1642 unsigned int ncolors = 0; in parse_color() local 1644 while (*arg && ncolors < 4) in parse_color() 1665 colors[++ncolors] = (unsigned int)ul; /* checked above */ in parse_color() 1674 *colors = ncolors; in parse_color()
|
/external/libcups/filter/ |
D | raster.c | 296 int ncolors, bits; /* Number of colors and bits */ in cupsRasterInitPWGHeader() local 299 …if (sscanf(type, "device%d_%d", &ncolors, &bits) != 2 || ncolors > 15 || (bits != 8 && bits != 16)) in cupsRasterInitPWGHeader() 306 h->cupsBitsPerPixel = (unsigned)(ncolors * bits); in cupsRasterInitPWGHeader() 307 h->cupsColorSpace = (cups_cspace_t)(CUPS_CSPACE_DEVICE1 + ncolors - 1); in cupsRasterInitPWGHeader()
|