Skip to main content

gamut_matrix

Function gamut_matrix 

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

The linear-light matrix from from’s primaries to to’s, both with a D65 white point, as rows. BT.601 is taken as BT.709, as the SDR decode path takes it.