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
Auto Trait Implementations
impl<R> RefUnwindSafe for Ivf<R> where
R: RefUnwindSafe,
R: RefUnwindSafe,
impl<R> Send for Ivf<R> where
R: Send,
R: Send,
impl<R> Sync for Ivf<R> where
R: Sync,
R: Sync,
impl<R> Unpin for Ivf<R> where
R: Unpin,
R: Unpin,
impl<R> UnwindSafe for Ivf<R> where
R: UnwindSafe,
R: UnwindSafe,
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,
pub 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> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
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.
pub 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>,