Base module

PacketProcessor

This class is a virtual interface for creating PacketStreamAdapters which process that and emit the [IPacket]({#ref clas

PacketProcessor

#include <icy/packetstream.h>

Inherits: PacketStreamAdapter Subclassed 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.

Public Methods

ReturnNameDescription
PacketProcessor inline
voidprocessThis method performs processing on the given packet and emits the result.
boolaccepts virtual inlineThis method ensures compatibility with the given packet type. Return false to reject the packet.
voidoperator<< virtual inlineStream operator alias for process()

PacketProcessor

inline

inline PacketProcessor(PacketSignal & emitter)

process

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().


accepts

virtual inline

virtual inline bool accepts(IPacket *)

This method ensures compatibility with the given packet type. Return false to reject the packet.


operator<<

virtual inline

virtual inline void operator<<(IPacket & packet)

Stream operator alias for process()