AvcVideoDescriptor

Struct AvcVideoDescriptor 

Source
pub struct AvcVideoDescriptor<'buf> { /* private fields */ }
Expand description

Descriptor holding copies of properties from the AVC metadata such as AVC ‘profile’ and ‘level’.

Implementations§

Source§

impl<'buf> AvcVideoDescriptor<'buf>

Source

pub const TAG: u8 = 40u8

The descriptor tag value which identifies the descriptor as a AvcVideoDescriptor.

Source

pub fn new( tag: u8, buf: &'buf [u8], ) -> Result<AvcVideoDescriptor<'buf>, DescriptorError>

Construct a AvcVideoDescriptor instance that will parse the data from the given slice.

Source

pub fn profile_idc(&self) -> u8

The AVC profile used in this stream will be equal to, or lower than, this value

Source

pub fn constraint_set0_flag(&self) -> bool

Value of the same flag from this AVC stream’s Sequence Parameter Set

Source

pub fn constraint_set1_flag(&self) -> bool

Value of the same flag from this AVC stream’s Sequence Parameter Set

Source

pub fn constraint_set2_flag(&self) -> bool

Value of the same flag from this AVC stream’s Sequence Parameter Set

Source

pub fn constraint_set3_flag(&self) -> bool

Value of the same flag from this AVC stream’s Sequence Parameter Set

Source

pub fn constraint_set4_flag(&self) -> bool

Value of the same flag from this AVC stream’s Sequence Parameter Set

Source

pub fn constraint_set5_flag(&self) -> bool

Value of the same flag from this AVC stream’s Sequence Parameter Set

Source

pub fn avc_compatible_flags(&self) -> u8

Value of the same flags from this AVC stream’s Sequence Parameter Set

Source

pub fn level_idc(&self) -> u8

The AVC level used in this stream will be equal to, or lower than, this value

Source

pub fn avc_still_present(&self) -> bool

Stream may include AVC still pictures

Source

pub fn avc_24_hour_picture_flag(&self) -> bool

Stream may contain AVC 24-hour pictures

Source

pub fn frame_packing_sei_not_present_flag(&self) -> bool

If false, frame packing arrangement or stereo video information SEI message should be present

Trait Implementations§

Source§

impl Debug for AvcVideoDescriptor<'_>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'buf> Freeze for AvcVideoDescriptor<'buf>

§

impl<'buf> RefUnwindSafe for AvcVideoDescriptor<'buf>

§

impl<'buf> Send for AvcVideoDescriptor<'buf>

§

impl<'buf> Sync for AvcVideoDescriptor<'buf>

§

impl<'buf> Unpin for AvcVideoDescriptor<'buf>

§

impl<'buf> UnwindSafe for AvcVideoDescriptor<'buf>

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>,

Source§

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>,

Source§

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.