11#include "dawn/porting/config.hxx"
12#include "dawn/prog/common.hxx"
13#include "dawn/prog/process.hxx"
42#ifdef CONFIG_DAWN_OBJECT_HAS_NAME
43 const char *getClassNameStr()
const override
60 CProgCommon::PROG_CLASS_SATURATE,
84 const SObjectCfg::SObjectCfgItem *item,
85 size_t &offset)
override;
96 bool &initsample)
override;
99 std::atomic<uint32_t> minRaw;
100 std::atomic<uint32_t> maxRaw;
Descriptor wrapper for individual object configuration.
Base class for all I/O objects.
Base class for callback-driven sample processing Program objects.
CProgProcess(CDescObject &desc)
Construct a a Program from descriptor.
@ PROG_STATS_CFG_IOBIND
I/O binding configuration.
Saturating limiter: clamps input samples into a [min, max] range.
@ PROG_SATURATE_CFG_MAX
Upper bound.
@ PROG_SATURATE_CFG_MIN
Lower bound.
void handle(CIOCommon *output, io_ddata_t *data, io_ddata_t *ioData, io_ddata_t *outputData, bool &initsample)
Process incoming sample.
int onSetObjConfig(SObjectCfg::ObjectCfgId objcfg, uint32_t *data, size_t len)
Pre-update hook for runtime configuration writes.
bool isBatchAware() const
Whether handle() consumes every batch of a batched source.
int configureExtraCfgItem(const CDescObject &desc, const SObjectCfg::SObjectCfgItem *item, size_t &offset)
Parse program-specific config item (optional extension hook).
static ObjectCfgId objectCfg(uint8_t type, uint16_t cls, uint8_t dtype, bool rw, uint16_t size, uint8_t id)
Construct 32-bit ConfigID from component fields.
uint32_t ObjectCfgId
ConfigID type - single 32-bit value.
Out-of-tree user-extension hooks for Dawn.
@ OBJTYPE_PROG
Program/algorithm object type.
@ DTYPE_ANY
Wildcard data type (matches any actual type).
uint32_t ObjectId
ObjectID type - single 32-bit value.
static ObjectId objectId(uint8_t type, uint16_t cls, uint8_t dtype, uint8_t flags, uint16_t priv)
Construct 32-bit ObjectID from component fields.
Heap-allocated dynamic I/O data buffer.