Vision module
FrameNormalizer
Converts sampled decoded video into owned detector-ready frames.
FrameNormalizer
#include <icy/vision/framenormalizer.h>Inherits:
PacketProcessor
Converts sampled decoded video into owned detector-ready frames.
Public Attributes
| Return | Name | Description |
|---|---|---|
PacketSignal | emitter |
emitter
PacketSignal emitterPublic Methods
| Return | Name | Description |
|---|---|---|
FrameNormalizer explicit | ||
void | setConfig | |
FrameNormalizerConfig | config const | |
FrameNormalizerStats | stats const | |
void | reset | |
void | process virtual | 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. |
FrameNormalizer
explicit
explicit FrameNormalizer(FrameNormalizerConfig config)setConfig
void setConfig(FrameNormalizerConfig config)config
const
FrameNormalizerConfig config() conststats
const
FrameNormalizerStats stats() constreset
void reset()process
virtual
virtual 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.
Private Attributes
| Return | Name | Description |
|---|---|---|
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_seen
std::atomic< uint64_t > _seen {0}_emitted
std::atomic< uint64_t > _emitted {0}_dropped
std::atomic< uint64_t > _dropped {0}_converted
std::atomic< uint64_t > _converted {0}_frameId
std::atomic< uint64_t > _frameId {0}_state
std::unique_ptr< State > _statePrivate Methods
| Return | Name | Description |
|---|---|---|
VisionFramePacket | normalize |
normalize
VisionFramePacket normalize(const av::PlanarVideoPacket & packet)Private Static Methods
| Return | Name | Description |
|---|---|---|
FrameNormalizerConfig | sanitize static |
sanitize
static
static FrameNormalizerConfig sanitize(FrameNormalizerConfig config)