summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorIgor Murashkin <iam@google.com>2013-05-07 13:22:15 -0700
committerIgor Murashkin <iam@google.com>2013-05-07 13:24:43 -0700
commitbe53a80f4e50921790aa7c5eb12b798b988232b6 (patch)
tree4b8c0a4ff9aabb08628d92dd8a6cef79cb70e61f /services
parent84e391686d7eced293913d1d7993721224ee0ba1 (diff)
downloadframeworks_av-be53a80f4e50921790aa7c5eb12b798b988232b6.zip
frameworks_av-be53a80f4e50921790aa7c5eb12b798b988232b6.tar.gz
frameworks_av-be53a80f4e50921790aa7c5eb12b798b988232b6.tar.bz2
camera2: Add height to the crop region metadata property
Bug: 8756080 Change-Id: I90b9166440e92f7675255a01ddc4a980c2e52201
Diffstat (limited to 'services')
-rw-r--r--services/camera/libcameraservice/camera2/Parameters.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/services/camera/libcameraservice/camera2/Parameters.cpp b/services/camera/libcameraservice/camera2/Parameters.cpp
index b26cd09..f50ca9e 100644
--- a/services/camera/libcameraservice/camera2/Parameters.cpp
+++ b/services/camera/libcameraservice/camera2/Parameters.cpp
@@ -1810,13 +1810,14 @@ status_t Parameters::updateRequest(CameraMetadata *request) const {
CropRegion::OUTPUT_PREVIEW |
CropRegion::OUTPUT_VIDEO |
CropRegion::OUTPUT_PICTURE ));
- int32_t reqCropRegion[3] = {
+ int32_t reqCropRegion[4] = {
static_cast<int32_t>(crop.left),
static_cast<int32_t>(crop.top),
- static_cast<int32_t>(crop.width)
+ static_cast<int32_t>(crop.width),
+ static_cast<int32_t>(crop.height)
};
res = request->update(ANDROID_SCALER_CROP_REGION,
- reqCropRegion, 3);
+ reqCropRegion, 4);
if (res != OK) return res;
uint8_t reqVstabMode = videoStabilization ?