Conversion.YUVToRGB

Static Method in Conversion

Declaration

public static Color YUVToRGB(float Y, float U, float V, SignalEncoding encoding = SignalEncoding.Rec709)

Description

Converts Y′UV components to an RGB color.

Parameters

YThe luma component of the color in the range [0..1].
UThe blue-difference chroma component of the color in the range [-0.436..0.436].
VThe red-difference chroma component of the color in the range [-0.615..0.615].
encodingThe encoding to use (default=Rec709).

Returns

ColorThe converted RGB color.