pub struct Parser { /* private fields */ }
Implementations§
Source§impl Parser
impl Parser
Sourcepub fn parse_sps(&mut self, nalu: &Nalu<'_>) -> Result<&Rc<Sps>>
pub fn parse_sps(&mut self, nalu: &Nalu<'_>) -> Result<&Rc<Sps>>
Parse a SPS and add it to the list of active SPSes.
Returns a reference to the new SPS.
pub fn parse_pps(&mut self, nalu: &Nalu<'_>) -> Result<&Pps>
pub fn parse_slice_header<'a>(&self, nalu: Nalu<'a>) -> Result<Slice<'a>>
pub fn get_sps(&self, sps_id: u8) -> Option<&Rc<Sps>>
pub fn get_pps(&self, pps_id: u8) -> Option<&Rc<Pps>>
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