libcamera v0.1.0+127-8e215127-dirty (2023-12-02T01:06:12+00:00)
Supporting cameras in Linux since 2019
|
Base class for pipeline handler factories. More...
Public Member Functions | |
PipelineHandlerFactoryBase (const char *name) | |
Construct a pipeline handler factory base. More... | |
std::shared_ptr< PipelineHandler > | create (CameraManager *manager) const |
Create an instance of the PipelineHandler corresponding to the factory. More... | |
const std::string & | name () const |
Retrieve the factory name. More... | |
Static Public Member Functions | |
static std::vector< PipelineHandlerFactoryBase * > & | factories () |
Retrieve the list of all pipeline handler factories. More... | |
Base class for pipeline handler factories.
The PipelineHandlerFactoryBase class is the base of all specializations of the PipelineHandlerFactory class template. It implements the factory registration, maintains a registry of factories, and provides access to the registered factories.
libcamera::PipelineHandlerFactoryBase::PipelineHandlerFactoryBase | ( | const char * | name | ) |
Construct a pipeline handler factory base.
[in] | name | Name of the pipeline handler class |
Creating an instance of the factory base registers it with the global list of factories, accessible through the factories() function.
The factory name is used for debug purpose and shall be unique.
std::shared_ptr< PipelineHandler > libcamera::PipelineHandlerFactoryBase::create | ( | CameraManager * | manager | ) | const |
Create an instance of the PipelineHandler corresponding to the factory.
[in] | manager | The camera manager |
|
static |
Retrieve the list of all pipeline handler factories.
|
inline |
Retrieve the factory name.