pub struct Demuxed {
pub codec: TrackCodec,
pub config: Vec<u8>,
pub width: u32,
pub height: u32,
pub bytes: Bytes,
pub samples: Vec<CodedSample>,
}Available on crate feature
decode only.Expand description
A video track as a decoder is fed it: the codec and its configuration
record, and every coded sample in decode order with when it shows. What
VideoReader reads, and what a platform decoder outside this crate (the
browser’s WebCodecs, say) can be given instead; see
webcodecs.
Fields§
§codec: TrackCodecThe codec.
config: Vec<u8>The configuration record (avcC, hvcC, av1C, vpcC) as the
container carries it; empty where it carries none (IVF, VP9 in
Matroska).
width: u32Picture width the container states.
height: u32Picture height.
bytes: BytesThe samples’ bytes: the file itself for MP4 (mapped, if it was opened that way), the packets laid end to end for Matroska and IVF.
samples: Vec<CodedSample>Every sample, in decode order.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Demuxed
impl !UnwindSafe for Demuxed
impl Forget for Demuxed
impl Freeze for Demuxed
impl Move for Demuxed
impl Send for Demuxed
impl Sync for Demuxed
impl Unpin for Demuxed
impl UnsafeUnpin for Demuxed
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