Struct av_metrics_decoders::Frame
pub struct Frame<T>where
T: Pixel,{
pub planes: [Plane<T>; 3],
}
Fields§
§planes: [Plane<T>; 3]
Planes constituting the frame.
Implementations§
§impl<T> Frame<T>where
T: Pixel,
impl<T> Frame<T>where T: Pixel,
pub fn new_with_padding(
width: usize,
height: usize,
chroma_sampling: ChromaSampling,
luma_padding: usize
) -> Frame<T>
pub fn new_with_padding( width: usize, height: usize, chroma_sampling: ChromaSampling, luma_padding: usize ) -> Frame<T>
Creates a new frame with the given parameters.
Allocates data for the planes.
Trait Implementations§
impl<T> Eq for Frame<T>where T: Eq + Pixel,
impl<T> StructuralEq for Frame<T>where T: Pixel,
impl<T> StructuralPartialEq for Frame<T>where T: Pixel,
Auto Trait Implementations§
impl<T> RefUnwindSafe for Frame<T>where T: RefUnwindSafe,
impl<T> Send for Frame<T>
impl<T> Sync for Frame<T>
impl<T> Unpin for Frame<T>where T: Unpin,
impl<T> UnwindSafe for Frame<T>where T: UnwindSafe + RefUnwindSafe,
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