Searched refs:num_colors (Results 1 – 8 of 8) sorted by relevance
/external/libjpeg-turbo/ |
D | wrtarga.c | 48 write_header (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo, int num_colors) in write_header() argument 56 if (num_colors > 0) { in write_header() 58 targaheader[5] = (char) (num_colors & 0xFF); in write_header() 59 targaheader[6] = (char) (num_colors >> 8); in write_header() 73 if (num_colors > 0) { in write_header() 164 int num_colors, i; in start_output_tga() local 178 num_colors = cinfo->actual_number_of_colors; in start_output_tga() 179 if (num_colors > 256) in start_output_tga() 180 ERREXIT1(cinfo, JERR_TOO_MANY_COLORS, num_colors); in start_output_tga() 181 write_header(cinfo, dinfo, num_colors); in start_output_tga() [all …]
|
D | wrgif.c | 222 emit_header (gif_dest_ptr dinfo, int num_colors, JSAMPARRAY colormap) in emit_header() argument 230 if (num_colors > 256) in emit_header() 231 ERREXIT1(dinfo->cinfo, JERR_TOO_MANY_COLORS, num_colors); in emit_header() 234 while (num_colors > (1 << BitsPerPixel)) in emit_header() 264 if (i < num_colors) { in emit_header() 277 put_3bytes(dinfo, (i * 255 + (num_colors-1)/2) / (num_colors-1)); in emit_header()
|
D | wrbmp.c | 335 int num_colors = cinfo->actual_number_of_colors; in write_colormap() local 342 for (i = 0; i < num_colors; i++) { in write_colormap() 351 for (i = 0; i < num_colors; i++) { in write_colormap()
|
/external/webp/src/utils/ |
D | utils.c | 252 int num_colors = 0; in WebPGetColorPalette() local 275 ++num_colors; in WebPGetColorPalette() 276 if (num_colors > MAX_PALETTE_SIZE) { in WebPGetColorPalette() 293 num_colors = 0; in WebPGetColorPalette() 296 palette[num_colors] = colors[i]; in WebPGetColorPalette() 297 ++num_colors; in WebPGetColorPalette() 301 return num_colors; in WebPGetColorPalette()
|
/external/webp/src/enc/ |
D | vp8l_enc.c | 71 static void GreedyMinimizeDeltas(uint32_t palette[], int num_colors) { in GreedyMinimizeDeltas() argument 77 for (i = 0; i < num_colors; ++i) { in GreedyMinimizeDeltas() 80 for (k = i; k < num_colors; ++k) { in GreedyMinimizeDeltas() 98 static int PaletteHasNonMonotonousDeltas(uint32_t palette[], int num_colors) { in PaletteHasNonMonotonousDeltas() argument 102 for (i = 0; i < num_colors; ++i) { in PaletteHasNonMonotonousDeltas() 130 const int num_colors = WebPGetColorPalette(pic, palette); in AnalyzeAndCreatePalette() local 131 if (num_colors > MAX_PALETTE_SIZE) return 0; in AnalyzeAndCreatePalette() 132 *palette_size = num_colors; in AnalyzeAndCreatePalette() 133 qsort(palette, num_colors, sizeof(*palette), PaletteCompareColorsForQsort); in AnalyzeAndCreatePalette() 134 if (!low_effort && PaletteHasNonMonotonousDeltas(palette, num_colors)) { in AnalyzeAndCreatePalette() [all …]
|
D | alpha_enc.c | 207 const int num_colors = GetNumColors(alpha, width, height, width); in GetFilterMap() local 209 filter = (num_colors <= kMinColorsForFilterNone) in GetFilterMap() 215 if (try_filter_none || num_colors > kMaxColorsForFilterNone) { in GetFilterMap()
|
/external/webp/src/dec/ |
D | vp8l_dec.c | 1206 static int ExpandColorMap(int num_colors, VP8LTransform* const transform) { in ExpandColorMap() argument 1218 for (i = 4; i < 4 * num_colors; ++i) { in ExpandColorMap() 1263 const int num_colors = VP8LReadBits(br, 8) + 1; in ReadTransform() local 1264 const int bits = (num_colors > 16) ? 0 in ReadTransform() 1265 : (num_colors > 4) ? 1 in ReadTransform() 1266 : (num_colors > 2) ? 2 in ReadTransform() 1270 ok = DecodeImageStream(num_colors, 1, 0, dec, &transform->data_); in ReadTransform() 1271 ok = ok && ExpandColorMap(num_colors, transform); in ReadTransform()
|
/external/webp/src/mux/ |
D | anim_encode.c | 885 const int num_colors = WebPGetColorPalette(¶ms->sub_frame_ll_, NULL); in GenerateCandidates() local 886 evaluate_ll = (num_colors < MAX_COLORS_LOSSLESS); in GenerateCandidates() 887 evaluate_lossy = (num_colors >= MIN_COLORS_LOSSY); in GenerateCandidates()
|