Tuesday, August 20, 2013








RGB to YUV Conversion

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

YUV to RGB Conversion

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)



Q: what does green frame/display signify as visual artifacts ?

That means there is no data to display.

for No data ,the information/data/value, coming with buffer/frame from codec for rendering,  has to be 0 i.e y= 0 u = 0 v = 0.
put y u v  as 0 in YUV to RGB conversion formula.

B < 0 , R < 0 while G > 0 ....Since We have only positive value or the value in range of 0 to 255 for G , so we get to see green display/frame in the above mentioned case.


No comments:

Post a Comment