libcamera
v0.4.0+65-9834402f
Supporting cameras in Linux since 2019
|
Registration of CameraSensorFactory classes and creation of instances. More...
Public Member Functions | |
CameraSensorFactory (const char *name, int priority) | |
Construct a camera sensor factory. More... | |
![]() | |
CameraSensorFactoryBase (const char *name, int priority) | |
Construct a camera sensor factory base. More... | |
const std::string & | name () const |
Retrieve the camera sensor factory name. More... | |
int | priority () const |
Retrieve the priority value for the factory. More... | |
Additional Inherited Members | |
![]() | |
static std::unique_ptr< CameraSensor > | create (MediaEntity *entity) |
Create an instance of the CameraSensor corresponding to a media entity. More... | |
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.