diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-01-03 04:01:15 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-01-16 18:23:42 +0200 |
commit | 34018d23d751e4818ce407b8bec5bafb158c1bb6 (patch) | |
tree | cb7d09792c3859dcc7ccb784940e8dcf97d3b784 /Documentation | |
parent | a5e86d4396ae7221e431a748559e56a8d024e43e (diff) |
libcamera: pipeline_handler: Don't index factories by name
Pipeline handler factories are register in a map indexed by their name,
and the list of names is used to expose the factories and look them up.
This is unnecessary cumbersome, we can instead store factories in a
vector and expose it directly. The pipeline factory users will still
have access to the factory names through the factory name() function.
The PipelineHandlerFactory::create() method becomes so simple that it
can be inlined in its single caller, removing the unneeded usage of the
DeviceEnumerator in the factory.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions