Lines Matching defs:pixelValueYUV
263 YUVPixel pixelValueYUV;
266 ConvertRBGA2YUV(color_, &pixelValueYUV);
267 DrawYUVColor(image, width, height, pixelValueYUV);
303 void LayerContext::ConvertRBGA2YUV(uint32_t pixelValueRBGA, YUVPixel *pixelValueYUV)
312 pixelValueYUV->y = 0.299 * R + 0.587 * G + 0.114 * B;
314 pixelValueYUV->u = -0.169 * R - 0.331 * G + 0.500 * B + 128;
316 pixelValueYUV->v = 0.500 * R - 0.419 * G - 0.081 * B + 128;
319 void LayerContext::DrawYUVColor(void *image, uint32_t width, uint32_t height, YUVPixel pixelValueYUV)
325 *pixel++ = pixelValueYUV.y;
329 *pixel++ = pixelValueYUV.u;
331 *pixel++ = pixelValueYUV.v;