pub struct Parser { /* private fields */ }

Implementations§

source§

impl Parser

source

pub fn parse_vps<T: AsRef<[u8]>>( &mut self, nalu: &Nalu<T, NaluHeader> ) -> Result<&Vps>

Parse a VPS NALU.

source

pub fn parse_sps<T: AsRef<[u8]>>( &mut self, nalu: &Nalu<T, NaluHeader> ) -> Result<&Sps>

Parse a SPS NALU.

source

pub fn parse_pps<T: AsRef<[u8]>>( &mut self, nalu: &Nalu<T, NaluHeader> ) -> Result<&Pps>

Parse a PPS NALU.

source

pub fn parse_pred_weight_table<T: AsRef<[u8]>>( hdr: &mut SliceHeader, r: &mut NaluReader<T>, sps: &Sps ) -> Result<()>

source

pub fn slice_header_set_defaults(hdr: &mut SliceHeader, sps: &Sps, pps: &Pps)

Further sets default values given sps and pps.

source

pub fn parse_slice_header<T: AsRef<[u8]>>( &mut self, nalu: Nalu<T, NaluHeader> ) -> Result<Slice<T>>

Parses a slice header from a slice NALU.

source

pub fn get_vps(&self, vps_id: u8) -> Option<&Vps>

Returns a previously parsed vps given vps_id, if any.

source

pub fn get_sps(&self, sps_id: u8) -> Option<&Sps>

Returns a previously parsed sps given sps_id, if any.

source

pub fn get_pps(&self, pps_id: u8) -> Option<&Pps>

Returns a previously parsed pps given pps_id, if any.

Trait Implementations§

source§

impl Debug for Parser

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Parser

source§

fn default() -> Parser

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.