Home
last modified time | relevance | path

Searched refs:ncolors (Results 1 – 16 of 16) 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()
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()
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()
/external/swiftshader/tests/
Dpresubmit.sh12 ncolors=$(tput colors)
13 if test -n "$ncolors" && test $ncolors -ge 8; then
/external/ImageMagick/coders/
Dxwd.c386 if (header.ncolors != 0) in ReadXWDImage()
391 length=(size_t) header.ncolors; in ReadXWDImage()
400 for (i=0; i < (ssize_t) header.ncolors; i++) in ReadXWDImage()
422 for (i=0; i < (ssize_t) header.ncolors; i++) in ReadXWDImage()
436 if (header.ncolors != 0) in ReadXWDImage()
450 if (header.ncolors != 0) in ReadXWDImage()
459 if (header.ncolors != 0) in ReadXWDImage()
467 if (header.ncolors != 0) in ReadXWDImage()
482 if (header.ncolors != 0) in ReadXWDImage()
488 if ((header.ncolors == 0U) || (ximage->red_mask != 0) || in ReadXWDImage()
[all …]
Dsixel.c238 … size_t /* out */ *ncolors, /* palette size (<= SIXEL_PALETTE_MAX) */ in sixel_decode()
570 *ncolors = max_color_index + 1; in sixel_decode()
571 *palette = (unsigned char *) AcquireQuantumMemory(*ncolors,4); in sixel_decode()
574 for (n = 0; n < (ssize_t) *ncolors; ++n) { in sixel_decode()
688 sixel_node_t *np, int ncolors, int keycolor) in sixel_put_node() argument
692 if (ncolors != 2 || keycolor == -1) { in sixel_put_node()
716 unsigned char *palette, size_t ncolors, int keycolor, in sixel_encode_impl() argument
736 if (ncolors < 1) { in sixel_encode_impl()
739 len = ncolors * width; in sixel_encode_impl()
763 if (ncolors != 2 || keycolor == -1) { in sixel_encode_impl()
[all …]
/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/linux-kselftest/tools/testing/selftests/ftrace/
Dftracetest183 ncolors=`tput colors 2>/dev/null || echo 0`
189 if [ -t 1 -a "$ncolors" -ge 8 ]; then
/external/ImageMagick/MagickCore/
Dxwdfile.h_vms85 CARD32 ncolors B32; /* Number of XWDColor structures */
96 * the file. XWDFileHeader.ncolors tells how many XWDColor structures
/external/libcups/cups/
Draster-stream.c297 int ncolors, bits; /* Number of colors and bits */ in _cupsRasterInitPWGHeader() local
300 …if (sscanf(type, "device%d_%d", &ncolors, &bits) != 2 || ncolors > 15 || (bits != 8 && bits != 16)) in _cupsRasterInitPWGHeader()
307 h->cupsBitsPerPixel = (unsigned)(ncolors * bits); in _cupsRasterInitPWGHeader()
308 h->cupsColorSpace = (cups_cspace_t)(CUPS_CSPACE_DEVICE1 + ncolors - 1); in _cupsRasterInitPWGHeader()
/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/tensorflow/tensorflow/stream_executor/cuda/
Dcusparse_11_0.inc4041 const int *csrSortedColIndA, const float *fractionToColor, int *ncolors,
4050 csrSortedColIndA, fractionToColor, ncolors, coloring,
4057 const int *csrSortedColIndA, const double *fractionToColor, int *ncolors,
4066 csrSortedColIndA, fractionToColor, ncolors, coloring,
4073 const int *csrSortedColIndA, const float *fractionToColor, int *ncolors,
4082 csrSortedColIndA, fractionToColor, ncolors, coloring,
4089 const int *csrSortedColIndA, const double *fractionToColor, int *ncolors,
4098 csrSortedColIndA, fractionToColor, ncolors, coloring,
Dcusparse_10_0.inc5378 const int *csrSortedColIndA, const float *fractionToColor, int *ncolors,
5387 csrSortedColIndA, fractionToColor, ncolors, coloring,
5394 const int *csrSortedColIndA, const double *fractionToColor, int *ncolors,
5403 csrSortedColIndA, fractionToColor, ncolors, coloring,
5410 const int *csrSortedColIndA, const float *fractionToColor, int *ncolors,
5419 csrSortedColIndA, fractionToColor, ncolors, coloring,
5426 const int *csrSortedColIndA, const double *fractionToColor, int *ncolors,
5435 csrSortedColIndA, fractionToColor, ncolors, coloring,
Dcusparse_9_0.inc4710 const int *csrSortedColIndA, const float *fractionToColor, int *ncolors,
4719 csrSortedColIndA, fractionToColor, ncolors, coloring,
4726 const int *csrSortedColIndA, const double *fractionToColor, int *ncolors,
4735 csrSortedColIndA, fractionToColor, ncolors, coloring,
4742 const int *csrSortedColIndA, const float *fractionToColor, int *ncolors,
4751 csrSortedColIndA, fractionToColor, ncolors, coloring,
4758 const int *csrSortedColIndA, const double *fractionToColor, int *ncolors,
4767 csrSortedColIndA, fractionToColor, ncolors, coloring,
Dcusparse_10_2.inc5349 const int *csrSortedColIndA, const float *fractionToColor, int *ncolors,
5358 csrSortedColIndA, fractionToColor, ncolors, coloring,
5365 const int *csrSortedColIndA, const double *fractionToColor, int *ncolors,
5374 csrSortedColIndA, fractionToColor, ncolors, coloring,
5381 const int *csrSortedColIndA, const float *fractionToColor, int *ncolors,
5390 csrSortedColIndA, fractionToColor, ncolors, coloring,
5397 const int *csrSortedColIndA, const double *fractionToColor, int *ncolors,
5406 csrSortedColIndA, fractionToColor, ncolors, coloring,
Dcusparse_10_1.inc5349 const int *csrSortedColIndA, const float *fractionToColor, int *ncolors,
5358 csrSortedColIndA, fractionToColor, ncolors, coloring,
5365 const int *csrSortedColIndA, const double *fractionToColor, int *ncolors,
5374 csrSortedColIndA, fractionToColor, ncolors, coloring,
5381 const int *csrSortedColIndA, const float *fractionToColor, int *ncolors,
5390 csrSortedColIndA, fractionToColor, ncolors, coloring,
5397 const int *csrSortedColIndA, const double *fractionToColor, int *ncolors,
5406 csrSortedColIndA, fractionToColor, ncolors, coloring,