Struct h264_reader::avcc::AvcDecoderConfigurationRecord

source ·
pub struct AvcDecoderConfigurationRecord<'buf> { /* private fields */ }

Implementations§

source§

impl<'buf> AvcDecoderConfigurationRecord<'buf>

source

pub fn configuration_version(&self) -> u8

source

pub fn num_of_sequence_parameter_sets(&self) -> usize

source

pub fn avc_profile_indication(&self) -> ProfileIdc

source

pub fn profile_compatibility(&self) -> ConstraintFlags

source

pub fn avc_level_indication(&self) -> Level

source

pub fn length_size_minus_one(&self) -> u8

Number of bytes used to specify the length of each NAL unit 0 => 1 byte, 1 => 2 bytes, 2 => 3 bytes, 3 => 4 bytes

source

pub fn sequence_parameter_sets( &self ) -> impl Iterator<Item = Result<&'buf [u8], ParamSetError>>

source

pub fn picture_parameter_sets( &self ) -> impl Iterator<Item = Result<&'buf [u8], ParamSetError>> + 'buf

source

pub fn create_context(&self) -> Result<Context, AvccError>

Creates an H264 parser context, using the settings encoded into this AvcDecoderConfigurationRecord.

In particular, the sequence parameter set and picture parameter set values of this configuration record will be inserted into the resulting context.

Trait Implementations§

source§

impl<'buf> TryFrom<&'buf [u8]> for AvcDecoderConfigurationRecord<'buf>

§

type Error = AvccError

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

fn try_from(data: &'buf [u8]) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where 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 T
where 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.