Lines Matching refs:v
170 uint8_t* u, uint8_t* v) { in R8G8B8ToYUV() argument
173 *v = RGB2V((int)r, (int)g, (int)b); in R8G8B8ToYUV()
178 uint8_t* v) { in RGB565ToYUV() argument
179 R8G8B8ToYUV(R16_32(rgb), G16_32(rgb), B16_32(rgb), y, u, v); in RGB565ToYUV()
184 uint8_t* v) { in RGB32ToYUV() argument
187 R8G8B8ToYUV(rgb_c.r, rgb_c.g, rgb_c.b, y, u, v); in RGB32ToYUV()
213 #define YUV2R(y, u, v) clamp((298 * ((y)-16) + 409 * ((v)-128) + 128) >> 8) argument
214 #define YUV2G(y, u, v) \ argument
215 clamp((298 * ((y)-16) - 100 * ((u)-128) - 208 * ((v)-128) + 128) >> 8)
216 #define YUV2B(y, u, v) clamp((298 * ((y)-16) + 516 * ((u)-128) + 128) >> 8) argument
219 static __inline__ uint16_t YUVToRGB565(int y, int u, int v) { in YUVToRGB565() argument
223 v -= 128; in YUVToRGB565()
224 const uint16_t r = (YUV2RO(y, u, v) >> 3) & 0x1f; in YUVToRGB565()
225 const uint16_t g = (YUV2GO(y, u, v) >> 2) & 0x3f; in YUVToRGB565()
226 const uint16_t b = (YUV2BO(y, u, v) >> 3) & 0x1f; in YUVToRGB565()
231 static __inline__ uint32_t YUVToRGB32(int y, int u, int v) { in YUVToRGB32() argument
235 v -= 128; in YUVToRGB32()
237 rgb.r = YUV2RO(y, u, v) & 0xff; in YUVToRGB32()
238 rgb.g = YUV2GO(y, u, v) & 0xff; in YUVToRGB32()
239 rgb.b = YUV2BO(y, u, v) & 0xff; in YUVToRGB32()