Struct av_metrics::video::Frame
source · [−]Fields
planes: [Plane<T>; 3]
Planes constituting the frame.
Implementations
sourceimpl<T> Frame<T> where
T: Pixel,
impl<T> Frame<T> where
T: Pixel,
sourcepub 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more