pub struct AVCodec { /* private fields */ }
Implementations§
source§impl AVCodec
impl AVCodec
pub fn as_ptr(&self) -> *const AVCodec
pub fn as_mut_ptr(&mut self) -> *mut AVCodec
sourcepub unsafe fn set_ptr(&mut self, ptr: NonNull<AVCodec>)
pub unsafe fn set_ptr(&mut self, ptr: NonNull<AVCodec>)
§Safety
This function should only be called when the pointer is valid and the data it’s pointing to can be dropped.
sourcepub unsafe fn from_raw(raw: NonNull<AVCodec>) -> Self
pub unsafe fn from_raw(raw: NonNull<AVCodec>) -> Self
§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<AVCodec>
source§impl AVCodec
impl AVCodec
sourcepub fn find_decoder(id: AVCodecID) -> Option<AVCodecRef<'static>>
pub fn find_decoder(id: AVCodecID) -> Option<AVCodecRef<'static>>
Find a static decoder instance with AVCodecID
sourcepub fn find_encoder(id: AVCodecID) -> Option<AVCodecRef<'static>>
pub fn find_encoder(id: AVCodecID) -> Option<AVCodecRef<'static>>
Find a static encoder instance with AVCodecID
sourcepub fn find_decoder_by_name(name: &CStr) -> Option<AVCodecRef<'static>>
pub fn find_decoder_by_name(name: &CStr) -> Option<AVCodecRef<'static>>
Find a static decoder instance with it short name.
sourcepub fn find_encoder_by_name(name: &CStr) -> Option<AVCodecRef<'static>>
pub fn find_encoder_by_name(name: &CStr) -> Option<AVCodecRef<'static>>
Find a static encoder instance with it short name.
sourcepub fn iterate() -> AVCodecIter ⓘ
pub fn iterate() -> AVCodecIter ⓘ
Iterate over all registered codecs.
source§impl<'codec> AVCodec
impl<'codec> AVCodec
sourcepub fn supported_framerates(&'codec self) -> Option<&'codec [AVRational]>
pub fn supported_framerates(&'codec self) -> Option<&'codec [AVRational]>
Return supported framerates of this AVCodec
.
sourcepub fn pix_fmts(&'codec self) -> Option<&'codec [AVPixelFormat]>
pub fn pix_fmts(&'codec self) -> Option<&'codec [AVPixelFormat]>
Return supported pix_fmts of this AVCodec
.
sourcepub fn supported_samplerates(&'codec self) -> Option<&'codec [i32]>
pub fn supported_samplerates(&'codec self) -> Option<&'codec [i32]>
Return supported samplerates of this AVCodec
.
sourcepub fn sample_fmts(&'codec self) -> Option<&'codec [AVSampleFormat]>
pub fn sample_fmts(&'codec self) -> Option<&'codec [AVSampleFormat]>
Return supported sample_fmts of this AVCodec
.
Trait Implementations§
source§impl UnsafeDerefMut for AVCodec
impl UnsafeDerefMut for AVCodec
impl Send for AVCodec
Auto Trait Implementations§
impl Freeze for AVCodec
impl RefUnwindSafe for AVCodec
impl !Sync for AVCodec
impl Unpin for AVCodec
impl UnwindSafe for AVCodec
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