android: camera_device: Mark toPixelFormat() a const function
CameraDevice::toPixelFormat() doesn't change the state of the CameraDevice. Marks it a const function so that it can be called in const functions. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
3a777d8cc1
commit
c1ae9055f9
2 changed files with 2 additions and 2 deletions
|
@ -1188,7 +1188,7 @@ const camera_metadata_t *CameraDevice::constructDefaultRequestSettings(int type)
|
|||
return requestTemplate->get();
|
||||
}
|
||||
|
||||
PixelFormat CameraDevice::toPixelFormat(int format)
|
||||
PixelFormat CameraDevice::toPixelFormat(int format) const
|
||||
{
|
||||
/* Translate Android format code to libcamera pixel format. */
|
||||
auto it = formatsMap_.find(format);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue