pub struct AsfWmv2Decoder<R: Read + Seek> { /* private fields */ }Expand description
ASF + WMV2 decoding pipeline.
This type owns the Read+Seek source, parses ASF headers, reassembles media objects
and decodes WMV2 frames into YuvFrame.
Implementations§
Source§impl<R: Read + Seek> AsfWmv2Decoder<R>
impl<R: Read + Seek> AsfWmv2Decoder<R>
Sourcepub fn open(reader: R) -> Result<Self>
pub fn open(reader: R) -> Result<Self>
Open an ASF/WMV stream and initialize the WMV2 decoder.
The decoder selects the first video stream whose FourCC is WMV2 or WMV1.
Sourcepub fn video_stream_info(&self) -> &VideoStreamInfo
pub fn video_stream_info(&self) -> &VideoStreamInfo
Return the selected video stream info.
Sourcepub fn next_frame(&mut self) -> Result<Option<DecodedFrame>>
pub fn next_frame(&mut self) -> Result<Option<DecodedFrame>>
Decode the next video frame.
Returns Ok(None) on end-of-stream.
Auto Trait Implementations§
impl<R> Freeze for AsfWmv2Decoder<R>where
R: Freeze,
impl<R> RefUnwindSafe for AsfWmv2Decoder<R>where
R: RefUnwindSafe,
impl<R> Send for AsfWmv2Decoder<R>where
R: Send,
impl<R> Sync for AsfWmv2Decoder<R>where
R: Sync,
impl<R> Unpin for AsfWmv2Decoder<R>where
R: Unpin,
impl<R> UnwindSafe for AsfWmv2Decoder<R>where
R: UnwindSafe,
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