D3DCOLOR_XYUV

Initializes a color with the (y, u, v) values.

#define D3DCOLOR_XYUV(y,u,v) D3DCOLOR_ARGB(0xff,y,u,v)

Parameters

y
Luminance component of the color. This value must be in the range 0 through 255.
u
Blue brightness of the color. This value must be in the range 0 through 255.
v
Red brightness of the color. This value must be in the range 0 through 255.

Return Values

Returns the D3DCOLOR value that corresponds to the supplied (y, u, v) values.

Remarks

An RGB color can be reduced to 16 bits per pixel by conversion to luminance and color differences with the following equations:

y (luminance) = 0.299*red + 0.587*green + 0.114*blue
u = blue - luminance
v = red - luminance 

See Also

D3DCOLOR_ARGBD3DCOLOR_AYUV