Home
last modified time | relevance | path

Searched refs:ncolors (Results 1 – 14 of 14) sorted by relevance

/external/libjpeg-turbo/
Drdcolmap.c52 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()
Drdrle.c127 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()
Djquant2.c639 int i, x, ncolors; in find_nearby_colors() local
744 ncolors = 0; in find_nearby_colors()
747 colorlist[ncolors++] = (JSAMPLE)i; in find_nearby_colors()
749 return ncolors; in find_nearby_colors()
Djquant1.c400 make_odither_array(j_decompress_ptr cinfo, int ncolors) in make_odither_array() argument
414 den = 2 * ODITHER_CELLS * ((JLONG)(ncolors - 1)); in make_odither_array()
Dwrrle.c196 header.ncolors = cinfo->output_components; in finish_output_rle()
/external/ImageMagick/coders/
Dxwd.c319 if (header.ncolors != 0) in ReadXWDImage()
324 length=(size_t) header.ncolors; in ReadXWDImage()
333 for (i=0; i < (ssize_t) header.ncolors; i++) in ReadXWDImage()
355 for (i=0; i < (ssize_t) header.ncolors; i++) in ReadXWDImage()
369 if (header.ncolors != 0) in ReadXWDImage()
383 if (header.ncolors != 0) in ReadXWDImage()
392 if (header.ncolors != 0) in ReadXWDImage()
400 if (header.ncolors != 0) in ReadXWDImage()
415 if (header.ncolors != 0) in ReadXWDImage()
421 if ((header.ncolors == 0U) || (ximage->red_mask != 0) || in ReadXWDImage()
[all …]
Dsixel.c235 … size_t /* out */ *ncolors, /* palette size (<= 256) */ in sixel_decode()
563 *ncolors = max_color_index + 1; in sixel_decode()
564 *palette = (unsigned char *) AcquireQuantumMemory(*ncolors,4); in sixel_decode()
567 for (n = 0; n < (ssize_t) *ncolors; ++n) { in sixel_decode()
681 sixel_node_t *np, int ncolors, int keycolor) in sixel_put_node() argument
685 if (ncolors != 2 || keycolor == -1) { in sixel_put_node()
709 unsigned char *palette, size_t ncolors, int keycolor, in sixel_encode_impl() argument
729 if (ncolors < 1) { in sixel_encode_impl()
732 len = ncolors * width; in sixel_encode_impl()
756 if (ncolors != 2 || keycolor == -1) { in sixel_encode_impl()
[all …]
/external/adeb/utils/
Dsupport155 ncolors=$(my_tput colors)
156 if [ -n "${ncolors}" ] && [ ${ncolors} -ge 8 ]; then
/external/linux-kselftest/tools/testing/selftests/ftrace/
Dftracetest157 ncolors=`tput colors 2>/dev/null`
163 if [ -t 1 -a "$ncolors" -a "$ncolors" -ge 8 ]; then
/external/glide/third_party/gif_decoder/src/main/java/com/bumptech/glide/gifdecoder/
DGifHeaderParser.java273 private int[] readColorTable(int ncolors) { in readColorTable() argument
274 int nbytes = 3 * ncolors; in readColorTable()
286 while (i < ncolors) { in readColorTable()
/external/ImageMagick/MagickCore/
Dxwdfile.h_vms85 CARD32 ncolors B32; /* Number of XWDColor structures */
96 * the file. XWDFileHeader.ncolors tells how many XWDColor structures
/external/u-boot/drivers/video/
Dcfb_console.c1168 int x, y, bpp, i, ncolors; in display_rle8_bitmap() local
1177 ncolors = __le32_to_cpu(img->header.colors_used); in display_rle8_bitmap()
1188 for (i = 0; i < ncolors; i++) { in display_rle8_bitmap()
1202 for (i = 0; i < ncolors; i++) { in display_rle8_bitmap()
1211 for (i = 0; i < ncolors; i++) { in display_rle8_bitmap()
/external/libpng/contrib/libtests/
Dmakepng.c1642 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/
Draster.c212 int ncolors, bits; /* Number of colors and bits */ in cupsRasterInitPWGHeader() local
215 …if (sscanf(type, "device%d_%d", &ncolors, &bits) != 2 || ncolors > 15 || (bits != 8 && bits != 16)) in cupsRasterInitPWGHeader()
222 h->cupsBitsPerPixel = (unsigned)(ncolors * bits); in cupsRasterInitPWGHeader()
223 h->cupsColorSpace = (cups_cspace_t)(CUPS_CSPACE_DEVICE1 + ncolors - 1); in cupsRasterInitPWGHeader()