libcamera: pipeline_handler: Add accessor for useCount_
Add an accessor for useCount_ parameter, so that PipelineHandler child classes can access it to verify whether the media device is already locked or not. Signed-off-by: Antoine Bouyer <antoine.bouyer@nxp.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> [Kieran: fix extraneous ;] Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
committed by
Kieran Bingham
parent
485c50033c
commit
48b2b7928c
@@ -73,6 +73,7 @@ public:
|
||||
protected:
|
||||
void registerCamera(std::shared_ptr<Camera> camera);
|
||||
void hotplugMediaDevice(MediaDevice *media);
|
||||
unsigned int useCount() const { return useCount_; }
|
||||
|
||||
virtual int queueRequestDevice(Camera *camera, Request *request) = 0;
|
||||
virtual void stopDevice(Camera *camera) = 0;
|
||||
|
||||
@@ -811,6 +811,12 @@ void PipelineHandler::disconnect()
|
||||
* \return The pipeline handler name
|
||||
*/
|
||||
|
||||
/**
|
||||
* \fn PipelineHandler::useCount()
|
||||
* \brief Retrieve the pipeline handler's used camera count
|
||||
* \return The number of acquired cameras of the pipeline handler
|
||||
*/
|
||||
|
||||
/**
|
||||
* \fn PipelineHandler::cameraManager() const
|
||||
* \brief Retrieve the CameraManager that this pipeline handler belongs to
|
||||
|
||||
Reference in New Issue
Block a user