pub struct Track {Show 15 fields
pub id: u32,
pub kind: TrackKind,
pub handler: FourCc,
pub name: String,
pub timescale: u32,
pub duration: u64,
pub language: String,
pub width: u32,
pub height: u32,
pub enabled: bool,
pub matrix: [i32; 9],
pub entries: Vec<SampleEntry>,
pub samples: Vec<Sample>,
pub edits: Vec<Edit>,
pub edit_offset: i64,
/* private fields */
}Fields§
§id: u32§kind: TrackKind§handler: FourCc§name: String§timescale: u32§duration: u64§language: String§width: u32§height: u32§enabled: bool§matrix: [i32; 9]§entries: Vec<SampleEntry>§samples: Vec<Sample>§edits: Vec<Edit>§edit_offset: i64Implementations§
Source§impl Track
impl Track
pub fn entry(&self) -> Option<&SampleEntry>
pub fn config(&self) -> Option<&CodecConfig>
pub fn codec(&self) -> Option<Codec>
pub fn extradata(&self) -> Option<Vec<u8>>
pub fn rotation(&self) -> u16
pub fn channels(&self) -> u32
pub fn sample_rate(&self) -> u32
pub fn seconds(&self, ticks: i64) -> f64
pub fn ticks(&self, seconds: f64) -> i64
pub fn duration_seconds(&self) -> f64
pub fn bitrate(&self) -> u32
pub fn fps(&self) -> f64
pub fn presentation(&self, index: usize) -> Option<i64>
pub fn sample_at(&self, presentation: i64) -> Option<usize>
pub fn keyframe_before(&self, index: usize) -> usize
pub fn keyframes(&self) -> &[u32]
Trait Implementations§
impl StructuralPartialEq for Track
Auto Trait Implementations§
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> 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more