Lines Matching refs:green
34 \param green Value of the green 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);
153 uint8 green = (color & 0x3e0) >> 2;
156 green |= green >> 5;
163 unsigned distance = color_distance(red, green, blue,
164 c.red, c.green, c.blue);
230 \param green Green component of the color (G[4:0]).
236 PaletteConverter::IndexForRGB15(uint8 red, uint8 green, uint8 blue) const
239 return fColorMap->index_map[(red << 10) | (green << 5) | blue];
263 \param green Green component of the color (G[5: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];
298 \param green Green component of the color.
304 PaletteConverter::IndexForRGB24(uint8 red, uint8 green, uint8 blue) const
307 | ((green & 0xf8) << 2)
373 | ((color.green & 0xf8) << 2)
392 | ((color.green & 0xfc) << 3)
410 return (color.red << 16) | (color.green << 8) | color.blue
422 \param green Reference to the variable the green component shall be stored
431 PaletteConverter::RGBA32ColorForIndex(uint8 index, uint8 &red, uint8 &green,
436 green = color.green;
454 return brightness_for(color.red, color.green, color.blue);