Struct ffmpeg_sys_next::AVCodecDescriptor
source · [−]#[repr(C)]pub struct AVCodecDescriptor {
pub id: AVCodecID,
pub type_: AVMediaType,
pub name: *const c_char,
pub long_name: *const c_char,
pub props: c_int,
pub mime_types: *const *const c_char,
pub profiles: *const AVProfile,
}Expand description
This struct describes the properties of a single codec described by an AVCodecID. @see avcodec_descriptor_get()
Fields
id: AVCodecIDtype_: AVMediaTypename: *const c_charName of the codec described by this descriptor. It is non-empty and unique for each codec descriptor. It should contain alphanumeric characters and ‘_’ only.
long_name: *const c_charA more descriptive name for this codec. May be NULL.
props: c_intCodec properties, a combination of AV_CODEC_PROP_* flags.
mime_types: *const *const c_charMIME type(s) associated with the codec. May be NULL; if not, a NULL-terminated array of MIME types. The first item is always non-NULL and is the preferred MIME type.
profiles: *const AVProfileIf non-NULL, an array of profiles recognized for this codec. Terminated with FF_PROFILE_UNKNOWN.
Trait Implementations
sourceimpl Clone for AVCodecDescriptor
impl Clone for AVCodecDescriptor
sourcefn clone(&self) -> AVCodecDescriptor
fn clone(&self) -> AVCodecDescriptor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AVCodecDescriptor
impl Debug for AVCodecDescriptor
sourceimpl PartialEq<AVCodecDescriptor> for AVCodecDescriptor
impl PartialEq<AVCodecDescriptor> for AVCodecDescriptor
sourcefn eq(&self, other: &AVCodecDescriptor) -> bool
fn eq(&self, other: &AVCodecDescriptor) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AVCodecDescriptor) -> bool
fn ne(&self, other: &AVCodecDescriptor) -> bool
This method tests for !=.
impl Copy for AVCodecDescriptor
impl Eq for AVCodecDescriptor
impl StructuralEq for AVCodecDescriptor
impl StructuralPartialEq for AVCodecDescriptor
Auto Trait Implementations
impl RefUnwindSafe for AVCodecDescriptor
impl !Send for AVCodecDescriptor
impl !Sync for AVCodecDescriptor
impl Unpin for AVCodecDescriptor
impl UnwindSafe for AVCodecDescriptor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more