libcamera
v0.3.2+116-83c5ad0f
Supporting cameras in Linux since 2019
|
Registration of Algorithm classes and creation of instances. More...
Public Member Functions | |
AlgorithmFactory (const char *name) | |
Construct an algorithm factory. More... | |
std::unique_ptr< Algorithm< typename _Algorithm::Module > > | create () const override |
Create an instance of the Algorithm corresponding to the factory. More... | |
Registration of Algorithm classes and creation of instances.
_Algorithm | The algorithm class type for this factory |
To facilitate instantiation of Algorithm classes, the AlgorithmFactory class implements auto-registration of algorithms with the IPA Module class. Each Algorithm subclass shall register itself using the REGISTER_IPA_ALGORITHM() macro, which will create a corresponding instance of an AlgorithmFactory and register it with the IPA Module.
|
inline |
Construct an algorithm factory.
[in] | name | Name of the algorithm class |
Creating an instance of the factory automatically registers is with the IPA Module class, enabling creation of algorithm instances through Module::createAlgorithm().
The factory name identifies the algorithm and shall be unique.
|
inlineoverride |