Registration of Algorithm classes and creation of instances.
More...
|
| | AlgorithmFactory (const char *name) |
| | Construct an algorithm factory.
|
| |
| std::unique_ptr< Algorithm< typename _Algorithm::Module > > | create () const override |
| | Create an instance of the Algorithm corresponding to the factory.
|
| |
template<typename _Algorithm>
class libcamera::ipa::AlgorithmFactory< _Algorithm >
Registration of Algorithm classes and creation of instances.
- Template Parameters
-
| _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.
◆ AlgorithmFactory()
template<typename _Algorithm>
Construct an algorithm factory.
- Parameters
-
| [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.
◆ create()
template<typename _Algorithm>
Create an instance of the Algorithm corresponding to the factory.
- Returns
- A pointer to a newly constructed instance of the Algorithm subclass corresponding to the factory
The documentation for this class was generated from the following files:
- src/ipa/libipa/algorithm.h
- src/ipa/libipa/algorithm.cpp