Conversion.RGBToYCbCr
Static Method in Conversion
Declaration
public static YCbCr RGBToYCbCr(float R, float G, float B, SignalEncoding encoding = SignalEncoding.Rec709)
Description
Converts RGB components to Y′CbCr components.
Parameters
R | The red component of the color in the range [0..1]. |
G | The green component of the color in the range [0..1]. |
B | The blue component of the color in the range [0..1]. |
encoding | The encoding to use (default=Rec709). |
Returns
YCbCr | The converted Y′CbCr components. |