pub struct Mp4SampleTiming {
pub decode_duration: Duration,
pub composition_offset: Duration,
}Expand description
Per-sample timing carried through from an MP4 source, so it can be preserved verbatim when re-muxing (rather than re-derived from presentation-time deltas). This is what lets reordered (B-frame) streams be re-muxed correctly.
Fields§
§decode_duration: DurationThe sample’s own decode duration (stts delta).
composition_offset: DurationThe sample’s composition time offset (ctts); presentation = decode + composition_offset. Non-zero for reordered streams.
Trait Implementations§
Source§impl Clone for Mp4SampleTiming
impl Clone for Mp4SampleTiming
Source§fn clone(&self) -> Mp4SampleTiming
fn clone(&self) -> Mp4SampleTiming
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Mp4SampleTiming
impl Debug for Mp4SampleTiming
impl Copy for Mp4SampleTiming
Auto Trait Implementations§
impl Freeze for Mp4SampleTiming
impl RefUnwindSafe for Mp4SampleTiming
impl Send for Mp4SampleTiming
impl Sync for Mp4SampleTiming
impl Unpin for Mp4SampleTiming
impl UnsafeUnpin for Mp4SampleTiming
impl UnwindSafe for Mp4SampleTiming
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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