Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/converter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/encoder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

Expand Down Expand Up @@ -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]
Expand Down
Loading