pub struct ToyDemuxer { /* private fields */ }Expand description
Sans-I/O TIVF demuxer. Sequential by default; seek builds a bounded
index by scanning packet headers with Range requests.
Implementations§
Source§impl ToyDemuxer
impl ToyDemuxer
Sourcepub fn new(limits: MediaLimits) -> Self
pub fn new(limits: MediaLimits) -> Self
A demuxer enforcing limits.
Trait Implementations§
Source§impl Demuxer for ToyDemuxer
impl Demuxer for ToyDemuxer
Source§fn step(
&mut self,
input: Input<'_>,
stop: Option<&dyn Pulse>,
) -> Result<DemuxProgress, SessionError<ToyError>>
fn step( &mut self, input: Input<'_>, stop: Option<&dyn Pulse>, ) -> Result<DemuxProgress, SessionError<ToyError>>
Take a prefix of
input and report what happened.Source§fn requested(&self) -> &[InputRequest]
fn requested(&self) -> &[InputRequest]
What the demuxer needs next, after
DemuxEvent::Need. Never empty
then.Source§fn tracks(&self) -> &[TrackInfo]
fn tracks(&self) -> &[TrackInfo]
The tracks; empty before
DemuxEvent::Headers.Source§fn access_pattern(&self) -> AccessPattern
fn access_pattern(&self) -> AccessPattern
How the demuxer reads its input. Default: front to back.
Source§fn seek(
&mut self,
target: &SeekTarget,
) -> Result<SeekStatus, SessionError<ToyError>>
fn seek( &mut self, target: &SeekTarget, ) -> Result<SeekStatus, SessionError<ToyError>>
Reposition. Default: unsupported.
Auto Trait Implementations§
impl Freeze for ToyDemuxer
impl RefUnwindSafe for ToyDemuxer
impl Send for ToyDemuxer
impl Sync for ToyDemuxer
impl Unpin for ToyDemuxer
impl UnsafeUnpin for ToyDemuxer
impl UnwindSafe for ToyDemuxer
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