pub struct H265 {
pub in_band: bool,
pub profile_space: u8,
pub profile_idc: u8,
pub profile_compatibility_flags: [u8; 4],
pub tier_flag: bool,
pub level_idc: u8,
pub constraint_flags: [u8; 6],
}Expand description
H.265/HEVC codec mimetype.
This struct contains the profile, tier, level, and constraint information
needed to identify a specific H.265 variant. The in_band flag says whether
parameter sets may ride in band (hev1) or live only in the description (hvc1);
the description, not the flag, decides the NAL framing.
Fields§
§in_band: boolIf true (hev1), the VPS/SPS/PPS may also ride in the bitstream ahead of a keyframe. If false (hvc1), they live only in the description.
profile_space: u8Profile space (0 for main profile space, 1-3 for other spaces) If 0, then no character. Otherwise, A for 1, B for 2, C for 3, etc.
profile_idc: u8Profile IDC identifying the profile
profile_compatibility_flags: [u8; 4]The raw 32-bit general_profile_compatibility_flags in big-endian byte order,
exactly as the bitstream and the hvcC box carry them (flag[0] is the most
significant bit of the first byte).
The HEVC codec string renders this bit-reversed, so raw [0x60, 0, 0, 0] prints as 6.
tier_flag: boolTier flag: false = ‘L’ (Low), true = ‘H’ (High) 0 = ‘L’, 1 = ‘H’
level_idc: u8Level IDC identifying the level
constraint_flags: [u8; 6]Constraint indicator flags (hex encoded, trailing zeros may be omitted) Hex encoded, trailing zeros may be omitted.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for H265
impl<'de> Deserialize<'de> for H265
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 H265
Source§impl From<H265> for VideoCodec
impl From<H265> for VideoCodec
impl StructuralPartialEq for H265
Auto Trait Implementations§
impl Freeze for H265
impl RefUnwindSafe for H265
impl Send for H265
impl Sync for H265
impl Unpin for H265
impl UnsafeUnpin for H265
impl UnwindSafe for H265
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
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.