HomeSort by relevance Sort by last modified time
    Searched defs:num_colors (Results 1 - 12 of 12) sorted by null

  /external/freetype/src/sfnt/
ttcpal.c 51 FT_UShort num_colors; /* Total number of color records, */ member in struct:Cpal_
112 cpal->num_colors = FT_NEXT_USHORT( p );
121 if ( cpal->num_colors * COLOR_SIZE > table_size - colors_offset )
  /external/libjpeg-turbo/
wrtarga.c 48 write_header(j_decompress_ptr cinfo, djpeg_dest_ptr dinfo, int num_colors)
56 if (num_colors > 0) {
58 targaheader[5] = (char)(num_colors & 0xFF);
59 targaheader[6] = (char)(num_colors >> 8);
73 if (num_colors > 0) {
164 int num_colors, i; local
178 num_colors = cinfo->actual_number_of_colors;
179 if (num_colors > 256)
180 ERREXIT1(cinfo, JERR_TOO_MANY_COLORS, num_colors);
181 write_header(cinfo, dinfo, num_colors);
    [all...]
wrbmp.c 367 int num_colors = cinfo->actual_number_of_colors; local
374 for (i = 0; i < num_colors; i++) {
383 for (i = 0; i < num_colors; i++) {
  /external/mesa3d/src/gallium/auxiliary/tgsi/
tgsi_two_side.c 102 uint num_colors = 0; local
118 num_colors++;
122 if (num_colors > 0) {
127 decl.Range.Last = ts->num_temps + num_colors - 1;
  /external/harfbuzz_ng/src/
test-ot-color.cc 172 unsigned int num_colors = hb_ot_color_palette_get_colors (face, palette, 0, NULL, NULL); local
173 if (!num_colors)
176 hb_color_t *colors = (hb_color_t*) calloc (num_colors, sizeof (hb_color_t));
177 hb_ot_color_palette_get_colors (face, palette, 0, &num_colors, colors);
178 if (num_colors)
  /external/harfbuzz_ng/test/api/
test-ot-color.c 212 unsigned int num_colors = hb_ot_color_palette_get_colors (cpal_v0, 0, 0, NULL, NULL); local
213 hb_color_t *colors = (hb_color_t*) alloca (num_colors * sizeof (hb_color_t));
214 size_t colors_size = num_colors * sizeof(*colors);
215 g_assert_cmpint (num_colors, ==, 2);
218 g_assert_cmpint (hb_ot_color_palette_get_colors (cpal_v0, 0, 0, &num_colors, colors), ==, 2);
219 g_assert_cmpint (num_colors, ==, 2);
224 g_assert_cmpint (hb_ot_color_palette_get_colors (cpal_v0, 1, 0, &num_colors, colors), ==, 2);
225 g_assert_cmpint (num_colors, ==, 2);
230 g_assert_cmpint (hb_ot_color_palette_get_colors (cpal_v0, 2, 0, &num_colors, colors), ==, 0);
234 num_colors = 2
262 unsigned int num_colors = hb_ot_color_palette_get_colors (cpal_v1, 0, 0, NULL, NULL); local
    [all...]
  /external/webp/src/enc/
alpha_enc.c 210 const int num_colors = GetNumColors(alpha, width, height, width); local
212 filter = (num_colors <= kMinColorsForFilterNone)
218 if (try_filter_none || num_colors > kMaxColorsForFilterNone) {
vp8l_enc.c 68 static void GreedyMinimizeDeltas(uint32_t palette[], int num_colors) {
74 for (i = 0; i < num_colors; ++i) {
77 for (k = i; k < num_colors; ++k) {
95 static int PaletteHasNonMonotonousDeltas(uint32_t palette[], int num_colors) {
99 for (i = 0; i < num_colors; ++i) {
127 const int num_colors = WebPGetColorPalette(pic, palette); local
128 if (num_colors > MAX_PALETTE_SIZE) {
132 *palette_size = num_colors;
133 qsort(palette, num_colors, sizeof(*palette), PaletteCompareColorsForQsort);
134 if (!low_effort && PaletteHasNonMonotonousDeltas(palette, num_colors)) {
    [all...]
  /external/webp/src/utils/
utils.c 253 int num_colors = 0; local
275 ++num_colors;
276 if (num_colors > MAX_PALETTE_SIZE) {
293 num_colors = 0;
296 palette[num_colors] = colors[i];
297 ++num_colors;
301 return num_colors;
  /external/mesa3d/src/gallium/drivers/radeonsi/
si_state_shaders.c 934 unsigned num_colors = !!(info->colors_read & 0x0f) + local
937 (ps->key.part.ps.prolog.color_two_side ? num_colors : 0);
    [all...]
  /external/webp/src/dec/
vp8l_dec.c 1327 const int num_colors = VP8LReadBits(br, 8) + 1; local
    [all...]
  /external/webp/src/mux/
anim_encode.c 886 const int num_colors = WebPGetColorPalette(&params->sub_frame_ll_, NULL); local
    [all...]

Completed in 853 milliseconds