Lines Matching refs:b
97 #define RGB565(r, g, b) \ argument
98 static_cast<uint16_t>((((static_cast<uint16_t>(b) << 6) | g) << 5) | r)
100 #define RGB32(r, g, b) \ argument
101 static_cast<uint32_t>((((static_cast<uint32_t>(b) << 8) | g) << 8) | r)
119 #define RGB565(r, g, b) \ argument
120 static_cast<uint16_t>((((static_cast<uint16_t>(r) << 6) | g) << 5) | b)
122 #define RGB32(r, g, b) \ argument
123 static_cast<uint32_t>((((static_cast<uint32_t>(r) << 8) | g) << 8) | b)
135 uint8_t b; member
139 uint8_t b;
161 #define RGB2Y(r, g, b) \ argument
162 (uint8_t)(((66 * (r) + 129 * (g) + 25 * (b) + 128) >> 8) + 16)
163 #define RGB2U(r, g, b) \ argument
164 (uint8_t)(((-38 * (r)-74 * (g) + 112 * (b) + 128) >> 8) + 128)
165 #define RGB2V(r, g, b) \ argument
166 (uint8_t)(((112 * (r)-94 * (g)-18 * (b) + 128) >> 8) + 128)
169 static __inline__ void R8G8B8ToYUV(uint8_t r, uint8_t g, uint8_t b, uint8_t* y, in R8G8B8ToYUV() argument
171 *y = RGB2Y((int)r, (int)g, (int)b); in R8G8B8ToYUV()
172 *u = RGB2U((int)r, (int)g, (int)b); in R8G8B8ToYUV()
173 *v = RGB2V((int)r, (int)g, (int)b); in R8G8B8ToYUV()
187 R8G8B8ToYUV(rgb_c.r, rgb_c.g, rgb_c.b, y, u, v); in RGB32ToYUV()
226 const uint16_t b = (YUV2BO(y, u, v) >> 3) & 0x1f; in YUVToRGB565() local
227 return RGB565(r, g, b); in YUVToRGB565()
239 rgb.b = YUV2BO(y, u, v) & 0xff; in YUVToRGB32()