Y = (0.257 * R) + (0.504 * G) + (0.098 * B) + 16
Cr = V = (0.439 * R) - (0.368 * G) - (0.071 * B) + 128
Cb = U = -(0.148 * R) - (0.291 * G) + (0.439 * B) + 128
B = 1.164(Y - 16) + 2.018(U - 128)
G = 1.164(Y - 16) - 0.813(V - 128) - 0.391(U - 128)
R = 1.164(Y - 16) + 1.596(V - 128)
Y = 0.299R + 0.587G + 0.114B
U'= (B-Y)*0.565
V'= (R-Y)*0.713
R = Y + 1.403V'
G = Y - 0.344U' - 0.714V'
B = Y + 1.770U'
Modifications
10 Sep. 2004 Peter Vanroose Inlined all 1-line methods in class decl
Definition in file oxp_yuv_to_rgb.h.
Go to the source code of this file.
Functions | |
| unsigned char | oxp_yuv_to_rgb_byte_clamp (int x) |
| void | oxp_yuv_to_rgb (unsigned char y, unsigned char u, unsigned char v, unsigned char *rgb) |
|
||||||||||||||||||||
|
Definition at line 48 of file oxp_yuv_to_rgb.h. |
|
|
Definition at line 39 of file oxp_yuv_to_rgb.h. |
1.4.4