pub struct ProfileLevelId {
profile: Profile,
level: LevelIdc,
}Expand description
parsed H264 profile-level-id capability
profile_idc names the broad H264 profile family, profile-iop
carries constraint bits that narrow that family to a sub-profile and
level_idc carries the decoder capability level. ProfileLevelId
normalizes equivalent RFC 6184 profile encodings before router
negotiation compares Profile and LevelIdc
Fields§
§profile: Profile§level: LevelIdcImplementations§
Source§impl ProfileLevelId
impl ProfileLevelId
pub const fn new(profile: Profile, level: LevelIdc) -> Self
Sourcepub fn parse_ascii_bytes(value: &[u8]) -> Option<Self>
pub fn parse_ascii_bytes(value: &[u8]) -> Option<Self>
Parse the six-byte ASCII hex form of a profile-level-id token.
pub const fn profile(self) -> Profile
pub const fn level(self) -> LevelIdc
pub const fn packed_value(self) -> u32
pub fn fmtp_value(self) -> String
Trait Implementations§
Source§impl Clone for ProfileLevelId
impl Clone for ProfileLevelId
Source§fn clone(&self) -> ProfileLevelId
fn clone(&self) -> ProfileLevelId
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProfileLevelId
impl Debug for ProfileLevelId
Source§impl PartialEq for ProfileLevelId
impl PartialEq for ProfileLevelId
impl Copy for ProfileLevelId
impl Eq for ProfileLevelId
impl StructuralPartialEq for ProfileLevelId
Auto Trait Implementations§
impl Freeze for ProfileLevelId
impl RefUnwindSafe for ProfileLevelId
impl Send for ProfileLevelId
impl Sync for ProfileLevelId
impl Unpin for ProfileLevelId
impl UnsafeUnpin for ProfileLevelId
impl UnwindSafe for ProfileLevelId
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