Struct h264_stream::H264Stream
source · pub struct H264Stream { /* private fields */ }
Expand description
Represents an H264 elementary stream.
Implementations§
Trait Implementations§
source§impl ElementaryStream for H264Stream
impl ElementaryStream for H264Stream
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>
§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 Freeze for H264Stream
impl RefUnwindSafe for H264Stream
impl Send for H264Stream
impl Sync for H264Stream
impl Unpin for H264Stream
impl UnwindSafe for H264Stream
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