/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*) malloc (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() 161 int num_colors, i; in start_output_tga() local 175 num_colors = cinfo->actual_number_of_colors; in start_output_tga() 176 if (num_colors > 256) in start_output_tga() 177 ERREXIT1(cinfo, JERR_TOO_MANY_COLORS, num_colors); in start_output_tga() 178 write_header(cinfo, dinfo, num_colors); in start_output_tga() [all …]
|
D | wrgif.c | 252 emit_header(gif_dest_ptr dinfo, int num_colors, JSAMPARRAY colormap) in emit_header() argument 260 if (num_colors > 256) in emit_header() 261 ERREXIT1(dinfo->cinfo, JERR_TOO_MANY_COLORS, num_colors); in emit_header() 264 while (num_colors > (1 << BitsPerPixel)) in emit_header() 294 if (i < num_colors) { in emit_header() 307 put_3bytes(dinfo, (i * 255 + (num_colors - 1) / 2) / (num_colors - 1)); in emit_header()
|
D | wrbmp.c | 365 int num_colors = cinfo->actual_number_of_colors; in write_colormap() local 372 for (i = 0; i < num_colors; i++) { in write_colormap() 381 for (i = 0; i < num_colors; i++) { in write_colormap()
|
/external/webp/src/utils/ |
D | utils.c | 258 int num_colors = 0; in WebPGetColorPalette() local 280 ++num_colors; in WebPGetColorPalette() 281 if (num_colors > MAX_PALETTE_SIZE) { in WebPGetColorPalette() 298 num_colors = 0; in WebPGetColorPalette() 301 palette[num_colors] = colors[i]; in WebPGetColorPalette() 302 ++num_colors; in WebPGetColorPalette() 306 return num_colors; in WebPGetColorPalette()
|
/external/freetype/src/sfnt/ |
D | ttcpal.c | 50 FT_UShort num_colors; /* Total number of color records, */ member 111 cpal->num_colors = FT_NEXT_USHORT( p ); in tt_face_load_cpal() 120 if ( cpal->num_colors * COLOR_SIZE > table_size - colors_offset ) in tt_face_load_cpal() 123 if ( face->palette_data.num_palette_entries > cpal->num_colors ) in tt_face_load_cpal() 282 cpal->num_colors ) in tt_face_palette_set()
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | draw_bounding_box_op_test.py | 78 num_colors = color_table.shape[0] 79 for num_boxes in range(1, num_colors + 2): 82 color = color_table[(num_boxes - 1) % num_colors, 0:depth]
|
/external/harfbuzz_ng/src/ |
D | test-ot-color.cc | 180 unsigned int num_colors = hb_ot_color_palette_get_colors (face, palette, 0, nullptr, nullptr); in layered_glyph_dump() local 181 if (!num_colors) in layered_glyph_dump() 184 hb_color_t *colors = (hb_color_t*) calloc (num_colors, sizeof (hb_color_t)); in layered_glyph_dump() 185 hb_ot_color_palette_get_colors (face, palette, 0, &num_colors, colors); in layered_glyph_dump() 186 if (num_colors) in layered_glyph_dump()
|
/external/mesa3d/src/gallium/auxiliary/tgsi/ |
D | tgsi_two_side.c | 103 uint num_colors = 0; in emit_prolog() local 119 num_colors++; in emit_prolog() 123 if (num_colors > 0) { in emit_prolog() 128 decl.Range.Last = ts->num_temps + num_colors - 1; in emit_prolog()
|
/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 | 1266 static int ExpandColorMap(int num_colors, VP8LTransform* const transform) { in ExpandColorMap() argument 1278 for (i = 4; i < 4 * num_colors; ++i) { in ExpandColorMap() 1323 const int num_colors = VP8LReadBits(br, 8) + 1; in ReadTransform() local 1324 const int bits = (num_colors > 16) ? 0 in ReadTransform() 1325 : (num_colors > 4) ? 1 in ReadTransform() 1326 : (num_colors > 2) ? 2 in ReadTransform() 1330 ok = DecodeImageStream(num_colors, 1, 0, dec, &transform->data_); in ReadTransform() 1331 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/ImageMagick/coders/ |
D | xcf.c | 1242 size_t num_colors = ReadBlobMSBLong(image); in ReadXCFImage() local 1243 if (DiscardBlobBytes(image,3*num_colors) == MagickFalse) in ReadXCFImage()
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_state_shaders.c | 1501 unsigned num_colors = !!(info->colors_read & 0x0f) + !!(info->colors_read & 0xf0); in si_get_ps_num_interp() local 1503 ps->selector->info.num_inputs + (ps->key.part.ps.prolog.color_two_side ? num_colors : 0); in si_get_ps_num_interp()
|