|
Userspace Resource Manager
|
#include <SignalRegistry.h>
Public Member Functions | |
| void | registerSignal (SignalInfo *signalInfo) |
| Used to register a Config specified (through YAML) Signal with Resource Tuner. | |
| SignalInfo * | getSignalConfigById (uint64_t sigID, int32_t numArgs=0, const uint32_t *extraAttrs=nullptr) |
| Get the SignalInfo object corresponding to the given Signal code. | |
| SignalInfo * | getSignalConfigByIdAndType (uint32_t sigCode, uint32_t sigType, int32_t numArgs=0, const uint32_t *extraAttrs=nullptr) |
| Get the SignalInfo object corresponding to the given Signal ID and type. | |
Stores information Relating to all the Signals available for Tuning. Note: This information is extracted from Config YAML files.
Definition at line 93 of file SignalRegistry.h.
| SignalInfo * SignalRegistry::getSignalConfigById | ( | uint64_t | sigID, |
| int32_t | numArgs = 0, | ||
| const uint32_t * | extraAttrs = nullptr ) |
Get the SignalInfo object corresponding to the given Signal code.
| sigID | A 64-bit signal code. |
| extraAttrs | Optional caller-provided array of size SIGNAL_EXTRA_ATTRS_COUNT, indexed via SignalExtraAttrIndex, carrying Fps/Height/Width values. Pass nullptr (default) for signals without extra attributes. A non-null pointer selects the extra-attrs storage path. |
| SignalInfo * SignalRegistry::getSignalConfigByIdAndType | ( | uint32_t | sigCode, |
| uint32_t | sigType, | ||
| int32_t | numArgs = 0, | ||
| const uint32_t * | extraAttrs = nullptr ) |
Get the SignalInfo object corresponding to the given Signal ID and type.
| sigCode | An unsigned 32-bit signal code. |
| sigType | An unsigned 32-bit signal sub-type. |
| extraAttrs | Optional caller-provided array of size SIGNAL_EXTRA_ATTRS_COUNT, indexed via SignalExtraAttrIndex, carrying Fps/Height/Width values. Pass nullptr (default) for signals without extra attributes. A non-null pointer selects the extra-attrs storage path. |
| void SignalRegistry::registerSignal | ( | SignalInfo * | signalInfo | ) |
Used to register a Config specified (through YAML) Signal with Resource Tuner.
The Signal Info is parsed from YAML files. If the SignalInfo provided is Malformed, then it will be freed as part of this routine, else it will be added to the "mSignalsConfigs" vector.