YUV help

YUV help

Post by Jerry Su » Thu, 03 Nov 2005 12:41:49


Hi,
I just put Y value of a single YUV frame on a overlay surface and
made it visible.But why was the background is green?
 
 
 

YUV help

Post by Jerry Su » Thu, 03 Nov 2005 12:43:56

Hi,
I just put Y value of a single YUV frame on a overlay surface and
made it visible.But why was the background color green?

 
 
 

YUV help

Post by SmVyZW15IE » Fri, 04 Nov 2005 00:30:06


"Green" is the color of freshly formatted memory. ;)

Try setting all the YUV values in the buffer to black--you'll need to write
a function to set all these values. I believe black for the YUV colorspace
is 16-128-128.