XMColorYUVToRGB_HD function (directxmath.h)
Converts YUV color values to RGB HD color values.
C++
XMVECTOR XM_CALLCONV XMColorYUVToRGB_HD(
[in] FXMVECTOR yuv
) noexcept;
[in] yuv
Color value to convert in Luma-Chrominance (YUV) aka YCbCr. The X element contains Luma (Y, 0.0 to 1.0), the Y element contains Blue-difference chroma (U, -0.5 to 0.5), the Z element contains the Red-difference chroma (V, -0.5 to 0.5), and the W element contains the Alpha (0.0 to 1.0).
The converted color value. X element is Red, Y element is Green, Z element is Blue, and W element is Alpha (a copy of yuv.w). Each has a range of 0.0 to 1.0.
Converts using ITU-R BT.709 W(r) = 0.2126 W(b) = 0.0722 U(max) = 0.436 V(max) = 0.615.
Note
XMColorYUVToRGB_HD
is new for DirectXMath and is not available for XNAMath 2.x.Requirement | Value |
---|---|
Target Platform | Windows |
Header | directxmath.h |