summaryrefslogtreecommitdiffstats
path: root/services/camera/libcameraservice/camera2
Commit message (Collapse)AuthorAgeFilesLines
* Camera2: State must be STOPPED before JPEG callback is fired.Eino-Ville Talvala2012-09-203-31/+39
| | | | | | | | | Move handling of JPEG callback to CaptureSequencer instead of JpegProcessor, so that we can be sure the camera state is updated to STOPPED before the JPEG callback is sent to the application layer. Bug: 7172743 Change-Id: Ie8752d946d3eb8254230c77f10e5c38a83dc5371
* Camera2: ZSL captures should also make some noise.Eino-Ville Talvala2012-09-191-0/+5
| | | | Change-Id: If7aff7223db41b4b7edeeb4c32e40ef3197b180b
* Camera2: Increase max timeout for the precapture sequence.Eino-Ville Talvala2012-09-191-1/+1
| | | | | | | Increase maximum duration of the precapture sequence (final metering + preflash + redeye reduction) to 2 seconds before timing out. Change-Id: Ie1de4e96d46599eb53e1def9052b211e684f1fbc
* Merge "Camera2: Increase capture timeout." into jb-mr1-devEino-Ville Talvala2012-09-181-1/+1
|\
| * Camera2: Increase capture timeout.Eino-Ville Talvala2012-09-181-1/+1
| | | | | | | | | | | | | | Low-light modes may take longer to capture a picture, so increase the timeouts. Change-Id: Id50b1e4fd3186da4e75b2cc1c226ced2f8d394ac
* | Camera2: Enable ZSL by default.Eino-Ville Talvala2012-09-181-4/+4
| | | | | | | | | | Bug: 6910087 Change-Id: Ie774f28fbb943b2ac2c856872fd4cae68b40430c
* | Merge "Camera2: ZSL: Do regular capture if AE is not satisfied." into jb-mr1-devEino-Ville Talvala2012-09-183-12/+78
|\ \
| * | Camera2: ZSL: Do regular capture if AE is not satisfied.Eino-Ville Talvala2012-09-183-12/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Check the AE state of the selected ZSL buffer; if it's not reporting as CONVERGED or LOCKED, fall back to normal capture sequence - Add more debugging for the ZSL queue. Bug: 6910087 Change-Id: I77a4287580aa9ddbd58438477c40ce829555d0ca
* | | Camera2: Don't be bothered by lack of faces.Eino-Ville Talvala2012-09-171-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | Sometimes, people might want to photograph scenes with no faces. And not have their log fill with errors when they do. Bug: 7078231 Change-Id: Ibe5c08d51b49a3ea14203416fe7803a58de08dda
* | | Camera2: Filter out faces with 0 confidence.Eino-Ville Talvala2012-09-171-1/+7
| | | | | | | | | | | | | | | Bug: 7078231 Change-Id: I559f1281359835e0489456091a5409ebc8f73479
* | | Camera2: Change face detect/scene mode priority.Eino-Ville Talvala2012-09-171-2/+5
|/ / | | | | | | | | | | | | | | Explicit scene modes should override the implicit face priority scene mode from enabling face detection, to match application/API expectations. Change-Id: I6f0f44fadeacfdc0594dd2fdc280e294d2d87df6
* | Camera2: Don't play shutter sound when doing a video snapshotEino-Ville Talvala2012-09-151-1/+2
|/ | | | | Bug: 7171820 Change-Id: I11ec0900aff3cdf4b57ae1bfc75f7acfecf95098
* Revert "Revert "Camera2: Use FORMAT_ZSL until transition to new gralloc ↵Eino-Ville Talvala2012-09-141-1/+1
| | | | | | | | | | scheme."" The changes this commit depends on are now submitted. This reverts commit f54b1459cda7f585b4896671643b33bab8290964 Change-Id: If7f146ab7968d50fffd2174c2c5792bdc9d7724c
* Revert "Camera2: Use FORMAT_ZSL until transition to new gralloc scheme."Igor Murashkin2012-09-141-1/+1
| | | | | | This reverts commit 8a3016613dc684a6be11fdf643f9cc5cad817e8f Change-Id: I3f1d4e9c13df838b8b6aa5696a6494140eac3e04
* Camera2: Use FORMAT_ZSL until transition to new gralloc scheme.Eino-Ville Talvala2012-09-131-1/+1
| | | | | | | | Until all HAL implementations move to the new format negotiation scheme, use CAMERA2_HAL_PIXEL_FORMAT_ZSL to indicate ZSL mode. Bug: 6243944 Change-Id: Idf5d9f42e203903ba906d5df156100646b27404c
* Camera2: Fix ZSL bugs.Eino-Ville Talvala2012-09-123-24/+52
| | | | | | | | | | | | The ZSL processor was discarding buffers too often, and waiting for new buffers with mutexes held. Also adds basic fallback to regular capture in case the ZSL queue doesn't contain a suitable buffer. Bug: 7147043 Change-Id: I5721267ef08dbc87ef9d8ec47f333db5f67e41c1
* Camera2: Use full pixel array for ZSL streamEino-Ville Talvala2012-09-111-3/+4
| | | | | | | | For efficiency, use full pixel array size for the ZSL output/input streams, instead of the final picture size. Bug: 7139362 Change-Id: I98ad4f5a1ca283efe87ae60bf0cf39573e22d2f3
* Camera2: Configure ZSL at the right time.Eino-Ville Talvala2012-09-111-1/+9
| | | | | | | | ZSL enable was too early in the camera startup sequence, resulting it being turned off most of the time. Bug: 7148012 Change-Id: Ie144dd960d018a34b0bc77c88208ca22b7112772
* Camera2: Clean up the right streams.Eino-Ville Talvala2012-09-101-3/+16
| | | | Change-Id: I780c3e8e255f6a185e0edf1d76f35afdc74dff48
* Camera2: Use face priority scene mode when face detect is enabled.Eino-Ville Talvala2012-09-101-10/+14
| | | | | | | | Per API specs, enabled face detection implies that metering, etc is done based on faces. Bug: 6243944 Change-Id: Ie35162226d70cc0f437e92e37be138e71e45e738
* Camera2: Sanity check inputs better.Eino-Ville Talvala2012-09-101-0/+16
| | | | | Bug: 7132141 Change-Id: I866a65dfe47464070a6ef4ac60be4801cb68327b
* Camera2: Add a burst mode skeleton.James Painter2012-09-078-1/+628
| | | | | Bug: 6243944 Change-Id: I7f496ca1051571c68fdd99a6f85bf6a908a4e29a
* Merge "Camera2: Increase zoom steps." into jb-mr1-devAlexander Ray2012-09-071-1/+1
|\
| * Camera2: Increase zoom steps.Eino-Ville Talvala2012-09-061-1/+1
| | | | | | | | | | | | | | 10 is too low for smooth zoom; increase number to improve smoothness. Bug: 7120794 Change-Id: I178cd3890ef37beeff97cadb9e92ceab6d2cad06
* | Camera2: Delete all streams and stop all threads during shutdown.Eino-Ville Talvala2012-09-073-0/+17
| | | | | | | | | | Bug: 6243944 Change-Id: If13a1f91e8a07c1ec4f91183d1a4b261ec4f6d52
* | Camera2: Play shutter and recording sounds.Eino-Ville Talvala2012-09-061-0/+4
|/ | | | | | Bug: 6987540 Change-Id: Icd441a757c4b68fc4988b3bfbef428adb8d1ba28
* Camera2: Move locked states out of AE/AWB modeEino-Ville Talvala2012-09-061-5/+12
| | | | | | Bug: 6243944 Change-Id: I7b609cc6c04c957d1f48c1a996263fa9c7b94000
* Camera2: Basic ZSL and precapture trigger support.Eino-Ville Talvala2012-09-0614-35/+1498
| | | | | | | | | | | | | | | | | - Add capture sequencer to control still image capture process - Use precapture trigger for standard capture in sequencer - Add infrastructure for reprocessing streams - Add ZSL processor to maintain ZSL queue - Add ZSL capture sequence to sequencer This patch sets up ZSL mode and precapture triggers. For now, to enable zsl mode, set the system property camera.zsl_mode to 1. Bug: 6243944 Change-Id: Icf8cb1a83a7c11a152a11007c8f3c54f8ea1c70c
* Camera2: Require 2 JPEG thumbnail resolutions.Eino-Ville Talvala2012-08-301-1/+1
| | | | | | | Include (0,0) as a required thumbnail resolution, to allow turning off thumbnails. Change-Id: I3c4efe2d6a4f576a11ce5b75a3d573812a100b80
* Camera2: Move preview callback processing to its own thread.Eino-Ville Talvala2012-08-302-0/+375
| | | | | | | | To reduce delays for HAL callbacks, manage preview callbacks in their own thread. Bug: 6243944 Change-Id: I7bef56949ac889ffce4e031bf40291a771a46f3e
* Camera2: Move still capture processing to separate thread.Eino-Ville Talvala2012-08-303-0/+382
| | | | | | | | | To avoid stalling HAL when it queues up new buffers for still capture, process still captures in a separate thread. Also move Camera2Heap to its own class so it can be used by the CaptureProcessor. Bug: 6243944 Change-Id: Id38e2a52367c0985812fcd4fd9af3ef90beef43f
* Camera2: Factor out FrameProcessor.Eino-Ville Talvala2012-08-282-0/+271
| | | | | | | | Move FrameProcessor to its own file, add necessary interfaces to Camera2Client. Bug: 6243944 Change-Id: I8d1b8280a65d2822461ebe6b6c9de17992b34276
* Camera2: Factor out Camera2Client::ParametersEino-Ville Talvala2012-08-284-0/+2342
Move the parameter structure and the various utility methods using it to its own class. Rename LockedParameters to SharedParameters to match the Mutex naming convention. Also move CameraMetadata to camera2 directory for organization. No functional changes. Bug: 6243944 Change-Id: Ie60b535936ecfda9bf23361d52604abf515c83d0