Registration of IPAProxy classes and creation of instances.
More...
Registration of IPAProxy classes and creation of instances.
To facilitate discovery and instantiation of IPAProxy classes, the IPAProxyFactory class maintains a registry of IPAProxy classes. Each IPAProxy subclass shall register itself using the REGISTER_IPA_PROXY() macro, which will create a corresponding instance of a IPAProxyFactory subclass and register it with the static list of factories.
◆ IPAProxyFactory()
libcamera::IPAProxyFactory::IPAProxyFactory |
( |
const char * |
name | ) |
|
Construct a IPAProxy factory.
- Parameters
-
Creating an instance of the factory registers is with the global list of factories, accessible through the factories() function.
The factory name is used for debugging and IPAProxy matching purposes and shall be unique.
◆ create()
libcamera::IPAProxyFactory::create |
( |
IPAModule * |
ipam | ) |
|
|
pure virtual |
Create an instance of the IPAProxy corresponding to the factory.
- Parameters
-
This virtual function is implemented by the REGISTER_IPA_PROXY() macro. It creates a IPAProxy instance that isolates an IPA interface designated by the IPA module ipam.
- Returns
- A pointer to a newly constructed instance of the IPAProxy subclass corresponding to the factory
◆ factories()
std::vector< IPAProxyFactory * > & libcamera::IPAProxyFactory::factories |
( |
| ) |
|
|
static |
Retrieve the list of all IPAProxy factories.
The static factories map is defined inside the function to ensure it gets initialized on first use, without any dependency on link order.
- Returns
- The list of pipeline handler factories
◆ name()
libcamera::IPAProxyFactory::name |
( |
| ) |
const |
|
inline |
Retrieve the factory name.
- Returns
- The factory name
◆ registerType()
Add a IPAProxy class to the registry.
- Parameters
-
[in] | factory | Factory to use to construct the IPAProxy |
The caller is responsible to guarantee the uniqueness of the IPAProxy name.
The documentation for this class was generated from the following files:
- include/libcamera/internal/ipa_proxy.h
- src/libcamera/ipa_proxy.cpp