pub trait ElementaryStreamConsumer {
    fn start_stream(&mut self);
    fn begin_packet(&mut self, header: PesHeader<'_>);
    fn continue_packet(&mut self, data: &[u8]);
    fn end_packet(&mut self);
    fn continuity_error(&mut self);
}
Expand description

Trait for types that will receive call-backs as pieces of a specific elementary stream are encounted within a transport stream.

Instances of this type are registered with a PesPacketConsumer, which itself is responsible for extracting elementary stream data from transport stream packets.

Required Methods

Implementors