pub struct Wmv2Decoder { /* private fields */ }Expand description
WMV2 (Windows Media Video 8) decoder.
The picture header parsing and macroblock decode paths are aligned with upstream.
Implementations§
Source§impl Wmv2Decoder
impl Wmv2Decoder
Sourcepub fn new(width: u32, height: u32, extradata: &[u8]) -> Self
pub fn new(width: u32, height: u32, extradata: &[u8]) -> Self
Create a decoder for a fixed resolution.
extradata is the 4-byte WMV2 ext header typically carried in ASF stream properties.
pub fn width(&self) -> u32
pub fn height(&self) -> u32
Sourcepub fn current_frame(&self) -> &YuvFrame
pub fn current_frame(&self) -> &YuvFrame
Borrow the internal YUV420p frame buffer.
The returned reference stays valid until the next successful decode.
Auto Trait Implementations§
impl Freeze for Wmv2Decoder
impl RefUnwindSafe for Wmv2Decoder
impl Send for Wmv2Decoder
impl Sync for Wmv2Decoder
impl Unpin for Wmv2Decoder
impl UnwindSafe for Wmv2Decoder
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