summaryrefslogtreecommitdiff
path: root/src/android/camera_device.h
diff options
context:
space:
mode:
authorHirokazu Honda <hiroh@chromium.org>2021-03-25 20:13:56 +0900
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-03-25 19:34:54 +0200
commit82b8151aa775bdf90bbe2f3073fd484e83ea3d51 (patch)
tree923906766c6f9229025e3267de876469320ad445 /src/android/camera_device.h
parentf101cc6878112d6587692913078f5656372c2e25 (diff)
android: CameraDevice: Mark getResultMetadata() const function
CameraDevice::getResultMetadata() doesn't change either |descriptor| and member variables. It should be marked as a const function and |descriptor| should be passed with const lvalue reference. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/android/camera_device.h')
-rw-r--r--src/android/camera_device.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/android/camera_device.h b/src/android/camera_device.h
index 09c395ff..11bdfec8 100644
--- a/src/android/camera_device.h
+++ b/src/android/camera_device.h
@@ -102,7 +102,8 @@ private:
libcamera::PixelFormat toPixelFormat(int format) const;
int processControls(Camera3RequestDescriptor *descriptor);
std::unique_ptr<CameraMetadata> getResultMetadata(
- Camera3RequestDescriptor *descriptor, int64_t timestamp);
+ const Camera3RequestDescriptor &descriptor,
+ int64_t timestamp) const;
unsigned int id_;
camera3_device_t camera3Device_;