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 (avc3), SPS/PPS may also ride in the bitstream, beside any description. If false (avc1), they live only in the description.
Says nothing about the NAL framing, which the description decides: with one the NAL units are length-prefixed, without one they are Annex-B.
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
impl Eq for H264
Source§impl From<H264> for VideoCodec
impl From<H264> for VideoCodec
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
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
Compare self to
key and return true if they are equal.