summaryrefslogtreecommitdiff
path: root/libcamera2/MetadataConverter.cpp
diff options
context:
space:
mode:
authorIgor Murashkin <iam@google.com>2013-05-07 16:40:33 -0700
committerIgor Murashkin <iam@google.com>2013-05-07 16:40:33 -0700
commita40ca07e12bb91f76cc5bb0ff6a723ea7b724eb8 (patch)
tree5f0ce5c20388c450523d990aa8b1ed4121aa3cb2 /libcamera2/MetadataConverter.cpp
parent9449b168e067934c54cd846f61791cc8e52cea22 (diff)
downloadexynos5-a40ca07e12bb91f76cc5bb0ff6a723ea7b724eb8.tar.gz
camera: Use cropRegion as 4 parts instead of 3 parts
Bug: 8756080 Change-Id: Id3dff232091f73e4ed143d2f0010451c3709fbcb
Diffstat (limited to 'libcamera2/MetadataConverter.cpp')
-rw-r--r--libcamera2/MetadataConverter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcamera2/MetadataConverter.cpp b/libcamera2/MetadataConverter.cpp
index a39be4e..4ae1e73 100644
--- a/libcamera2/MetadataConverter.cpp
+++ b/libcamera2/MetadataConverter.cpp
@@ -172,9 +172,9 @@ status_t MetadataConverter::ToInternalShot(camera_metadata_t * request, struct c
case ANDROID_SCALER_CROP_REGION:
- if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_INT32, 3))
+ if (NO_ERROR != CheckEntryTypeMismatch(&curr_entry, TYPE_INT32, 4))
break;
- for (i=0 ; i<curr_entry.count ; i++)
+ for (i=0 ; i<3; i++)
dst->ctl.scaler.cropRegion[i] = ALIGN(curr_entry.data.i32[i], 2);
break;