pub struct Codec<Type = UnknownType> { /* private fields */ }Implementations§
Source§impl Codec<UnknownType>
impl Codec<UnknownType>
Sourcepub unsafe fn from_raw(ptr: *const AVCodec) -> Option<Self>
pub unsafe fn from_raw(ptr: *const AVCodec) -> Option<Self>
Create a new reference to a codec from a raw pointer.
Returns None if ptr is null.
pub fn is_video(&self) -> bool
pub fn video(self) -> Option<Video>
pub fn is_audio(&self) -> bool
pub fn audio(self) -> Option<Audio>
pub fn is_data(&self) -> bool
pub fn data(self) -> Option<Data>
pub fn is_subtitle(&self) -> bool
pub fn subtitle(self) -> Option<Subtitle>
pub fn is_attachment(&self) -> bool
pub fn attachment(self) -> Option<Attachment>
Source§impl<T> Codec<T>
impl<T> Codec<T>
pub fn as_ptr(&self) -> *const AVCodec
pub fn is_encoder(&self) -> bool
pub fn is_decoder(&self) -> bool
pub fn name(&self) -> &str
pub fn description(&self) -> &str
pub fn medium(&self) -> Type
pub fn id(&self) -> Id
pub fn max_lowres(&self) -> i32
pub fn capabilities(&self) -> Capabilities
pub fn profiles(&self) -> Option<ProfileIter>
pub fn descriptor(self) -> Option<CodecDescriptor>
Source§impl Codec<AudioType>
impl Codec<AudioType>
pub fn rates(&self) -> Option<SampleRateIter<'_>>
pub fn formats(&self) -> Option<SampleFormatIter<'_>>
pub fn channel_layouts(&self) -> Option<ChannelLayoutMaskIter>
pub fn ch_layouts(&self) -> Option<ChannelLayoutIter<'_>>
Trait Implementations§
impl<Type: Copy> Copy for Codec<Type>
impl<Type: Eq> Eq for Codec<Type>
impl<T> Send for Codec<T>
impl<Type> StructuralPartialEq for Codec<Type>
impl<T> Sync for Codec<T>
Auto Trait Implementations§
impl<Type> Freeze for Codec<Type>
impl<Type> RefUnwindSafe for Codec<Type>where
Type: RefUnwindSafe,
impl<Type> Unpin for Codec<Type>where
Type: Unpin,
impl<Type> UnwindSafe for Codec<Type>where
Type: UnwindSafe,
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