oa::video::VideoDemuxer

Stateful packet source for one local video track. Metadata is bounded and validated at open. Indexed containers read only the current compressed sample; MPEG-TS assembles one bounded PES at a time. H.264/H.265 length-prefixed samples are normalized to Annex-B and codec parameter sets are prepended to the first keyframe after open or seek.

StRust public API

Declaration

pub struct VideoDemuxer { /* private fields */ }
Public Rust declaration.

Public Methods

pub const fn info(&self) -> VideoContainerInfo
pub const fn is_eos(&self) -> bool
pub const fn current_sample_index(&self) -> usize
pub fn read_next_packet(&mut self) -> Result<Option<VideoPacket>>
pub fn seek(&mut self, presentation_timestamp: u64) -> Result<()>
pub fn close(&mut self)

Associated Functions

pub fn open(path: impl AsRef<Path>) -> Result<Self>

Public Method Documentation

pub const fn info( &self ) -> VideoContainerInfo
No public source comment is attached to this declaration.
pub const fn is_eos( &self ) -> bool
No public source comment is attached to this declaration.
pub const fn current_sample_index( &self ) -> usize
No public source comment is attached to this declaration.
pub fn seek(&mut self, presentation_timestamp: u64) -> Result<()>
No public source comment is attached to this declaration.
pub fn close( &mut self )
No public source comment is attached to this declaration.
pub fn open( path: impl AsRef<Path> ) -> Result<Self>
No public source comment is attached to this declaration.