diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2019-04-14 01:48:57 +0200 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2019-05-17 20:35:27 +0200 |
commit | d6a88607479937a9941f1ea2c82a7e5c66b20647 (patch) | |
tree | eff0e2193ef12e2b1e058943fb10d8a171c70e56 /test/v4l2_device | |
parent | 2e22ee4310d47bc76c9db0da1b6b48f12f032743 (diff) |
libcamera: pipeline_handler: Keep track of MediaDevice
Instead of requiring each pipeline handle implementation to keep track
of calling release() on its media devices upon deletion, keep track of
them in the base class. Add a helper that pipeline handlers shall use
to acquire a media device instead of directly interacting with the
DeviceEnumerator.
This also means that pipeline handler implementations do no need to keep
a shared_ptr<> reference to the media devices they store locally as the
PipelineHandler base class will keep a shared_ptr<> reference to all
media devices consumed for the entire lifetime of the pipeline handler
implementation.
Centrally keeping track of media devices will also be beneficial
to implement exclusive access to pipelines across processes.
Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'test/v4l2_device')
0 files changed, 0 insertions, 0 deletions