Lines Matching refs:red

30 	uint8 red;
35 uint8 red;
44 uint8 red;
48 uint8 red;
68 uint8 red;
254 \param red Value of the red component.
261 brightness_for(uint8 red, uint8 green, uint8 blue)
263 // brightness = 0.301 * red + 0.586 * green + 0.113 * blue
265 // brightness = (308 * red + 600 * green + 116 * blue) / 1024
266 return uint8((308 * red + 600 * green + 116 * blue) / 1024);
333 inline uint8 IndexForRGB15(uint8 red, uint8 green, uint8 blue) const;
335 inline uint8 IndexForRGB16(uint8 red, uint8 green, uint8 blue) const;
337 inline uint8 IndexForRGB24(uint8 red, uint8 green, uint8 blue) const;
344 inline void RGB24ColorForIndex(uint8 index, uint8 &red, uint8 &green,
428 uint8 red = (color & 0x7c00) >> 7;
431 red |= red >> 5;
439 unsigned distance = color_distance(red, green, blue,
440 c.red, c.green, c.blue);
504 \param red Red component of the color (R[4:0]).
510 PaletteConverter::IndexForRGB15(uint8 red, uint8 green, uint8 blue) const
513 return fColorMap->index_map[(red << 10) | (green << 5) | blue];
535 \param red Red component of the color (R[4:0]).
541 PaletteConverter::IndexForRGB16(uint8 red, uint8 green, uint8 blue) const
543 // the 5 (for red, blue) / 6 (for green) least significant bits are used
544 return fColorMap->index_map[(red << 10) | ((green & 0x3e) << 4) | blue];
567 \param red Red component of the color.
573 PaletteConverter::IndexForRGB24(uint8 red, uint8 green, uint8 blue) const
575 return fColorMap->index_map[((red & 0xf8) << 7) | ((green & 0xf8) << 2)
620 return ((color.red & 0xf8) << 7) | ((color.green & 0xf8) << 2)
637 return ((color.red & 0xf8) << 8) | ((color.green & 0xfc) << 3)
654 return (color.blue << 24) | (color.red << 8) | (color.green << 16)
664 \param red Reference to the variable the red component shall be stored
672 PaletteConverter::RGB24ColorForIndex(uint8 index, uint8 &red, uint8 &green,
676 red = color.red;
694 return brightness_for(color.red, color.green, color.blue);
748 color.red = pixel.red;
759 gray = brightness_for(color.red, color.green, color.blue);
776 color.red = pixel.rg & 0xf8;
779 color.red |= color.red >> 5;
790 gray = brightness_for(color.red, color.green, color.blue);
807 color.red = (pixel.rg & 0x7c) << 1;
810 color.red |= color.red >> 5;
821 gray = brightness_for(color.red, color.green, color.blue);
834 converter.RGB24ColorForIndex(*BaseReader<uint8>::pixels, color.red, color.green,
856 color.red = color.green = color.blue = *BaseReader<uint8>::pixels;
893 color.red = color.green = color.blue = 255;
895 color.red = color.green = color.blue = 0;
948 pixel.red = color.red;
958 pixel.red = gray;
977 pixel.red = color.red;
986 pixel.red = gray;
1006 pixel.rg = (color.red & 0xf8) | (color.green >> 5);
1033 pixel.rg = ((color.red & 0xf8) >> 1) | (color.green >> 6);
1056 *pixels = converter.IndexForRGB24(color.red, color.green, color.blue);
1077 *pixels = brightness_for(color.red, color.green, color.blue);
1109 Write(brightness_for(color.red, color.green, color.blue));