pub struct Frame<T: Pixel> {
pub planes: [Plane<T>; 3],
}
Expand description
Represents a raw video frame
Fields§
§planes: [Plane<T>; 3]
Planes constituting the frame.
Implementations§
source§impl<T: Pixel> Frame<T>
impl<T: Pixel> Frame<T>
sourcepub fn new_with_padding(
width: usize,
height: usize,
chroma_sampling: ChromaSampling,
luma_padding: usize
) -> Self
pub fn new_with_padding( width: usize, height: usize, chroma_sampling: ChromaSampling, luma_padding: usize ) -> Self
Creates a new frame with the given parameters.
Allocates data for the planes.
Trait Implementations§
source§impl<T: PartialEq + Pixel> PartialEq for Frame<T>
impl<T: PartialEq + Pixel> PartialEq for Frame<T>
impl<T: Eq + Pixel> Eq for Frame<T>
impl<T: Pixel> StructuralPartialEq for Frame<T>
Auto Trait Implementations§
impl<T> Freeze for Frame<T>
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: RefUnwindSafe + UnwindSafe,
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