Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

system-media: Commit

system/media


Commit MetaInfo

Revision4db8bb86f2a27a15a22e14536e81bd35bd382bef (tree)
Time2018-06-07 09:25:33
AuthorShuzhen Wang <shuzhenwang@goog...>
CommiterShuzhen Wang

Log Message

Camera: Fix a typo in android.scaler.cropRegion

Test: Compile
Bug: 109839186
Change-Id: Iddbf41ee4dff363510ffc27f3ec4140bac0324c0

Change Summary

Incremental Difference

--- a/camera/docs/docs.html
+++ b/camera/docs/docs.html
@@ -18161,7 +18161,7 @@ array size.<wbr/>More specifically,<wbr/> the HAL must transform the request cro
1816118161 <ol>
1816218162 <li>Translate the requested cropRegion w.<wbr/>r.<wbr/>t.,<wbr/> the left top corner of the sensor
1816318163 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>
1816518165 and <code>tx = sensorCrop.<wbr/>left * (sensorCrop.<wbr/>width /<wbr/> activeArraySize.<wbr/>width)</code>.<wbr/> The
1816618166 (sensorCrop.<wbr/>top,<wbr/> sensorCrop.<wbr/>left) is the coordinate based off the
1816718167 <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
1976119761 <ol>
1976219762 <li>Translate the requested cropRegion w.<wbr/>r.<wbr/>t.,<wbr/> the left top corner of the sensor
1976319763 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>
1976519765 and <code>tx = sensorCrop.<wbr/>left * (sensorCrop.<wbr/>width /<wbr/> activeArraySize.<wbr/>width)</code>.<wbr/> The
1976619766 (sensorCrop.<wbr/>top,<wbr/> sensorCrop.<wbr/>left) is the coordinate based off the
1976719767 <a href="#static_android.sensor.info.activeArraySize">android.<wbr/>sensor.<wbr/>info.<wbr/>active<wbr/>Array<wbr/>Size</a>.<wbr/></li>
--- a/camera/docs/metadata_definitions.xml
+++ b/camera/docs/metadata_definitions.xml
@@ -5639,7 +5639,7 @@ xsi:schemaLocation="http://schemas.android.com/service/camera/metadata/ metadata
56395639 android.sensor.info.activeArraySize to the sensor cropped pixel area size in this way:
56405640 1. Translate the requested cropRegion w.r.t., the left top corner of the sensor
56415641 cropped pixel area by (tx, ty),
5642- where `tx = sensorCrop.top * (sensorCrop.height / activeArraySize.height)`
5642+ where `ty = sensorCrop.top * (sensorCrop.height / activeArraySize.height)`
56435643 and `tx = sensorCrop.left * (sensorCrop.width / activeArraySize.width)`. The
56445644 (sensorCrop.top, sensorCrop.left) is the coordinate based off the
56455645 android.sensor.info.activeArraySize.
Show on old repository browser