pub struct Parser { /* private fields */ }
Implementations§
Source§impl Parser
impl Parser
Sourcepub fn slice_header_set_defaults(hdr: &mut SliceHeader, sps: &Sps, pps: &Pps)
pub fn slice_header_set_defaults(hdr: &mut SliceHeader, sps: &Sps, pps: &Pps)
Further sets default values given sps
and pps
.
Sourcepub fn parse_slice_header<'a>(&mut self, nalu: Nalu<'a>) -> Result<Slice<'a>>
pub fn parse_slice_header<'a>(&mut self, nalu: Nalu<'a>) -> Result<Slice<'a>>
Parses a slice header from a slice NALU.
Sourcepub fn get_vps(&self, vps_id: u8) -> Option<&Vps>
pub fn get_vps(&self, vps_id: u8) -> Option<&Vps>
Returns a previously parsed vps given vps_id
, if any.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Parser
impl RefUnwindSafe for Parser
impl Send for Parser
impl Sync for Parser
impl Unpin for Parser
impl UnwindSafe for Parser
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