Struct aom_decode::FrameTempRef
source · pub struct FrameTempRef<'a>(/* private fields */);
Expand description
Frame held in decoder’s internal state. Must be dropped before the next call.
Implementations§
source§impl FrameTempRef<'_>
impl FrameTempRef<'_>
sourcepub fn rows_iter(&self) -> Result<RowsIters<'_>>
pub fn rows_iter(&self) -> Result<RowsIters<'_>>
Access pixel data
Iterator over rows of image data.
The data can be grayscale (mono) or YUV (YCbCr), so the result is wrapped in an enum
sourcepub fn chroma_sampling(&self) -> Result<ChromaSampling>
pub fn chroma_sampling(&self) -> Result<ChromaSampling>
Whether image uses chroma subsampling or not
sourcepub fn color_primaries(&self) -> Option<ColorPrimaries>
pub fn color_primaries(&self) -> Option<ColorPrimaries>
What flavor of RGB color this should be converted to
sourcepub fn transfer_characteristics(&self) -> Option<TransferCharacteristics>
pub fn transfer_characteristics(&self) -> Option<TransferCharacteristics>
That’s basically gamma correction
sourcepub fn matrix_coefficients(&self) -> Option<MatrixCoefficients>
pub fn matrix_coefficients(&self) -> Option<MatrixCoefficients>
Flavor of YUV used for the pixels
See yuv crate for conversion to RGB.
sourcepub fn chroma_sample_position(&self) -> Option<ChromaSamplePosition>
pub fn chroma_sample_position(&self) -> Option<ChromaSamplePosition>
Alignment of the chroma channels
Routines in this library don’t support this detail. Also, chroma subsampling is useless in AV1, so please don’t use it.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for FrameTempRef<'a>
impl<'a> RefUnwindSafe for FrameTempRef<'a>
impl<'a> !Send for FrameTempRef<'a>
impl<'a> !Sync for FrameTempRef<'a>
impl<'a> Unpin for FrameTempRef<'a>
impl<'a> !UnwindSafe for FrameTempRef<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more