libcamera  v0.3.1+12-19bbca3c
Supporting cameras in Linux since 2019
Public Member Functions | List of all members
libcamera::ipa::CameraSensorHelperFactory< _Helper > Class Template Referencefinal

Registration of CameraSensorHelperFactory classes and creation of instances. More...

Inheritance diagram for libcamera::ipa::CameraSensorHelperFactory< _Helper >:
Inheritance graph
[legend]
Collaboration diagram for libcamera::ipa::CameraSensorHelperFactory< _Helper >:
Collaboration graph
[legend]

Public Member Functions

 CameraSensorHelperFactory (const char *name)
 Construct a camera sensor helper factory. More...
 
- Public Member Functions inherited from libcamera::ipa::CameraSensorHelperFactoryBase
 CameraSensorHelperFactoryBase (const std::string name)
 Construct a camera sensor helper factory base. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from libcamera::ipa::CameraSensorHelperFactoryBase
static std::unique_ptr< CameraSensorHelpercreate (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...
 

Detailed Description

template<typename _Helper>
class libcamera::ipa::CameraSensorHelperFactory< _Helper >

Registration of CameraSensorHelperFactory classes and creation of instances.

Template Parameters
_HelperThe 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.

Constructor & Destructor Documentation

◆ CameraSensorHelperFactory()

template<typename _Helper >
libcamera::ipa::CameraSensorHelperFactory< _Helper >::CameraSensorHelperFactory ( const char *  name)
inline

Construct a camera sensor helper factory.

Parameters
[in]nameName 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.


The documentation for this class was generated from the following files: