pub struct CodecId(/* private fields */);Expand description
Codec identifier. Wraps the integer value of an AVCodecID enum
variant; comparisons and storage work without ever transmuting back
into the bindgen enum.
Implementations§
Source§impl CodecId
impl CodecId
Sourcepub const MPEG2VIDEO: Self
pub const MPEG2VIDEO: Self
MPEG-2 Video (ITU-T H.262 / ISO/IEC 13818-2).
Sourcepub const DVB_SUBTITLE: Self
pub const DVB_SUBTITLE: Self
DVB subtitle (bitmap).
Sourcepub const HDMV_PGS_SUBTITLE: Self
pub const HDMV_PGS_SUBTITLE: Self
HDMV / Blu-ray PGS subtitle (bitmap).
Sourcepub const DVD_SUBTITLE: Self
pub const DVD_SUBTITLE: Self
DVD VOBSUB subtitle (bitmap).
Sourcepub const fn from_raw(raw: i32) -> Self
pub const fn from_raw(raw: i32) -> Self
Constructs a CodecId from the raw integer FFmpeg uses for
AVCodecContext::codec_id etc. Use this only when you have a
value that came from FFmpeg or that you know maps to a real
codec; arbitrary integers are still legal but Debug will fall
back to printing the raw value.
Trait Implementations§
impl Copy for CodecId
impl Eq for CodecId
impl StructuralPartialEq for CodecId
Auto Trait Implementations§
impl Freeze for CodecId
impl RefUnwindSafe for CodecId
impl Send for CodecId
impl Sync for CodecId
impl Unpin for CodecId
impl UnsafeUnpin for CodecId
impl UnwindSafe for CodecId
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