OSDN Git Service

android-x86/frameworks-av.git
12 years agomerge in ics-release history after reset to master
The Android Automerger [Thu, 15 Sep 2011 13:34:24 +0000 (06:34 -0700)]
merge in ics-release history after reset to master

12 years agoMerge "Change an assert failure due to unsupported level by HW AVC decoder and report...
James Dong [Thu, 15 Sep 2011 00:42:22 +0000 (17:42 -0700)]
Merge "Change an assert failure due to unsupported level by HW AVC decoder and report the error to applications"

12 years agomerge in ics-release history after reset to master
The Android Automerger [Wed, 14 Sep 2011 13:34:13 +0000 (06:34 -0700)]
merge in ics-release history after reset to master

12 years agoMerge "Issue 5298399: Lost speech after a crash in gTalk."
Eric Laurent [Wed, 14 Sep 2011 00:50:31 +0000 (17:50 -0700)]
Merge "Issue 5298399: Lost speech after a crash in gTalk."

12 years agoIssue 5298399: Lost speech after a crash in gTalk.
Eric Laurent [Tue, 13 Sep 2011 22:04:17 +0000 (15:04 -0700)]
Issue 5298399: Lost speech after a crash in gTalk.

Fixed problem in AudioTrack::restoreTrack_l() causing a permanent
failure if the IAudioTrack interface to AudioFlinger could not be
restored at the first attempt.

Change-Id: I039d4fe2dca8d3baf71f1a6c51119f27a67b6611

12 years agoMerge "Issue 4345021: Audio routed to multiple devices..."
Eric Laurent [Tue, 13 Sep 2011 19:57:37 +0000 (12:57 -0700)]
Merge "Issue 4345021: Audio routed to multiple devices..."

12 years agoIssue 4345021: Audio routed to multiple devices...
Eric Laurent [Tue, 13 Sep 2011 18:40:21 +0000 (11:40 -0700)]
Issue 4345021: Audio routed to multiple devices...

There is a possiblility that the condition on which RecordThread::checkForNewParameters_l()
waits after updating the command completion status is never signalled.
This happens if the thread executing ThreadBase::setParameters() has timed out waiting
for the status (for instance if the audio HAL takes too long to execute the setParameters()
command. Then the RecordThread is stuck forever.

The fix consists in waiting for the condition with a timeout in RecordThread::checkForNewParameters_l().

Change-Id: I7fc671bc2fc43ba4acb65a2beb33ee05742f091e

12 years agoMerge "Support .avi tracks that have a sample size of 1, i.e. samples != chunks"
Andreas Huber [Tue, 13 Sep 2011 18:37:22 +0000 (11:37 -0700)]
Merge "Support .avi tracks that have a sample size of 1, i.e. samples != chunks"

12 years agoSupport .avi tracks that have a sample size of 1, i.e. samples != chunks
Andreas Huber [Tue, 13 Sep 2011 18:12:57 +0000 (11:12 -0700)]
Support .avi tracks that have a sample size of 1, i.e. samples != chunks

Assume for now that all chunks are the same size, i.e. have the same number of
samples.

Change-Id: Ib8a7dfeb16cc3e5be199ff9d98b68dd0b9c23eb8
related-to-bug: 5279872

12 years agoChange an assert failure due to unsupported level by HW AVC decoder and report the...
James Dong [Tue, 13 Sep 2011 02:56:23 +0000 (19:56 -0700)]
Change an assert failure due to unsupported level by HW AVC decoder and report the error to applications

Change-Id: I522a994981d86329ccc86c3b536b561dc6e40eeb
related-to-bug: 5300618

12 years agoDon't post position updates too frequently
Andreas Huber [Tue, 13 Sep 2011 15:28:38 +0000 (08:28 -0700)]
Don't post position updates too frequently

i.e. don't hog my message queue.

related-to-bug: 5284760
Change-Id: I8e2d36a11dbee1567b18ed13dc5257a65c6eeda7

12 years agomerge in ics-release history after reset to master
The Android Automerger [Tue, 13 Sep 2011 13:34:10 +0000 (06:34 -0700)]
merge in ics-release history after reset to master

12 years agoMerge "Turn an another assertion into a runtime error in ACodec's implementation"
Andreas Huber [Mon, 12 Sep 2011 21:21:42 +0000 (14:21 -0700)]
Merge "Turn an another assertion into a runtime error in ACodec's implementation"

12 years agoTurn an another assertion into a runtime error in ACodec's implementation
Andreas Huber [Mon, 12 Sep 2011 21:14:08 +0000 (14:14 -0700)]
Turn an another assertion into a runtime error in ACodec's implementation

Change-Id: I6779b29f200b90d088273ab3204724ef3d8d59bd
related-to-bug: 5284760

12 years agoIncrease the avi extractor's confidence slighly over mp3's
Andreas Huber [Mon, 12 Sep 2011 20:49:00 +0000 (13:49 -0700)]
Increase the avi extractor's confidence slighly over mp3's

So that we don't accidentally identify a .avi file containing an mp3 track as
an mp3 file.

Change-Id: I73495b80cbb5bc1007bf810f2db453c9f175171b
related-to-bug: 5288189

12 years agomerge in ics-release history after reset to master
The Android Automerger [Sun, 11 Sep 2011 13:41:51 +0000 (06:41 -0700)]
merge in ics-release history after reset to master

12 years agoMake MediaScanner skip certain directories
Guang Zhu [Thu, 8 Sep 2011 06:55:27 +0000 (23:55 -0700)]
Make MediaScanner skip certain directories

The list of directories to skip are configurable via setprop.
The main motivation is that some test data folder takes long time
to scan, and media scanner may compete for CPU time against perf
tests therefore skewing the results.

Bug: 5263115
Change-Id: I568213e2a4babf6033021c1d336ef0347c0e3315

12 years agoMerge "Don't check mFilledBuffers whether it is empty or not when the port reconfigur...
James Dong [Fri, 9 Sep 2011 21:56:30 +0000 (14:56 -0700)]
Merge "Don't check mFilledBuffers whether it is empty or not when the port reconfiguration is not meant for buffer reallocation"

12 years agoDon't check mFilledBuffers whether it is empty or not when the port reconfiguration...
James Dong [Fri, 9 Sep 2011 20:19:59 +0000 (13:19 -0700)]
Don't check mFilledBuffers whether it is empty or not when the port reconfiguration is not meant for buffer reallocation

Change-Id: Iee9b18449bce9d7565ab5cc7f9e999484051196c
related-to-bug: 5233843

12 years agoMerge "AudioTrack: extend callback thread sleep time"
Eric Laurent [Thu, 8 Sep 2011 23:07:40 +0000 (16:07 -0700)]
Merge "AudioTrack: extend callback thread sleep time"

12 years agoMerge "Always set geometry in queuebuffer"
Pannag Sanketi [Thu, 8 Sep 2011 22:33:31 +0000 (15:33 -0700)]
Merge "Always set geometry in queuebuffer"

12 years agoAudioTrack: extend callback thread sleep time
Eric Laurent [Wed, 7 Sep 2011 18:13:23 +0000 (11:13 -0700)]
AudioTrack: extend callback thread sleep time

Do not force wake up the AudioTrack thread every 10ms if no timed
events (loop, markers..) have to be processed.
This will help reduce power consumption.

Change-Id: Icb425b13800690008dd07c27ffac84739e3dbba3

12 years agoAlways set geometry in queuebuffer
Pannag Sanketi [Thu, 8 Sep 2011 21:15:00 +0000 (14:15 -0700)]
Always set geometry in queuebuffer

The queuebuffer could return early due to timestamp issues. Need to set
the geometry even in that case.

Change-Id: I04d7cd1df3996d640c269285398c0042923ba920

12 years agoAudio player must not be used as a timesource before it's started.
Andreas Huber [Thu, 8 Sep 2011 18:33:47 +0000 (11:33 -0700)]
Audio player must not be used as a timesource before it's started.

Otherwise it'll trigger a division-by-zero exception since the audio sample rate
is as yet unknown.

Change-Id: I0793aa7c1c348ffa2611272bb646eff6ecf6ff53
related-to-bug: 5242451

12 years agomerge in ics-release history after reset to master
The Android Automerger [Thu, 8 Sep 2011 13:34:13 +0000 (06:34 -0700)]
merge in ics-release history after reset to master

12 years agoBug 5270905 fix MediaPlayer with IStreamSource
Glenn Kasten [Wed, 7 Sep 2011 21:40:23 +0000 (14:40 -0700)]
Bug 5270905 fix MediaPlayer with IStreamSource

Change-Id: Ia8a6381a6c88b4a0a1378aab03f5275f0fa1125a

12 years agoMerge "Bug 5270905 fix MediaPlayer with IStreamSource"
Glenn Kasten [Wed, 7 Sep 2011 21:56:47 +0000 (14:56 -0700)]
Merge "Bug 5270905 fix MediaPlayer with IStreamSource"

12 years agoBug 5270905 fix MediaPlayer with IStreamSource
Glenn Kasten [Wed, 7 Sep 2011 21:40:23 +0000 (14:40 -0700)]
Bug 5270905 fix MediaPlayer with IStreamSource

Change-Id: Ia8a6381a6c88b4a0a1378aab03f5275f0fa1125a

12 years agoMerge "Fixing bug in SurfaceMediaSource_test"
Pannag Sanketi [Wed, 7 Sep 2011 21:18:41 +0000 (14:18 -0700)]
Merge "Fixing bug in SurfaceMediaSource_test"

12 years agoApparently keyframe status in audio tracks of .webm/.mkv files is unreliable
Andreas Huber [Wed, 7 Sep 2011 18:05:43 +0000 (11:05 -0700)]
Apparently keyframe status in audio tracks of .webm/.mkv files is unreliable

fortunately in all our supported audio encodings we can treat every frame as
a keyframe.

Change-Id: I32f21d0077bbae7ef9efe725dd351baf531179e2
related-to-bug: 5263837

12 years agoMerge "Stop metadata retriever from dereferencing a NULL pointer if"
Andreas Huber [Wed, 7 Sep 2011 16:05:04 +0000 (09:05 -0700)]
Merge "Stop metadata retriever from dereferencing a NULL pointer if"

12 years agomerge in ics-release history after reset to master
The Android Automerger [Wed, 7 Sep 2011 13:34:10 +0000 (06:34 -0700)]
merge in ics-release history after reset to master

12 years agoRevert "To make SniffMP3() more concrete so that we can remove false-positve response...
James Dong [Wed, 7 Sep 2011 02:18:43 +0000 (19:18 -0700)]
Revert "To make SniffMP3() more concrete so that we can remove false-positve responses from MPEG-PS streams."

This reverts commit 983ab88e117fcbda9370b8f4ba94271d37149672.

related-to-bug: 5231309

12 years agoHandle setDataSource failures properly. #5261671
Dave Burke [Tue, 6 Sep 2011 19:39:47 +0000 (20:39 +0100)]
Handle setDataSource failures properly. #5261671

Change-Id: Iea0aa474d1939db23da9aabdfae2081e834f30d9

12 years agoStop metadata retriever from dereferencing a NULL pointer if
Andreas Huber [Tue, 6 Sep 2011 23:05:02 +0000 (16:05 -0700)]
Stop metadata retriever from dereferencing a NULL pointer if

the media extractor failed to initialize (malformed or unsupported content)

Change-Id: Icfad4e9eeb8d6713ad12eee7979ab30b696c06e0
related-to-bug: 5263840

12 years agoMerge "Issue 5247986: Battery drain due to audio wakelock"
Eric Laurent [Tue, 6 Sep 2011 21:53:59 +0000 (14:53 -0700)]
Merge "Issue 5247986: Battery drain due to audio wakelock"

12 years agoIssue 5247986: Battery drain due to audio wakelock
Eric Laurent [Tue, 6 Sep 2011 19:36:15 +0000 (12:36 -0700)]
Issue 5247986: Battery drain due to audio wakelock

The problem occurs when activating or deactivating A2DP connection
while SoudPool has a channel active. This can happen quite frequently now
that the UI sound effects are enabled by default.
If PCM data is remaining in the AudioTrack buffer when it is restroyed and
re-created on the new AudioFlinger output thread, this data is flushed.
As a consequence, no underrun or request for new data callback is sent to
SoundPool and the sound channel remains active for ever as the end of the
sample is never detected.

Change-Id: I13e0c11e4ce3f83bff7f58d347ca814b6a86712b

12 years agoMerge "Handle setDataSource failures properly. #5261671"
Dave Burke [Tue, 6 Sep 2011 20:06:20 +0000 (13:06 -0700)]
Merge "Handle setDataSource failures properly. #5261671"

12 years agoHandle setDataSource failures properly. #5261671
Dave Burke [Tue, 6 Sep 2011 19:39:47 +0000 (20:39 +0100)]
Handle setDataSource failures properly. #5261671

Change-Id: Iea0aa474d1939db23da9aabdfae2081e834f30d9

12 years agoMerge "Don't overwrite pending port setting change if there are more than one port...
James Dong [Tue, 6 Sep 2011 16:54:43 +0000 (09:54 -0700)]
Merge "Don't overwrite pending port setting change if there are more than one port setting change event."

12 years agomerge in ics-release history after reset to master
The Android Automerger [Mon, 5 Sep 2011 13:34:19 +0000 (06:34 -0700)]
merge in ics-release history after reset to master

12 years agoFixing bug in SurfaceMediaSource_test
Pannag Sanketi [Sat, 3 Sep 2011 00:56:35 +0000 (17:56 -0700)]
Fixing bug in SurfaceMediaSource_test

The test was making EGL calls once disconnected. Instead of calling
"disconnect" directly on the Surface, and EGL calls should be made to that
effect.

Change-Id: I21468ac8cbc2cb3145a49269e32a884736cd452e

12 years agomerge in ics-release history after reset to master
The Android Automerger [Fri, 2 Sep 2011 23:02:32 +0000 (16:02 -0700)]
merge in ics-release history after reset to master

12 years agoFix issue 5252593: any app can restart the runtime
Eric Laurent [Fri, 2 Sep 2011 21:20:56 +0000 (14:20 -0700)]
Fix issue 5252593: any app can restart the runtime

Replace null device address string by empty sting.

Change-Id: I285c35f3345334e6d2190493b1a8a5aca1a361a4

12 years agoProperly serialize access to FileSource::getSize by acquiring the mutex
Andreas Huber [Fri, 2 Sep 2011 16:34:51 +0000 (09:34 -0700)]
Properly serialize access to FileSource::getSize by acquiring the mutex

Both ::getSize and ::read call into lseek64, if this happens simultaneously
from multiple threads the results are undefined if not properly serialized.

Change-Id: I737cafebd836f3d8eb702beac557b4731f69c6f6
related-to-bug: 5196490

12 years agoRequire INTERNET permission for network-based content.
Dave Burke [Tue, 30 Aug 2011 13:39:17 +0000 (14:39 +0100)]
Require INTERNET permission for network-based content.
Bug #1870981

Change-Id: Ia3ad166390c4d60cea19c3783895b078a2c4c15f

12 years agoDon't overwrite pending port setting change if there are more than one port setting...
James Dong [Fri, 2 Sep 2011 02:31:01 +0000 (19:31 -0700)]
Don't overwrite pending port setting change if there are more than one port setting change event.

Change-Id: I3413f5235b191031252aa3785f5aaef00caef1ce
related-to-bug: 5122512

12 years agoMerge "Guard the audio notifications with a separate lock to avoid deadlocks during...
Andreas Huber [Thu, 1 Sep 2011 19:20:23 +0000 (12:20 -0700)]
Merge "Guard the audio notifications with a separate lock to avoid deadlocks during reset."

12 years agoGuard the audio notifications with a separate lock to avoid deadlocks during reset.
Andreas Huber [Thu, 1 Sep 2011 18:39:11 +0000 (11:39 -0700)]
Guard the audio notifications with a separate lock to avoid deadlocks during reset.

Change-Id: I9a97372e1f777d1cbd6774cac2ed34b4b8cd9392
related-to-bug: 5179827

12 years agoSignal an error when encountering a malformed .ts stream.
Andreas Huber [Thu, 1 Sep 2011 18:04:43 +0000 (11:04 -0700)]
Signal an error when encountering a malformed .ts stream.

Change-Id: I3ab0215419214b652573945403eb45eb09d41aff
related-to-bug: 5114811

12 years agomerge in ics-release history after reset to master
The Android Automerger [Thu, 1 Sep 2011 13:33:57 +0000 (06:33 -0700)]
merge in ics-release history after reset to master

12 years agoAdd video snapshot camera parameter.
Wu-cheng Li [Tue, 30 Aug 2011 13:33:10 +0000 (21:33 +0800)]
Add video snapshot camera parameter.

The API is still hidden.

bug:5187868

Change-Id: I59e1b5774ca32be049723d1a0887faa90d8884bb

12 years agoMerge "Incr. MIN_UNDEQUEUED_BUFFERS in SurfaceMediaSource"
Pannag Sanketi [Thu, 1 Sep 2011 05:00:35 +0000 (22:00 -0700)]
Merge "Incr. MIN_UNDEQUEUED_BUFFERS in SurfaceMediaSource"

12 years agoIncr. MIN_UNDEQUEUED_BUFFERS in SurfaceMediaSource
Pannag Sanketi [Tue, 30 Aug 2011 02:53:51 +0000 (19:53 -0700)]
Incr. MIN_UNDEQUEUED_BUFFERS in SurfaceMediaSource

The buffers in SurfaceMediaSource were 4 earlier, whereas
we need 5 for one of the devices.

Change-Id: I87bf5e28bbb0f7c9661dc01b040baa903d95d2c2

12 years agoMerge "I have one HLS stream that switches stream PIDs from one bandwidth to the...
Andreas Huber [Wed, 31 Aug 2011 23:44:49 +0000 (16:44 -0700)]
Merge "I have one HLS stream that switches stream PIDs from one bandwidth to the next"

12 years agoMerge "Discontinuities are only signalled on streams that have been identified, i.e."
Andreas Huber [Wed, 31 Aug 2011 23:44:43 +0000 (16:44 -0700)]
Merge "Discontinuities are only signalled on streams that have been identified, i.e."

12 years agoI have one HLS stream that switches stream PIDs from one bandwidth to the next
Andreas Huber [Wed, 31 Aug 2011 23:29:05 +0000 (16:29 -0700)]
I have one HLS stream that switches stream PIDs from one bandwidth to the next

this change intends to support its very limited case and signals an error in
all other cases of unexpected PID changes that we cannot recover from.

Change-Id: Icbfdf9fe7461969e2a8781ed416f54d891dd789a

12 years agoDiscontinuities are only signalled on streams that have been identified, i.e.
Andreas Huber [Wed, 31 Aug 2011 22:04:25 +0000 (15:04 -0700)]
Discontinuities are only signalled on streams that have been identified, i.e.

those that have a queue. This ensures that the player doesn't observe discontinuities
that don't match up across streams.

Also, make sure output buffers arriving from the decoder to be rendered are sent
back to the decoder if we started flushing.

Finally, don't parse TS packets for streams we don't support. And don't allocate
memory for them.

Change-Id: I708e0de4cba8110a62e4c8ceb1e5702430d5d2bb

12 years agoMerge "Update SurfaceMediaSource_test to not use pbuffer configs"
Pannag Sanketi [Wed, 31 Aug 2011 22:09:26 +0000 (15:09 -0700)]
Merge "Update SurfaceMediaSource_test to not use pbuffer configs"

12 years agoMerge "Fix a crash where the EOS was signalled but some output buffer were still...
James Dong [Wed, 31 Aug 2011 21:17:18 +0000 (14:17 -0700)]
Merge "Fix a crash where the EOS was signalled but some output buffer were still pending."

12 years agoMerge "Fix SurfaceMediaSource timestamp handling."
Eino-Ville Talvala [Wed, 31 Aug 2011 20:41:06 +0000 (13:41 -0700)]
Merge "Fix SurfaceMediaSource timestamp handling."

12 years agoMerge "Stop the AudioSource in reset() of AwesomePlayer if AudioSource is not NULL...
Gloria Wang [Wed, 31 Aug 2011 17:37:48 +0000 (10:37 -0700)]
Merge "Stop the AudioSource in reset() of AwesomePlayer if AudioSource is not NULL and AudioPlayer was not started. Fix for 5236419."

12 years agoStop the AudioSource in reset() of AwesomePlayer if AudioSource is not NULL
Gloria Wang [Wed, 31 Aug 2011 17:24:18 +0000 (10:24 -0700)]
Stop the AudioSource in reset() of AwesomePlayer if AudioSource is not NULL
and AudioPlayer was not started.
Fix for 5236419.

Change-Id: I5eadd069118c3533a19b5d6f6dca2ce16d8505fb

12 years agoMerge "ATSParser now supports a mode in which PTS is considered to be absolute time"
Andreas Huber [Wed, 31 Aug 2011 16:44:57 +0000 (09:44 -0700)]
Merge "ATSParser now supports a mode in which PTS is considered to be absolute time"

12 years agomerge in ics-release history after reset to master
The Android Automerger [Wed, 31 Aug 2011 13:34:02 +0000 (06:34 -0700)]
merge in ics-release history after reset to master

12 years agoUpdate SurfaceMediaSource_test to not use pbuffer configs
Pannag Sanketi [Wed, 31 Aug 2011 02:10:54 +0000 (19:10 -0700)]
Update SurfaceMediaSource_test to not use pbuffer configs

SurfaceMediaSource_test now does not use pbuffer configs
to create a surface. Always uses a window config.
Also, cleaned up the test a bit.

Change-Id: Idda40dcb8474249eccaa8d2dad20ee840d2dd484

12 years agoMerge "fix Surface positions are not floats"
Mathias Agopian [Wed, 31 Aug 2011 02:24:04 +0000 (19:24 -0700)]
Merge "fix Surface positions are not floats"

12 years agofix Surface positions are not floats
Mathias Agopian [Wed, 31 Aug 2011 01:51:54 +0000 (18:51 -0700)]
fix Surface positions are not floats

Added Surface.setPosition(float, float) which allows to set a surface's
position in float.

Bug: 5239859
Change-Id: I903aef4ad5b5999142202fb8ea30fe216d805711

12 years agoFix a crash where the EOS was signalled but some output buffer were still pending.
James Dong [Wed, 31 Aug 2011 00:06:10 +0000 (17:06 -0700)]
Fix a crash where the EOS was signalled but some output buffer were still pending.

Change-Id: Ide111264501441b51bb10629ae2021accf9e1fb5
related-to-bug: 5234126

12 years agoATSParser now supports a mode in which PTS is considered to be absolute time
Andreas Huber [Tue, 30 Aug 2011 23:06:28 +0000 (16:06 -0700)]
ATSParser now supports a mode in which PTS is considered to be absolute time

i.e. PTS 0 <=> media time 0

Change-Id: If10a0f98c129b95e8430dc419664b1def92e547e

12 years agomerge in ics-release history after reset to master
The Android Automerger [Tue, 30 Aug 2011 20:42:46 +0000 (13:42 -0700)]
merge in ics-release history after reset to master

12 years agomerge in ics-release history after reset to master
The Android Automerger [Tue, 30 Aug 2011 19:45:34 +0000 (12:45 -0700)]
merge in ics-release history after reset to master

12 years agoMerge "226483: A2DP connected, but music out to speaker"
Eric Laurent [Tue, 30 Aug 2011 17:51:54 +0000 (10:51 -0700)]
Merge "226483: A2DP connected, but music out to speaker"

12 years agoFix SurfaceMediaSource timestamp handling.
Eino-Ville Talvala [Tue, 30 Aug 2011 01:16:03 +0000 (18:16 -0700)]
Fix SurfaceMediaSource timestamp handling.

Was not basing timestamps on startTimeUs.
Now synchronizes properly with audio.

Bug: 4510826
Change-Id: I613db0aa91e51fc75d120e65540e742d8ab2ae43

12 years ago226483: A2DP connected, but music out to speaker
Eric Laurent [Tue, 30 Aug 2011 17:18:54 +0000 (10:18 -0700)]
226483: A2DP connected, but music out to speaker

When the A2DP headset is connected, there is a possible
race condition when the audio tracks are moved from
the mixer thread attached to the speaker output to the thread
attached to A2DP output.
As the request to clear the stream type to output mapping cache in
the client process is asynchronous, it is possible that the flag
indicating to the client audio track to re-create the IAudioTrack
on the new thread is processed before the cache is invalidated.
In this case, the track will be attached to the old thread and
music will continue playing over the device speaker instead of being
redirected to A2DP headset.

Change-Id: Ib2ce1eb5320eaff83287b93779061bf4e7a330df

12 years agoMerge "Bug 5156756 Fix AAC ADTS header size computation"
Jean-Michel Trivi [Tue, 30 Aug 2011 16:06:36 +0000 (09:06 -0700)]
Merge "Bug 5156756 Fix AAC ADTS header size computation"

12 years agomerge in ics-release history after reset to master
The Android Automerger [Tue, 30 Aug 2011 13:33:59 +0000 (06:33 -0700)]
merge in ics-release history after reset to master

12 years agoBug 5156756 Fix AAC ADTS header size computation
Jean-Michel Trivi [Mon, 29 Aug 2011 21:06:51 +0000 (14:06 -0700)]
Bug 5156756 Fix AAC ADTS header size computation

This previous frame size computation code had two incorrect
 assumptions:
 1/ the ADTS frame length value already contains the header size
 2/ the ADTS header is not of fixed size: it is 2 bytes bigger
  if it contains the CRC value.
For 1/, the code worked because when the header size was added
 to the frame size, the + operator is of stronger precedence
 than the ? operator, so the size added was always 0 (instead
 of ADTS_HEADER_LENGTH.
For 2/, the code worked as long as there was no CRC in the ADTS
 data.

The fix consists in:
 - documenting what the frame length computation code returns
 - fixing the frame length computation
 - when computing the frame length, also returning the header
  size so the correct data can be sent to the decoder.

Change-Id: I92df72a9e531f594f762e63d62f9dee7b0109904

12 years agoMerge "Audioflinger: reverse logic of BT NREC indication"
Eric Laurent [Mon, 29 Aug 2011 22:12:41 +0000 (15:12 -0700)]
Merge "Audioflinger: reverse logic of BT NREC indication"

12 years agoAudioflinger: reverse logic of BT NREC indication
Eric Laurent [Mon, 29 Aug 2011 19:42:48 +0000 (12:42 -0700)]
Audioflinger: reverse logic of BT NREC indication

The interpretation of BT NREC by AudioFlinger to enable
or disable AEC and NS was wrong: NREC to ON (default) means
the phone (Audio Gateway) must enable local AEC and NS.

Change-Id: I88a264e7fc9831c43bbace4f6b585baec73f2006

12 years agoReturn an error to the client instead of asserting if decoder instantiation fails
Andreas Huber [Mon, 29 Aug 2011 20:01:23 +0000 (13:01 -0700)]
Return an error to the client instead of asserting if decoder instantiation fails

after a surface change.

Change-Id: Ic7758cbeb107032db68a1c3b8e2984710a12dd8b
related-to-bug: 5212725

12 years agoMerge "Signal errors to the client instead of asserting in ACodec."
Andreas Huber [Mon, 29 Aug 2011 15:10:56 +0000 (08:10 -0700)]
Merge "Signal errors to the client instead of asserting in ACodec."

12 years agomerge in ics-release history after reset to master
The Android Automerger [Mon, 29 Aug 2011 13:33:59 +0000 (06:33 -0700)]
merge in ics-release history after reset to master

12 years agoMerge "Default W, H allowed in SurfaceMediaSource dequeue"
Pannag Sanketi [Sun, 28 Aug 2011 21:40:26 +0000 (14:40 -0700)]
Merge "Default W, H allowed in SurfaceMediaSource dequeue"

12 years agoMerge "Modify enum value of OMX_COLOR_FormatAndroidOpaque"
Pannag Sanketi [Sat, 27 Aug 2011 03:05:58 +0000 (20:05 -0700)]
Merge "Modify enum value of OMX_COLOR_FormatAndroidOpaque"

12 years agoMerge "Fixing small syntax error in MPEG4 logging"
Pannag Sanketi [Sat, 27 Aug 2011 03:01:46 +0000 (20:01 -0700)]
Merge "Fixing small syntax error in MPEG4 logging"

12 years agoModify enum value of OMX_COLOR_FormatAndroidOpaque
Pannag Sanketi [Sat, 27 Aug 2011 02:34:49 +0000 (19:34 -0700)]
Modify enum value of OMX_COLOR_FormatAndroidOpaque

The enum value chosen earlier had a conflict with one of the vendors.

Change-Id: I47832dd1157447f89324d56e8ab146260cd7927c

12 years agoFixing small syntax error in MPEG4 logging
Pannag Sanketi [Sat, 27 Aug 2011 02:17:20 +0000 (19:17 -0700)]
Fixing small syntax error in MPEG4 logging

Found that the build was breaking when the logging was enabled in
MPEG4Writer. Fixed.

Change-Id: I62c5e6d16b2ecf5644c8d46b9bbcca68a797b223

12 years agoSignal errors to the client instead of asserting in ACodec.
Andreas Huber [Fri, 26 Aug 2011 23:02:19 +0000 (16:02 -0700)]
Signal errors to the client instead of asserting in ACodec.

Also make sure NuPlayer can properly shutdown in certain edge cases.

Change-Id: Iceb16d600d87ba66c802e60e95bf62f66487a453

12 years agoMerge "Support for posting messages and synchronously waiting for a response."
Andreas Huber [Fri, 26 Aug 2011 20:47:26 +0000 (13:47 -0700)]
Merge "Support for posting messages and synchronously waiting for a response."

12 years agoProperly reset the number of frames we think we've written to the audio sink
Andreas Huber [Fri, 26 Aug 2011 18:26:25 +0000 (11:26 -0700)]
Properly reset the number of frames we think we've written to the audio sink

in order to compute the final delay before posting end-of-stream correctly.

Change-Id: I4ff6d7142fdf1ea2d19d12ec78c1e84322d22e5f
related-to-bug: 5216930

12 years agoMerge "Bug 4364249 Play position is 0 after flushing AudioTrack"
Jean-Michel Trivi [Fri, 26 Aug 2011 00:41:46 +0000 (17:41 -0700)]
Merge "Bug 4364249 Play position is 0 after flushing AudioTrack"

12 years agoBug 4364249 Play position is 0 after flushing AudioTrack
Jean-Michel Trivi [Thu, 25 Aug 2011 23:47:23 +0000 (16:47 -0700)]
Bug 4364249 Play position is 0 after flushing AudioTrack

AudioTrack::stop() is not synchronous, so a stop() followed
 by flush(), which is synchronous, will not always report
 a playhead position of 0 after being called.
This CL adds a flag to mark a track as flushed, and report the
 correct playhead position in this state.
Bug 5217011 has been created to address the real issue in the
 future, where flush could be made synchronous, to properly
 address bug 4364249.

Change-Id: Icf989d41a6bcd5985bb87764c287f3edb7e26d12

12 years agoSupport for posting messages and synchronously waiting for a response.
Andreas Huber [Thu, 25 Aug 2011 23:09:06 +0000 (16:09 -0700)]
Support for posting messages and synchronously waiting for a response.

Change-Id: Id6c7a08c34fd5cb6c4632f78ece9e7898b29e52c

12 years agoMerge "When encountering a discontinuity, flush(clear) all content enqueued up to...
Andreas Huber [Thu, 25 Aug 2011 20:40:16 +0000 (13:40 -0700)]
Merge "When encountering a discontinuity, flush(clear) all content enqueued up to that"

12 years agoWhen encountering a discontinuity, flush(clear) all content enqueued up to that
Andreas Huber [Thu, 25 Aug 2011 19:21:26 +0000 (12:21 -0700)]
When encountering a discontinuity, flush(clear) all content enqueued up to that

point except previously enqueued discontinuities.

Change-Id: Id04a559dc062fa4a5c80c599ad74bf81a543de01
related-to-bug: 5201378

12 years agoMerge "Set mSeekNotificationSent as false for RTSP seeking. Fix for bug 5208736."
Gloria Wang [Thu, 25 Aug 2011 17:28:50 +0000 (10:28 -0700)]
Merge "Set mSeekNotificationSent as false for RTSP seeking. Fix for bug 5208736."

12 years agoSet mSeekNotificationSent as false for RTSP seeking.
Gloria Wang [Thu, 25 Aug 2011 17:09:34 +0000 (10:09 -0700)]
Set mSeekNotificationSent as false for RTSP seeking.
Fix for bug 5208736.

Change-Id: Ib1d74608ec289509082d8dcad080769f48098853

12 years agoMerge "When Camera is launched by media recording framework, stagefright controls...
James Dong [Thu, 25 Aug 2011 15:12:11 +0000 (08:12 -0700)]
Merge "When Camera is launched by media recording framework, stagefright controls the stop and release."

12 years agomerge in ics-release history after reset to master
The Android Automerger [Thu, 25 Aug 2011 13:34:23 +0000 (06:34 -0700)]
merge in ics-release history after reset to master