[][src]Struct h264_reader::avcc::AvcDecoderConfigurationRecord

pub struct AvcDecoderConfigurationRecord<'buf> { /* fields omitted */ }

Methods

impl<'buf> AvcDecoderConfigurationRecord<'buf>[src]

pub fn configuration_version(&self) -> u8[src]

pub fn num_of_sequence_parameter_sets(&self) -> usize[src]

pub fn avc_profile_indication(&self) -> ProfileIdc[src]

pub fn profile_compatibility(&self) -> ConstraintFlags[src]

pub fn avc_level_indication(&self) -> Level[src]

pub fn length_size_minus_one(&self) -> u8[src]

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

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

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

pub fn create_context<C>(&self, ctx: C) -> Result<Context<C>, AvccError>[src]

Creates an H264 parser context from the given user 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

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

type Error = AvccError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.