pub struct VideoDecoder(/* private fields */);
Implementations§
Source§impl VideoDecoder
impl VideoDecoder
pub fn width(&self) -> i32
pub fn height(&self) -> i32
pub fn pixel_format(&self) -> AVPixelFormat
pub fn frame_rate(&self) -> AVRational
pub fn sample_aspect_ratio(&self) -> AVRational
Methods from Deref<Target = GenericDecoder>§
pub fn codec_type(&self) -> AVMediaType
pub fn time_base(&self) -> AVRational
pub fn send_packet(&mut self, packet: &Packet) -> Result<(), FfmpegError>
pub fn send_eof(&mut self) -> Result<(), FfmpegError>
pub fn receive_frame(&mut self) -> Result<Option<VideoFrame>, FfmpegError>
Trait Implementations§
Source§impl Debug for VideoDecoder
impl Debug for VideoDecoder
Source§impl Deref for VideoDecoder
impl Deref for VideoDecoder
Auto Trait Implementations§
impl Freeze for VideoDecoder
impl RefUnwindSafe for VideoDecoder
impl Send for VideoDecoder
impl !Sync for VideoDecoder
impl Unpin for VideoDecoder
impl UnwindSafe for VideoDecoder
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