pub struct AV1 {
pub profile: u8,
pub level: u8,
pub tier: char,
pub bitdepth: u8,
pub mono_chrome: bool,
pub chroma_subsampling_x: bool,
pub chroma_subsampling_y: bool,
pub chroma_sample_position: u8,
pub color_primaries: u8,
pub transfer_characteristics: u8,
pub matrix_coefficients: u8,
pub full_range: bool,
}Expand description
AV1 codec mimetype.
This struct contains profile, level, tier, bit depth, and color space information for AV1 video streams. AV1 is a modern codec supporting high efficiency and advanced features like HDR and wide color gamuts.
Reference: https://aomediacodec.github.io/av1-isobmff/#codecsparam
Fields§
§profile: u8AV1 profile (0-2, determines feature support)
level: u8AV1 level (determines resolution and bitrate constraints)
tier: charTier (‘M’ for Main, ‘H’ for High)
bitdepth: u8Bit depth (8, 10, or 12 bits per sample)
mono_chrome: boolWhether the stream is monochrome (grayscale)
chroma_subsampling_x: boolHorizontal chroma subsampling
chroma_subsampling_y: boolVertical chroma subsampling
chroma_sample_position: u8Chroma sample position
color_primaries: u8Color primaries specification
transfer_characteristics: u8Transfer characteristics (gamma curve)
matrix_coefficients: u8Matrix coefficients for color conversion
full_range: boolWhether video uses full range (true) or limited range (false)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AV1
impl<'de> Deserialize<'de> for AV1
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for AV1
Source§impl From<AV1> for VideoCodec
impl From<AV1> for VideoCodec
impl StructuralPartialEq for AV1
Auto Trait Implementations§
impl Freeze for AV1
impl RefUnwindSafe for AV1
impl Send for AV1
impl Sync for AV1
impl Unpin for AV1
impl UnsafeUnpin for AV1
impl UnwindSafe for AV1
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
impl<T> CatalogExt for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.