Skip to main content

SampleGroupDescription

Struct SampleGroupDescription 

Source
pub struct SampleGroupDescription {
    pub grouping_type: [u8; 4],
    pub default_sample_description_index: Option<u32>,
    pub entries: Vec<Vec<u8>>,
}
Expand description

One sgpd (SampleGroupDescriptionBox) to emit on a track.

Pairs with an sbgp of the same grouping_type. The per-group entry payload is grouping-type-specific and opaque to the container — callers supply entries as already-serialised Vec<u8>s.

default_sample_description_index (if Some(_)) requests the version-2 layout: the box header carries a default_sample_description_index to apply to samples not mapped by any sbgp of this type, and entries are emitted back-to-back without per-entry length prefixes (all entries must share a common non-zero length).

Fields§

§grouping_type: [u8; 4]

Four-byte grouping type matching the paired sbgp.

§default_sample_description_index: Option<u32>

default_sample_description_index (version 2). Some(0) means “no group of this type” per §8.9.3 (the default value).

§entries: Vec<Vec<u8>>

Per-group entry payloads, grouping-type-specific and opaque. Empty is a legal “zero-entry” sgpd.

Trait Implementations§

Source§

impl Clone for SampleGroupDescription

Source§

fn clone(&self) -> SampleGroupDescription

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SampleGroupDescription

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for SampleGroupDescription

Source§

fn default() -> SampleGroupDescription

Returns the “default value” for a type. Read more

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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.