android: camera_metadata: Add const version of get()

Add a const version of the CameraMetadata::get() method to retrieve
a const pointer to the camera metadata wrapped by the class instance.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
Jacopo Mondi 2020-07-24 13:59:15 +02:00
parent 17a21b095a
commit f2d19266a4
2 changed files with 6 additions and 0 deletions

View file

@ -50,3 +50,8 @@ camera_metadata_t *CameraMetadata::get()
{
return valid_ ? metadata_ : nullptr;
}
const camera_metadata_t *CameraMetadata::get() const
{
return valid_ ? metadata_ : nullptr;
}