pub struct CodecInfo {
pub codec_name: String,
pub codec_long_name: String,
pub desc_name: String,
pub media_type: AVMediaType,
pub codec_id: AVCodecID,
pub codec_capabilities: i32,
}Expand description
Holds metadata about a specific codec recognized by FFmpeg.
This struct consolidates information from both AVCodec (via codec_name, codec_long_name,
etc.) and the AVCodecDescriptor (via desc_name) into a single, user-friendly format. It
can be used to inspect properties of encoders or decoders available in your FFmpeg build.
§Fields
codec_name- The short name of the codec (e.g.,"h264","aac").codec_long_name- A more descriptive name of the codec (e.g.,"H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10").desc_name- The descriptor’s name, typically very similar or identical tocodec_name.media_type- The media category (AVMEDIA_TYPE_AUDIO,AVMEDIA_TYPE_VIDEO, etc.).codec_id- The internal FFmpegAVCodecID, an enum identifying the codec.codec_capabilities- A bitmask indicating codec capabilities (e.g., intra-only, lossless).
Fields§
§codec_name: StringThe short name from AVCodec.name.
codec_long_name: StringThe long name from AVCodec.long_name.
desc_name: StringThe descriptor’s name from AVCodecDescriptor.name.
media_type: AVMediaTypeThe media type (e.g., audio, video, subtitle).
codec_id: AVCodecIDThe numeric codec ID (e.g., AV_CODEC_ID_H264).
codec_capabilities: i32A bitmask of capabilities from AVCodec.capabilities.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodecInfo
impl RefUnwindSafe for CodecInfo
impl Send for CodecInfo
impl Sync for CodecInfo
impl Unpin for CodecInfo
impl UnwindSafe for CodecInfo
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