summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2020-12-23 18:34:34 +0100
committerJacopo Mondi <jacopo@jmondi.org>2020-12-30 11:22:53 +0100
commit0ed053245702d193b9c0ad7d8bda9e975ddfb6ed (patch)
treea955b6ccc81ecf662df8a9fb16afa7a08d7c7eba
parentcb35ed23f3c7d3b03c4a6037f50934565ed8f030 (diff)
android: camera_device: Simplify properties.get()
When accessing the value of a property by reading the properties ControlList content with ControlList::get<>() it is not necessary to specify the template type as it is already conveyed by the Control instance provided as first argument. Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
-rw-r--r--src/android/camera_device.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/android/camera_device.cpp b/src/android/camera_device.cpp
index bbf016c3..7678d448 100644
--- a/src/android/camera_device.cpp
+++ b/src/android/camera_device.cpp
@@ -853,7 +853,7 @@ const camera_metadata_t *CameraDevice::getStaticMetadata()
/* Sensor static metadata. */
if (properties.contains(properties::PixelArraySize)) {
const Size &size =
- properties.get<Size>(properties::PixelArraySize);
+ properties.get(properties::PixelArraySize);
std::vector<int32_t> data{
static_cast<int32_t>(size.width),
static_cast<int32_t>(size.height),
@@ -872,7 +872,7 @@ const camera_metadata_t *CameraDevice::getStaticMetadata()
if (properties.contains(properties::PixelArrayActiveAreas)) {
const Span<const Rectangle> &rects =
- properties.get<Span<const Rectangle>>(properties::PixelArrayActiveAreas);
+ properties.get(properties::PixelArrayActiveAreas);
std::vector<int32_t> data{
static_cast<int32_t>(rects[0].x),
static_cast<int32_t>(rects[0].y),