summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorUmang Jain <email@uajain.com>2020-08-21 14:46:09 +0000
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-08-23 20:46:12 +0300
commit12b939aa5360089eb2299ed861b1ee1c77669d1b (patch)
treeb7c1067d588f4b3173dda5c7eeb9c8f44c724899 /src
parentf8e2813ffe0943fabcff26e47bf4891c07ea18ab (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/android/camera_device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/android/camera_device.h b/src/android/camera_device.h
index 3e472c71..3934f194 100644
--- a/src/android/camera_device.h
+++ b/src/android/camera_device.h
@@ -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_; }