pub struct PrefixNalUnit {
pub header_extension: NalHeaderExtension,
pub ref_base_pic: Option<PrefixNalUnitRef>,
}Expand description
Parsed prefix_nal_unit_rbsp() (NAL unit type 14).
Fields§
§header_extension: NalHeaderExtension§ref_base_pic: Option<PrefixNalUnitRef>Present when nal_ref_idc != 0 and the extension is SVC.
Implementations§
Source§impl PrefixNalUnit
impl PrefixNalUnit
Sourcepub fn from_nal<N: Nal>(nal: &N) -> Result<PrefixNalUnit, PrefixNalUnitError>
pub fn from_nal<N: Nal>(nal: &N) -> Result<PrefixNalUnit, PrefixNalUnitError>
Parse a prefix NAL unit from its raw NAL representation.
The NAL must have nal_unit_type == 14. The 3-byte header extension
is read first, then the RBSP body is parsed if applicable.
Trait Implementations§
Source§impl Clone for PrefixNalUnit
impl Clone for PrefixNalUnit
Source§fn clone(&self) -> PrefixNalUnit
fn clone(&self) -> PrefixNalUnit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PrefixNalUnit
impl Debug for PrefixNalUnit
impl Eq for PrefixNalUnit
Source§impl PartialEq for PrefixNalUnit
impl PartialEq for PrefixNalUnit
impl StructuralPartialEq for PrefixNalUnit
Auto Trait Implementations§
impl Freeze for PrefixNalUnit
impl RefUnwindSafe for PrefixNalUnit
impl Send for PrefixNalUnit
impl Sync for PrefixNalUnit
impl Unpin for PrefixNalUnit
impl UnsafeUnpin for PrefixNalUnit
impl UnwindSafe for PrefixNalUnit
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