[][src]Struct y4m::Frame

pub struct Frame<'f> { /* fields omitted */ }

A single frame.

Implementations

impl<'f> Frame<'f>[src]

pub fn new(planes: [&'f [u8]; 3], raw_params: Option<Vec<u8>>) -> Frame<'f>[src]

Create a new frame with optional parameters. No heap allocations are made.

pub fn from_u16(
    planes: [&'f [u16]; 3],
    raw_params: Option<Vec<u8>>
) -> Frame<'f>
[src]

Create a new frame from data in 16-bit format.

pub fn get_y_plane(&self) -> &[u8][src]

Return Y (first) plane.

pub fn get_u_plane(&self) -> &[u8][src]

Return U (second) plane. Empty in case of grayscale.

pub fn get_v_plane(&self) -> &[u8][src]

Return V (third) plane. Empty in case of grayscale.

pub fn get_raw_params(&self) -> Option<&[u8]>[src]

Return frame raw parameters if any.

Trait Implementations

impl<'f> Debug for Frame<'f>[src]

Auto Trait Implementations

impl<'f> RefUnwindSafe for Frame<'f>

impl<'f> Send for Frame<'f>

impl<'f> Sync for Frame<'f>

impl<'f> Unpin for Frame<'f>

impl<'f> UnwindSafe for Frame<'f>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.