summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* Camera2: Temporarily stop pre-allocation of recording stream.Eino-Ville Talvala2012-09-101-7/+2
| | | | | | | | When recordingHint is set, don't pre-allocate recording stream on preview start. Bug: 7137947 Change-Id: I06b5f6d7dbb21d4d0747974ba001b0c8929a0b02
* 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
* Merge "Add outlier statistics for fast mixer cycle times" into jb-mr1-devGlenn Kasten2012-09-091-1/+40
|\
| * Add outlier statistics for fast mixer cycle timesGlenn Kasten2012-09-071-1/+40
| | | | | | | | Change-Id: I31c964caeb8b5d9ae0a426224f030cdcb01114a0
* | Fix buildJames Painter2012-09-071-0/+1
| | | | | | | | Change-Id: Ia4bebc4ecc850b42ebd4edd1ffed07e9bc2ec300
* | Camera2: Add a burst mode skeleton.James Painter2012-09-0710-7/+636
| | | | | | | | | | Bug: 6243944 Change-Id: I7f496ca1051571c68fdd99a6f85bf6a908a4e29a
* | Merge "audioflinger: changes for new audio devices enums" into jb-mr1-devEric Laurent2012-09-072-69/+53
|\ \
| * | audioflinger: changes for new audio devices enumsEric Laurent2012-09-072-69/+53
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | The ThreadBase class now has a separate member for input and output devices (mInDevice, mOutDevice). Only query get_supported_devices() from audio HAL if the function is exposed and if the audio policy manager did not specify the audio module to open. Also fixed bug in AEC preprocessing that would reset to default output device when an input device was given. Change-Id: I19d4d06aeb920b068e3ef31e6e6be6345ce5d67a
* | 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: Use the recordingHint parameter.Eino-Ville Talvala2012-09-072-22/+49
| | | | | | | | | | | | | | | | | | Use recordingHint to create recording and still capture streams up front, and to use the recording template when doing preview. Bug: 6243944 Change-Id: Ifeb624794849f734784b53a1a10ff2bfe8f1a357
* | Camera2: Delete all streams and stop all threads during shutdown.Eino-Ville Talvala2012-09-074-0/+24
| | | | | | | | | | Bug: 6243944 Change-Id: If13a1f91e8a07c1ec4f91183d1a4b261ec4f6d52
* | Camera2: Play shutter and recording sounds.Eino-Ville Talvala2012-09-063-0/+13
|/ | | | | | Bug: 6987540 Change-Id: Icd441a757c4b68fc4988b3bfbef428adb8d1ba28
* Merge "AudioFlinger: send audio source to audio effects" into jb-mr1-devEric Laurent2012-09-062-1/+40
|\
| * AudioFlinger: send audio source to audio effectsEric Laurent2012-08-312-1/+40
| | | | | | | | | | | | | | | | Added support for EFFECT_CMD_SET_AUDIO_SOURCE audio effect command to inform preprocessings of current audio source selection for capture. Change-Id: Ib2418a9aa8114e8457fe828ecd43b230ed86cdd6
* | 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-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
* Update audio commentsGlenn Kasten2012-08-302-10/+14
| | | | Change-Id: Ie7504d0ddb252f7e4d4f99ed0b44cfc7b1049816
* Remove dead codeGlenn Kasten2012-08-301-0/+4
| | | | | | | RecordThread::isValidSyncEvent() returns false, so most of RecordThread::setSyncEvent() is never executed. Change-Id: I0cf848beb46a367a45126d2df3073c5afa2ca59c
* Merge "Move libnbaio out of AudioFlinger" into jb-mr1-devGlenn Kasten2012-08-3032-2459/+14
|\
| * Move libnbaio out of AudioFlingerGlenn Kasten2012-08-3032-2459/+14
| | | | | | | | | | | | | | | | | | | | libnbaio is now a separate shared library from AudioFlinger, rather than a static library used only by AudioFlinger. AudioBufferProvider interface is now also independent of AudioFlinger, moved to include/media/ Change-Id: I9bb62ffbc38d42a38b0af76e66da5e9ab1e0e21b
* | 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
* Make tee sink compile OK againGlenn Kasten2012-08-222-2/+2
| | | | Change-Id: Ie865ceeabaeb698a62c11eac9f96e303c44c28ae
* 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
* const methodsGlenn Kasten2012-08-132-17/+17
| | | | Change-Id: I92e32ee16274c032c9d0ce910676be2a7fa52471
* Simplify AudioFlinger::PlaybackThread::isValidSyncEvent()Glenn Kasten2012-08-131-7/+1
| | | | Change-Id: I3e4af69b929d4ca04afaac26c7e41c89fce25b9c
* Discard setSyncEvent() return valueGlenn Kasten2012-08-131-4/+4
| | | | | | | setSyncEvent() returns a status_t which is sometimes ignored. Emphasize this is intentional by casting to void. Change-Id: Ic614988347cba36bd2504d7ad321594a355b0d9d
* Merge "Replace hard-coded "2" by a constant and comment" into jb-mr1-devGlenn Kasten2012-08-131-2/+11
|\
| * Replace hard-coded "2" by a constant and commentGlenn Kasten2012-08-091-2/+11
| | | | | | | | | | Bug: 6679403 Change-Id: I6c2701f9afedc26540dfad0b4e23348bbc4cb01a
* | am ff4c64d6: am c64a1787: Merge "Fix initialization of audio mixer track ↵Jean-Baptiste Queru2012-08-101-1/+5
|\ \ | | | | | | | | | | | | | | | | | | resources for MIPS." * commit 'ff4c64d6b1b58494a1b15f1a664e5c421d095d15': Fix initialization of audio mixer track resources for MIPS.
| * | Fix initialization of audio mixer track resources for MIPS.Paul Lind2012-08-011-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The value 1 << 32 (maxNumTracks defaults to 32) is surprisingly not defined in C, and differs on MIPS than the other arch. Therefore the track resources were not initialized properly, resulting in failure to play any audio. The fix allows the mConfiguredNames bitmask to be correctly set to all 1's in the 32-track case, for all arch. Change-Id: Ied3e1305952e9567602e2cd76c5ef3acb0809ee0 Signed-off-by: Paul Lind <plind@mips.com>
| * | Shutter sound is heard at the end of the recorded videoPatric Frederiksen2012-07-101-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: 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