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

ID: Q153266


The information in this article applies to:
  • Microsoft DirectX Software Development Kit, version 2.0


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.

Keywords : kbDirectDraw kbSDKWin32 kbDirectX200
Version : WINDOWS:2.0
Platform : WINDOWS
Issue type : kbinfo


Last Reviewed: October 8, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.