Registration of PipelineHandler classes and creation of instances.
More...
Registration of PipelineHandler classes and creation of instances.
To facilitate discovery and instantiation of PipelineHandler classes, the PipelineHandlerFactory class maintains a registry of pipeline handler classes. Each PipelineHandler subclass shall register itself using the REGISTER_PIPELINE_HANDLER() macro, which will create a corresponding instance of a PipelineHandlerFactory subclass and register it with the static list of factories.
◆ PipelineHandlerFactory()
libcamera::PipelineHandlerFactory::PipelineHandlerFactory |
( |
const char * |
name | ) |
|
Construct a pipeline handler factory.
- Parameters
-
[in] | name | Name of the pipeline handler class |
Creating an instance of the factory registers is with the global list of factories, accessible through the factories() function.
The factory name is used for debug purpose and shall be unique.
◆ create()
Create an instance of the PipelineHandler corresponding to the factory.
- Parameters
-
[in] | manager | The camera manager |
- Returns
- A shared pointer to a new instance of the PipelineHandler subclass corresponding to the factory
◆ factories()
Retrieve the list of all pipeline handler factories.
- Returns
- the list of pipeline handler factories
◆ name()
libcamera::PipelineHandlerFactory::name |
( |
| ) |
const |
|
inline |
Retrieve the factory name.
- Returns
- The factory name
◆ registerType()
Add a pipeline handler class to the registry.
- Parameters
-
[in] | factory | Factory to use to construct the pipeline handler |
The caller is responsible to guarantee the uniqueness of the pipeline handler name.
The documentation for this class was generated from the following files: