/third_party/boost/boost/gil/extension/io/tiff/detail/ |
D | scanline_read.hpp | 114 int num_colors = channel_traits< channel_t >::max_value() + 1; in initialize() local 116 this->_palette = planar_rgb_view( num_colors in initialize() 121 , sizeof(uint16_t) * num_colors in initialize() 133 int num_colors = channel_traits< channel_t >::max_value() + 1; in initialize() local 135 this->_palette = planar_rgb_view( num_colors in initialize() 140 , sizeof(uint16_t) * num_colors in initialize() 151 int num_colors = channel_traits< channel_t >::max_value() + 1; in initialize() local 153 this->_palette = planar_rgb_view( num_colors in initialize() 158 , sizeof(uint16_t) * num_colors in initialize() 170 int num_colors = channel_traits< channel_t >::max_value() + 1; in initialize() local [all …]
|
/third_party/flutter/skia/third_party/externals/harfbuzz/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 …]
|
/third_party/skia/third_party/externals/harfbuzz/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 …]
|
/third_party/harfbuzz/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 …]
|
/third_party/skia/third_party/externals/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()
|
/third_party/flutter/skia/third_party/externals/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()
|
/third_party/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()
|
/third_party/boost/boost/gil/extension/toolbox/image_types/ |
D | indexed_image.hpp | 170 , std::size_t num_colors in indexed_image_view() argument 174 , _num_colors( num_colors ) in indexed_image_view() 183 std::size_t num_colors() const { return _num_colors; } in num_colors() function in boost::gil::indexed_image_view 190 …palette_view_t get_palette_view() const { return palette_view_t(point_t(num_colors(), 1), palette(… in get_palette_view() 273 , const std::size_t num_colors = 1 in indexed_image() argument 278 , _palette( num_colors, 1, palette_alignment, PalleteAllocator() ) in indexed_image() 280 init( point_t( width, height ), num_colors ); in indexed_image() 284 , const std::size_t num_colors = 1 in indexed_image() argument 289 , _palette( num_colors, 1, palette_alignment, PalleteAllocator() ) in indexed_image() 291 init( dimensions, num_colors ); in indexed_image() [all …]
|
/third_party/skia/third_party/externals/libwebp/src/enc/ |
D | vp8l_enc.c | 69 int num_colors) { in SearchColorNoIdx() argument 70 int low = 0, hi = num_colors; in SearchColorNoIdx() 93 int num_colors) { in PaletteHasNonMonotonousDeltas() argument 97 for (i = 0; i < num_colors; ++i) { in PaletteHasNonMonotonousDeltas() 117 int num_colors, uint32_t* const palette) { in PaletteSortMinimizeDeltas() argument 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 [all …]
|
/third_party/boost/boost/graph/distributed/ |
D | boman_et_al_graph_coloring.hpp | 61 std::size_t num_colors; member 73 << "(R) Colors = " << num_colors << "\n"; in print() 297 color_type num_colors = 0; in boman_et_al_graph_coloring() local 305 ++num_colors; in boman_et_al_graph_coloring() 310 num_colors = in boman_et_al_graph_coloring() 311 all_reduce(pg, num_colors, boost::parallel::maximum<color_type>()); in boman_et_al_graph_coloring() 321 boman_et_al_graph_coloring_stats.num_colors = num_colors; in boman_et_al_graph_coloring() 324 return num_colors; in boman_et_al_graph_coloring()
|
/third_party/skia/third_party/externals/libwebp/src/utils/ |
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/flutter/skia/third_party/externals/libwebp/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()
|
/third_party/skia/third_party/externals/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()
|
/third_party/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()
|
/third_party/flutter/skia/third_party/externals/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() 124 if ( face->palette_data.num_palette_entries > cpal->num_colors ) in tt_face_load_cpal() 283 cpal->num_colors ) in tt_face_palette_set()
|
/third_party/flutter/skia/third_party/externals/harfbuzz/src/ |
D | test-ot-color.cc | 172 unsigned int num_colors = hb_ot_color_palette_get_colors (face, palette, 0, nullptr, nullptr); 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()
|
/third_party/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()
|
/third_party/boost/libs/graph/test/ |
D | sequential_vertex_coloring.cpp | 42 vertices_size_type num_colors = sequential_vertex_coloring(g, color); in main() local 43 BOOST_TEST(num_colors == 3); in main()
|
/third_party/boost/libs/gil/test/extension/toolbox/ |
D | indexed_image.cpp | 113 std::size_t const num_colors = 3; in test_index_image_view() local 120 std::vector<gil::rgb8_pixel_t> palette(num_colors); in test_index_image_view() 132 num_colors * 3); // row size in bytes in test_index_image_view()
|
D | indexed_image_test.cpp | 115 std::size_t const num_colors = 3; in BOOST_AUTO_TEST_CASE() local 122 std::vector<bg::rgb8_pixel_t> palette(num_colors); in BOOST_AUTO_TEST_CASE() 134 num_colors * 3); // row size in bytes in BOOST_AUTO_TEST_CASE()
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
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/harfbuzz/src/ |
D | main.cc | 182 unsigned num_colors = hb_ot_color_palette_get_colors (face, palette, 0, nullptr, nullptr); in layered_glyph_dump() local 183 if (!num_colors) continue; in layered_glyph_dump() 185 hb_color_t *colors = (hb_color_t*) calloc (num_colors, sizeof (hb_color_t)); in layered_glyph_dump() 186 hb_ot_color_palette_get_colors (face, palette, 0, &num_colors, colors); in layered_glyph_dump() 187 if (!num_colors) in layered_glyph_dump()
|