Skip to content

Latest commit

 

History

History
81 lines (64 loc) · 2.54 KB

nf-directxmath-xmcoloryuvtorgb_hd.md

File metadata and controls

81 lines (64 loc) · 2.54 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:directxmath.XMColorYUVToRGB_HD
XMColorYUVToRGB_HD function (directxmath.h)
Converts YUV color values to RGB HD color values.
Use DirectX..XMColorYUVToRGB_HD
XMColorYUVToRGB_HD
XMColorYUVToRGB_HD method [DirectX Math Support APIs]
dxmath.xmcoloryuvtorgb_hd
dxmath\xmcoloryuvtorgb_hd.htm
dxmath
M:Microsoft.directx_sdk.color.XMColorYUVToRGB_HD(XMVECTOR)
12/05/2018
Use DirectX..XMColorYUVToRGB_HD, XMColorYUVToRGB_HD, XMColorYUVToRGB_HD method [DirectX Math Support APIs], dxmath.xmcoloryuvtorgb_hd
directxmath.h
Windows
Use DirectX.
Windows
19H1
XMColorYUVToRGB_HD
directxmath/XMColorYUVToRGB_HD
c++
APIRef
kbSyntax
COM
DirectXMath.h
XMColorYUVToRGB_HD

XMColorYUVToRGB_HD function

-description

Converts YUV color values to RGB HD color values.

-parameters

-param yuv [in]

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).

-returns

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.

-remarks

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.
 

Platform Requirements

Microsoft Visual Studio 2010 or Microsoft Visual Studio 2012 with the Windows SDK for Windows 8. Supported for Win32 desktop apps, Windows Store apps, and Windows Phone 8 apps.

-see-also

DirectXMath Library Color Functions

XMColorRGBToYUV_HD