pub struct NalHeaderMvcExtension(/* private fields */);Expand description
MVC NAL unit header extension (spec G.7.3.1.1).
Wraps the 3 raw extension bytes with accessor methods, following the same
pattern as NalHeader. All fields are at fixed bit positions:
Byte 0: svc_extension_flag(1) | non_idr_flag(1) | priority_id(6)
Byte 1: view_id[9:2] (high 8 bits of 10-bit view_id)
Byte 2: view_id[1:0](2) | temporal_id(3) | anchor_pic_flag(1) | inter_view_flag(1) | reserved_one_bit(1)Implementations§
Source§impl NalHeaderMvcExtension
impl NalHeaderMvcExtension
pub fn non_idr_flag(&self) -> bool
pub fn priority_id(&self) -> u8
pub fn view_id(&self) -> u16
pub fn temporal_id(&self) -> u8
pub fn anchor_pic_flag(&self) -> bool
pub fn inter_view_flag(&self) -> bool
Trait Implementations§
Source§impl Clone for NalHeaderMvcExtension
impl Clone for NalHeaderMvcExtension
Source§fn clone(&self) -> NalHeaderMvcExtension
fn clone(&self) -> NalHeaderMvcExtension
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 moreimpl Copy for NalHeaderMvcExtension
Source§impl Debug for NalHeaderMvcExtension
impl Debug for NalHeaderMvcExtension
impl Eq for NalHeaderMvcExtension
Source§impl PartialEq for NalHeaderMvcExtension
impl PartialEq for NalHeaderMvcExtension
impl StructuralPartialEq for NalHeaderMvcExtension
Auto Trait Implementations§
impl Freeze for NalHeaderMvcExtension
impl RefUnwindSafe for NalHeaderMvcExtension
impl Send for NalHeaderMvcExtension
impl Sync for NalHeaderMvcExtension
impl Unpin for NalHeaderMvcExtension
impl UnsafeUnpin for NalHeaderMvcExtension
impl UnwindSafe for NalHeaderMvcExtension
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