We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 921942d commit 37058d9Copy full SHA for 37058d9
1 file changed
src/rust_api.rs
@@ -416,12 +416,12 @@ impl Picture {
416
417
/// Chromaticity coordinates of the source colour primaries.
418
pub fn color_primaries(&self) -> pixel::ColorPrimaries {
419
- self.inner.seq_hdr.as_ref().unwrap().pri.try_into().unwrap()
+ self.inner.seq_hdr.as_ref().unwrap().pri.into()
420
}
421
422
/// Transfer characteristics function.
423
pub fn transfer_characteristic(&self) -> pixel::TransferCharacteristic {
424
- self.inner.seq_hdr.as_ref().unwrap().trc.try_into().unwrap()
+ self.inner.seq_hdr.as_ref().unwrap().trc.into()
425
426
427
/// Matrix coefficients used in deriving luma and chroma signals from the
0 commit comments