1564 Commits

Author SHA1 Message Date
Andreas Huber
07bf09da4a Initial checkin of AudioSource and AMRWriter, a pair of classes supporting pure-audio recording in stagefright.
related-to-bug: 2295449
2010-01-25 16:17:40 -08:00
Eric Laurent
23f25cda0c Fix issue 2378022: AudioService should direct volume control to STREAM_VOICE_CALL stream when STREAM_VOICE_CALL stream is active.
Modified AudioService.getActiveStreamType() so that STREAM_VOICE_CALL is selected when a track using this stream
type is playing.

Chanded isMusicActive() for a more generic isStreamActive(stream) method in AudioSystem, IAudioFlinger and AudioFlinger.
2010-01-25 14:00:10 -08:00
Eric Laurent
bb04b631b6 Merge "Fix issue 2349345: Media sound output stuck on earpiece rather than speaker." 2010-01-25 13:56:42 -08:00
Eric Laurent
b1cbc3525f Merge "Fix issue 2363154: Speech synthesis fails to start over A2DP after media server process crash." 2010-01-25 11:46:43 -08:00
Andreas Huber
52733b83a7 The qcom OMX video decoders do not allocate output buffer memory at the time OMX_AllocateBuffer is called, wait until we received the first FILL_BUFFER_DONE notification until we rely on the buffer data ptr. 2010-01-25 11:24:26 -08:00
Eric Laurent
787aa597d4 Fix issue 2363154: Speech synthesis fails to start over A2DP after media server process crash.
The problem is that after a media_server crash, the value of the A2DP output handle can change.
As this value is cached in AudioSystem for all client processes there can be a mismatch between the cached
and actual value after a media_server restart.

The fix consists in clearing the cached output handles and output to stream map values cached
in AudioSystem in AudioFlingerClient::binderDied() which is called when the media_server crashes.
2010-01-25 10:27:15 -08:00
Eric Laurent
9272b4b4a4 Fix issue 2349345: Media sound output stuck on earpiece rather than speaker.
This change fixes a problem occuring when an application (for instance a VoIP application)
changes the audio mode to MODE_IN_CALL and crashes. In this case, the audio routing policy
remains as if we were in call until the audio mode is changed back to MODE_NORMAL, for instance when a new call
made or received and terminated.

The fix consists in registering a death receipient to the binder that made the setMode() request and resetting the audio
mode in case of client process crash.
2010-01-25 09:01:48 -08:00
San Mehat
45f6104082 MountService: Add support for renaming secure containers
Signed-off-by: San Mehat <san@google.com>
2010-01-23 08:12:43 -08:00
Andreas Huber
ddce5766a3 Merge "Make sure to release the renderer before shutting down the hardware codec, qcom's hardware decoder will otherwise crash." 2010-01-22 14:51:28 -08:00
Andreas Huber
3522b5a579 Make sure to release the renderer before shutting down the hardware codec, qcom's hardware decoder will otherwise crash.
related-to-bug: 2387981
2010-01-22 14:36:53 -08:00
Marco Nelissen
7c45147f35 Merge "Make the media scanner disregard database entries that do not have absolute path names. This allows us to store other things (perhaps with http or content URIs) in the database, without the media scanner removing them again." 2010-01-22 07:53:12 -08:00
Chih-Chung Chang
e1ceec234c Add an orientation parameter for overlay, so we can do camera preview in portrait mode. 2010-01-21 20:20:08 -08:00
Marco Nelissen
35b002a9c8 Make the media scanner disregard database entries that do not have
absolute path names. This allows us to store other things (perhaps
with http or content URIs) in the database, without the media scanner
removing them again.
2010-01-21 17:12:45 -08:00
Yu Shan Emily Lau
47f1d4d509 am b1780474: Merge "Instead of caputre the memory footprint before and after the test. We would like to monitor the memory trend while the test is running. This can eliminate the overhead for the frist test case in creating the player." into eclair
Merge commit 'b1780474e6e3e1d3c584166c2fde336a0cd1c43f' into eclair-plus-aosp

* commit 'b1780474e6e3e1d3c584166c2fde336a0cd1c43f':
  Instead of caputre the memory footprint before and after the test. We would like to monitor the memory trend while the test is running. This can eliminate the overhead for the frist test case in creating the player.
2010-01-21 15:14:36 -08:00
Yu Shan Emily Lau
f465dc0367 Instead of caputre the memory footprint before and after the test. We would like to monitor the memory trend while the test is running. This can eliminate the overhead for the frist test case in creating the player. 2010-01-21 12:38:02 -08:00
Andreas Huber
48da344cf0 Merge "Fix circular dependency between StagefrightPlayer and AwesomePlayer that prevented proper cleanup." 2010-01-21 10:44:54 -08:00
Andreas Huber
2cb5c9c633 Special-case .wmv and .wma metadata retrieval and playback to use PV if available.
related-to-bug: 2381874
2010-01-21 10:31:05 -08:00
Andreas Huber
a3f4384ce8 Fix circular dependency between StagefrightPlayer and AwesomePlayer that prevented proper cleanup.
related-to-bug: 2355922
2010-01-21 10:28:45 -08:00
Andreas Huber
703f0614f3 Merge "Fix no-copy-overhead OMXCodec implementation to actually work." 2010-01-20 16:07:23 -08:00
Andreas Huber
c712b9fe28 Fix no-copy-overhead OMXCodec implementation to actually work. 2010-01-20 15:05:46 -08:00
Andreas Huber
06b3ff7d5a Make the MediaMetadataTest a little more lenient when it comes to verifying the duration of media files, only require that the returned duration is within 100ms of the expected one, as the PV and stagefright implementations differ slightly.
related-to-bug: 2377534
2010-01-20 12:16:36 -08:00
Andreas Huber
9b42b8168c Merge "Adds support for 8-bit (unsigned) PCM wave files." 2010-01-20 11:43:25 -08:00
Andreas Huber
e9999cfea4 Adds support for 8-bit (unsigned) PCM wave files.
related-to-bug: 2382428
2010-01-20 11:36:35 -08:00
Andreas Huber
c2c9dd3251 Support for 'iTunes-style' metadata in .mp4 and .3gp files.
related-to-bug: 2368967
2010-01-20 09:50:32 -08:00
Andreas Huber
5b5ae13e9e Fix trailing garbage after UCS-2 encoded strings in ID3 V2.
related-to-bug: 2381919
2010-01-19 13:52:06 -08:00
Andreas Huber
43782d3bc9 Support for ID3 version 1 (and 1.1) tags in .mp3 files.
related-to-bug: 2375219
2010-01-19 13:40:01 -08:00
Andreas Huber
cb6ffa2824 Merge "Avoid unnecessary buffer copying if at all possible, detect if running in the mediaserver process." 2010-01-19 11:43:12 -08:00
Doug Kwan
bfa05732a9 Merge "Add missing libjpeg in linker option. Currently this library is used by the main executable but is included implicitly via inter-library dependency." 2010-01-19 11:42:15 -08:00
James Dong
e73b46ef7f Merge "Media server death nodification" 2010-01-19 11:37:55 -08:00
Doug Kwan
474a97a428 Add missing libjpeg in linker option. Currently this library is used by the
main executable but is included implicitly via inter-library dependency.
2010-01-19 11:22:55 -08:00
Andreas Huber
f1fe064d73 Avoid unnecessary buffer copying if at all possible, detect if running in the mediaserver process. 2010-01-19 10:57:57 -08:00
Andreas Huber
0a2d8709e4 Merge "Squashed commit of the following:" 2010-01-19 10:51:33 -08:00
Andreas Huber
0d41be3a29 Merge "Remove totally unused code from OMX.cpp" 2010-01-19 10:50:54 -08:00
Andreas Huber
1faa92a1e9 Squashed commit of the following:
commit 6689350d7e4dad6d873c1ed95f0a356e3bfd79d1
Author: Andreas Huber <andih@google.com>
Date:   Tue Jan 19 09:23:02 2010 -0800

    Some tweaks to the SampleIterator.

commit 5638bff6d31442a219806445c3106d47b081fcab
Author: Andreas Huber <andih@google.com>
Date:   Fri Jan 15 14:46:29 2010 -0800

    A much improved implementation of MPEG4 sample table operations through an iterator.
2010-01-19 10:39:21 -08:00
Andreas Huber
fed1a1c9c0 Remove totally unused code from OMX.cpp 2010-01-19 10:36:35 -08:00
Andreas Huber
5a12413331 Merge "Make sure the seek test attempts to seek on the very first iteration, as this appears to be a special case that decoders frequently get wrong." 2010-01-19 10:24:58 -08:00
San Mehat
9dba709d44 MountService: Add new 'unmountSecureContainer' API call
Signed-off-by: San Mehat <san@google.com>
2010-01-18 06:49:19 -08:00
James Dong
34bbc22cbc Media server death nodification 2010-01-15 18:28:16 -08:00
San Mehat
cf7aa68e11 sdutil: Use new MountService api method names
Signed-off-by: San Mehat <san@google.com>
2010-01-15 10:05:37 -08:00
Andreas Huber
f2275078bd Merge "Squashed commit of the following:" 2010-01-14 15:12:36 -08:00
Andreas Huber
5a37232239 Merge "Fix a few issues with determining the closest sample to a given time in the MPEG4 sampletable implementation." 2010-01-14 15:12:29 -08:00
Andreas Huber
34d30d3342 Merge "Squashed commit of the following:" 2010-01-14 15:01:22 -08:00
Andreas Huber
140d4edf9b Fix a few issues with determining the closest sample to a given time in the MPEG4 sampletable implementation. 2010-01-14 14:49:19 -08:00
Andreas Huber
0ffc90f6ed Squashed commit of the following:
commit cb11364feefc200f10af6a01f776803acba2792a
Author: Andreas Huber <andih@google.com>
Date:   Thu Jan 14 14:05:36 2010 -0800

    Even if the decoder didn't extract the thumbnail at the specified time, accept it for now.

commit a54c0244b305caf11e67db49b7d3d8dba5f77751
Author: Andreas Huber <andih@google.com>
Date:   Thu Jan 14 11:37:15 2010 -0800

    Add some checks to make sure we extract the correct thumbnail frame, also revert to the hardware decoders for thumnbail extraction if the software decoders failed.
2010-01-14 14:15:33 -08:00
Andreas Huber
909255a9cf Squashed commit of the following:
commit 0014ab17f2e0986044327a5ab22159de50b81e0a
Author: Andreas Huber <andih@google.com>
Date:   Thu Jan 14 14:05:09 2010 -0800

    Another instance of returning an error instead of asserting makes sense.

commit d2cac8c498a65b449a25ec216601830d23c165e7
Author: Andreas Huber <andih@google.com>
Date:   Thu Jan 14 13:34:33 2010 -0800

    Instead of asserting on invalid data (incomplete NAL unit), return an error.
2010-01-14 14:13:15 -08:00
Andreas Huber
dbcb2c68ee Workaround for some hardware decoders not properly signaling end-of-output-stream properly. 2010-01-14 14:09:58 -08:00
Andreas Huber
f91f1b4718 Make sure the seek test attempts to seek on the very first iteration, as this appears to be a special case that decoders frequently get wrong. 2010-01-14 14:08:25 -08:00
Andreas Huber
1cb02bf661 Support for determining the mime type of media via metadata extraction. 2010-01-13 11:30:34 -08:00
Andreas Huber
3a3656ce8a More metadata support. 2010-01-13 10:45:49 -08:00
Andreas Huber
85fbfee4c9 Merge "Properly respect NALLengthSize in the AVC Configuration header to determine how many bits encode the nal unit size." 2010-01-12 16:42:47 -08:00