pub enum HevcNalUnitType {
Show 26 variants
TrailN,
TrailR,
TsaN,
TsaR,
StsaN,
StsaR,
RadlN,
RadlR,
RaslN,
RaslR,
BlaWLp,
BlaWRadl,
BlaNLp,
IdrWRadl,
IdrNLp,
CraNut,
VpsNut,
SpsNut,
PpsNut,
AudNut,
EosNut,
EobNut,
FdNut,
PrefixSeiNut,
SuffixSeiNut,
Other(u8),
}Expand description
HEVC NAL unit types (ITU-T H.265).
Variants§
TrailN
TrailR
TsaN
TsaR
StsaN
StsaR
RadlN
RadlR
RaslN
RaslR
BlaWLp
BlaWRadl
BlaNLp
IdrWRadl
IdrNLp
CraNut
VpsNut
SpsNut
PpsNut
AudNut
EosNut
EobNut
FdNut
PrefixSeiNut
SuffixSeiNut
Other(u8)
Implementations§
Source§impl HevcNalUnitType
impl HevcNalUnitType
Sourcepub fn from_header(header: &[u8]) -> Self
pub fn from_header(header: &[u8]) -> Self
Parses the HEVC NAL unit type from the first two header bytes.
HEVC uses a 2-byte NAL header: forbidden_zero_bit(1) | nal_unit_type(6) | nuh_layer_id(6) | nuh_temporal_id_plus1(3).
Trait Implementations§
Source§impl Clone for HevcNalUnitType
impl Clone for HevcNalUnitType
Source§fn clone(&self) -> HevcNalUnitType
fn clone(&self) -> HevcNalUnitType
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 HevcNalUnitType
impl Debug for HevcNalUnitType
Source§impl PartialEq for HevcNalUnitType
impl PartialEq for HevcNalUnitType
impl Copy for HevcNalUnitType
impl Eq for HevcNalUnitType
impl StructuralPartialEq for HevcNalUnitType
Auto Trait Implementations§
impl Freeze for HevcNalUnitType
impl RefUnwindSafe for HevcNalUnitType
impl Send for HevcNalUnitType
impl Sync for HevcNalUnitType
impl Unpin for HevcNalUnitType
impl UnsafeUnpin for HevcNalUnitType
impl UnwindSafe for HevcNalUnitType
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more