Struct rsmpeg::avcodec::AVCodec

source ·
pub struct AVCodec { /* private fields */ }

Implementations§

source§

impl AVCodec

source

pub fn as_ptr(&self) -> *const AVCodec

source

pub fn as_mut_ptr(&mut self) -> *mut AVCodec

source

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.

source

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.

source

pub fn into_raw(self) -> NonNull<AVCodec>

source§

impl AVCodec

source

pub fn find_decoder(id: AVCodecID) -> Option<AVCodecRef<'static>>

Find a static decoder instance with AVCodecID

source

pub fn find_encoder(id: AVCodecID) -> Option<AVCodecRef<'static>>

Find a static encoder instance with AVCodecID

source

pub fn find_decoder_by_name(name: &CStr) -> Option<AVCodecRef<'static>>

Find a static decoder instance with it short name.

source

pub fn find_encoder_by_name(name: &CStr) -> Option<AVCodecRef<'static>>

Find a static encoder instance with it short name.

source

pub fn name(&self) -> &CStr

Get name of the codec.

source

pub fn long_name(&self) -> &CStr

Get descriptive name for the codec.

source

pub fn iterate() -> AVCodecIter

Iterate over all registered codecs.

source§

impl<'codec> AVCodec

source

pub fn supported_framerates(&'codec self) -> Option<&'codec [AVRational]>

Return supported framerates of this AVCodec.

source

pub fn pix_fmts(&'codec self) -> Option<&'codec [AVPixelFormat]>

Return supported pix_fmts of this AVCodec.

source

pub fn supported_samplerates(&'codec self) -> Option<&'codec [i32]>

Return supported samplerates of this AVCodec.

source

pub fn sample_fmts(&'codec self) -> Option<&'codec [AVSampleFormat]>

Return supported sample_fmts of this AVCodec.

Trait Implementations§

source§

impl Deref for AVCodec

§

type Target = AVCodec

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Drop for AVCodec

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl UnsafeDerefMut for AVCodec

source§

unsafe fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value, unsafely. Read more
source§

impl Send for AVCodec

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.