pub struct H264 {
pub inline: bool,
pub profile: u8,
pub constraints: u8,
pub level: u8,
}Expand description
H.264/AVC codec mimetype.
This struct contains the profile, constraints, and level information needed to identify a specific H.264 variant. These parameters determine the features and complexity allowed in the encoded stream.
Fields§
§inline: boolIf true, SPS/PPS are inline in the bitstream (avc3). If false, they must be in the description (avc1).
profile: u8The H.264 profile (e.g., 0x42 for Baseline, 0x4D for Main, 0x64 for High)
constraints: u8Profile compatibility flags and constraints
level: u8The H.264 level (e.g., 0x1F for Level 3.1, 0x28 for Level 4.0)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for H264
impl<'de> Deserialize<'de> for H264
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<H264> for VideoCodec
impl From<H264> for VideoCodec
impl Eq for H264
impl StructuralPartialEq for H264
Auto Trait Implementations§
impl Freeze for H264
impl RefUnwindSafe for H264
impl Send for H264
impl Sync for H264
impl Unpin for H264
impl UnsafeUnpin for H264
impl UnwindSafe for H264
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