/external/harfbuzz_ng/test/api/ |
D | test-ot-color.c | 212 unsigned int num_colors = hb_ot_color_palette_get_colors (cpal_v0, 0, 0, NULL, NULL); in test_hb_ot_color_palette_get_colors_v0() local 213 hb_color_t *colors = (hb_color_t*) alloca (num_colors * sizeof (hb_color_t)); in test_hb_ot_color_palette_get_colors_v0() 214 size_t colors_size = num_colors * sizeof(*colors); in test_hb_ot_color_palette_get_colors_v0() 215 g_assert_cmpint (num_colors, ==, 2); in test_hb_ot_color_palette_get_colors_v0() 218 g_assert_cmpint (hb_ot_color_palette_get_colors (cpal_v0, 0, 0, &num_colors, colors), ==, 2); in test_hb_ot_color_palette_get_colors_v0() 219 g_assert_cmpint (num_colors, ==, 2); in test_hb_ot_color_palette_get_colors_v0() 224 g_assert_cmpint (hb_ot_color_palette_get_colors (cpal_v0, 1, 0, &num_colors, colors), ==, 2); in test_hb_ot_color_palette_get_colors_v0() 225 g_assert_cmpint (num_colors, ==, 2); in test_hb_ot_color_palette_get_colors_v0() 230 g_assert_cmpint (hb_ot_color_palette_get_colors (cpal_v0, 2, 0, &num_colors, colors), ==, 0); in test_hb_ot_color_palette_get_colors_v0() 234 num_colors = 2; in test_hb_ot_color_palette_get_colors_v0() [all …]
|
/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 | 367 int num_colors = cinfo->actual_number_of_colors; in write_colormap() local 374 for (i = 0; i < num_colors; i++) { in write_colormap() 383 for (i = 0; i < num_colors; i++) { in write_colormap()
|
/external/webp/src/utils/ |
D | utils.c | 253 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/tensorflow/tensorflow/python/kernel_tests/ |
D | draw_bounding_box_op_test.py | 75 num_colors = color_table.shape[0] 76 for num_boxes in range(1, num_colors + 2): 79 color = color_table[(num_boxes - 1) % num_colors, 0:depth]
|
/external/harfbuzz_ng/src/ |
D | test-ot-color.cc | 172 unsigned int num_colors = hb_ot_color_palette_get_colors (face, palette, 0, NULL, NULL); in layered_glyph_dump() local 173 if (!num_colors) in layered_glyph_dump() 176 hb_color_t *colors = (hb_color_t*) calloc (num_colors, sizeof (hb_color_t)); in layered_glyph_dump() 177 hb_ot_color_palette_get_colors (face, palette, 0, &num_colors, colors); in layered_glyph_dump() 178 if (num_colors) in layered_glyph_dump()
|
/external/mesa3d/src/gallium/auxiliary/tgsi/ |
D | tgsi_two_side.c | 102 uint num_colors = 0; in emit_prolog() local 118 num_colors++; in emit_prolog() 122 if (num_colors > 0) { in emit_prolog() 127 decl.Range.Last = ts->num_temps + num_colors - 1; in emit_prolog()
|
/external/freetype/src/sfnt/ |
D | ttcpal.c | 51 FT_UShort num_colors; /* Total number of color records, */ member 112 cpal->num_colors = FT_NEXT_USHORT( p ); in tt_face_load_cpal() 121 if ( cpal->num_colors * COLOR_SIZE > table_size - colors_offset ) in tt_face_load_cpal()
|
/external/webp/src/enc/ |
D | vp8l_enc.c | 68 static void GreedyMinimizeDeltas(uint32_t palette[], int num_colors) { in GreedyMinimizeDeltas() argument 74 for (i = 0; i < num_colors; ++i) { in GreedyMinimizeDeltas() 77 for (k = i; k < num_colors; ++k) { in GreedyMinimizeDeltas() 95 static int PaletteHasNonMonotonousDeltas(uint32_t palette[], int num_colors) { in PaletteHasNonMonotonousDeltas() argument 99 for (i = 0; i < num_colors; ++i) { in PaletteHasNonMonotonousDeltas() 127 const int num_colors = WebPGetColorPalette(pic, palette); in AnalyzeAndCreatePalette() local 128 if (num_colors > MAX_PALETTE_SIZE) { 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 | 210 const int num_colors = GetNumColors(alpha, width, height, width); in GetFilterMap() local 212 filter = (num_colors <= kMinColorsForFilterNone) in GetFilterMap() 218 if (try_filter_none || num_colors > kMaxColorsForFilterNone) { in GetFilterMap()
|
/external/webp/src/dec/ |
D | vp8l_dec.c | 1270 static int ExpandColorMap(int num_colors, VP8LTransform* const transform) { in ExpandColorMap() argument 1282 for (i = 4; i < 4 * num_colors; ++i) { in ExpandColorMap() 1327 const int num_colors = VP8LReadBits(br, 8) + 1; in ReadTransform() local 1328 const int bits = (num_colors > 16) ? 0 in ReadTransform() 1329 : (num_colors > 4) ? 1 in ReadTransform() 1330 : (num_colors > 2) ? 2 in ReadTransform() 1334 ok = DecodeImageStream(num_colors, 1, 0, dec, &transform->data_); in ReadTransform() 1335 ok = ok && ExpandColorMap(num_colors, transform); in ReadTransform()
|
/external/webp/src/mux/ |
D | anim_encode.c | 886 const int num_colors = WebPGetColorPalette(¶ms->sub_frame_ll_, NULL); in GenerateCandidates() local 887 evaluate_ll = (num_colors < MAX_COLORS_LOSSLESS); in GenerateCandidates() 888 evaluate_lossy = (num_colors >= MIN_COLORS_LOSSY); in GenerateCandidates()
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_state_shaders.c | 934 unsigned num_colors = !!(info->colors_read & 0x0f) + in si_get_ps_num_interp() local 937 (ps->key.part.ps.prolog.color_two_side ? num_colors : 0); in si_get_ps_num_interp()
|