diff --git a/src/converter/mod.rs b/src/converter/mod.rs index 1287cd8..7ddf47b 100644 --- a/src/converter/mod.rs +++ b/src/converter/mod.rs @@ -171,7 +171,7 @@ pub struct ColorConverterConfig { } impl ColorConverterConfig { - /// Create a new configuration with BT.709 color space and full range. + /// Create a new configuration with BT.709 color space and limited range. pub fn new( width: u32, height: u32, @@ -184,7 +184,7 @@ impl ColorConverterConfig { input_format, output_format, color_space: ColorSpace::Bt709, - full_range: true, + full_range: false, sdr_reference_white_nits: 203.0, } } diff --git a/src/encoder/mod.rs b/src/encoder/mod.rs index 09beb7e..8f324a4 100644 --- a/src/encoder/mod.rs +++ b/src/encoder/mod.rs @@ -244,13 +244,13 @@ pub struct ColorDescription { } impl ColorDescription { - /// BT.709 color description (standard SDR). + /// BT.709 color description (standard SDR, limited range). pub fn bt709() -> Self { Self { color_primaries: 1, transfer_characteristics: 1, matrix_coefficients: 1, - full_range: true, + full_range: false, } } @@ -993,7 +993,7 @@ mod tests { assert_eq!(cd.color_primaries, 1); assert_eq!(cd.transfer_characteristics, 1); assert_eq!(cd.matrix_coefficients, 1); - assert!(cd.full_range); + assert!(!cd.full_range); } #[test]