/third_party/skia/third_party/externals/harfbuzz/test/api/ |
H A 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 in test_hb_ot_color_palette_get_colors_v0() 264 unsigned int num_colors = hb_ot_color_palette_get_colors (cpal_v1, 0, 0, NULL, NULL); test_hb_ot_color_palette_get_colors_v1() local [all...] |
/third_party/skia/third_party/externals/libjpeg-turbo/ |
H A 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...] |
H A 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() 306 /* Create a grayscale map of num_colors values, range 0..255 */ in emit_header() 307 put_3bytes(dinfo, (i * 255 + (num_colors - 1) / 2) / (num_colors - 1)); in emit_header()
|
H A 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()
|
/third_party/skia/third_party/externals/libwebp/src/enc/ |
H A D | vp8l_enc.c | 69 int num_colors) { in SearchColorNoIdx() 70 int low = 0, hi = num_colors; in SearchColorNoIdx() 93 int num_colors) { in PaletteHasNonMonotonousDeltas() 97 for (i = 0; i < num_colors; ++i) { in PaletteHasNonMonotonousDeltas() 117 int num_colors, uint32_t* const palette) { in PaletteSortMinimizeDeltas() 120 memcpy(palette, palette_sorted, num_colors * sizeof(*palette)); in PaletteSortMinimizeDeltas() 121 if (!PaletteHasNonMonotonousDeltas(palette_sorted, num_colors)) return; in PaletteSortMinimizeDeltas() 125 for (i = 0; i < num_colors; ++i) { in PaletteSortMinimizeDeltas() 128 for (k = i; k < num_colors; ++k) { in PaletteSortMinimizeDeltas() 141 static void PrepareMapToPalette(const uint32_t palette[], uint32_t num_colors, in PrepareMapToPalette() argument 68 SearchColorNoIdx(const uint32_t sorted[], uint32_t color, int num_colors) SearchColorNoIdx() argument 92 PaletteHasNonMonotonousDeltas(const uint32_t* const palette, int num_colors) PaletteHasNonMonotonousDeltas() argument 116 PaletteSortMinimizeDeltas(const uint32_t* const palette_sorted, int num_colors, uint32_t* const palette) PaletteSortMinimizeDeltas() argument 157 CoOccurrenceFindMax(const uint32_t* const cooccurrence, uint32_t num_colors, uint8_t* const c1, uint8_t* const c2) CoOccurrenceFindMax() argument 186 CoOccurrenceBuild(const WebPPicture* const pic, const uint32_t* const palette, uint32_t num_colors, uint32_t* cooccurrence) CoOccurrenceBuild() argument 240 PaletteSortModifiedZeng( const WebPPicture* const pic, const uint32_t* const palette_sorted, uint32_t num_colors, uint32_t* const palette) PaletteSortModifiedZeng() argument [all...] |
H A 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()
|
/third_party/skia/third_party/externals/libwebp/src/utils/ |
H A D | utils.c | 261 int num_colors = 0; in WebPGetColorPalette() local 283 ++num_colors; in WebPGetColorPalette() 284 if (num_colors > MAX_PALETTE_SIZE) { in WebPGetColorPalette() 301 num_colors = 0; in WebPGetColorPalette() 304 palette[num_colors] = colors[i]; in WebPGetColorPalette() 305 ++num_colors; in WebPGetColorPalette() 309 return num_colors; in WebPGetColorPalette()
|
/third_party/skia/third_party/externals/freetype/src/sfnt/ |
H A D | ttcpal.c | 50 FT_UShort num_colors; /* Total number of color records, */ member 111 cpal->num_colors = FT_NEXT_USHORT( p ); in FT_LOCAL_DEF() 120 if ( cpal->num_colors * COLOR_SIZE > table_size - colors_offset ) in FT_LOCAL_DEF() 123 if ( face->palette_data.num_palette_entries > cpal->num_colors ) in FT_LOCAL_DEF() 282 cpal->num_colors ) in FT_LOCAL_DEF()
|
/third_party/mesa3d/src/gallium/auxiliary/tgsi/ |
H A 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()
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
H A D | main.cc | 183 unsigned num_colors = hb_ot_color_palette_get_colors (face, palette, 0, nullptr, nullptr); in layered_glyph_dump() local 184 if (!num_colors) continue; in layered_glyph_dump() 186 hb_color_t *colors = (hb_color_t*) calloc (num_colors, sizeof (hb_color_t)); in layered_glyph_dump() 187 hb_ot_color_palette_get_colors (face, palette, 0, &num_colors, colors); in layered_glyph_dump() 188 if (!num_colors) in layered_glyph_dump()
|
/third_party/skia/third_party/externals/libwebp/src/dec/ |
H A D | vp8l_dec.c | 1274 // the total possible bundled values, and not just the num_colors. 1275 static int ExpandColorMap(int num_colors, VP8LTransform* const transform) { in ExpandColorMap() argument 1287 for (i = 4; i < 4 * num_colors; ++i) { in ExpandColorMap() 1332 const int num_colors = VP8LReadBits(br, 8) + 1; in ReadTransform() local 1333 const int bits = (num_colors > 16) ? 0 in ReadTransform() 1334 : (num_colors > 4) ? 1 in ReadTransform() 1335 : (num_colors > 2) ? 2 in ReadTransform() 1339 ok = DecodeImageStream(num_colors, 1, 0, dec, &transform->data_); in ReadTransform() 1340 ok = ok && ExpandColorMap(num_colors, transform); in ReadTransform()
|
/third_party/cups-filters/cupsfilters/ |
H A D | image-tiff.c | 59 num_colors, /* Number of colors */ in _cupsImageReadTIFF() local 677 num_colors = 1 << bits; in _cupsImageReadTIFF() 679 for (c = 0; c < num_colors; c ++) in _cupsImageReadTIFF()
|
/third_party/skia/third_party/externals/libwebp/src/mux/ |
H A D | anim_encode.c | 883 const int num_colors = WebPGetColorPalette(¶ms->sub_frame_ll_, NULL); in GenerateCandidates() local 884 evaluate_ll = (num_colors < MAX_COLORS_LOSSLESS); in GenerateCandidates() 885 evaluate_lossy = (num_colors >= MIN_COLORS_LOSSY); in GenerateCandidates()
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
H A D | si_shader.c | 50 unsigned num_colors = !!(info->colors_read & 0x0f) + !!(info->colors_read & 0xf0); in si_get_ps_num_interp() local 52 ps->selector->info.num_inputs + (ps->key.ps.part.prolog.color_two_side ? num_colors : 0); in si_get_ps_num_interp()
|