pub struct DemuxerWithStreamInfo<T> { /* private fields */ }
Expand description
Demuxer with information about individual streams.
Implementations§
Source§impl<T> DemuxerWithStreamInfo<T>
impl<T> DemuxerWithStreamInfo<T>
Methods from Deref<Target = Demuxer<T>>§
Sourcepub fn set_option<V>(&mut self, name: &str, value: V) -> Result<(), Error>where
V: ToString,
pub fn set_option<V>(&mut self, name: &str, value: V) -> Result<(), Error>where
V: ToString,
Set an option.
Sourcepub fn take(&mut self) -> Result<Option<Packet>, Error>
pub fn take(&mut self) -> Result<Option<Packet>, Error>
Take the next packet from the demuxer or None
on EOF.
Sourcepub fn seek_to_timestamp(
&self,
timestamp: Timestamp,
seek_target: SeekTarget,
) -> Result<(), Error>
pub fn seek_to_timestamp( &self, timestamp: Timestamp, seek_target: SeekTarget, ) -> Result<(), Error>
Seek to a specific timestamp in the stream.
Sourcepub fn seek_to_frame(
&self,
frame: u64,
seek_target: SeekTarget,
) -> Result<(), Error>
pub fn seek_to_frame( &self, frame: u64, seek_target: SeekTarget, ) -> Result<(), Error>
Seek to a specific frame in the stream.
Sourcepub fn seek_to_byte(&self, offset: u64) -> Result<(), Error>
pub fn seek_to_byte(&self, offset: u64) -> Result<(), Error>
Seek to a specific byte offset in the stream.
pub fn input_format(&self) -> InputFormat
Trait Implementations§
Source§impl<T> AsMut<Demuxer<T>> for DemuxerWithStreamInfo<T>
impl<T> AsMut<Demuxer<T>> for DemuxerWithStreamInfo<T>
Source§impl<T> AsRef<Demuxer<T>> for DemuxerWithStreamInfo<T>
impl<T> AsRef<Demuxer<T>> for DemuxerWithStreamInfo<T>
Source§impl<T> Borrow<Demuxer<T>> for DemuxerWithStreamInfo<T>
impl<T> Borrow<Demuxer<T>> for DemuxerWithStreamInfo<T>
Source§impl<T> BorrowMut<Demuxer<T>> for DemuxerWithStreamInfo<T>
impl<T> BorrowMut<Demuxer<T>> for DemuxerWithStreamInfo<T>
Source§fn borrow_mut(&mut self) -> &mut Demuxer<T>
fn borrow_mut(&mut self) -> &mut Demuxer<T>
Mutably borrows from an owned value. Read more
Source§impl<T> DerefMut for DemuxerWithStreamInfo<T>
impl<T> DerefMut for DemuxerWithStreamInfo<T>
Auto Trait Implementations§
impl<T> Freeze for DemuxerWithStreamInfo<T>
impl<T> RefUnwindSafe for DemuxerWithStreamInfo<T>where
T: RefUnwindSafe,
impl<T> Send for DemuxerWithStreamInfo<T>where
T: Send,
impl<T> Sync for DemuxerWithStreamInfo<T>where
T: Sync,
impl<T> Unpin for DemuxerWithStreamInfo<T>
impl<T> UnwindSafe for DemuxerWithStreamInfo<T>where
T: UnwindSafe,
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