Lines Matching refs:red
33 \param red Value of the red component.
41 brightness_for(uint8 red, uint8 green, uint8 blue)
43 // brightness = 0.301 * red + 0.586 * green + 0.113 * blue
45 // brightness = (308 * red + 600 * green + 116 * blue) / 1024
46 return uint8((308 * red + 600 * green + 116 * blue) / 1024);
152 uint8 red = (color & 0x7c00) >> 7;
155 red |= red >> 5;
163 unsigned distance = color_distance(red, green, blue,
164 c.red, c.green, c.blue);
229 \param red Red component of the color (R[4:0]).
236 PaletteConverter::IndexForRGB15(uint8 red, uint8 green, uint8 blue) const
239 return fColorMap->index_map[(red << 10) | (green << 5) | blue];
262 \param red Red component of the color (R[4:0]).
269 PaletteConverter::IndexForRGB16(uint8 red, uint8 green, uint8 blue) const
271 // the 5 (for red, blue) / 6 (for green) least significant bits are used
272 return fColorMap->index_map[(red << 10) | ((green & 0x3e) << 4) | blue];
297 \param red Red component of the color.
304 PaletteConverter::IndexForRGB24(uint8 red, uint8 green, uint8 blue) const
306 return fColorMap->index_map[((red & 0xf8) << 7)
372 return ((color.red & 0xf8) << 7)
391 return ((color.red & 0xf8) << 8)
410 return (color.red << 16) | (color.green << 8) | color.blue
420 \param red Reference to the variable the red component shall be stored
431 PaletteConverter::RGBA32ColorForIndex(uint8 index, uint8 &red, uint8 &green,
435 red = color.red;
454 return brightness_for(color.red, color.green, color.blue);