/external/libjpeg-turbo/ |
D | wrtarga.c | 47 write_header (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo, int num_colors) in write_header() argument 55 if (num_colors > 0) { in write_header() 57 targaheader[5] = (char) (num_colors & 0xFF); in write_header() 58 targaheader[6] = (char) (num_colors >> 8); in write_header() 72 if (num_colors > 0) { in write_header() 163 int num_colors, i; in start_output_tga() local 177 num_colors = cinfo->actual_number_of_colors; in start_output_tga() 178 if (num_colors > 256) in start_output_tga() 179 ERREXIT1(cinfo, JERR_TOO_MANY_COLORS, num_colors); in start_output_tga() 180 write_header(cinfo, dinfo, num_colors); in start_output_tga() [all …]
|
D | wrgif.c | 221 emit_header (gif_dest_ptr dinfo, int num_colors, JSAMPARRAY colormap) in emit_header() argument 229 if (num_colors > 256) in emit_header() 230 ERREXIT1(dinfo->cinfo, JERR_TOO_MANY_COLORS, num_colors); in emit_header() 233 while (num_colors > (1 << BitsPerPixel)) in emit_header() 263 if (i < num_colors) { in emit_header() 276 put_3bytes(dinfo, (i * 255 + (num_colors-1)/2) / (num_colors-1)); in emit_header()
|
D | wrbmp.c | 334 int num_colors = cinfo->actual_number_of_colors; in write_colormap() local 341 for (i = 0; i < num_colors; i++) { in write_colormap() 350 for (i = 0; i < num_colors; i++) { in write_colormap()
|
/external/chromium-trace/catapult/third_party/graphy/graphy/ |
D | pie_chart.py | 108 num_colors = len(colors or []) 117 if i < num_colors: 126 num_colors = len(colors or []) 131 if i < num_colors:
|
/external/webp/src/enc/ |
D | vp8l.c | 70 static void GreedyMinimizeDeltas(uint32_t palette[], int num_colors) { in GreedyMinimizeDeltas() argument 76 for (i = 0; i < num_colors; ++i) { in GreedyMinimizeDeltas() 79 for (k = i; k < num_colors; ++k) { in GreedyMinimizeDeltas() 97 static int PaletteHasNonMonotonousDeltas(uint32_t palette[], int num_colors) { in PaletteHasNonMonotonousDeltas() argument 101 for (i = 0; i < num_colors; ++i) { in PaletteHasNonMonotonousDeltas() 130 int num_colors = 0; in AnalyzeAndCreatePalette() local 150 ++num_colors; in AnalyzeAndCreatePalette() 151 if (num_colors > MAX_PALETTE_SIZE) { in AnalyzeAndCreatePalette() 170 num_colors = 0; in AnalyzeAndCreatePalette() 173 palette[num_colors] = colors[i]; in AnalyzeAndCreatePalette() [all …]
|
D | alpha.c | 204 const int num_colors = GetNumColors(alpha, width, height, width); in GetFilterMap() local 206 filter = (num_colors <= kMinColorsForFilterNone) in GetFilterMap() 212 if (try_filter_none || num_colors > kMaxColorsForFilterNone) { in GetFilterMap()
|
/external/opencv3/3rdparty/libwebp/enc/ |
D | vp8l.c | 52 int num_colors = 0; in AnalyzeAndCreatePalette() local 72 ++num_colors; in AnalyzeAndCreatePalette() 73 if (num_colors > MAX_PALETTE_SIZE) { in AnalyzeAndCreatePalette() 92 num_colors = 0; in AnalyzeAndCreatePalette() 95 palette[num_colors] = colors[i]; in AnalyzeAndCreatePalette() 96 ++num_colors; in AnalyzeAndCreatePalette() 100 qsort(palette, num_colors, sizeof(*palette), CompareColors); in AnalyzeAndCreatePalette() 101 *palette_size = num_colors; in AnalyzeAndCreatePalette()
|
D | alpha.c | 236 const int num_colors = GetNumColors(quant_alpha, width, height, width); in EncodeAlpha() local 238 filter = (num_colors <= kMinColorsForFilterNone) ? WEBP_FILTER_NONE : in EncodeAlpha() 242 if (num_colors > kMaxColorsForFilterNone) { in EncodeAlpha()
|
/external/opencv3/3rdparty/libwebp/dec/ |
D | vp8l.c | 825 static int ExpandColorMap(int num_colors, VP8LTransform* const transform) { in ExpandColorMap() argument 837 for (i = 4; i < 4 * num_colors; ++i) { in ExpandColorMap() 881 const int num_colors = VP8LReadBits(br, 8) + 1; in ReadTransform() local 882 const int bits = (num_colors > 16) ? 0 in ReadTransform() 883 : (num_colors > 4) ? 1 in ReadTransform() 884 : (num_colors > 2) ? 2 in ReadTransform() 888 ok = DecodeImageStream(num_colors, 1, 0, dec, &transform->data_); in ReadTransform() 889 ok = ok && ExpandColorMap(num_colors, transform); in ReadTransform()
|
/external/webp/src/dec/ |
D | vp8l.c | 1169 static int ExpandColorMap(int num_colors, VP8LTransform* const transform) { in ExpandColorMap() argument 1181 for (i = 4; i < 4 * num_colors; ++i) { in ExpandColorMap() 1225 const int num_colors = VP8LReadBits(br, 8) + 1; in ReadTransform() local 1226 const int bits = (num_colors > 16) ? 0 in ReadTransform() 1227 : (num_colors > 4) ? 1 in ReadTransform() 1228 : (num_colors > 2) ? 2 in ReadTransform() 1232 ok = DecodeImageStream(num_colors, 1, 0, dec, &transform->data_); in ReadTransform() 1233 ok = ok && ExpandColorMap(num_colors, transform); in ReadTransform()
|