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>
This commit is contained in:
parent
cb35ed23f3
commit
0ed0532457
1 changed files with 2 additions and 2 deletions
|
@ -853,7 +853,7 @@ const camera_metadata_t *CameraDevice::getStaticMetadata()
|
||||||
/* Sensor static metadata. */
|
/* Sensor static metadata. */
|
||||||
if (properties.contains(properties::PixelArraySize)) {
|
if (properties.contains(properties::PixelArraySize)) {
|
||||||
const Size &size =
|
const Size &size =
|
||||||
properties.get<Size>(properties::PixelArraySize);
|
properties.get(properties::PixelArraySize);
|
||||||
std::vector<int32_t> data{
|
std::vector<int32_t> data{
|
||||||
static_cast<int32_t>(size.width),
|
static_cast<int32_t>(size.width),
|
||||||
static_cast<int32_t>(size.height),
|
static_cast<int32_t>(size.height),
|
||||||
|
@ -872,7 +872,7 @@ const camera_metadata_t *CameraDevice::getStaticMetadata()
|
||||||
|
|
||||||
if (properties.contains(properties::PixelArrayActiveAreas)) {
|
if (properties.contains(properties::PixelArrayActiveAreas)) {
|
||||||
const Span<const Rectangle> &rects =
|
const Span<const Rectangle> &rects =
|
||||||
properties.get<Span<const Rectangle>>(properties::PixelArrayActiveAreas);
|
properties.get(properties::PixelArrayActiveAreas);
|
||||||
std::vector<int32_t> data{
|
std::vector<int32_t> data{
|
||||||
static_cast<int32_t>(rects[0].x),
|
static_cast<int32_t>(rects[0].x),
|
||||||
static_cast<int32_t>(rects[0].y),
|
static_cast<int32_t>(rects[0].y),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue