Lines Matching refs:blue
35 \param blue Value of the blue 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);
154 uint8 blue = (color & 0x1f) << 3;
157 blue |= blue >> 5;
163 unsigned distance = color_distance(red, green, blue,
164 c.red, c.green, c.blue);
231 \param blue Blue component of the color (B[4:0]).
236 PaletteConverter::IndexForRGB15(uint8 red, uint8 green, uint8 blue) const
239 return fColorMap->index_map[(red << 10) | (green << 5) | blue];
264 \param blue Blue component of the color (B[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];
299 \param blue Blue component of the color.
304 PaletteConverter::IndexForRGB24(uint8 red, uint8 green, uint8 blue) const
308 | (blue >> 3)];
374 | (color.blue >> 3);
393 | (color.blue >> 3);
410 return (color.red << 16) | (color.green << 8) | color.blue
424 \param blue Reference to the variable the blue component shall be stored
432 uint8 &blue, uint8 &alpha) const
437 blue = color.blue;
454 return brightness_for(color.red, color.green, color.blue);