summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/CameraManager.java
Commit message (Collapse)AuthorAgeFilesLines
* SnapdragonCamera: fix screen flash on resumingLikai Ding2016-01-081-0/+1
| | | | | | | | | Currently preview cover will be hidden shortly after preview started, but if the actual first frame comes late, the main screen will flash. Register a oneshot preview callback to hide preview cover. CRs-Fixed: 881290 Change-Id: I5d93e57f0b9aa338c6b34461d5e3ee31806b6706
* SnapdragonCamera: Longshot with Burst Functionality.Vijay kumar Tumati2015-04-241-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is a new Longshot feature where in the snapshot frames captured at ISP is @ 3fps and output JPEG encoded rate is @ 1.2 fps. This can be enabled by setting following setprop with the maximum number of snapshots. adb shell setprop persist.camera.longshot.max <max_number> e.g.:adb shell setprop persist.camera.longshot.max 10 If the number is -1, then the existing Longshot will be used. Main changes: 1) The number of Snapshot/Preview/Metadata buffers are increased to make sure no frames will be dropped @ ISP and to maintain burst fps. e.g.: For max number of 10 snapshots, Snapshot buffers are increased to 9 from existing 6. This buffer numbers are derived considering snapshot YUV frames @ 3 fps and JPEG encoding @ 1.2 fps. 2) Shutter will be played after receiving YUV frame instead of reprocess frame. 3) New Longshot stop command is sent after receiving all the required YUV callbacks or releasing the shutter before reaching Max number. 4) Existing Longshot off command is sent after receiving all JPEG CB.s for the issued TakePictures() and also shutter button will be disabled until all the JPEG callbacks are received. Change-Id: Id0c21aeb67245530768bf3ab859d39dea7e2bc40
* Camera2: Adding support for Auto HDRAbhishek Pant2014-06-061-0/+7
| | | | | | | | Adding support for Auto HDR for camera application. CRs-fixed: 629556 Change-Id: I02cdc2accb3e9fd4a9039b7f632ba3eb04fcc798
* Camera2: Adds support for longshot/burst modeAlok Kediya2013-11-071-0/+7
| | | | | | | | | | | | | | | | | | | | | - The longshot/burst pipeline mode uses an optimized path for triggering 'takePicture()' on each shutter callback. This should improve the shot-2-shot time. In addition to this there is also support for jpeg callbacks that only contain a jpeg file path. The callback in this case will only move the file stored by the lower layers in the correct directory. - The longshot burst pipeline can be enabled via this property: "persist.camera.longshot.enable"<-"0/1" - This change will allow longshot mode to be triggered in non-zsl mode as well. (Cherry picked from: I693366a7d06d3b386a8d96f86ee9a0574749c50b) (Cherry picked from: Id630b2033f18d1c04a636597e910e695a8692ac8) Change-Id: Idda8d58fc6d889128c1812c9c5ddadca3993c246
* Camera : Enable camera and camcorder UI features..Alok Kediya2013-10-311-0/+12
| | | | | | | | | | | | | | | | | | | | Added keys and APIs for enabling QC features from UI. (cherry picked from commit a0fdd6924374635711ea6a554f3a59a087cf4b21) Change-Id: Id50b7cebe2d33eaf7bb6a8e51fecded50ac6dcf8 Conflicts: src/com/android/camera/CameraSettings.java src/com/android/camera/PhotoMenu.java src/com/android/camera/PhotoModule.java src/com/android/camera/VideoModule.java Conflicts: src/com/android/camera/CameraSettings.java src/com/android/camera/VideoModule.java (cherry picked from commit 93cd1cdb59449ccb2b9594c9d8e3978a25d7f376) (cherry picked from commit af04f9d621183addee0f7cdd7c1a41c8d0e65cfe)
* Clean up ApiHelper and remove unused code paths.Sascha Haeberling2013-09-181-7/+2
| | | | | | | | | Bug: 10821545 As we're targeting ICS there are a lot of checks and code paths that are no longer in use. This CL cleans them up. Change-Id: Ic3dd26628a94e134e25e2c496ccec1f1f957216d
* Show dialog when camera device is not connected.Angus Kong2013-09-171-5/+46
| | | | | | bug:10726516 Change-Id: I3d3433d0b2eced54027b19910473fd55135d0e1c
* Clean up Gallery codes.Angus Kong2013-08-091-1/+1
| | | | | | bug:10263696 Change-Id: I3a16dba3aabe52b8103a2c591cfa39907265a263
* This removes all non-Camera stuff from Camera2.Sascha Haeberling2013-08-061-3/+3
| | | | | | | Note: Camera2 is a clone of Gallery2 right now. Note 2: I will bring .mk files back later. Change-Id: Ida958654296f5ebaacb6bb0ff59d52a7c37ce6fc
* Add wrapper for face detection listener.Angus Kong2013-07-311-5/+19
| | | | | | bug:10113532 Change-Id: I01dc051d7b25cb97153b5e3e4cf06744dccb9fd4
* Refactor CameraManager.Angus Kong2013-07-291-424/+246
| | | | | | | | | | | | 1. CameraManager should be the only class accessing android.hardware.Camera. 2. For potential future upgrade in Camera HAL and android.hardward.Camera API upgrade, CameraManager should be just an interface instead of concrete implementation. 3. waitDone() in CameraProxy is removed. 4. ShutterCallback, PreviewCallback, PictureCallback and AF Callbacks are wrapped by our own interfaces. Change-Id: I595da17a1a9c6d476ee805b71c7f45ebb609e465
* Use extra copy of parameters for concurrent accessAngus Kong2013-04-151-21/+15
| | | | | bug:8585306 Change-Id: I21b8915c53508e4820e46b49171149189cb6012e
* Refresh parameters during recording.Angus Kong2013-04-091-0/+9
| | | | | bug:8504803 Change-Id: I1a1838a8415ed4eccad8c76c37cd61d667d92d66
* Don't access mParameters dirty bit in other threadAngus Kong2013-04-031-12/+8
| | | | Change-Id: I067dd56975cc908f29ed7ba419572982c55b2063
* Make stopPreview synchronous.Angus Kong2013-04-021-0/+3
| | | | | bug:8517092 Change-Id: I66d218e206dab8ad8c80f61ca480923a6be0b0b6
* Handle InterruptedException in waitDoneAngus Kong2013-04-011-4/+14
| | | | | | | | Dirty bit for mParameters should be set properly if getParameters is not finished. bug:8517092 Change-Id: I2259dc978465d23bff9c6852bec4a791f94137d0
* Don't use SynchronousQueue to pass results.Angus Kong2013-04-011-41/+27
| | | | | bug:8517092 Change-Id: I0f2084bc1d52f37743559391cd2217275e3d485d
* Fix NPE when reconnecting camera.Angus Kong2013-04-011-1/+1
| | | | | bug:8513852 Change-Id: I45150e5519604f695d25c830262c8b6eb363b1d3
* Make camera releasing synchronous.Angus Kong2013-03-281-0/+3
| | | | | bug:8502943 Change-Id: I48d71c07894fefa909db1a78c0dbe9b8f72e5166
* Make camera calls asynchronousAngus Kong2013-03-271-99/+89
| | | | | | bug:8438047 Change-Id: I151d5ff85f0fb3646432a64b5841256a1448f101
* Move Camera Java/Native source into Gallery2Michael Kolb2013-01-291-0/+490
Change-Id: I968efe4d656e88a7760d3c0044f65b4adac2ddd1