diff options
author | Zhijun He <zhijunhe@google.com> | 2014-10-12 12:54:34 -0700 |
---|---|---|
committer | Timothy Knight <tknight@google.com> | 2014-10-12 19:58:34 +0000 |
commit | 5856373737de05e520e22f01d240716f998e2519 (patch) | |
tree | a16460e3312ada5a932cb237c924bd9e2f52b322 /apps | |
parent | b81d86158a88e1da5d5c35f85bdc16cdee7112d0 (diff) | |
download | pdk-5856373737de05e520e22f01d240716f998e2519.tar.gz |
CameraITS: Fix test crop region issue.
The cropRegion is related to active array size, we shouldn't add the active array size corner coordinates to the crop region.
Change-Id: Ia844f75d850d9f94995539ed5763722e634790df
Diffstat (limited to 'apps')
-rw-r--r-- | apps/CameraITS/tests/scene1/test_crop_regions.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/CameraITS/tests/scene1/test_crop_regions.py b/apps/CameraITS/tests/scene1/test_crop_regions.py index eee9d4a..90b6c4c 100644 --- a/apps/CameraITS/tests/scene1/test_crop_regions.py +++ b/apps/CameraITS/tests/scene1/test_crop_regions.py @@ -62,10 +62,10 @@ def main(): for x,y,w,h in REGIONS: req = its.objects.manual_capture_request(s,e) req["android.scaler.cropRegion"] = { - "top": int(ay + ah * y), - "left": int(ax + aw * x), - "right": int(ax + aw * (x + w)), - "bottom": int(ay + ah * (y + h))} + "top": int(ah * y), + "left": int(aw * x), + "right": int(aw * (x + w)), + "bottom": int(ah * (y + h))} reqs.append(req) caps_regions = cam.do_capture(reqs) match_failed = False |