commit | f8b2a6f7dea06234c7966798d9363d2d236488a6 | [log] [tgz] |
---|---|---|
author | Igor Murashkin <iam@google.com> | Tue Sep 17 17:03:28 2013 -0700 |
committer | Igor Murashkin <iam@google.com> | Wed Sep 18 19:47:20 2013 -0700 |
tree | 0205ab0fe470d4020dee18db4c15a39ebc301b12 | |
parent | 5baf2af52cd186633b7173196c1e4a4cd3435f22 [diff] [blame] |
camera2: Tell all streams to ignore global device UI rotation - Also use android.sensor.orientation to set the right transform flags automatically. Bug: 10804238 Change-Id: I10caf8331f19e107c461696963cc10f597c91d83
diff --git a/services/camera/libcameraservice/api2/CameraDeviceClient.h b/services/camera/libcameraservice/api2/CameraDeviceClient.h index c6b6336..b490924 100644 --- a/services/camera/libcameraservice/api2/CameraDeviceClient.h +++ b/services/camera/libcameraservice/api2/CameraDeviceClient.h
@@ -120,6 +120,9 @@ const CameraMetadata& frame); virtual void detachDevice(); + // Calculate the ANativeWindow transform from android.sensor.orientation + status_t getRotationTransformLocked(/*out*/int32_t* transform); + private: /** ICameraDeviceUser interface-related private members */