Home
Vision module

FrameNormalizer

Converts sampled decoded video into owned detector-ready frames.

FrameNormalizer

#include <icy/vision/framenormalizer.h>
class FrameNormalizer

Defined in src/vision/include/icy/vision/framenormalizer.h:49

Inherits: PacketProcessor

Converts sampled decoded video into owned detector-ready frames.

List of all members

NameKindOwner
emittervariableDeclared here
FrameNormalizerfunctionDeclared here
~FrameNormalizerfunctionDeclared here
setConfigfunctionDeclared here
configfunctionDeclared here
statsfunctionDeclared here
resetfunctionDeclared here
processfunctionDeclared here
acceptsfunctionDeclared here
_configvariableDeclared here
_seenvariableDeclared here
_emittedvariableDeclared here
_droppedvariableDeclared here
_convertedvariableDeclared here
_frameIdvariableDeclared here
_statevariableDeclared here
normalizefunctionDeclared here
sanitizefunctionDeclared here
PacketProcessorfunctionInherited from PacketProcessor
processfunctionInherited from PacketProcessor
acceptsfunctionInherited from PacketProcessor
operator<<functionInherited from PacketProcessor
PacketStreamAdapterfunctionInherited from PacketStreamAdapter
~PacketStreamAdapterfunctionInherited from PacketStreamAdapter
emitfunctionInherited from PacketStreamAdapter
emitfunctionInherited from PacketStreamAdapter
emitfunctionInherited from PacketStreamAdapter
emitfunctionInherited from PacketStreamAdapter
emitfunctionInherited from PacketStreamAdapter
getEmitterfunctionInherited from PacketStreamAdapter
retentionfunctionInherited from PacketStreamAdapter
onStreamStateChangefunctionInherited from PacketStreamAdapter
_emittervariableInherited from PacketStreamAdapter
PacketStreamAdapterfunctionInherited from PacketStreamAdapter
operator=functionInherited from PacketStreamAdapter
PacketStreamAdapterfunctionInherited from PacketStreamAdapter
operator=functionInherited from PacketStreamAdapter

Inherited from PacketProcessor

KindNameDescription
functionPacketProcessor inline
functionprocess virtualThis method performs processing on the given packet and emits the result.
functionaccepts virtual inlineThis method ensures compatibility with the given packet type. Return false to reject the packet.
functionoperator<< virtual inlineStream operator alias for process()

Inherited from PacketStreamAdapter

KindNameDescription
functionPacketStreamAdapterConstruct the adapter, binding it to the given packet signal.
function~PacketStreamAdapter virtual inline
functionemit virtualEmit a mutable raw buffer as a packet.
functionemit virtualEmit a read-only raw buffer as a packet (data is copied internally).
functionemit virtualEmit a string as a packet (data is copied internally).
functionemit virtualEmit a flag-only packet carrying no payload data.
functionemit virtualEmit an existing packet directly onto the outgoing signal.
functiongetEmitterReturns a reference to the outgoing packet signal.
functionretention virtual constReturns how this adapter treats incoming packet lifetime. Most adapters are synchronous and therefore only borrow the packet for the current call chain. Queue-style adapters override this to advertise that they clone before deferred use. Callers may treat the first adapter reporting Cloned or Retained as the explicit ownership boundary in the stream graph.
functiononStreamStateChange virtual inlineCalled by the PacketStream to notify when the internal Stream state changes. On receiving the Stopped state, it is the responsibility of the adapter to have ceased all outgoing packet transmission, especially in multi-thread scenarios.
variable_emitter
functionPacketStreamAdapterNonCopyable and NonMovable.
functionoperator=Deleted assignment operator.
functionPacketStreamAdapterDeleted constructor.
functionoperator=Deleted assignment operator.

Public Attributes

ReturnNameDescription
PacketSignalemitter

emitter

PacketSignal emitter

Defined in src/vision/include/icy/vision/framenormalizer.h:52

Public Methods

ReturnNameDescription
FrameNormalizer explicit
voidsetConfig
FrameNormalizerConfigconfig const
FrameNormalizerStatsstats const
voidreset
voidprocess virtual overrideThis method performs processing on the given packet and emits the result.
boolaccepts virtual inline overrideThis method ensures compatibility with the given packet type. Return false to reject the packet.

FrameNormalizer

explicit

explicit FrameNormalizer(FrameNormalizerConfig config = {})

Defined in src/vision/include/icy/vision/framenormalizer.h:54


setConfig

void setConfig(FrameNormalizerConfig config)

Defined in src/vision/include/icy/vision/framenormalizer.h:57


config

const

FrameNormalizerConfig config() const

Defined in src/vision/include/icy/vision/framenormalizer.h:58


stats

const

FrameNormalizerStats stats() const

Defined in src/vision/include/icy/vision/framenormalizer.h:59


reset

void reset()

Defined in src/vision/include/icy/vision/framenormalizer.h:60


process

virtual override

virtual void process(IPacket & packet) override

Defined in src/vision/include/icy/vision/framenormalizer.h:62

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

Reimplements

accepts

virtual inline override

virtual inline bool accepts(IPacket *) override

Defined in src/vision/include/icy/vision/framenormalizer.h:63

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

Reimplements

Private Attributes

ReturnNameDescription
FrameNormalizerConfig_config
std::atomic< uint64_t >_seen
std::atomic< uint64_t >_emitted
std::atomic< uint64_t >_dropped
std::atomic< uint64_t >_converted
std::atomic< uint64_t >_frameId
std::unique_ptr< State >_state

_config

FrameNormalizerConfig _config

Defined in src/vision/include/icy/vision/framenormalizer.h:76


_seen

std::atomic< uint64_t > _seen {0}

Defined in src/vision/include/icy/vision/framenormalizer.h:77


_emitted

std::atomic< uint64_t > _emitted {0}

Defined in src/vision/include/icy/vision/framenormalizer.h:78


_dropped

std::atomic< uint64_t > _dropped {0}

Defined in src/vision/include/icy/vision/framenormalizer.h:79


_converted

std::atomic< uint64_t > _converted {0}

Defined in src/vision/include/icy/vision/framenormalizer.h:80


_frameId

std::atomic< uint64_t > _frameId {0}

Defined in src/vision/include/icy/vision/framenormalizer.h:81


_state

std::unique_ptr< State > _state

Defined in src/vision/include/icy/vision/framenormalizer.h:82

Private Methods

ReturnNameDescription
VisionFramePacketnormalize

normalize

VisionFramePacket normalize(const av::PlanarVideoPacket & packet)

Defined in src/vision/include/icy/vision/framenormalizer.h:74

Private Static Methods

ReturnNameDescription
FrameNormalizerConfigsanitize static

sanitize

static

static FrameNormalizerConfig sanitize(FrameNormalizerConfig config)

Defined in src/vision/include/icy/vision/framenormalizer.h:72