pub struct M2tsStream { /* private fields */ }Expand description
BD transport stream with embedded metadata.
Implementations§
Trait Implementations§
Source§impl Stream for M2tsStream
impl Stream for M2tsStream
Source§fn read(&mut self) -> Result<Option<PesFrame>>
fn read(&mut self) -> Result<Option<PesFrame>>
Read the next frame. Returns None at end of stream.
Source§fn codec_private(&self, track: usize) -> Option<Vec<u8>>
fn codec_private(&self, track: usize) -> Option<Vec<u8>>
Codec initialization data for a track (SPS/PPS, etc).
Source§fn headers_ready(&self) -> bool
fn headers_ready(&self) -> bool
True when codec_private is available for all video tracks.
Auto Trait Implementations§
impl Freeze for M2tsStream
impl !RefUnwindSafe for M2tsStream
impl !Send for M2tsStream
impl !Sync for M2tsStream
impl Unpin for M2tsStream
impl UnsafeUnpin for M2tsStream
impl !UnwindSafe for M2tsStream
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