Struct ac_ffmpeg::format::demuxer::DemuxerWithStreamInfo
source · 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.
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