Lines Matching refs:pixel
39 // Since the input pixel format is RGB32, there are 4 bytes per pixel.
40 const uint8* pixel = rgbframe + 4 * j;
41 yplane[j] = clip_byte(((pixel[r] * 66 + pixel[g] * 129 +
42 pixel[b] * 25 + 128) >> 8) + 16);
44 uplane[j / 2] = clip_byte(((pixel[r] * -38 + pixel[g] * -74 +
45 pixel[b] * 112 + 128) >> 8) + 128);
46 vplane[j / 2] = clip_byte(((pixel[r] * 112 + pixel[g] * -94 +
47 pixel[b] * -18 + 128) >> 8) + 128);
70 // Since the input pixel format is RGB24, there are 3 bytes per pixel.
71 const uint8* pixel = rgbframe + 3 * j;
72 yplane[j] = clip_byte(((pixel[2] * 66 + pixel[1] * 129 +
73 pixel[0] * 25 + 128) >> 8) + 16);
75 uplane[j / 2] = clip_byte(((pixel[2] * -38 + pixel[1] * -74 +
76 pixel[0] * 112 + 128) >> 8) + 128);
77 vplane[j / 2] = clip_byte(((pixel[2] * 112 + pixel[1] * -94 +
78 pixel[0] * -18 + 128) >> 8) + 128);