Struct rsmpeg::avformat::AVStream [−][src]
pub struct AVStream { /* fields omitted */ }
Implementations
impl AVStream
[src]
impl AVStream
[src]pub fn as_ptr(&self) -> *const AVStream
[src]
pub fn as_mut_ptr(&mut self) -> *mut AVStream
[src]
pub unsafe fn set_ptr(&mut self, ptr: NonNull<AVStream>)
[src]
pub unsafe fn set_ptr(&mut self, ptr: NonNull<AVStream>)
[src]Safety
This function should only be called when the pointer is valid and the data it’s pointing to can be dropped.
pub unsafe fn from_raw(raw: NonNull<AVStream>) -> Self
[src]
pub unsafe fn from_raw(raw: NonNull<AVStream>) -> Self
[src]Safety
This function should only be called when the pointer is valid and the data it’s pointing to can be dropped.
pub fn into_raw(self) -> NonNull<AVStream>
[src]
impl AVStream
[src]
impl AVStream
[src]pub fn set_time_base(&mut self, time_base: AVRational)
[src]
impl AVStream
[src]
impl AVStream
[src]pub fn guess_framerate(&self) -> Option<AVRational>
[src]
pub fn guess_framerate(&self) -> Option<AVRational>
[src]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.
pub fn get_end_pts(&self) -> Option<i64>
[src]
pub fn get_end_pts(&self) -> Option<i64>
[src]Returns the pts of the last muxed packet + its duration the retuned value is None when used with a demuxer.
pub fn set_codecpar(&mut self, parameters: AVCodecParameters)
[src]
pub fn set_codecpar(&mut self, parameters: AVCodecParameters)
[src]Set codecpar of current stream with given parameters
.
impl<'stream> AVStream
[src]
impl<'stream> AVStream
[src]pub fn codecpar(&'stream self) -> AVCodecParametersRef<'stream>
[src]
pub fn codecpar(&'stream self) -> AVCodecParametersRef<'stream>
[src]Get codec parameters of current stream.
pub fn metadata(&'stream self) -> AVDictionaryRef<'stream>
[src]
pub fn metadata(&'stream self) -> AVDictionaryRef<'stream>
[src]Get metadata of current stream.
pub fn codecpar_mut(&'stream mut self) -> AVCodecParametersMut<'stream>
[src]
pub fn codecpar_mut(&'stream mut self) -> AVCodecParametersMut<'stream>
[src]Get mutable reference of codec parameters in current stream.
pub fn metadata_mut(&'stream mut self) -> AVDictionaryMut<'stream>
[src]
pub fn metadata_mut(&'stream mut self) -> AVDictionaryMut<'stream>
[src]Get mutable reference of metadata in current stream.