system/media
Revision | 4db8bb86f2a27a15a22e14536e81bd35bd382bef (tree) |
---|---|
Time | 2018-06-07 09:25:33 |
Author | Shuzhen Wang <shuzhenwang@goog...> |
Commiter | Shuzhen Wang |
Camera: Fix a typo in android.scaler.cropRegion
Test: Compile
Bug: 109839186
Change-Id: Iddbf41ee4dff363510ffc27f3ec4140bac0324c0
@@ -18161,7 +18161,7 @@ array size.<wbr/>More specifically,<wbr/> the HAL must transform the request cro | ||
18161 | 18161 | <ol> |
18162 | 18162 | <li>Translate the requested cropRegion w.<wbr/>r.<wbr/>t.,<wbr/> the left top corner of the sensor |
18163 | 18163 | cropped pixel area by (tx,<wbr/> ty),<wbr/> |
18164 | -where <code>tx = sensorCrop.<wbr/>top * (sensorCrop.<wbr/>height /<wbr/> activeArraySize.<wbr/>height)</code> | |
18164 | +where <code>ty = sensorCrop.<wbr/>top * (sensorCrop.<wbr/>height /<wbr/> activeArraySize.<wbr/>height)</code> | |
18165 | 18165 | and <code>tx = sensorCrop.<wbr/>left * (sensorCrop.<wbr/>width /<wbr/> activeArraySize.<wbr/>width)</code>.<wbr/> The |
18166 | 18166 | (sensorCrop.<wbr/>top,<wbr/> sensorCrop.<wbr/>left) is the coordinate based off the |
18167 | 18167 | <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/></li> |
@@ -19761,7 +19761,7 @@ array size.<wbr/>More specifically,<wbr/> the HAL must transform the request cro | ||
19761 | 19761 | <ol> |
19762 | 19762 | <li>Translate the requested cropRegion w.<wbr/>r.<wbr/>t.,<wbr/> the left top corner of the sensor |
19763 | 19763 | cropped pixel area by (tx,<wbr/> ty),<wbr/> |
19764 | -where <code>tx = sensorCrop.<wbr/>top * (sensorCrop.<wbr/>height /<wbr/> activeArraySize.<wbr/>height)</code> | |
19764 | +where <code>ty = sensorCrop.<wbr/>top * (sensorCrop.<wbr/>height /<wbr/> activeArraySize.<wbr/>height)</code> | |
19765 | 19765 | and <code>tx = sensorCrop.<wbr/>left * (sensorCrop.<wbr/>width /<wbr/> activeArraySize.<wbr/>width)</code>.<wbr/> The |
19766 | 19766 | (sensorCrop.<wbr/>top,<wbr/> sensorCrop.<wbr/>left) is the coordinate based off the |
19767 | 19767 | <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/></li> |
@@ -5639,7 +5639,7 @@ xsi:schemaLocation="http://schemas.android.com/service/camera/metadata/ metadata | ||
5639 | 5639 | android.sensor.info.activeArraySize to the sensor cropped pixel area size in this way: |
5640 | 5640 | 1. Translate the requested cropRegion w.r.t., the left top corner of the sensor |
5641 | 5641 | cropped pixel area by (tx, ty), |
5642 | - where `tx = sensorCrop.top * (sensorCrop.height / activeArraySize.height)` | |
5642 | + where `ty = sensorCrop.top * (sensorCrop.height / activeArraySize.height)` | |
5643 | 5643 | and `tx = sensorCrop.left * (sensorCrop.width / activeArraySize.width)`. The |
5644 | 5644 | (sensorCrop.top, sensorCrop.left) is the coordinate based off the |
5645 | 5645 | android.sensor.info.activeArraySize. |