summaryrefslogtreecommitdiffstats
path: root/services/camera/libcameraservice
Commit message (Collapse)AuthorAgeFilesLines
...
* Camera2: Basic ZSL and precapture trigger support.Eino-Ville Talvala2012-09-0619-469/+2037
| | | | | | | | | | | | | | | | | - 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
* Fix an issue where the "mFrameCount" field was accessed without its ↵James Dong2012-09-051-1/+1
| | | | | | containing object Change-Id: I6077b61b3e718b9b44ff86ca669a59f96b0b256f
* Camera: set vendor_ops on camera metadata.Shuzhen Wang2012-08-311-1/+6
| | | | | | | This makes sure that vendor specific metadata can propogate through the framework. Change-Id: I3bd0ae4b889eb907caf7b305dbcb16abbbef0ea3
* 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-305-223/+410
| | | | | | | | 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-306-206/+429
| | | | | | | | | 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-285-217/+344
| | | | | | | | Move FrameProcessor to its own file, add necessary interfaces to Camera2Client. Bug: 6243944 Change-Id: I8d1b8280a65d2822461ebe6b6c9de17992b34276
* Camera2: Factor out Camera2Client::ParametersEino-Ville Talvala2012-08-289-2017/+2140
| | | | | | | | | | | | | 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
* Camera2: Fix metering/focusing region coordinates, minor bugsEino-Ville Talvala2012-08-272-10/+38
| | | | | | | | | - Use active pixel array-based coordinates instead of the normalized camera API coordinates for ae/awb/af regions - Fix calculation of UV stride for YV12 format Bug: 6243944 Change-Id: I80cbd989858b0a3cb75c6f536c145e16e44fdb25
* Camera2: Move frame processing to its own thread.Eino-Ville Talvala2012-08-274-77/+119
| | | | | | | | To avoid blocking the HAL on possibly long-running binder calls, move frame receiption and processing to its own thread. Bug: 6243944 Change-Id: I6385be4410b2f68e2331755027afc10c342187cf
* Camera2: Use CameraMetadata wrapper class.Eino-Ville Talvala2012-08-277-294/+680
| | | | | | | | | Wrap the use of the camera_metadata library inside a CameraMetadata class to avoid memory leaks, improve code clarity, and increase type safety. Bug: 6243944 Change-Id: I90ca592b5875e27e4c58ea1ca680582dc3c3b56a
* Camera2: Replace MediaConsumer with BufferItemConsumer.Eino-Ville Talvala2012-08-215-345/+60
| | | | | | | | Get rid of MediaConsumer, which was largely duplicated code, and replace it with the simpler BufferItemConsumer. Bug: 6243944 Change-Id: I242d80c5fe39f2ee581ec8bb46f362997d994b0a
* Camera2: Ignore NOT_FOUND errors for face detect mode on frame receipt.Eino-Ville Talvala2012-08-211-1/+5
| | | | | | Reduce log spamming due to incomplete implementations. Change-Id: I6eb9d657591bd5f1476dd8c96e4a00b8a03e2a5e
* Camera2: Add support for preview callbacksEino-Ville Talvala2012-08-204-162/+533
| | | | | | | | | | | - Move camera overall state enum to be part of parameters - No longer use ICameraLock to guard access to overall state enum - Add callback flag management - Add callback stream and management Bug: 6243944 Change-Id: Ideb3dc523a23c05e440e429ebf838b1900a96573
* Camera2: Fix SCENE_MODEEino-Ville Talvala2012-08-161-1/+2
| | | | | | | | Now can set scene mode back to auto. Bug: 7001465 Change-Id: Ia25ba54d13de662bef5bf79957987513a7313c18
* Camera2: Skeleton for output frame processing, plus face detectEino-Ville Talvala2012-08-144-71/+446
| | | | | | | | | | | | | | - Plumbing for processing output metadata frames from the HAL - Support for passing face detection metadata from said frames to the application. - Switch calls on ICameraClient interface to use separate mutex to avoid deadlock scenarios with messages being communicated from the HAL to the camera user while calls from the user to the service are active. Bug: 6243944 Change-Id: Id4cf821d9c5c3c0069be4c0f669874b6ff0d1ecd
* Camera2: Swap AF notification order, minor bug fix.Eino-Ville Talvala2012-08-102-5/+5
| | | | | | | | | | | In continuous AF modes, when an AF trigger/cancel is received in the middle of a passive AF scan, we want to send both an AF move stop callback and an AF done callback. Swap the order of sending to simplify life when the app just wants to pay attention to the AF done callback during an active AF trigger. Bug: 6243944 Change-Id: I127d1675bc37ef828ef89c70b8cfab75f9428a2f
* Camera2: Add trigger support, and implement autofocusEino-Ville Talvala2012-08-104-7/+190
| | | | | | | | | - Add skeletons for all triggering actions into Camera2Device - Add support for AF triggers to HAL - Add support for AF notifications from HAL Bug: 6243944 Change-Id: I21025440849ae41f7083e1dcb72c99f8e5b2d5f7
* Update state only if calls to native window are successfulJames Dong2012-08-091-3/+13
| | | | Change-Id: I7a20f3ca787e11ca9c8c904b257e3c8a4e529136
* Camera2: Reduce redundant device dumpsysEino-Ville Talvala2012-08-061-11/+18
| | | | | Bug: 6243944 Change-Id: Ifdc15ee62156a7adfd133f0d0d8b772dd1e9d5a3
* Fix a deadlock in commandSetVideoBufferCountL()James Dong2012-08-042-1/+10
| | | | | | | o The lock to be acquired in recordingEnabled() has aleady been acquired in sendCommand() before the call to commandSetVideoBufferCountL(). Change-Id: I664d51ef449c9eb3576d5d56f73f29c98444ff3f
* Camera2: Add notification handling skeleton.Eino-Ville Talvala2012-08-034-3/+119
| | | | | | | | Wire up skeleton methods for handling all currently defined notifications. Bug: 6243944 Change-Id: I84b3f60111416ba6fbcdb086f1310225142e2b70
* Camera2: Break out individual commandsEino-Ville Talvala2012-08-022-60/+158
| | | | | | | | | | - List all commands that need implementing in sendCommand - Write skeleton methods for each one - Implements playRecordingSound command - Partially implements enableShutterSound command Bug: 6243944 Change-Id: I7866df75adca09483f407d3a4f630e847dbc7721
* Dynamically configure the number of video buffers used by camera source, if ↵James Dong2012-08-023-8/+37
| | | | | | | | supported o related-to-bug: 6920805 Change-Id: I413bb50954cc84e32ed40bcb713842dc7b58e2b6
* Merge "Camera2: Fix exposure compensation step value." into jb-mr1-devEino-Ville Talvala2012-08-021-1/+1
|\
| * Camera2: Fix exposure compensation step value.Eino-Ville Talvala2012-08-021-1/+1
| | | | | | | | | | | | Fix floating-point divide error. Change-Id: I61b140c1090d6773b9b530d19a2ec03cf784b85e
* | Merge "Camera2: Minor logging updates." into jb-mr1-devEino-Ville Talvala2012-08-021-4/+13
|\ \ | |/
| * Camera2: Minor logging updates.Eino-Ville Talvala2012-08-021-4/+13
| | | | | | | | | | | | | | | | Improve double-verbose logging, report a few more errors/startup conditions. Bug: 6243944 Change-Id: I2e814f786b35f57b63220d1b7c39f39cb6c3ace3
* | Merge "Camera2: Check PIDs to ensure camera exclusive access." into jb-mr1-devEino-Ville Talvala2012-08-022-8/+69
|\ \ | |/
| * Camera2: Check PIDs to ensure camera exclusive access.Eino-Ville Talvala2012-08-022-8/+69
| | | | | | | | | | Bug: 6243944 Change-Id: I4b36af2c92b7266a4aa896a2b048c56b6406cb9a
* | Merge "Shutter sound is heard at the end of the recorded video" into jb-mr1-devEino-Ville Talvala2012-08-011-1/+1
|\ \ | |/ |/|
| * Shutter sound is heard at the end of the recorded videoPatric Frederiksen2012-08-011-1/+1
| | | | | | | | | | | | | | | | | | | | On fast hardware, which is more common, the shutter sound is played and recorded before video recording is stopped. Before we call play shutter sound before calling stop recording. With this fix we call play shutter sound after calling stop recording. Change-Id: I06a3e65fd2700f1d2457fea5ff0f64500eac436f
* | Camera2: Improve formatting of debugging dumpEino-Ville Talvala2012-07-313-6/+16
| | | | | | | | | | Bug: 6243944 Change-Id: Id8730357f3adcd96923132f9f702e296e0dfd357
* | Camera2: Improve threading safetyEino-Ville Talvala2012-07-312-253/+308
|/ | | | | | | | Merge mutex lock for accessing internal parameters with the parameter structure, forcing a lock to be held before the parameters can be accessed. Bug: 6243944 Change-Id: I86e44f395de0d80ff7c3ff3530f25b60015512d2
* Camera2: Use more buffers for video encoding.Eino-Ville Talvala2012-07-252-5/+6
| | | | | | | | To avoid starvation, set the number of simultaneously available buffers to the encoder to 8. Bug: 6243944 Change-Id: I6d0e9f3c0426d62d374c0ae0d427bf5189141adf
* Camera2: Revamp recording support to allow opaque formats.Eino-Ville Talvala2012-07-245-30/+390
| | | | | | | | - Avoid memcpy of buffer data by using metadata mode - Temporarily add MediaConsumer BufferQueue class Bug: 6243944 Change-Id: I7a8c4222b7dbd14f1b1d86fda06d38eb640e87c1
* Camera2: Stop preview: Wait until HAL is drainedEino-Ville Talvala2012-07-201-0/+1
| | | | | | | | Once camera returns from stopPreview, all preview activity needs to have stopped. So wait until that's true. Bug: 6243944 Change-Id: Ifa6cf171bd69015883e26dafb1e49e5ac098025a
* Camera2: Add more verbose loggingEino-Ville Talvala2012-07-202-3/+20
| | | | | | | Until ATRACE works in emulator, add more verbose logs to help debugging Bug: 6243944 Change-Id: Ic5fbf764f2717e5edd05d37e0f7d826f1d494179
* Camera2: Fix recording bugsEino-Ville Talvala2012-07-201-2/+14
| | | | | | | | | | - Release recording stream on shutdown - Return recording gralloc buffers to queue when they are received by camera service after recording has been stopped (which is normal behavior thanks to pipeline latencies in camera pipelines) Bug: 6243944 Change-Id: Ia13a501c726613fd1e404733456dbd10d7b00132
* CameraService: Add more information to service dump.Eino-Ville Talvala2012-07-171-4/+57
| | | | | | | | | Add dumpsys information even when there's no active client. Including: - Camera module version / name / author - Number of camera devices - Static information for each device Change-Id: Ib97e325f6be5f989b342d24f1ae17aa9e796f8ed
* Camera2: Add recording supportEino-Ville Talvala2012-07-134-65/+487
| | | | | | | | | | - Support startRecording/stopRecording - Support lock/unlock/connect - Some rearrangement of class definitions for clarity/consistency Bug: 6243944 Change-Id: I00c600a798572d2f69bb3f2bab3d79e4bd9a91e5
* Update ANativeWindow client code for syncJamie Gennis2012-06-213-21/+10
| | | | | | | This change updates all the uses of ANativeWindow to use the new ANW functions that accept and return Sync HAL fence file descriptors. Change-Id: Id7db42d8d6380f8b440d88476ce9211c6225fb16
* Camera2: Move per-frame verbose logs to separate log enableEino-Ville Talvala2012-06-181-7/+14
| | | | | Bug: 6243944 Change-Id: I5850f8ceb2e603aa555cc71328f64d6a928694a0
* Camera2: Handle preview orientation changes.Eino-Ville Talvala2012-06-154-3/+101
| | | | | | | - Process sendCommand(CAMERA_CMD_SET_DISPLAY_ORIENTATION) Bug: 6243944 Change-Id: I92d3bb13312d475703325230487d660a1cb7e0e5
* Camera2: Connect camera parameters to HAL request entries.Eino-Ville Talvala2012-06-152-66/+426
| | | | | | | | | | | | - All fields in Camera.Parameters are mapped to HAL2 entries, and communicated to the HAL. - Preview stream properly updated on parameter changes - Slight code rearrangment for improved clarity Bug: 6243944 Change-Id: I2a1db5c148809a62ba3524fb659dd6065affff8e
* Camera2: Minor parameter restructuringEino-Ville Talvala2012-06-152-51/+60
| | | | | | | Will make it easier to update HAL-level parameters. Bug: 6243944 Change-Id: I3acac3c532de440d46755ce3e1d819ad5ed2e106
* Camera2: Add more dump information, connect HAL device dumpEino-Ville Talvala2012-06-143-29/+188
| | | | | Bug: 6243944 Change-Id: I79a302f68786d815b9ab9984dbb31d237522416b
* am cc0df657: am e20435de: Merge "Add NOTICE and MODULE_LICENSE_APACH2 to ↵James Dong2012-06-142-0/+190
|\ | | | | | | | | | | | | libs build under /frameworks/av/" into jb-dev * commit 'cc0df657cdc8316c2b816c562f269be1706f00ea': Add NOTICE and MODULE_LICENSE_APACH2 to libs build under /frameworks/av/
| * Add NOTICE and MODULE_LICENSE_APACH2 to libs build under /frameworks/av/James Dong2012-06-132-0/+190
| | | | | | | | | | Change-Id: I0a3af3e2abdedebd5934f3d941d01c32cfc75e26 related-to-bug: 6647465
| * DO NOT MERGE: Minimal fix for takePicture/previewCallback deadlockEino-Ville Talvala2012-05-292-18/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | - Caused by already held lock in camera service - Introduce one more lock, mICameraLock, to control access to camera client through ICamera binder interface. - mLock is released before calling HAL takePicture, allowing HAL callbacks to access camera client during takePicture processing. Bug: 5804701 Change-Id: Ibcef4857a2c844c964afefa70f9cdccdd0a55fd0