#[non_exhaustive]pub enum CodecProfile {
Show 17 variants
UncompressedGray8,
H264Baseline,
H264Main,
H264High,
HevcMain,
HevcMain10,
Av1Main,
Av1High,
Av1Professional,
Vp8,
Vp9Profile0,
Vp9Profile1,
Vp9Profile2,
Vp9Profile3,
AacLowComplexity,
Opus,
Vorbis,
}Expand description
A normalized codec profile that can be compared across backend implementations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UncompressedGray8
H264Baseline
H.264 Baseline, including Constrained Baseline: 8-bit 4:2:0 without B-slices or CABAC.
H264Main
H.264 Main: 8-bit 4:2:0 with B-slices and CABAC.
H264High
H.264 High: Main plus 8x8 transforms and scaling matrices. zvidlib’s H.264 decoders take 8-bit 4:2:0 High streams only.
HevcMain
HevcMain10
Av1Main
Av1High
Av1Professional
Vp8
VP8 has a single profile; the bitstream version each frame carries selects its reconstruction and loop filters.
Vp9Profile0
VP9 profile 0: 8-bit 4:2:0.
Vp9Profile1
VP9 profile 1: 8-bit 4:2:2, 4:4:0 or 4:4:4.
Vp9Profile2
VP9 profile 2: 10- or 12-bit 4:2:0.
Vp9Profile3
VP9 profile 3: 10- or 12-bit 4:2:2, 4:4:0 or 4:4:4.
AacLowComplexity
Opus
Opus has a single profile.
Vorbis
Vorbis I has a single profile.
Trait Implementations§
Source§impl Clone for CodecProfile
impl Clone for CodecProfile
impl Copy for CodecProfile
Source§impl Debug for CodecProfile
impl Debug for CodecProfile
impl Eq for CodecProfile
Source§impl Hash for CodecProfile
impl Hash for CodecProfile
Source§impl PartialEq for CodecProfile
impl PartialEq for CodecProfile
impl StructuralPartialEq for CodecProfile
Auto Trait Implementations§
impl Forget for CodecProfile
impl Freeze for CodecProfile
impl Move for CodecProfile
impl RefUnwindSafe for CodecProfile
impl Send for CodecProfile
impl Sync for CodecProfile
impl Unpin for CodecProfile
impl UnsafeUnpin for CodecProfile
impl UnwindSafe for CodecProfile
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