[−][src]Trait mpeg2ts_reader::demultiplex::PacketFilter
Trait to which Demultiplex
delegates handling of subsets of Transport Stream packets.
A packet filter can collaborate with the owning Demultiplex
instance via the DemuxContext
to which they will both be lent mutable access. For example, by making entries in the
FilterChangeset
owned by the DemuxContext
, a PacketFilter
implementation may alter
the handling of subsequent packets in the Transport Stream.
Associated Types
type Ctx: DemuxContext
The type of context-object used by the Demultiplex
instance with which implementing
PacketFilters
will be collaborating.
Required methods
fn consume(&mut self, ctx: &mut Self::Ctx, pk: &Packet)
Implements filter-specific packet processing logic.
Implementors
impl<Ctx, E> PacketFilter for PesPacketFilter<Ctx, E> where
Ctx: DemuxContext,
E: ElementaryStreamConsumer,
[src]
Ctx: DemuxContext,
E: ElementaryStreamConsumer,