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