Struct aom_decode::FrameTempRef
source · pub struct FrameTempRef<'a>(_, _);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.