summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
...
| * Camera2: Include JPEG settings in ZSL requests.Eino-Ville Talvala2012-10-045-34/+75
| | | | | | | | | | Bug: 7287743 Change-Id: I1aba81b228451c3df712ce1f42b7aab79cac575f
* | Merge "Integrate improved coefficient sinc resampler: VHQ" into jb-mr1-devGlenn Kasten2012-10-047-124/+270
|\ \ | |/ |/|
| * Integrate improved coefficient sinc resampler: VHQGlenn Kasten2012-10-047-124/+270
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Very high quality is enabled only for 44.1 -> 48 or 48 -> 44.1, and uses low quality for all other use cases. Track estimated CPU load and throttles the quality based on load; as currently configured it should allow up to 2 instances of very high quality. Medium quality and high quality are currently disabled unless explicitly requested. Details: Only load .so the first time it is needed. Cleanup code style: formatting, indentation, whitespace. Restore medium quality resampler, but it is not used (see next line). Fix memory leak for sinc resampler. Check sample rate in resampler constructor. Add logs for debugging. Rename DEFAULT to DEFAULT_QUALITY for consistency with other quality levels. Renumber VERY_HIGH_QUALITY from 255 to 4. Use enum src_quality consistently. Improve parsing of property af.resampler.quality. Fix reentrancy bug - allow an instance of high quality and an instance of very high quality to both be active concurrently. Bug: 7229644 Change-Id: I0ce6b913b05038889f50462a38830b61a602a9f7
* | Merge "Camera2: Fix deadlock while zooming during record" into jb-mr1-devIgor Murashkin2012-10-041-11/+11
|\ \ | |/ |/|
| * Camera2: Fix deadlock while zooming during recordIgor Murashkin2012-10-031-11/+11
| | | | | | | | | | | | | | | | | | Acquired SharedParameters before mMutex in StreamingProcessor, this avoids any potential deadlocks since Camera2Client code would always acquire SharedParameters first before invoking StreamingProcessor. Bug: 7275259 Change-Id: Ia741162c455300378bee049f063590ece5328b95
* | Merge "Camera2: Properly update FPS range when FPS is set." into jb-mr1-devEino-Ville Talvala2012-10-031-0/+4
|\ \ | |/ |/|
| * Camera2: Properly update FPS range when FPS is set.Eino-Ville Talvala2012-10-031-0/+4
| | | | | | | | | | | | | | | | Otherwise a getParameters followed by setParameters will trigger an incorrect reversion in FPS parameters. Bug: 7279267 Change-Id: I7426860f05497dbdf4245c34cef1b38f2f5a1832
* | Camera2: Fix prematurely clearing stream requestAlex Ray2012-10-032-7/+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: Fix trying to release HAL stream twiceIgor Murashkin2012-10-031-3/+11
| | | | | | | | | | | | | When we fail to disconnect the native window, StreamAdapter::release would fail and remain in the old (ALLOCATED) state, thus it thinks that we haven't released the HAL stream yet. With this change, ignore DEAD_OBJECT native window disconnect failures, so the state transitions to RELEASED and we don't double release HAL streams. Bug: 7258314 Change-Id: I524893e4b4d6463d7b0a7ce32fb6f658afba8e11
* Camera2: Handle client processes dying by closing camera resourcesIgor Murashkin2012-10-0311-28/+121
| | | | | | | | | 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: Don't change state when reconnect is calledIgor Murashkin2012-10-032-3/+10
| | | | | Bug: 7252802 Change-Id: Ibed4f59a96bef75bf84b1aaf1235fb87e94102ef
* Camera2: Use ZSL format quirk.Eino-Ville Talvala2012-10-024-2/+40
| | | | | | | | | | 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: Use scene mode override parameterEino-Ville Talvala2012-10-024-47/+260
| | | | | | | | | | | | | | - Read in SCENE_MODE_OVERRIDES static parameter if available. Use it to select AF/AE/AWB modes when a scene mode is set. - Add quirks structure to parameters; not yet used - Fix desynchronization between range and single FPS value. Still need to sort out best way to convert from one to another. Bug: 7259959 Bug: 7159577 Bug: 7172543 Change-Id: I0d07c31d5f21fbc4b0ec2fa23f7f778073d2d6e0
* Disable audio watchdogGlenn Kasten2012-09-302-2/+12
| | | | | | | It's not critical, and is wasting power Bug: 7241714 Change-Id: I6ad4375f0000c92529688723dbe0ff0caa809c5d
* Merge "bug 7253033 clean up before closing an output" into jb-mr1-devJean-Michel Trivi2012-09-302-0/+16
|\
| * bug 7253033 clean up before closing an outputJean-Michel Trivi2012-09-302-0/+16
| | | | | | | | | | | | | | | | | | | | An output can only be closed if there is no lock contention that prevents ThreadBase::exit() from being blocked. If an output device is waiting for an operation to complete (here a write in the remote_submix module, because the pipe is full), signal the module that it's entering the "exiting" state. Change-Id: I8248add60da543e90c25a4c809866cdb26255651
* | Camera2: Refactor preview/recording management to separate class.Eino-Ville Talvala2012-09-287-533/+794
| | | | | | | | | | | | | | | | | | | | | | Untangle preview/recording management from main class to simplify callpaths; in preparation for fixing several HAL/app interactions bugs. Bug: 7172543 Bug: 7159577 Bug: 7107220 Change-Id: Iab5503f66b35d88a1524111536a484c9e33fd934
* | DO NOT MERGE: Remove experimental parameters for burst modeJames Painter2012-09-282-17/+0
| | | | | | | | | | Bug: 7248756 Change-Id: I3aaf2da4791b2a13e1e788b2914e4c51c529a75d
* | Merge "Camera2: Use new JPEG transport header" into jb-mr1-devAlex Ray2012-09-282-38/+15
|\ \ | |/ |/|
| * Camera2: Use new JPEG transport headerAlex Ray2012-09-272-38/+15
| | | | | | | | | | | | | | | | Check for new JPEG transport header at the end of the stream buffer instead of at the beginning. Bug: 7108816 Change-Id: I26c52267cb406dae50c9d0ee01e6c26359ba84aa
* | Merge "Camera2: Re-entering preview state on v2 Device" into jb-mr1-devAlex Ray2012-09-281-1/+7
|\ \ | |/ |/|
| * Camera2: Re-entering preview state on v2 DeviceAlex Ray2012-09-261-1/+7
| | | | | | | | | | Bug: 7240891 Change-Id: I6a01b27197b4ee89a68f06f4375d315a716b67ae
* | Camera2: Only _some_ FPS values in the old API are scaled.Eino-Ville Talvala2012-09-272-3/+6
| | | | | | | | | | | | | | The (deprecated) single-FPS parameter is not scaled by 1000. Bug: 7230239 Change-Id: I5664cce90f9cb01e57e39f1a1f7c8eb730501da3
* | Merge "Camera2: Fix FPS value scaling between HAL2 and API" into jb-mr1-devEino-Ville Talvala2012-09-272-7/+12
|\ \ | |/ |/|
| * Camera2: Fix FPS value scaling between HAL2 and APIEino-Ville Talvala2012-09-272-7/+12
| | | | | | | | | | | | | | | | | | | | | | API assumes FPS values are in fixed-point with LSB 0.001; HAL2 just uses ints with no fractional part. HAL should probably use floats or something similar, but for now, fix scaling so the two agree on FPS values. Bug: 7230239 Change-Id: Ie18a4f11fc9d17d9ae2d04781511a273213eda55
* | audioflinger: use resample coefficients from audio-resampler library.SathishKumar Mani2012-09-265-22/+114
| | | | | | | | | | | | | | | | | | | | | | -Add a separate quality VERY_HIGH_QUALITY in resampler -Use resample coefficients audio-resampler library for quality VERY_HIGH_QUALITY. -This improves the quality of resampled output. Bug: 7024293 Change-Id: Ia44142413bed5f5963d7eab7846eec877a2415e4 Signed-off-by: Iliyan Malchev <malchev@google.com>
* | audioflinger/resampler: Add VERY_HIGH_QUALITY audio-resamplerSathishKumar Mani2012-09-264-0/+4725
|/ | | | | | Change-Id: I34f5d36ae60010ec64222d6660d10a84da3bf566 Bug: 7024293 Signed-off-by: Iliyan Malchev <malchev@google.com>
* Camera2: Fix JPEG Transport Header offsetAlex Ray2012-09-261-3/+7
| | | | | | | Use offset into start of buffer after transport header Bug: 7108816 Change-Id: I6f9778db313856eaeee31f6999e4e55678b09b26
* Revert "Don't wait for presentation complete if terminated"Glenn Kasten2012-09-261-6/+6
| | | | | | This reverts commit 44cda3a4e7ca3de0db9cb49145def3803b03ebb4 Change-Id: I7fd29b77690dab057ac966a42fb198b2772f092c
* Implement android.media.AudioManager.getProperty()Glenn Kasten2012-09-252-1/+24
| | | | | Bug: 6635041 Change-Id: I3386a4a6c226bc4eceaf65556119e4fb15f73224
* Camera2: Make sure to clean out reprocess streams on shutdown as well.Eino-Ville Talvala2012-09-251-0/+1
| | | | | | | Otherwise, streams may persist past expected lifetime. Bug: 6243944 Change-Id: I901971b78baf9d577ea3812588dec3885232e7ef
* Camera2: Debug and logging fixes.Eino-Ville Talvala2012-09-2511-20/+81
| | | | | | | | | | - 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
* audioflinger: improve record start and thread exitEric Laurent2012-09-251-2/+2
| | | | | | | | | | | | Use broadcast() instead of signal() on the thread wake up condition when starting record or requesting thread exit to make sure that if another thread is waiting for the same condition (e.g binder thread calling setParameters()) the mixer thread will be woken up. Bug 7184317. Change-Id: I3154a4509ca7af6ffae5236e522b0fab8e75ed06
* Merge "Camera2: Emit ShutterCallback/RawCallback events after takePicture" ↵Igor Murashkin2012-09-242-7/+34
|\ | | | | | | into jb-mr1-dev
| * Camera2: Emit ShutterCallback/RawCallback events after takePictureIgor Murashkin2012-09-242-7/+34
| | | | | | | | | | Bug: 7176692 Change-Id: I50e8f9511f1770d97a42d1fa208c04b1bbcfba6b
* | Merge "Camera2: Fix cropRegion sometimes exceeding the sensor array size" ↵Igor Murashkin2012-09-242-24/+117
|\ \ | | | | | | | | | into jb-mr1-dev
| * | Camera2: Fix cropRegion sometimes exceeding the sensor array sizeIgor Murashkin2012-09-242-24/+117
| |/ | | | | | | | | | | Bug: 7155264 Bug: 7120431 Change-Id: I92a9c695b97ec40acf26dbdaa877964e41a9fd4c
* | Merge "Check clock_gettime(CLOCK_MONOTONIC) for failure" into jb-mr1-devGlenn Kasten2012-09-241-0/+3
|\ \ | |/ |/|
| * Check clock_gettime(CLOCK_MONOTONIC) for failureGlenn Kasten2012-09-241-0/+3
| | | | | | | | | | Bug: 7100774 Change-Id: I15a84a19bb6d6ef1d9dac4beaa03587638196404
* | Merge "fix end of track presentation on suspended output" into jb-mr1-devEric Laurent2012-09-241-2/+13
|\ \
| * | fix end of track presentation on suspended outputEric Laurent2012-09-231-2/+13
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code detecting the end of an audio track presentation before removing it from the active track list is based on the count of audio frames sent to audio HAL. When an output stream is suspended (e.g. A2DP when SCO is active), this count does not change and a track in stopped state will never be removed from active track list causing the mixer thread to never release the wake lock. The fix consists in incrementing the audio HAL frame count even if the output is suspended. Also fix a problem in getRenderPosition() when the output is suspended. Bug 7167534. Change-Id: I3be836cbbea29b65dc087199cac6a1cd84c0a41d
* | Camera2: Truncate JPEG imagesAlex Ray2012-09-242-7/+172
|/ | | | | | | | Check for JPEG size hint from HAL, use if applicable. Otherwise read until end of JPEG image to find appropriate file size. Bug: 7108816 Change-Id: Idfd194133eb6c293ab08c9466f59606e62ba56b6
* Merge "Camera2: Don't use ZSL when flash is on force fire mode." into jb-mr1-devEino-Ville Talvala2012-09-211-1/+2
|\
| * Camera2: Don't use ZSL when flash is on force fire mode.Eino-Ville Talvala2012-09-211-1/+2
| | | | | | | | | | Bug: 7213907 Change-Id: I120b187c1886d85f4b2b5d3a6f28a28936424e8e
* | Merge "Camera2: Emit FaceDetection events for all except repeating 0-face ↵Igor Murashkin2012-09-212-5/+25
|\ \ | |/ |/| | | frames" into jb-mr1-dev
| * Camera2: Emit FaceDetection events for all except repeating 0-face framesIgor Murashkin2012-09-212-5/+25
| | | | | | | | | | Bug: 7205311 Change-Id: I570209445acf3a26f2246c3fe886d56bb63bd2f8
* | Merge "Camera2: Clean up startup/shutdown sequences." into jb-mr1-devEino-Ville Talvala2012-09-203-37/+85
|\ \
| * | Camera2: Clean up startup/shutdown sequences.Eino-Ville Talvala2012-09-203-37/+85
| |/ | | | | | | | | | | | | | | | | | | - Close camera device on startup errors - Make sure all threads are shut down and the device is closed before returning from ICamera::disconnect. Bug: 7172680 Change-Id: I98611448ec5f2311e6604fa8ee5f9dde7bfdd988
* | Camera2: Erase ZSL queue after each use.Eino-Ville Talvala2012-09-203-1/+32
|/ | | | | | | | | 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: 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