commit | f9feab9a826e5b33d811e757bdfdbfa0738fcfa5 | [log] [tgz] |
---|---|---|
author | Sol Boucher <solb@google.com> | Tue Aug 12 12:09:04 2014 -0700 |
committer | Solomon Boucher <solb@google.com> | Fri Aug 15 20:21:16 2014 +0000 |
tree | f86eb591626f6e50b5ade96d6587744869637e14 | |
parent | 47497bee8a3550af79f9a32c9362d7ee78364a71 [diff] |
camera2-portability: Provide preview transformation matrix Applying this transform to the Surface on which the stream is displayed results in a correctly rotated image. For API 1, the rotation is actually performed by the Camera class and the returned matrix is an identity matrix; however, for API 2, the transformation is responsible for proper orientation. Bug: 16875535 Change-Id: I044ffbd1095bd1a9792c899b792129cc94c7c916