diff options
| author | Igor Murashkin <iam@google.com> | 2014-04-01 15:07:05 -0700 |
|---|---|---|
| committer | Igor Murashkin <iam@google.com> | 2014-04-01 15:07:05 -0700 |
| commit | e0de435aed8d68abaa7e148710520f45a2087986 (patch) | |
| tree | ef10655df2147a9fd7e8cba81d3cb5e5112ea901 /camera | |
| parent | 2c46bc2e89bd77e32770ce4fd2d882b8c046ed30 (diff) | |
| download | android_device_generic_goldfish-e0de435aed8d68abaa7e148710520f45a2087986.tar.gz android_device_generic_goldfish-e0de435aed8d68abaa7e148710520f45a2087986.tar.bz2 android_device_generic_goldfish-e0de435aed8d68abaa7e148710520f45a2087986.zip | |
camera3: Add missing android.sensor.orientation static info
* This also fixes camera2 api from not being able to create new requests
Bug: 12002757
Change-Id: Iad55381add850e92b8eb97f9c5cdf84455cda999
Diffstat (limited to 'camera')
| -rw-r--r-- | camera/EmulatedFakeCamera3.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/camera/EmulatedFakeCamera3.cpp b/camera/EmulatedFakeCamera3.cpp index bcf3ac2..ba92459 100644 --- a/camera/EmulatedFakeCamera3.cpp +++ b/camera/EmulatedFakeCamera3.cpp @@ -1113,6 +1113,9 @@ status_t EmulatedFakeCamera3::constructStaticInfo() { info.update(ANDROID_SENSOR_BLACK_LEVEL_PATTERN, blackLevelPattern, sizeof(blackLevelPattern)/sizeof(int32_t)); + static const int32_t orientation = 0; // unrotated (0 degrees) + info.update(ANDROID_SENSOR_ORIENTATION, &orientation, 1); + //TODO: sensor color calibration fields // android.flash |
