Struct mpeg2ts_reader::demultiplex::Demultiplex
source · pub struct Demultiplex<Ctx: DemuxContext> { /* private fields */ }
Expand description
Transport Stream demultiplexer.
Uses the DemuxContext
passed to new()
to create Filters for
processing the payloads of each packet discovered in the TransportStream.
§Incremental parsing
Successive sections of transport stream data can be passed in order to push()
, and the
demultiplexing process will resume at the start of one buffer where it left off at the end of
the last. This supports for example the processing of sections of TS data as they are received
from the network, without needing to copy them out of the source network buffer.
Implementations§
source§impl<Ctx: DemuxContext> Demultiplex<Ctx>
impl<Ctx: DemuxContext> Demultiplex<Ctx>
sourcepub fn new(ctx: &mut Ctx) -> Demultiplex<Ctx>
pub fn new(ctx: &mut Ctx) -> Demultiplex<Ctx>
Create a Dumultiplex
instance, and populate it with an initial PacketFilter
for
handling PAT packets (which is created by the given DemuxContext
object).
The returned value does not retain any reference to the given DemuxContext
reference.