Struct vp9_parser::ivf::Ivf[][src]

pub struct Ivf<R> { /* fields omitted */ }

IVF is a simple container format for raw VP9 data.

Implementations

impl<R: Read> Ivf<R>[src]

pub fn new(reader: R) -> Result<Self, IvfError>[src]

Creates a new IVF using the given reader.

pub fn width(&self) -> u16[src]

The initial width of the video.

pub fn height(&self) -> u16[src]

The initial height of the video.

pub fn frame_rate_rate(&self) -> u32[src]

The framerate of the video (frame_rate_rate * frame_rate_scale).

Example: 24 fps with a scale of 1000 -> 24000

pub fn frame_rate_scale(&self) -> u32[src]

Divider of the seconds.

pub fn frame_count(&self) -> u32[src]

Number of frames stored inside the IVF. A frame can contain a frame or a super frame.

pub fn read_frame(&mut self) -> Result<Option<Frame>, IvfError>[src]

Reads the next frame inside the IVF. Returns None if the end of the file has been reached.

A frame contains a VP9 bitstream packet which can contain either a normal frame or a super frame.

Trait Implementations

impl<R: Clone> Clone for Ivf<R>[src]

impl<R: Debug> Debug for Ivf<R>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for Ivf<R> where
    R: RefUnwindSafe

impl<R> Send for Ivf<R> where
    R: Send

impl<R> Sync for Ivf<R> where
    R: Sync

impl<R> Unpin for Ivf<R> where
    R: Unpin

impl<R> UnwindSafe for Ivf<R> where
    R: UnwindSafe

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.