Lines Matching defs:yuv
58 void RGBtoYUV(Uint8 *rgb, int *yuv, int monochrome, int luminance)
63 yuv[0] = 0.299*rgb[0] + 0.587*rgb[1] + 0.114*rgb[2];
64 yuv[1] = 128;
65 yuv[2] = 128;
67 yuv[0] = (0.257 * rgb[0]) + (0.504 * rgb[1]) + (0.098 * rgb[2]) + 16;
68 yuv[1] = 128;
69 yuv[2] = 128;
75 yuv[0] = 0.299*rgb[0] + 0.587*rgb[1] + 0.114*rgb[2];
76 yuv[1] = (rgb[2]-yuv[0])*0.565 + 128;
77 yuv[2] = (rgb[0]-yuv[0])*0.713 + 128;
79 yuv[0] = (0.257 * rgb[0]) + (0.504 * rgb[1]) + (0.098 * rgb[2]) + 16;
80 yuv[1] = 128 - (0.148 * rgb[0]) - (0.291 * rgb[1]) + (0.439 * rgb[2]);
81 yuv[2] = 128 + (0.439 * rgb[0]) - (0.368 * rgb[1]) - (0.071 * rgb[2]);
87 yuv[0]=yuv[0]*luminance/100;
88 if (yuv[0]>255)
89 yuv[0]=255;
96 int yuv[3];
111 RGBtoYUV(p, yuv, monochrome, luminance);
112 *(op[0]++)=yuv[0];
115 *(op[1]++)=yuv[2];
116 *(op[2]++)=yuv[1];
129 int yuv[3];
144 RGBtoYUV(p,yuv, monochrome, luminance);
145 *(op[0]++)=yuv[0];
148 *(op[1]++)=yuv[1];
149 *(op[2]++)=yuv[2];
162 int yuv[3];
174 RGBtoYUV(p, yuv, monochrome, luminance);
177 *(op++)=yuv[1];
178 *(op++)=yuv[0];
179 *(op++)=yuv[2];
182 *(op++)=yuv[0];
195 int yuv[3];
207 RGBtoYUV(p,yuv, monochrome, luminance);
210 *(op++)=yuv[0];
211 *(op++)=yuv[2];
212 op[1]=yuv[1];
216 *op=yuv[0];
231 int yuv[3];
243 RGBtoYUV(p,yuv, monochrome, luminance);
246 *(op++)=yuv[0];
247 *(op++)=yuv[1];
248 op[1]=yuv[2];
252 *op=yuv[0];