#include </home/runner/work/icey/icey/src/vision/include/icy/vision/framesampler.h>Inherits:
PacketProcessor
PacketProcessor that forwards a sampled subset of decoded video frames.
The sampler is intentionally zero-copy on its synchronous path: sampled frames are forwarded by reference and dropped frames are discarded before any queue hop. Pair it with DetectionQueue when a worker-thread boundary is required.
| Return | Name | Description |
|---|---|---|
PacketSignal | emitter |
PacketSignal emitter| Return | Name | Description |
|---|---|---|
FrameSampler inline explicit | ||
void | setConfig inline | |
FrameSamplerConfig | config const inline | |
FrameSamplerStats | stats const inline | |
void | reset inline | |
void | process virtual inline | 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. |
inline explicit
inline explicit FrameSampler(FrameSamplerConfig config)inline
inline void setConfig(FrameSamplerConfig config)const inline
inline FrameSamplerConfig config() constconst inline
inline FrameSamplerStats stats() constinline
inline void reset()virtual inline
virtual inline 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.
| Return | Name | Description |
|---|---|---|
FrameSamplerConfig | _config | |
std::atomic< uint64_t > | _seen | |
std::atomic< uint64_t > | _forwarded | |
std::atomic< uint64_t > | _dropped | |
std::atomic< int64_t > | _lastForwardedTimeUsec |
FrameSamplerConfig _configstd::atomic< uint64_t > _seen {0}std::atomic< uint64_t > _forwarded {0}std::atomic< uint64_t > _dropped {0}std::atomic< int64_t > _lastForwardedTimeUsec {kUnsetTimeUsec}| Return | Name | Description |
|---|---|---|
bool | shouldForward const inline |
const inline
inline bool shouldForward(const av::PlanarVideoPacket & frame, uint64_t seen) const| Return | Name | Description |
|---|---|---|
FrameSamplerConfig | sanitize static inline |
static inline
static inline FrameSamplerConfig sanitize(FrameSamplerConfig config)