Skip to main content

gamut_matrix

Function gamut_matrix 

Source
pub fn gamut_matrix(from: ColorPrimaries, to: ColorPrimaries) -> [[f32; 3]; 3]
Expand description

Linear RGB matrix (rows) from from to to primaries, D65 white. BT.601 is treated as BT.709, as the SDR path does.