Skip to main content

BitstreamSource

Trait BitstreamSource 

Source
pub trait BitstreamSource: Send + 'static {
    // Required method
    fn read_packet(&mut self) -> Result<Option<BitstreamPacket>>;
}
Expand description

Demuxed compressed bitstream packets (host-side, NOT raw pixels).

Implementations: file reader, network receiver, FFmpeg demuxer, etc.

Required Methods§

Source

fn read_packet(&mut self) -> Result<Option<BitstreamPacket>>

Read the next compressed bitstream packet, or None at end-of-stream.

Implementors§