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


Public Member Functions | |
| CameraSensorFactory (const char *name, int priority) | |
| Construct a camera sensor factory. | |
Public Member Functions inherited from libcamera::CameraSensorFactoryBase | |
| CameraSensorFactoryBase (const char *name, int priority) | |
| Construct a camera sensor factory base. | |
| const std::string & | name () const |
| Retrieve the camera sensor factory name. | |
| int | priority () const |
| Retrieve the priority value for the factory. | |
Additional Inherited Members | |
Static Public Member Functions inherited from libcamera::CameraSensorFactoryBase | |
| static std::unique_ptr< CameraSensor > | create (MediaEntity *entity) |
| Create an instance of the CameraSensor corresponding to a media entity. | |
Registration of CameraSensorFactory classes and creation of instances.
| _CameraSensor | The camera sensor class type for this factory |
To facilitate discovery and instantiation of CameraSensor classes, the CameraSensorFactory class implements auto-registration of camera sensors. Each CameraSensor subclass shall register itself using the REGISTER_CAMERA_SENSOR() macro, which will create a corresponding instance of a CameraSensorFactory subclass and register it with the static list of factories.
|
inline |
Construct a camera sensor factory.
Creating an instance of the factory registers it with the global list of factories, accessible through the CameraSensorFactoryBase::factories() function.