[−][src]Struct y4m::Frame
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]
planes: [&'f [u16]; 3],
raw_params: Option<Vec<u8>>
) -> Frame<'f>
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,