summaryrefslogtreecommitdiffstats
path: root/services/camera/libcameraservice/camera2/ZslProcessor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Camera2: Fix off-by-one error in ZSL selection.Eino-Ville Talvala2012-10-061-3/+6
| | | | | Bug: 7258126 Change-Id: Ie6da4645c46a7bb0dbd11d7c6183e904f41f74fd
* Camera2: Synchronize mode changes and triggersEino-Ville Talvala2012-10-041-5/+7
| | | | | | | | | Make sure that changes to various parameters have reached the HAL before triggering asynchronous events like autofocus or precapture metering. Bug: 7107220 Change-Id: I3c50038de1671968eb32004ce538435121934e7e
* Camera2: Include JPEG settings in ZSL requests.Eino-Ville Talvala2012-10-041-0/+22
| | | | | Bug: 7287743 Change-Id: I1aba81b228451c3df712ce1f42b7aab79cac575f
* Camera2: Fix prematurely clearing stream requestAlex Ray2012-10-031-0/+8
| | | | | | | | | Zsl handling was clearing the stream request before a capture request was ready to be sent to the HAL, which would cause capture delays and timeouts in certain conditions. Bug: 7259520 Change-Id: Idde8bc4fc58b8b426c6985feac87759740e338ea
* Camera2: Handle client processes dying by closing camera resourcesIgor Murashkin2012-10-031-0/+2
| | | | | | | | | CameraService now subscribes to binder death notifications for each client, and disconnects the client if the death happened without cleanly shutting down the client first. Bug: 7258314 Change-Id: I7803836b589fd8f0dfe00f6c28a707b82012e751
* Camera2: Use ZSL format quirk.Eino-Ville Talvala2012-10-021-1/+4
| | | | | | | | | | Switch service to using HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED, unless ZSL quirk is set. This is important for compatibility across multiple implementations. Bug: 6243944 Change-Id: Iea74671cbb44890a07e4f99cd757b0a5423d447a
* Camera2: Debug and logging fixes.Eino-Ville Talvala2012-09-251-1/+1
| | | | | | | | | | - Fix LOG_TAGs to work with standard logcat filtering. - Add ATRACE to Camera2Device - Shorten thread names to fit in 16 characters - Remove some ATRACEs to avoid flooding trace unnecessarily Bug: 7220520 Change-Id: Ief8d677b5c8bb35d94e0f21b11b86505e83169ea
* Camera2: Erase ZSL queue after each use.Eino-Ville Talvala2012-09-201-1/+24
| | | | | | | | | Since preview stops after a capture is submitted, need to clear out the ZSL queue to avoid using stale buffers when the preview starts up again. Bug: 7189765 Change-Id: I9ae2382d0af132208aca5ccba49b5464d18a263e
* Camera2: ZSL: Do regular capture if AE is not satisfied.Eino-Ville Talvala2012-09-181-10/+68
| | | | | | | | | - 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
* 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-121-22/+42
| | | | | | | | | | | | 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: Clean up the right streams.Eino-Ville Talvala2012-09-101-3/+16
| | | | Change-Id: I780c3e8e255f6a185e0edf1d76f35afdc74dff48
* Camera2: Delete all streams and stop all threads during shutdown.Eino-Ville Talvala2012-09-071-0/+5
| | | | | Bug: 6243944 Change-Id: If13a1f91e8a07c1ec4f91183d1a4b261ec4f6d52
* Camera2: Basic ZSL and precapture trigger support.Eino-Ville Talvala2012-09-061-0/+378
- 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