android: camera_device: Add a getter to get libcamera::Camera pointer
Add a public member function to get the libcamera::Camera pointer associated with the CameraDevice. This will help to find the CameraDevice object in CameraHalManager when the hotplug support is extended in the Android layer. Signed-off-by: Umang Jain <email@uajain.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
committed by
Laurent Pinchart
parent
f8e2813ffe
commit
12b939aa53
@@ -58,6 +58,7 @@ public:
|
||||
|
||||
unsigned int id() const { return id_; }
|
||||
camera3_device_t *camera3Device() { return &camera3Device_; }
|
||||
const libcamera::Camera *camera() const { return camera_.get(); }
|
||||
|
||||
int facing() const { return facing_; }
|
||||
int orientation() const { return orientation_; }
|
||||
|
||||
Reference in New Issue
Block a user