libcamera
v0.3.1+12-19bbca3c
Supporting cameras in Linux since 2019
|
Registration of CameraSensorHelperFactory classes and creation of instances. More...
Public Member Functions | |
CameraSensorHelperFactory (const char *name) | |
Construct a camera sensor helper factory. More... | |
![]() | |
CameraSensorHelperFactoryBase (const std::string name) | |
Construct a camera sensor helper factory base. More... | |
Additional Inherited Members | |
![]() | |
static std::unique_ptr< CameraSensorHelper > | create (const std::string &name) |
Create an instance of the CameraSensorHelper corresponding to a named factory. More... | |
static std::vector< CameraSensorHelperFactoryBase * > & | factories () |
Retrieve the list of all camera sensor helper factories. More... | |
Registration of CameraSensorHelperFactory classes and creation of instances.
_Helper | The camera sensor helper class type for this factory |
To facilitate discovery and instantiation of CameraSensorHelper classes, the CameraSensorHelperFactory class implements auto-registration of camera sensor helpers. Each CameraSensorHelper subclass shall register itself using the REGISTER_CAMERA_SENSOR_HELPER() macro, which will create a corresponding instance of a CameraSensorHelperFactory subclass and register it with the static list of factories.
|
inline |
Construct a camera sensor helper factory.
[in] | name | Name of the camera sensor helper class |
Creating an instance of the factory registers it with the global list of factories, accessible through the CameraSensorHelperFactoryBase::factories() function.
The factory name is used to look up factories and shall be unique.