Microsoft KB Archive/153266

{|
 * width="100%"|

INFO: DirectX 2 SDK Doesn't Provide YUV Color Format and Conversion

 * }

Q153266

-

The information in this article applies to:


 * Microsoft DirectX Software Development Kit, version 2.0
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Professional

-

SUMMARY
DirectDraw does not provide YUV to RGB conversion in software. The video hardware must support the YUV format on a surface for you to provide it with YUV data. You need to call GetPixelFormat on your DirectDraw surface and if you find that both the DDPF_FOURCC and DDPF_YUV flags are set in the dwFlags field of the DDPIXELFORMAT structure, then your DirectDraw surface supports the YUV format. If these flags are not set, then you cannot send YUV data to the surface. You need to convert the data yourself to RGB.

Additional query words:

Keywords : kbDirectDraw kbSDKWin32 kbDirectX200

Issue type : kbinfo

Technology : kbwin2000AdvServ kbwin2000AdvServSearch kbwin2000Serv kbwin2000ServSearch kbwin2000Search kbwin2000ProSearch kbwin2000Pro kbSDKDirectXsearch kbAudDeveloper kbWinAdvServSearch kbSDKDirectX200