commit | 9b0d9534c75dc4d40edbf13938aa09c3eec737a1 | [log] [tgz] |
---|---|---|
author | Shuzhen Wang <shuzhenwang@google.com> | Tue Apr 14 17:14:20 2020 -0700 |
committer | Shuzhen Wang <shuzhenwang@google.com> | Thu Apr 23 12:19:22 2020 -0700 |
tree | 8497e2d67c87e7ba12b86bf7bd07d2cf7a531e1a | |
parent | ec77ef69320225579dbee12b5199442fe3e669ca [diff] |
Camera: Fix off-by-1 error for scaling crop region Make sure the scaling of coordinates based on zoomRatio is symmetric relative to the center of the image. And use the center of the pixel for calculation. Test: testZoomRatio, testDigitalZoom, cameraservice_test Test: vendor testing Bug: 153959755 Change-Id: I966bd31bde5afd50462a018590c7a4fefc3eaac6