Searched refs:num_colors (Results 1 - 14 of 14) sorted by relevance

/external/jpeg/
H A Dwrtarga.c54 write_header (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo, int num_colors) argument
62 if (num_colors > 0) {
64 targaheader[5] = (char) (num_colors & 0xFF);
65 targaheader[6] = (char) (num_colors >> 8);
79 if (num_colors > 0) {
170 int num_colors, i; local
184 num_colors = cinfo->actual_number_of_colors;
185 if (num_colors > 256)
186 ERREXIT1(cinfo, JERR_TOO_MANY_COLORS, num_colors);
187 write_header(cinfo, dinfo, num_colors);
[all...]
H A Dwrgif.c219 emit_header (gif_dest_ptr dinfo, int num_colors, JSAMPARRAY colormap) argument
227 if (num_colors > 256)
228 ERREXIT1(dinfo->cinfo, JERR_TOO_MANY_COLORS, num_colors);
231 while (num_colors > (1 << BitsPerPixel))
261 if (i < num_colors) {
273 /* Create a gray-scale map of num_colors values, range 0..255 */
274 put_3bytes(dinfo, (i * 255 + (num_colors-1)/2) / (num_colors-1));
H A Dwrbmp.c296 int num_colors = cinfo->actual_number_of_colors; local
303 for (i = 0; i < num_colors; i++) {
312 for (i = 0; i < num_colors; i++) {
/external/qemu/distrib/jpeg-6b/
H A Dwrtarga.c54 write_header (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo, int num_colors) argument
62 if (num_colors > 0) {
64 targaheader[5] = (char) (num_colors & 0xFF);
65 targaheader[6] = (char) (num_colors >> 8);
79 if (num_colors > 0) {
170 int num_colors, i; local
184 num_colors = cinfo->actual_number_of_colors;
185 if (num_colors > 256)
186 ERREXIT1(cinfo, JERR_TOO_MANY_COLORS, num_colors);
187 write_header(cinfo, dinfo, num_colors);
[all...]
H A Dwrgif.c219 emit_header (gif_dest_ptr dinfo, int num_colors, JSAMPARRAY colormap) argument
227 if (num_colors > 256)
228 ERREXIT1(dinfo->cinfo, JERR_TOO_MANY_COLORS, num_colors);
231 while (num_colors > (1 << BitsPerPixel))
261 if (i < num_colors) {
273 /* Create a gray-scale map of num_colors values, range 0..255 */
274 put_3bytes(dinfo, (i * 255 + (num_colors-1)/2) / (num_colors-1));
H A Dwrbmp.c296 int num_colors = cinfo->actual_number_of_colors; local
303 for (i = 0; i < num_colors; i++) {
312 for (i = 0; i < num_colors; i++) {
/external/chromium_org/ash/wm/gestures/
H A Dlong_press_affordance_handler.cc105 int num_colors) {
118 num_colors,
212 const int num_colors = 3; variable
213 SkScalar pos[num_colors] = {0, 0.5, 1};
214 SkColor colors[num_colors] = {kAffordanceGlowEndColor,
217 num_colors);
99 PaintAffordanceGlow(gfx::Canvas* canvas, gfx::Point& center, int start_radius, int end_radius, SkColor* colors, SkScalar* pos, int num_colors) argument
/external/chromium_org/third_party/libwebp/enc/
H A Dalpha.c236 const int num_colors = GetNumColors(quant_alpha, width, height, width); local
238 filter = (num_colors <= kMinColorsForFilterNone) ? WEBP_FILTER_NONE :
242 if (num_colors > kMaxColorsForFilterNone) {
H A Dvp8l.c52 int num_colors = 0; local
72 ++num_colors;
73 if (num_colors > MAX_PALETTE_SIZE) {
92 num_colors = 0;
95 palette[num_colors] = colors[i];
96 ++num_colors;
100 qsort(palette, num_colors, sizeof(*palette), CompareColors);
101 *palette_size = num_colors;
/external/webp/src/enc/
H A Dalpha.c236 const int num_colors = GetNumColors(quant_alpha, width, height, width); local
238 filter = (num_colors <= kMinColorsForFilterNone) ? WEBP_FILTER_NONE :
242 if (num_colors > kMaxColorsForFilterNone) {
H A Dvp8l.c52 int num_colors = 0; local
72 ++num_colors;
73 if (num_colors > MAX_PALETTE_SIZE) {
92 num_colors = 0;
95 palette[num_colors] = colors[i];
96 ++num_colors;
100 qsort(palette, num_colors, sizeof(*palette), CompareColors);
101 *palette_size = num_colors;
/external/chromium_org/third_party/libwebp/dec/
H A Dvp8l.c825 // the total possible bundled values, and not just the num_colors.
826 static int ExpandColorMap(int num_colors, VP8LTransform* const transform) { argument
838 for (i = 4; i < 4 * num_colors; ++i) {
882 const int num_colors = VP8LReadBits(br, 8) + 1; local
883 const int bits = (num_colors > 16) ? 0
884 : (num_colors > 4) ? 1
885 : (num_colors > 2) ? 2
889 ok = DecodeImageStream(num_colors, 1, 0, dec, &transform->data_);
890 ok = ok && ExpandColorMap(num_colors, transform);
/external/webp/src/dec/
H A Dvp8l.c824 // the total possible bundled values, and not just the num_colors.
825 static int ExpandColorMap(int num_colors, VP8LTransform* const transform) { argument
837 for (i = 4; i < 4 * num_colors; ++i) {
881 const int num_colors = VP8LReadBits(br, 8) + 1; local
882 const int bits = (num_colors > 16) ? 0
883 : (num_colors > 4) ? 1
884 : (num_colors > 2) ? 2
888 ok = DecodeImageStream(num_colors, 1, 0, dec, &transform->data_);
889 ok = ok && ExpandColorMap(num_colors, transform);
/external/qemu/distrib/sdl-1.2.15/src/video/quartz/
H A DSDL_QuartzVideo.m111 int num_colors, SDL_Color *colors);
1250 static int QZ_SetColors (_THIS, int first_color, int num_colors,
1259 for (index = first_color; index < first_color+num_colors; index++) {

Completed in 388 milliseconds