// d3d10umddi.h
typedef struct D3D11_1DDI_VIDEO_COLOR_YCbCrA {
float Y;
float Cb;
float Cr;
float A;
} D3D11_1DDI_VIDEO_COLOR_YCbCrA;
View the official Windows Driver Kit DDI referenceNo description available.
Specifies a YCbCr color value.
YThe Y (luma) value.
CbThe Cb chroma value.
CrThe Cr chroma value.
AThe alpha value. Values range from 0 (transparent) to 1 (opaque).
Values have a nominal range of [0...1]. Given a format with n bits per channel, the value of each color component is calculated as follows:
val = f * ((1 << n)-1)
For example, for 8-bit YUV formats, val = BYTE(f * 255.0). Reference black is (0.0625, 0.5, 0.5), which corresponds to (16, 128, 128) in an 8-bit representation.