Lines Matching refs:g
94 #define RGB565(r, g, b) static_cast<uint16_t>((((static_cast<uint16_t>(b) << 6) | g) << 5) | r) argument
96 #define RGB32(r, g, b) static_cast<uint32_t>((((static_cast<uint32_t>(b) << 8) | g) << 8) | r) argument
111 #define RGB565(r, g, b) static_cast<uint16_t>((((static_cast<uint16_t>(r) << 6) | g) << 5) | b) argument
113 #define RGB32(r, g, b) static_cast<uint32_t>((((static_cast<uint32_t>(r) << 8) | g) << 8) | b) argument
122 uint8_t r; uint8_t g; uint8_t b; uint8_t a; member
124 uint8_t a; uint8_t b; uint8_t g; uint8_t r;
147 #define RGB2Y(r, g, b) (uint8_t)(((66 * (r) + 129 * (g) + 25 * (b) + 128) >> 8) + 16) argument
148 #define RGB2U(r, g, b) (uint8_t)(((-38 * (r) - 74 * (g) + 112 * (b) + 128) >> 8) + 128) argument
149 #define RGB2V(r, g, b) (uint8_t)(((112 * (r) - 94 * (g) - 18 * (b) + 128) >> 8) + 128) argument
153 R8G8B8ToYUV(uint8_t r, uint8_t g, uint8_t b, uint8_t* y, uint8_t* u, uint8_t* v) in R8G8B8ToYUV() argument
155 *y = RGB2Y((int)r, (int)g, (int)b); in R8G8B8ToYUV()
156 *u = RGB2U((int)r, (int)g, (int)b); in R8G8B8ToYUV()
157 *v = RGB2V((int)r, (int)g, (int)b); in R8G8B8ToYUV()
173 R8G8B8ToYUV(rgb_c.r, rgb_c.g, rgb_c.b, y, u, v); in RGB32ToYUV()
211 const uint16_t g = (YUV2GO(y,u,v) >> 2) & 0x3f; in YUVToRGB565() local
213 return RGB565(r, g, b); in YUVToRGB565()
224 rgb.g = YUV2GO(y,u,v) & 0xff; in YUVToRGB32()