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>
This commit is contained in:
committed by
Laurent Pinchart
parent
f101cc6878
commit
82b8151aa7
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user