pub struct TimestampedStream<S, I> {
pub source: S,
pub timestamps: I,
}
Expand description
Wraps an elementary stream and adds sequential dummy timestamps to its chunks.
Fields§
§source: S
§timestamps: I
Trait Implementations§
Source§impl<S, I> ElementaryStream for TimestampedStream<S, I>
impl<S, I> ElementaryStream for TimestampedStream<S, I>
fn format_details(&self, version_ordinal: u64) -> FormatDetails
Source§fn is_access_units(&self) -> bool
fn is_access_units(&self) -> bool
Whether all chunks in the elementary stream will be marked with access unit boundaries.
These are units for stream processors (e.g. for H264 decoder, NALs). When input is not in
access units, the server must parse and/or buffer the bitstream.
fn stream<'a>(&'a self) -> Box<dyn Iterator<Item = ElementaryStreamChunk> + 'a>
Source§fn capped_chunks<'a>(
&'a self,
max_size: usize,
) -> Box<dyn Iterator<Item = ElementaryStreamChunk> + 'a>
fn capped_chunks<'a>( &'a self, max_size: usize, ) -> Box<dyn Iterator<Item = ElementaryStreamChunk> + 'a>
Returns the elementary stream with chunks capped at a given size. Chunks bigger than the cap
will be divided into multiple chunks. Order is retained. Timestamps are not extrapolated.
Access unit boundaries are corrected.
fn video_frame_count(&self) -> usize
Auto Trait Implementations§
impl<S, I> Freeze for TimestampedStream<S, I>
impl<S, I> RefUnwindSafe for TimestampedStream<S, I>where
S: RefUnwindSafe,
I: RefUnwindSafe,
impl<S, I> Send for TimestampedStream<S, I>
impl<S, I> Sync for TimestampedStream<S, I>
impl<S, I> Unpin for TimestampedStream<S, I>
impl<S, I> UnwindSafe for TimestampedStream<S, I>where
S: UnwindSafe,
I: 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