AccessUnit

Struct AccessUnit 

Source
pub struct AccessUnit<A> {
    pub payload: A,
    pub cts: Option<u64>,
    pub dts: Option<u64>,
    pub is_random_access_point: bool,
}
Expand description

Access unit containing VVC bitstream data.

VVdeC expects that the pushed access units follow the Annex-B format - prefixed by 0x000001 or 0x00000001.

Fields§

§payload: A

The payload data.

§cts: Option<u64>

Composition timestamp.

The composition timestamp is not used by VVdeC and is passed unchanged to the corresponding decoded Frame object. It can be used to transport arbitrary frame identifiers, if necessary by your application.

§dts: Option<u64>

Decoding timestamp.

§is_random_access_point: bool

Is it an random access point?

Implementations§

Source§

impl<A> AccessUnit<A>

Source

pub fn new(payload: A) -> Self

Create a new access unit with no cts or dts, that is also not a random access point.

Trait Implementations§

Source§

impl<A: AsRef<[u8]>> From<A> for AccessUnit<A>

Source§

fn from(value: A) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<A> Freeze for AccessUnit<A>
where A: Freeze,

§

impl<A> RefUnwindSafe for AccessUnit<A>
where A: RefUnwindSafe,

§

impl<A> Send for AccessUnit<A>
where A: Send,

§

impl<A> Sync for AccessUnit<A>
where A: Sync,

§

impl<A> Unpin for AccessUnit<A>
where A: Unpin,

§

impl<A> UnwindSafe for AccessUnit<A>
where A: UnwindSafe,

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.