RE: How to copy YUV planar formats data(YV12,I420,YVU9 ) to Direct

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Anoop Mishra (AnoopMishra_at_discussions.microsoft.com)
Date: 08/23/04


Date: Mon, 23 Aug 2004 02:09:04 -0700

Sir, It's true, to transform Planer into Packed format when DirectDraw
surface supports only Packed YUV pixel format.

Here i want to copy the Planer YUV raw video data (YVU9/YV12) onto the
Planer YUV (YVU9/YV12) pixel format DirectDraw surface. DirectDraw Surface
supports Planer YUV pixel format also.

So ideally i do not require transformation of Planer YUV format into packed
YUV format.

Thanks in advance to the Discussion Group...

"Don Jordan" wrote:

> If the DirectDraw surface does not support those planar YUV video formats,
> then you will have to convert it to a format that can be used. You said
> youself in your first post that the DirectDraw surface worked for the UYVY
> format. If all you need to do is a memory move, then the web site url I
> posted earlier will give you the necessary information on the planar YUV
> formats to calculate the size of the buffer.
>



Relevant Pages

  • Re: Problem: color space conversion by DirectShow
    ... format before inserting the CSC and the video converted will ... DirectDraw if its OK and DirectDraw will support any format ... the video card driver lists as supported. ... the stride to be a multiple of 64. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Representing image data
    ... any application that uses raster image data. ... row and store it in a format appropriate for the application. ... With ImageMagick the only way to change the pixel format is to ... interface to return a pointer to an array of pixels; ...
    (comp.lang.ada)
  • Re: [PATCH 2/3] mx3_camera: Support correctly the YUV222 and BAYER configurations of CSI
    ... The YUV422 format is managed to be converted in IPU internal YUV444 format ... That's why there is a first handshake of the pixel format in mx3_camera_get_formats ... This translation is not needed with the tools I introduce in this patch ...
    (Linux-Kernel)
  • Re: colors are slightly off importing gifs and bmps
    ... Since the problem is clearly in pixel format not matching what you have on ... >> If you tried to bit shift each pixel in your image, on demand, then this ... >> Tim Wilson ...
    (microsoft.public.dotnet.framework.compactframework)
  • RE: GDI+ and Image buffer
    ... I do not think there is direct support in GDI/GDI+ side for YUY2 ... We may have to use DirectDraw to translate the format into some ...
    (microsoft.public.win32.programmer.gdi)