Lines Matching defs:luminance
42 * by outputing blue+1 or red+1 or both. The luminance is calculated
50 guint32 luminance = ( red_factor * (r << 3)
53 unsigned blue_plus_one = (luminance & 0x01) ? 1 : 0;
54 unsigned red_plus_one = (luminance & 0x02) ? 1 : 0;
55 unsigned green_plus_one = (luminance & 0x04) ? 1 : 0;
56 luminance = luminance >> 3;
58 if (luminance >= 0xff) {
61 return SP_RGBA32_U_COMPOSE(luminance + red_plus_one, luminance + green_plus_one, luminance + blue_plus_one, a);
65 unsigned char luminance(unsigned char r, unsigned char g, unsigned char b) {
66 guint32 luminance = ( red_factor * r
69 if (luminance > 0xff) {
70 luminance = 0xff;
73 return luminance & 0xff;