pub struct CodedSample {
pub start: usize,
pub end: usize,
pub pts: i64,
pub dts: i64,
pub duration: i64,
pub seconds: f64,
}Available on crate feature
decode only.Expand description
One coded sample: where its bytes are, its timestamps, and when it shows.
Fields§
§start: usizeWhere its bytes start in Demuxed::bytes.
end: usizeWhere they end.
pts: i64Presentation time, in the track’s units.
dts: i64Decode time, in the track’s units.
duration: i64Duration, in the track’s units; 0 where the container has none.
seconds: f64When it shows, in seconds from the first picture shown.
Trait Implementations§
Source§impl Clone for CodedSample
impl Clone for CodedSample
impl Copy for CodedSample
Auto Trait Implementations§
impl Forget for CodedSample
impl Freeze for CodedSample
impl Move for CodedSample
impl RefUnwindSafe for CodedSample
impl Send for CodedSample
impl Sync for CodedSample
impl Unpin for CodedSample
impl UnsafeUnpin for CodedSample
impl UnwindSafe for CodedSample
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