Lines Matching refs:v
153 R8G8B8ToYUV(uint8_t r, uint8_t g, uint8_t b, uint8_t* y, uint8_t* u, uint8_t* v) in R8G8B8ToYUV() argument
157 *v = RGB2V((int)r, (int)g, (int)b); in R8G8B8ToYUV()
162 RGB565ToYUV(uint16_t rgb, uint8_t* y, uint8_t* u, uint8_t* v) in RGB565ToYUV() argument
164 R8G8B8ToYUV(R16_32(rgb), G16_32(rgb), B16_32(rgb), y, u, v); in RGB565ToYUV()
169 RGB32ToYUV(uint32_t rgb, uint8_t* y, uint8_t* u, uint8_t* v) in RGB32ToYUV() argument
173 R8G8B8ToYUV(rgb_c.r, rgb_c.g, rgb_c.b, y, u, v); in RGB32ToYUV()
199 #define YUV2R(y, u, v) clamp((298 * ((y)-16) + 409 * ((v)-128) + 128) >> 8) argument
200 #define YUV2G(y, u, v) clamp((298 * ((y)-16) - 100 * ((u)-128) - 208 * ((v)-128) + 128) >> 8) argument
201 #define YUV2B(y, u, v) clamp((298 * ((y)-16) + 516 * ((u)-128) + 128) >> 8) argument
206 YUVToRGB565(int y, int u, int v) in YUVToRGB565() argument
209 y -= 16; u -= 128; v -= 128; in YUVToRGB565()
210 const uint16_t r = (YUV2RO(y,u,v) >> 3) & 0x1f; in YUVToRGB565()
211 const uint16_t g = (YUV2GO(y,u,v) >> 2) & 0x3f; in YUVToRGB565()
212 const uint16_t b = (YUV2BO(y,u,v) >> 3) & 0x1f; in YUVToRGB565()
218 YUVToRGB32(int y, int u, int v) in YUVToRGB32() argument
221 y -= 16; u -= 128; v -= 128; in YUVToRGB32()
223 rgb.r = YUV2RO(y,u,v) & 0xff; in YUVToRGB32()
224 rgb.g = YUV2GO(y,u,v) & 0xff; in YUVToRGB32()
225 rgb.b = YUV2BO(y,u,v) & 0xff; in YUVToRGB32()