#include <icy/packetstream.h>Inherits:
PacketStreamAdapterSubclassed by:AsyncPacketQueue< PacketT >,PlanarAudioPacket >,PlanarVideoPacket >,AsyncPacketQueue< T >,Base64PacketEncoder,StreamWriter,SyncPacketQueue< T >,AudioPacketEncoder,FPSLimiter,MultiplexPacketEncoder,VideoPacketEncoder,ChunkedAdapter,MultipartAdapter,FrameSampler,WebRtcTrackSender
This class is a virtual interface for creating PacketStreamAdapters which process that and emit the IPacket type.
| Return | Name | Description |
|---|---|---|
PacketProcessor inline | ||
void | process | This method performs processing on the given packet and emits the result. |
bool | accepts virtual inline | This method ensures compatibility with the given packet type. Return false to reject the packet. |
void | operator<< virtual inline | Stream operator alias for process() |
inline
inline PacketProcessor(PacketSignal & emitter)void process(IPacket & packet)This method performs processing on the given packet and emits the result.
Processors that defer work asynchronously must either clone the packet or retain an owned equivalent. See retention().
virtual inline
virtual inline bool accepts(IPacket *)This method ensures compatibility with the given packet type. Return false to reject the packet.
virtual inline
virtual inline void operator<<(IPacket & packet)