i read somewhere that converting from RGB to YUV could be done with this
but what is the conversion from YUV to RGB ?
Just treat it as three equations and solve it.
R = 1.164*(Y - 16) + crv*(V - 128)
G = 1.164*(Y - 16) - cgu*(U - 128) - cgv*(V - 128)
B = 1.164*(Y - 16) + cbu*(U - 128)
/* For SMPTE 170M (NTSC;MPEG-1) */
crv = 1.596f;
cbu = 2.018f;
cgu = 0.391f;
cgv = 0.813f;
Assuming input and output is between 0 and 255. You also need to be warry over overflow/underflow and clamp accordingly.
Krzysztof Kluczek, i watch Shrek2 for the 1st time tonight..nice avatar