Export (0) Print
Expand All
Expand Minimize

D3D11_VIDEO_COLOR_YCbCrA structure

Specifies a YCbCr color value.

Syntax


typedef struct D3D11_VIDEO_COLOR_YCbCrA {
  float Y;
  float Cb;
  float Cr;
  float A;
} D3D11_VIDEO_COLOR_YCbCrA;

Members

Y

The Y luma value.

Cb

The Cb chroma value.

Cr

The Cr chroma value.

A

The alpha value. Values range from 0 (transparent) to 1 (opaque).

Remarks

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.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

D3d11.h

See also

About YUV Video

 

 

Community Additions

ADD
Show:
© 2014 Microsoft