1 Index: oggplay_yuv2rgb.c
2 ===================================================================
3 --- oggplay_yuv2rgb.c (revision 3733)
4 +++ oggplay_yuv2rgb.c (working copy)
7 for (j = 0; j < yuv->y_width; j += 2) {
10 + short pr, pg, pb, y;
13 - //pr = ((128 + (ptrv[j/2] - 128) * 292) >> 8) - 16; /* 1.14 * 256 */
14 - pr = (-41344 + ptrv[j/2] * 292) >> 8;
15 - //pg = ((128 - (ptru[j/2] - 128) * 101 - (ptrv[j/2] - 128) * 149) >> 8)-16;
16 - // /* 0.395 & 0.581 */
17 - pg = (28032 - ptru[j/2] * 101 - ptrv[j/2] * 149) >> 8;
18 - //pb = ((128 + (ptru[j/2] - 128) * 520) >> 8) - 16; /* 2.032 */
19 - pb = (-70528 + ptru[j/2] * 520) >> 8;
20 + pr = (-56992 + ptrv[j/2] * 409) >> 8;
21 + pg = (34784 - ptru[j/2] * 100 - ptrv[j/2] * 208) >> 8;
22 + pb = (-70688 + ptru[j/2] * 516) >> 8;
27 + y = 298*ptry[j] >> 8;
37 - r = ptry[j + 1] + pr;
38 - g = ptry[j + 1] + pg;
39 - b = ptry[j + 1] + pb;
40 + y = 298*ptry[j + 1] >> 8;
49 for (j = 0; j < yuv->y_width; j += 2) {
52 + short pr, pg, pb, y;
55 - //pr = ((128 + (ptrv[j/2] - 128) * 292) >> 8) - 16; /* 1.14 * 256 */
56 - pr = (-41344 + ptrv[j/2] * 292) >> 8;
57 - //pg = ((128 - (ptru[j/2] - 128) * 101 - (ptrv[j/2] - 128) * 149) >> 8)-16;
58 - // /* 0.395 & 0.581 */
59 - pg = (28032 - ptru[j/2] * 101 - ptrv[j/2] * 149) >> 8;
60 - //pb = ((128 + (ptru[j/2] - 128) * 520) >> 8) - 16; /* 2.032 */
61 - pb = (-70528 + ptru[j/2] * 520) >> 8;
62 + pr = (-56992 + ptrv[j/2] * 409) >> 8;
63 + pg = (34784 - ptru[j/2] * 100 - ptrv[j/2] * 208) >> 8;
64 + pb = (-70688 + ptru[j/2] * 516) >> 8;
69 + y = 298*ptry[j] >> 8;
79 - r = ptry[j + 1] + pr;
80 - g = ptry[j + 1] + pg;
81 - b = ptry[j + 1] + pb;
82 + y = 298*ptry[j + 1] >> 8;