Home
last modified time | relevance | path

Searched refs:ncolors (Results 1 - 9 of 9) sorted by relevance

/third_party/cups-filters/cupsfilters/
H A Dimage-gif.c54 static int gif_read_cmap(FILE *fp, int ncolors, gif_cmap_t cmap,
80 ncolors, /* Bits per pixel */ in _cupsImageReadGIF() local
100 ncolors = 2 << (buf[10] & 0x07); in _cupsImageReadGIF()
104 if (gif_read_cmap(fp, ncolors, cmap, &gray)) in _cupsImageReadGIF()
144 ncolors = 2 << (buf[8] & 0x07); in _cupsImageReadGIF()
147 if (gif_read_cmap(fp, ncolors, cmap, &gray)) in _cupsImageReadGIF()
170 for (i = ncolors - 1; i >= 0; i --) in _cupsImageReadGIF()
174 for (i = ncolors - 1; i >= 0; i --) in _cupsImageReadGIF()
178 for (i = ncolors - 1; i >= 0; i --) in _cupsImageReadGIF()
185 for (i = ncolors in _cupsImageReadGIF()
394 gif_read_cmap(FILE *fp, int ncolors, gif_cmap_t cmap, int *gray) gif_read_cmap() argument
[all...]
/third_party/skia/third_party/externals/libjpeg-turbo/
H A 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()
63 if (ncolors >= (MAXJSAMPLE + 1)) in add_map_entry()
67 colormap0[ncolors] = (JSAMPLE)R; in add_map_entry()
68 colormap1[ncolors] = (JSAMPLE)G; in add_map_entry()
69 colormap2[ncolors] = (JSAMPLE)B; in add_map_entry()
H A 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()
H A Djquant1.c395 * Create an ordered-dither array for a component having ncolors
400 make_odither_array(j_decompress_ptr cinfo, int ncolors) in LOCAL()
409 /* The inter-value distance for this color is MAXJSAMPLE/(ncolors-1). in LOCAL()
411 * (f=0..N-1) should be (N-1-2*f)/(2*N) * MAXJSAMPLE/(ncolors-1). in LOCAL()
414 den = 2 * ODITHER_CELLS * ((JLONG)(ncolors - 1)); in LOCAL()
/third_party/ffmpeg/libavcodec/
H A Dxwdenc.c38 uint32_t pixdepth, bpp, bpad, ncolors = 0, lsize, vclass, be = 0; in xwd_encode_frame() local
127 ncolors = 256; in xwd_encode_frame()
148 out_size = header_size + ncolors * XWD_CMAP_SIZE + avctx->height * lsize; in xwd_encode_frame()
175 bytestream_put_be32(&buf, ncolors); // number of colors in xwd_encode_frame()
176 bytestream_put_be32(&buf, ncolors); // number of entries in color map in xwd_encode_frame()
190 for (i = 0; i < ncolors; i++) { in xwd_encode_frame()
H A Dxwddec.c37 uint32_t version, header_size, vclass, ncolors; in xwd_decode_frame() local
78 ncolors = bytestream2_get_be32u(&gb); in xwd_decode_frame()
88 "vclass %"PRIu32", ncolors %"PRIu32", bpp %"PRIu32", be %"PRIu32", lsize %"PRIu32", xoffset %"PRIu32"\n", in xwd_decode_frame()
89 vclass, ncolors, bpp, be, lsize, xoffset); in xwd_decode_frame()
134 if (ncolors > 256) { in xwd_decode_frame()
148 if (bytestream2_get_bytes_left(&gb) < ncolors * XWD_CMAP_SIZE + (uint64_t)avctx->height * lsize) { in xwd_decode_frame()
200 bytestream2_skipu(&gb, ncolors * XWD_CMAP_SIZE); in xwd_decode_frame()
224 for (i = 0; i < ncolors; i++) { in xwd_decode_frame()
H A Dxpmdec.c311 int ncolors, cpp, ret, i, j; in xpm_decode_frame() local
336 &width, &height, &ncolors, &cpp) != 4) { in xpm_decode_frame()
353 if (ncolors <= 0 || ncolors > size) { in xpm_decode_frame()
354 av_log(avctx, AV_LOG_ERROR, "invalid number of colors: %d\n", ncolors); in xpm_decode_frame()
374 for (i = 0; i < ncolors; i++) { in xpm_decode_frame()
/third_party/skia/third_party/externals/swiftshader/tests/
H A Dpresubmit.sh12 ncolors=$(tput colors)
13 if test -n "$ncolors" && test $ncolors -ge 8; then
/third_party/skia/third_party/externals/libpng/contrib/libtests/
H A 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()

Completed in 11 milliseconds