pub struct SimpleReader { /* private fields */ }
Expand description
Simple Reader for Demuxing Media Files.
Implementations§
Source§impl SimpleReader
impl SimpleReader
Sourcepub fn open<P>(
path: P,
format_options: Option<&str>,
time_unit: Option<i32>,
) -> AVResult<Self>
pub fn open<P>( path: P, format_options: Option<&str>, time_unit: Option<i32>, ) -> AVResult<Self>
Sourcepub fn frame_infos(&self) -> Vec<FrameInfo>
pub fn frame_infos(&self) -> Vec<FrameInfo>
Returns a list to describe the frame for each stream.
pub fn frames(&mut self) -> FrameIter<'_> ⓘ
Sourcepub fn read_frame(&mut self) -> Option<AVPacketOwned>
pub fn read_frame(&mut self) -> Option<AVPacketOwned>
Return the next frame of a stream.
Sourcepub fn start_time(&self) -> i64
pub fn start_time(&self) -> i64
Returns the position of the first frame of the component.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimpleReader
impl RefUnwindSafe for SimpleReader
impl !Send for SimpleReader
impl !Sync for SimpleReader
impl Unpin for SimpleReader
impl UnwindSafe for SimpleReader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more