pub struct AVStreamRef<'a> { /* private fields */ }
Implementations§
Methods from Deref<Target = AVStream>§
pub fn as_ptr(&self) -> *const AVStream
Sourcepub fn guess_framerate(&self) -> Option<AVRational>
pub fn guess_framerate(&self) -> Option<AVRational>
Guess the frame rate, based on both the container and codec information.
Return None when index is not valid. Some(0/1) if no idea.
Sourcepub fn codecpar(&'stream self) -> AVCodecParametersRef<'stream>
pub fn codecpar(&'stream self) -> AVCodecParametersRef<'stream>
Get codec parameters of current stream.
Sourcepub fn metadata(&'stream self) -> Option<AVDictionaryRef<'stream>>
pub fn metadata(&'stream self) -> Option<AVDictionaryRef<'stream>>
Get metadata of current stream.
Trait Implementations§
Source§impl<'a> Deref for AVStreamRef<'a>
impl<'a> Deref for AVStreamRef<'a>
Source§impl<'a> Drop for AVStreamRef<'a>
impl<'a> Drop for AVStreamRef<'a>
impl<'a> Send for AVStreamRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for AVStreamRef<'a>
impl<'a> RefUnwindSafe for AVStreamRef<'a>
impl<'a> !Sync for AVStreamRef<'a>
impl<'a> Unpin for AVStreamRef<'a>
impl<'a> UnwindSafe for AVStreamRef<'a>
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