pub struct Frame { /* private fields */ }Expand description
A decoded AV1 frame with zero-copy access to pixel data
Frames are cheap to clone (they use Arc internally).
Multiple Frame instances can safely reference the same decoded data.
Implementations§
Source§impl Frame
impl Frame
Sourcepub fn pixel_layout(&self) -> PixelLayout
pub fn pixel_layout(&self) -> PixelLayout
Pixel layout (chroma subsampling)
Sourcepub fn planes(&self) -> Planes<'_>
pub fn planes(&self) -> Planes<'_>
Access pixel data according to bit depth
Returns an enum that dispatches to either 8-bit or 16-bit plane access.
Sourcepub fn color_info(&self) -> ColorInfo
pub fn color_info(&self) -> ColorInfo
Color metadata
Sourcepub fn content_light(&self) -> Option<ContentLightLevel>
pub fn content_light(&self) -> Option<ContentLightLevel>
HDR content light level metadata, if present
Sourcepub fn mastering_display(&self) -> Option<MasteringDisplay>
pub fn mastering_display(&self) -> Option<MasteringDisplay>
HDR mastering display metadata, if present
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frame
impl !RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl !UnwindSafe for Frame
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