|
Here is the conversion formulas. I think it is easy to implement.
RGB to YUV Conversion Formula
Y = 0.299 * R + 0.587 * G + 0.114 * B
U'= (B - Y) * 0.565
V'= (R - Y) * 0.713 YUV to RGB Conversion Formula R = Y + 1.403 * V
G = Y - 0.344 * U - 0.714 * V
B = Y + 1.770 * U
|