commit | 7373cbe85e617345f7002256a4be389fe62af913 | [log] [tgz] |
---|---|---|
author | Igor Murashkin <iam@google.com> | Fri Sep 28 15:30:03 2012 -0700 |
committer | Igor Murashkin <iam@google.com> | Fri Oct 05 13:32:07 2012 -0700 |
tree | ecc7614df98deb08d8e39e064be47cec63186a1f | |
parent | af3d28870f7890370d6acb21d20cf1ccab4b9e08 [diff] [blame] |
Camera2: Fix metering regions to take into account the current zoom/crop region Also adds a quirk to disable this fix to work around for incompliant HALs Bug: 7246065 Change-Id: I80bad25e56ba59149270238e5639bb33cae495ae
diff --git a/services/camera/libcameraservice/Camera2Client.cpp b/services/camera/libcameraservice/Camera2Client.cpp index ed4567e..90cba46 100644 --- a/services/camera/libcameraservice/Camera2Client.cpp +++ b/services/camera/libcameraservice/Camera2Client.cpp
@@ -334,6 +334,10 @@ result.appendFormat(" useZslFormat\n"); haveQuirk = true; } + if (p.quirks.meteringCropRegion) { + result.appendFormat(" meteringCropRegion\n"); + haveQuirk = true; + } if (!haveQuirk) { result.appendFormat(" none\n"); }