Skip to main content

Track

Struct Track 

Source
pub struct Track {
Show 15 fields pub handler: String, pub handler_name: String, pub codec: String, pub duration: Option<f64>, pub width: u32, pub height: u32, pub frame_rate: Option<Rational>, pub samples: u64, pub bit_depth: Option<u8>, pub chroma: Option<u8>, pub colr: Option<Colr>, pub dolby_vision: bool, pub sample_rate: Option<u32>, pub channels: Option<u16>, pub first_sample: Option<(u64, u32)>,
}

Fields§

§handler: String

hdlr type: vide, soun, meta, tmcd, …

§handler_name: String

hdlr name (CAM meta on DJI).

§codec: String

Sample entry fourcc: hvc1, avc1, apch, mp4a, djmd, …

§duration: Option<f64>§width: u32§height: u32§frame_rate: Option<Rational>§samples: u64§bit_depth: Option<u8>§chroma: Option<u8>

chroma_format_idc: 0 = 4:0:0, 1 = 4:2:0, 2 = 4:2:2, 3 = 4:4:4.

§colr: Option<Colr>§dolby_vision: bool

A dvcC/dvvC Dolby Vision configuration box in the sample entry.

§sample_rate: Option<u32>§channels: Option<u16>§first_sample: Option<(u64, u32)>

First sample’s file offset and size (used for DJI’s CAM meta header).

Trait Implementations§

Source§

impl Clone for Track

Source§

fn clone(&self) -> Self

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 Track

Source§

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

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

impl Default for Track

Source§

fn default() -> Self

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

impl PartialEq for Track

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Track

Auto Trait Implementations§

§

impl Forget for Track

§

impl Freeze for Track

§

impl RefUnwindSafe for Track

§

impl Send for Track

§

impl Sync for Track

§

impl Unpin for Track

§

impl UnsafeUnpin for Track

§

impl UnwindSafe for Track

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

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.