Struct h264_reader::avcc::AvcDecoderConfigurationRecord
source · pub struct AvcDecoderConfigurationRecord<'buf> { /* private fields */ }Implementations§
source§impl<'buf> AvcDecoderConfigurationRecord<'buf>
impl<'buf> AvcDecoderConfigurationRecord<'buf>
pub fn configuration_version(&self) -> u8
pub fn num_of_sequence_parameter_sets(&self) -> usize
pub fn avc_profile_indication(&self) -> ProfileIdc
pub fn profile_compatibility(&self) -> ConstraintFlags
pub fn avc_level_indication(&self) -> Level
sourcepub fn length_size_minus_one(&self) -> u8
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
pub fn sequence_parameter_sets( &self ) -> impl Iterator<Item = Result<&'buf [u8], ParamSetError>>
pub fn picture_parameter_sets( &self ) -> impl Iterator<Item = Result<&'buf [u8], ParamSetError>> + 'buf
sourcepub fn create_context(&self) -> Result<Context, AvccError>
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§
Auto Trait Implementations§
impl<'buf> Freeze for AvcDecoderConfigurationRecord<'buf>
impl<'buf> RefUnwindSafe for AvcDecoderConfigurationRecord<'buf>
impl<'buf> Send for AvcDecoderConfigurationRecord<'buf>
impl<'buf> Sync for AvcDecoderConfigurationRecord<'buf>
impl<'buf> Unpin for AvcDecoderConfigurationRecord<'buf>
impl<'buf> UnwindSafe for AvcDecoderConfigurationRecord<'buf>
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