Struct Frame
struct Frame<T: Pixel> { ... }
Represents a raw video frame
Fields
planes: [Plane<T>; 3]Planes constituting the frame.
Implementations
impl<T: Pixel> Frame<T>
fn new_with_padding(width: usize, height: usize, chroma_sampling: ChromaSampling, luma_padding: usize) -> SelfCreates a new frame with the given parameters.
Allocates data for the planes.
impl<T> Any for Frame<T>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for Frame<T>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for Frame<T>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for Frame<T>
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> Freeze for Frame<T>
impl<T> From for Frame<T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> RefUnwindSafe for Frame<T>
impl<T> Send for Frame<T>
impl<T> Sync for Frame<T>
impl<T> ToOwned for Frame<T>
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T> Unpin for Frame<T>
impl<T> UnsafeUnpin for Frame<T>
impl<T> UnwindSafe for Frame<T>
impl<T, U> Into for Frame<T>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for Frame<T>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for Frame<T>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T: $crate::clone::Clone + Pixel> Clone for Frame<T>
fn clone(self: &Self) -> Frame<T>
impl<T: $crate::cmp::Eq + Pixel> Eq for Frame<T>
impl<T: $crate::cmp::PartialEq + Pixel> PartialEq for Frame<T>
fn eq(self: &Self, other: &Frame<T>) -> bool
impl<T: $crate::fmt::Debug + Pixel> Debug for Frame<T>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result