History log of /packages/apps/Camera2/src/com/android/camera/app/OrientationManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/OrientationManager.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/OrientationManager.java
3830d419691ef865f01b362fee9618bac2aa8888 20-Dec-2014 Sascha Haeberling <haeberling@google.com> Store ZSL images in correct orientation and show progress in filmstrip.

Added an ImageRotationCalculator which calcuates the image rotation
based on camera characteristics and the device orientation at the time
of the shot.

Also moves the image backend code into its own sub-package.

Change-Id: I4b6b83e3e3cebece83215c19d0aff826ff853352
/packages/apps/Camera2/src/com/android/camera/app/OrientationManager.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/OrientationManager.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/OrientationManager.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/OrientationManager.java
ce2b94917098f211cacaaebaa0f6b40021d3e3fa 06-Sep-2013 Angus Kong <shkong@google.com> Respect system auto-rotate setting.

bug:10623244

Change-Id: I66757e50daf487680ac4f49d854c0f49d672b6ff
/packages/apps/Camera2/src/com/android/camera/app/OrientationManager.java
ed15d1a140986473bbe7fffd72ec9618c41c5979 20-Aug-2013 Angus Kong <shkong@google.com> Bring back wide angle panorama.

bug:10293937

Change-Id: I23a977e87b7416f07ecac20025b6c142ae61be05
/packages/apps/Camera2/src/com/android/camera/app/OrientationManager.java
b50b5cbfbc0a67db6fc43373363b10381c9c61a3 09-Aug-2013 Angus Kong <shkong@google.com> Clean up Gallery codes.

bug:10263696

Change-Id: I3a16dba3aabe52b8103a2c591cfa39907265a263
/packages/apps/Camera2/src/com/android/camera/app/OrientationManager.java