How to copy YUV planar formats data(YV12,I420,YVU9 ) to DirectDraw

How to copy YUV planar formats data(YV12,I420,YVU9 ) to DirectDraw

Post by QW5vb3AgTW » Sat, 21 Aug 2004 21:47:01


I have created a YUV offscreen surface to render a YUV format data buffer.
when the YUV format is packed format such as UYVY ,I succeed to render the
data using DirectDraw.
but when deal with the planar YUV formats such as YV12, I420 etc,I do not
know how to copy the data to a DirectDraw YUV format surface.