24be7cc6d138129b4087ef28f114701de54aba3c |
|
19-Feb-2015 |
Senpo Hu <senpo@google.com> |
Introduce CaptureIntentModule Continue with ag/618042. =================== Improve the UX by adopting ZSL and showing fast intermediate thumbnail. Try to implement this from scratch, this module has an event driven and state machine design. * the state machine is thread safe. * Event is implemented with guava's Function. * The event processing uses Strategy pattern. State Machine Chart: https://docs.google.com/presentation/d/1LA30__ZNnzO6HWju1kA0geJ5LBsMs3hvdTf6_IPn9Y0/edit#slide=id.p Bug: 18726217 Change-Id: Ie869c84bfe2f02145e5cb5c9e9af270fd82048d6
/packages/apps/Camera2/src/com/android/camera/app/OrientationManagerImpl.java
|
ec604214008248f7858b3a8b66d70919947399a9 |
|
04-Feb-2015 |
I-Jong Lin <ijonglin@google.com> |
Remove UNKNOWN Orientation values UNKNOWN Orientation is causing some strange crashes in the Camera App, in certain situation when the phone starts up while faceup on a table, i.e. an unknown orientation. This CL is to make sure that we stop any UNKOWN orientations propogating through the system and causes these sorts of crashes. Bug: 19049293 Change-Id: I4f403bda1b6b23f2bbe5ee590e23d0fc078543b7
/packages/apps/Camera2/src/com/android/camera/app/OrientationManagerImpl.java
|
8be316c7a8caf962cf3fcf5e49d332fb2718319f |
|
20-Jan-2015 |
Paul Rohde <codelogic@google.com> |
Make it possible for singletons that rely on application context to be initalized lazily. * Add AndroidContext * Add AndroidServices * Make LogHelper ues thread safe lazy initialization * Convert several unused fields into local variables in CameraApp. Change-Id: I9c73e9b91efb49a01d848a8cca1e8e65f059b5d0
/packages/apps/Camera2/src/com/android/camera/app/OrientationManagerImpl.java
|
0bdc4b54a18c18d7094b2e4cea1e238005c5c4a2 |
|
18-Nov-2014 |
Senpo Hu <senpo@google.com> |
Unify orientation calculation logic. Camera API takes clockwise degrees for JPEG rotation and OrientationEventListener reports clockwise device orientation. The easiest formula of calculating output image rotation degree is: "camera sensor orientation" + "device orientation" Since front cameras face in opposite direction. The result needs to be mirrored for front camera. Detailed changes: * Refactor OrientationManager to remove unnecessary complexity. * Add OrientationManager.DeviceOrientation enum and OrientationManager.getDeviceOrientation * Remove CameraUtil.roundOrientation. * Fix the weird calculation which is hard to understand in CameraUtil.getJpegRotation and add CameraUtil.getImageRotation * Clean up image rotation logic in all modules: * Always look up the current device orientation via OrientationManager.getDeviceOrientation * Fix the doc for copyImagePlaneToBitmap() which actually rotates image counterclockwise. * Clean up CameraActivity: * Remove CameraActivity.onOrientationChanged and ModuleController.onOrientationChanged. Any individual module which wants to listen orientation change should register itself to OrientationManager. Now only VideoModule needs to do that. Bug: 17443789 Change-Id: I6d54cac5bde950acae0c3226448c27a816266df0
/packages/apps/Camera2/src/com/android/camera/app/OrientationManagerImpl.java
|
bb1c72f7b9b8659071bc74e7949f8a360be0578d |
|
08-Sep-2014 |
Senpo Hu <senpo@google.com> |
Always match camera orientation with device orientation regardless portrait lock. Verified that this CL fixes the orientation issue for portrait/landscape photos taken in PhotoModule with all configuration combinations such as Camera API1/API2 devices, K/L devices, front/back camera. Bug: 17360176 Change-Id: If84244726cf7e2ade470c231b8ac16e9b80366fe
/packages/apps/Camera2/src/com/android/camera/app/OrientationManagerImpl.java
|
9dc4262cea73123b2a73cc0b0f762bb9ce2d5622 |
|
02-Apr-2014 |
Angus Kong <shkong@google.com> |
Add API to query the current auto-rotation setting bug:13527779 Change-Id: I1ebcab1108bb03a997508033befeec26fb9a6b7e
/packages/apps/Camera2/src/com/android/camera/app/OrientationManagerImpl.java
|
5596b4c902dcb685928b43678f428746ca5ffd08 |
|
12-Mar-2014 |
Angus Kong <shkong@google.com> |
Use debug.Log instead of android.util.Log. 1. Change to use com.android.camera.debug.Log instead of android.util.Log. 2. Add DebugCameraProxy to support more detailed debug info. 3. Add CameraErrorCallback in CameraManager. 4. Support posting to a specific handler for CameraErrorCallback. 5. Trim down some TAGs to match the framework tag length limit. 6. Remove some unused codes in CameraSettings. bug:13324870 Change-Id: I8c20a8a0d11cfd50b6e199b03cbc88d3c4ad2ceb
/packages/apps/Camera2/src/com/android/camera/app/OrientationManagerImpl.java
|
846d3abfe3da2fa2a5593c7d40a196005408bed1 |
|
04-Feb-2014 |
Sascha Haeberling <haeberling@google.com> |
Avoid activity leaks. Bug: 12805279 Change-Id: Ib91ff2d286f6a0e0d67dad673e7af24600e15759
/packages/apps/Camera2/src/com/android/camera/app/OrientationManagerImpl.java
|
5850115399516c9186cc0a8231eb1b554f570441 |
|
06-Jan-2014 |
Sascha Haeberling <haeberling@google.com> |
Clean-up TAGs and some more auto-clean-ups. Change-Id: Ib5f01a6fed99dd21b87138d8e4f792aefa74880d
/packages/apps/Camera2/src/com/android/camera/app/OrientationManagerImpl.java
|
9f1db5210361802a30a7866825c3b29ef5fe0024 |
|
10-Nov-2013 |
Angus Kong <shkong@google.com> |
Refactor OrientationManager. We should use a single OrientationManager instead of one for each module. Change-Id: I20adddf50e9e55e4af44bfbe4298bdb1e1e50df3
/packages/apps/Camera2/src/com/android/camera/app/OrientationManagerImpl.java
|