OSDN Git Service

android-x86/frameworks-av.git
13 years agoAfter seeking display the first new video frame right away without concern for A...
Andreas Huber [Fri, 29 Oct 2010 22:47:52 +0000 (15:47 -0700)]
After seeking display the first new video frame right away without concern for A/V sync. This looks much more responsive to the user.

Change-Id: Ifb1f8c91e95a5cafe30ae1035973316c210b98a5
related-to-bug: 3152363

13 years agoDO NOT MERGE - Instead of asserting that ISurface successfully registered buffers...
Andreas Huber [Fri, 12 Nov 2010 16:57:12 +0000 (08:57 -0800)]
DO NOT MERGE - Instead of asserting that ISurface successfully registered buffers, report an error and propagate it up to the java client.

Change-Id: Ibb14e5aff20920da4917d85de38ba3a8ee71d0bd
related-to-bug: 3188835

13 years agoMerge "Visualizer: Fix the conversion from 8-bit sample to 16-bit sample." into ginge...
Chia-chi Yeh [Tue, 30 Nov 2010 06:56:56 +0000 (22:56 -0800)]
Merge "Visualizer: Fix the conversion from 8-bit sample to 16-bit sample." into gingerbread

13 years agoImprove camera documentation.
Wu-cheng Li [Fri, 19 Nov 2010 07:56:16 +0000 (15:56 +0800)]
Improve camera documentation.

bug:3212606
Change-Id: Iee7106e4665c08a4c75471114010b75d63ac74ce

13 years agoSupport extracting thumbnail from rotated video tracks
James Dong [Tue, 9 Nov 2010 00:04:27 +0000 (16:04 -0800)]
Support extracting thumbnail from rotated video tracks

Change-Id: Ife0a2536aaac5ff1efdf1035b9d2c892773ee16c

13 years agoSupport post-decode video rotation.
Andreas Huber [Thu, 4 Nov 2010 18:50:27 +0000 (11:50 -0700)]
Support post-decode video rotation.

Change-Id: Ia371316e73a57e44610de86adce3eaa560afbf84

13 years agoRotation support
James Dong [Tue, 17 Aug 2010 01:39:28 +0000 (18:39 -0700)]
Rotation support

- We only support 0, 90, 180, and 270 degree clockwise rotation

- Some players are known to ignore composition matrix in the MP4 file,
  although this is part of the MP4 file standard.
  Both QT and YT are supporting the rotation

Change-Id: I1b7f66a801e9d9c49d889c9b06dd6173fa7e76c4

13 years agoRevert "Support rotation in media recorder"
James Dong [Thu, 4 Nov 2010 02:22:47 +0000 (19:22 -0700)]
Revert "Support rotation in media recorder"

This reverts commit f1febe470ac30f8992066cb263c10f58493c4c34.

13 years agoSupport rotation in media recorder
James Dong [Thu, 4 Nov 2010 00:27:58 +0000 (17:27 -0700)]
Support rotation in media recorder

o needs to be tested with camera hal and camcorder application

Change-Id: Ie343185c8ad3ec55da8850efbdcf19cf98993232

13 years agoDO NOT MERGE
James Dong [Wed, 3 Nov 2010 01:43:03 +0000 (18:43 -0700)]
DO NOT MERGE

Fix premature release of recording frames when physical address or metadata is stored in input video buffers

- bug 3158459

Change-Id: If297189d2a87fc3abfda68c29ac75b490b30a902

13 years agoVisualizer: Fix the conversion from 8-bit sample to 16-bit sample.
Chia-chi Yeh [Mon, 1 Nov 2010 02:56:45 +0000 (10:56 +0800)]
Visualizer: Fix the conversion from 8-bit sample to 16-bit sample.

Change-Id: Ie6d77b0f61a37333e05cdcdb6ef29d6f6c345a9d

13 years agoFix off-by-two and other bugs in the visualization code.
Marco Nelissen [Wed, 27 Oct 2010 16:06:01 +0000 (09:06 -0700)]
Fix off-by-two and other bugs in the visualization code.
b/3137511

Change-Id: Ic431701e93c025bc417c9742e9af6bb2350c7dd6

13 years agoAssume that all of the decoded vorbis audio data is valid unless the source indicates...
Andreas Huber [Tue, 26 Oct 2010 22:01:03 +0000 (15:01 -0700)]
Assume that all of the decoded vorbis audio data is valid unless the source indicates otherwise.

Change-Id: Iea88e3f09955d82a9a11fbcc075db8d9c4007490

13 years agoRemove the FLIP_H/ROT_90 workaround from CameraService.do not merge
Wu-cheng Li [Thu, 21 Oct 2010 04:50:37 +0000 (12:50 +0800)]
Remove the FLIP_H/ROT_90 workaround from CameraService.do not merge

Now overlay does flip before rotation.
bug:3114236
Change-Id: I1780e56154566435a0ceeb2f101de7ed0a0613cb

13 years agoMerge "Turn the media time adjustment in file writer back on" into gingerbread
James Dong [Fri, 22 Oct 2010 03:06:59 +0000 (20:06 -0700)]
Merge "Turn the media time adjustment in file writer back on" into gingerbread

13 years agoTurn the media time adjustment in file writer back on
James Dong [Fri, 22 Oct 2010 00:58:14 +0000 (17:58 -0700)]
Turn the media time adjustment in file writer back on

o This was turned off to unblock the tests on some device
o The adjustment duration is increased to suppress fluctuations observed on some device

bug - 3058745

Change-Id: Iaeeb1c1c52783f5c679305645c995e57b4b2a573

13 years agoMerge "Mirror the preview for front-facing cameras. do not merge" into gingerbread
Mathias Agopian [Thu, 21 Oct 2010 23:20:07 +0000 (16:20 -0700)]
Merge "Mirror the preview for front-facing cameras. do not merge" into gingerbread

13 years agoMirror the preview for front-facing cameras. do not merge
Wu-cheng Li [Tue, 19 Oct 2010 09:19:09 +0000 (17:19 +0800)]
Mirror the preview for front-facing cameras. do not merge

Now overlay does ROT_90 before FLIP_V or FLIP_H. It should be FLIP_V
or FLIP_H first. The formula should be changed after overlay is fixed.

bug:3059865
Change-Id: Ie4366bf7f1fcac7383e8dfc74b1b865997bbbcc6

13 years agoFile writer size estimation improvement
James Dong [Wed, 20 Oct 2010 04:28:47 +0000 (21:28 -0700)]
File writer size estimation improvement

o Do not count the reserved space for moov if the meta data size is small
o Do not count the extra 1KB disturbing small file estimation.
o Reduce the default minimum reserved space from 4 KB to 3 KB.
o Estimate the moov size based on both duration AND file size limit is set
  and set it to the smaller estimated value.

low risk change

bug - 3111983

Change-Id: I6ac2adb979d8cc12d6b4f1813d000c989add0199

13 years agoIf we encounter video stream EOS while seeking we may still need to seek audio.
Andreas Huber [Tue, 19 Oct 2010 16:34:44 +0000 (09:34 -0700)]
If we encounter video stream EOS while seeking we may still need to seek audio.

Change-Id: Ie260942247b6810ca94e86328a3725d75b12181d
related-to-bug: 3108724

13 years agoAn attempt to unregister a handler that's no longer registered should not cause an...
Andreas Huber [Mon, 18 Oct 2010 22:06:04 +0000 (15:06 -0700)]
An attempt to unregister a handler that's no longer registered should not cause an assertion.

There are edge cases in which a handler attempts to unregister itself while on another thread a message fails to be delivered to that very handler and causes automatic unregistration. In this case the handler's good cleanup intentions are thwarted by the CHECK.

Change-Id: I4e41b5e7b619159ecce4856c15cccca031a28b5b
related-to-bug: 3101247
QA-impact: no(!!!) risk

13 years agoMerge "For thumbnail extraction make sure we instantiate a decoder that allows access...
Andreas Huber [Mon, 18 Oct 2010 18:46:44 +0000 (11:46 -0700)]
Merge "For thumbnail extraction make sure we instantiate a decoder that allows access to the framebuffer. Implement the samsung workaround to support this by reconfiguring the decoder." into gingerbread

13 years agoIf the PES packet size exceeds 16-bit range, use a packet size of 0 instead. This...
Andreas Huber [Fri, 15 Oct 2010 18:30:21 +0000 (11:30 -0700)]
If the PES packet size exceeds 16-bit range, use a packet size of 0 instead. This is valid for video content according to the specs.

Change-Id: I686320d9d4cd826f43c0813c6ba1dc4949d1115f

13 years agoFor thumbnail extraction make sure we instantiate a decoder that allows access to...
Andreas Huber [Mon, 18 Oct 2010 16:57:42 +0000 (09:57 -0700)]
For thumbnail extraction make sure we instantiate a decoder that allows access to the framebuffer. Implement the samsung workaround to support this by reconfiguring the decoder.

related-to-bug: 3106534
Change-Id: Ie28d72af2f9e93818d1840ac83aa7bc11fa57b3b

13 years agoInclude the framework copy of the OpenMAX headers instead of referencing external...
Andreas Huber [Fri, 15 Oct 2010 20:31:29 +0000 (13:31 -0700)]
Include the framework copy of the OpenMAX headers instead of referencing external/opencore.

Change-Id: I762f59acf5e1f770e4d7c2d89af362bfffebefa6
related-to-bug: 3101573

13 years agoCheck-in of a copy of the Khronos OpenMAX headers formerly included from external...
Andreas Huber [Fri, 15 Oct 2010 20:30:27 +0000 (13:30 -0700)]
Check-in of a copy of the Khronos OpenMAX headers formerly included from external/opencore.

Change-Id: Ie2ecf9558d4ee80cb5a2bbe66ad49f2165a7b09c
related-to-bug: 3101573

13 years agoMake sure we cache the sampleTable again if using the caching datasource.
Andreas Huber [Fri, 15 Oct 2010 15:38:49 +0000 (08:38 -0700)]
Make sure we cache the sampleTable again if using the caching datasource.

QA-impact: This fixes http streaming again which I broke about 2 days ago. The previously observed symptoms were stuttering playback of http streams (think YouTube) after a certain playback position.

Change-Id: I14050e3522ecd62c90d29310efdf508fdd2e87b5
related-to-bug: 3098873

13 years agoMetadata.cpp and Metadata.java had drifted out of sync. This change remedies that.
Andreas Huber [Wed, 13 Oct 2010 22:12:08 +0000 (15:12 -0700)]
Metadata.cpp and Metadata.java had drifted out of sync. This change remedies that.

Change-Id: I48175666857ab0fb1519777bdb6f7f0b6b5cc599
related-to-bug: 3073955

13 years agoMerge "Attempt to derive the avg. bitrate of the entire stream from metadata." into...
Andreas Huber [Wed, 13 Oct 2010 21:25:32 +0000 (14:25 -0700)]
Merge "Attempt to derive the avg. bitrate of the entire stream from metadata." into gingerbread

13 years agoSome webcams output rtp streams but never send any rtcp data in violation of
Andreas Huber [Wed, 13 Oct 2010 19:15:03 +0000 (12:15 -0700)]
Some webcams output rtp streams but never send any rtcp data in violation of
the specs. Attempt to use fake timestamps to be able to play these...

Change-Id: Ia7a926616fb764e972955df4acdb59d85cdd93df
related-to-bug: 3087310

13 years agoAttempt to derive the avg. bitrate of the entire stream from metadata.
Andreas Huber [Tue, 12 Oct 2010 23:55:11 +0000 (16:55 -0700)]
Attempt to derive the avg. bitrate of the entire stream from metadata.

related-to-bug: 3093224
Change-Id: I4726b023373e04468cc12fd64f7fe6ee923add95

13 years agoMerge "Support for writing to MPEG2 transport stream files." into gingerbread
Andreas Huber [Wed, 13 Oct 2010 16:14:40 +0000 (09:14 -0700)]
Merge "Support for writing to MPEG2 transport stream files." into gingerbread

13 years agoSupport for writing to MPEG2 transport stream files.
Andreas Huber [Tue, 12 Oct 2010 21:17:45 +0000 (14:17 -0700)]
Support for writing to MPEG2 transport stream files.

Change-Id: If3b7a807bc224a4b1cb2236537c3ebdc5aee0d97

13 years agoHTTP Live content that are tagged as complete are now seekable.
Andreas Huber [Tue, 12 Oct 2010 18:34:37 +0000 (11:34 -0700)]
HTTP Live content that are tagged as complete are now seekable.

Change-Id: I9d0d2f009f883e5baf3e9de8c5c0aa05760e4bde
related-to-bug: 2368598

13 years agoJust in case we're behind a NAT router/firewall, attempt to poke holes into it for...
Andreas Huber [Mon, 11 Oct 2010 18:05:52 +0000 (11:05 -0700)]
Just in case we're behind a NAT router/firewall, attempt to poke holes into it for future incoming RTP/RTCP packets to pass through.

Change-Id: Idd47968d4027f357222f19f15eecfd70fdec3282
related-to-bug: 3073813

13 years agoRTSP seeking is now asynchronous, MediaPlayer is not notified that the seek is comple...
Andreas Huber [Fri, 8 Oct 2010 22:21:08 +0000 (15:21 -0700)]
RTSP seeking is now asynchronous, MediaPlayer is not notified that the seek is complete until it actually is. Ignore seek requests on live streams.

Change-Id: Ie61230cd60dd6c682baf72529100369ad6291189
related-to-bug: 3073955

13 years agoRefactor some more h.264 utility code out into avc_utils. Work around a hardware...
Andreas Huber [Fri, 8 Oct 2010 19:06:27 +0000 (12:06 -0700)]
Refactor some more h.264 utility code out into avc_utils. Work around a hardware decoder issue by making sure the first access unit submitted to a decoder at startup or after seek is an IDR.

Change-Id: I61936601e55df7e4c23a8c13087579a4f85bd6e6

13 years agoMerge "Disable 10secs forward/backward seeking for rtsp as seek is a very expensive...
Andreas Huber [Fri, 8 Oct 2010 18:16:07 +0000 (11:16 -0700)]
Merge "Disable 10secs forward/backward seeking for rtsp as seek is a very expensive operation there. Decouple the 10sec forward/backward button functionality from seekbar functionality." into gingerbread

13 years agoMerge "Respect the cropping rectangle when extracting the video dimensions from the...
Andreas Huber [Fri, 8 Oct 2010 17:59:52 +0000 (10:59 -0700)]
Merge "Respect the cropping rectangle when extracting the video dimensions from the sequence parameter set of H.264 streams." into gingerbread

13 years agoRespect the cropping rectangle when extracting the video dimensions from the sequence...
Andreas Huber [Fri, 8 Oct 2010 17:38:39 +0000 (10:38 -0700)]
Respect the cropping rectangle when extracting the video dimensions from the sequence parameter set of H.264 streams.

Change-Id: Id7f21d5ab8533b4e17ceaa8619a39c27f0306150

13 years agoDisable 10secs forward/backward seeking for rtsp as seek is a very expensive operatio...
Andreas Huber [Fri, 8 Oct 2010 17:16:24 +0000 (10:16 -0700)]
Disable 10secs forward/backward seeking for rtsp as seek is a very expensive operation there. Decouple the 10sec forward/backward button functionality from seekbar functionality.

Change-Id: I016e79b688774f8ee91ac53216197b5fb9cb41b2
related-to-bug: 3073955

13 years agoMerge "Name the writer threads" into gingerbread
James Dong [Fri, 8 Oct 2010 17:06:22 +0000 (10:06 -0700)]
Merge "Name the writer threads" into gingerbread

13 years agoMerge "Disable the access unit timeout temporarily while a seek operation is in progr...
Andreas Huber [Fri, 8 Oct 2010 17:01:37 +0000 (10:01 -0700)]
Merge "Disable the access unit timeout temporarily while a seek operation is in progress." into gingerbread

13 years agoDisable the access unit timeout temporarily while a seek operation is in progress.
Andreas Huber [Fri, 8 Oct 2010 16:04:25 +0000 (09:04 -0700)]
Disable the access unit timeout temporarily while a seek operation is in progress.

Change-Id: I116cb76342aae4168f34ebae49ecb2301702a0ea
related-to-bug: 3073955

13 years agoMerge "Added getter for session Id to AudioSink" into gingerbread
Eric Laurent [Fri, 8 Oct 2010 15:28:08 +0000 (08:28 -0700)]
Merge "Added getter for session Id to AudioSink" into gingerbread

13 years agoName the writer threads
James Dong [Fri, 8 Oct 2010 03:20:59 +0000 (20:20 -0700)]
Name the writer threads

Change-Id: I51461c3800ac5850e21ff398e80eb20b562264b3

13 years agoAdded getter for session Id to AudioSink
Eric Laurent [Fri, 8 Oct 2010 01:23:03 +0000 (18:23 -0700)]
Added getter for session Id to AudioSink

Added a method to expose the audio session id at AudioSink interface
so that the AudioPlayer in stagefright can retrieve it.

Also:
- Fixed audio effect send level not being initialized in mediaplayer.
- Fixed compilation error when LOGV is enabled in mediaplayer JNI

Change-Id: I4bb55454fd63d646e0e677692d737c4843fb05fb

13 years agoIncrease scratch buffers sizes in mp3 software decoder, this integrates a PV master...
Andreas Huber [Thu, 7 Oct 2010 23:48:50 +0000 (16:48 -0700)]
Increase scratch buffers sizes in mp3 software decoder, this integrates a PV master/opensource patch.

Change-Id: I5a637f1b380e44c94040ec507843d58a1f5a9b61
related-to-bug: 3065605

13 years agoWork to support switching transport streams mid-stream and signalling discontinuities...
Andreas Huber [Wed, 8 Sep 2010 21:32:20 +0000 (14:32 -0700)]
Work to support switching transport streams mid-stream and signalling discontinuities to the decoder.

Change-Id: I7150e5e7342e1117c524856b204aadcb763e06ed
related-to-bug: 2368598

13 years agoOn this particular device the hardware video decoder spits out buffers that don't...
Andreas Huber [Wed, 6 Oct 2010 23:43:57 +0000 (16:43 -0700)]
On this particular device the hardware video decoder spits out buffers that don't actually contain our video data, so we cannot use them to restore the video frame after suspend/resume.

Change-Id: I1b8fe68c1766299844fe84ebbff49cb8b3e4cc7c
related-to-bug: 3070094

13 years agoMerge "Fixed AudioFlinger not always pausing tracks" into gingerbread
Eric Laurent [Wed, 6 Oct 2010 00:06:16 +0000 (17:06 -0700)]
Merge "Fixed AudioFlinger not always pausing tracks" into gingerbread

13 years agoFixed AudioFlinger not always pausing tracks
Eric Laurent [Tue, 5 Oct 2010 21:41:42 +0000 (14:41 -0700)]
Fixed AudioFlinger not always pausing tracks

If the pause request is received before the AudioTrack buffer was
completelly filled and the track ready for mixing, the pause is
not executed: the track just underruns and stays in pausing state.

The fix consists in considering the track ready for mixing immediately
if pausing.

Change-Id: Ia6cb4703fee2126e41011a6400ea8eeb3a3e5456

13 years agoMake sure to call AudioTrack::stop() instead of AudioTrack::pause() after submitting...
Andreas Huber [Tue, 5 Oct 2010 17:25:34 +0000 (10:25 -0700)]
Make sure to call AudioTrack::stop() instead of AudioTrack::pause() after submitting all samples to AudioTrack to make sure those remaining samples are actually played out.

Change-Id: Id574a0203efcb5e565f1b0fe77869fc33b9a9d56

13 years agofix [2835280] Add support for cancelling buffers to ANativeWindow
Mathias Agopian [Fri, 1 Oct 2010 23:22:41 +0000 (16:22 -0700)]
fix [2835280] Add support for cancelling buffers to ANativeWindow

There is a new ANativeWindow::cancelBuffer() API that can be used to
cancel any dequeued buffer, BEFORE it's been enqueued. The buffer is
returned to the list of availlable buffers. dequeue and cancel are not
mutually thread safe, they must be called from the same thread or
external synchronization must be used.

Change-Id: I86cc7985bace8b6a93ad2c75d2bef5c3c2cb4d61

13 years agoFixed an issue where the reserved free space in the file writer was larger than intended
James Dong [Mon, 4 Oct 2010 23:41:53 +0000 (16:41 -0700)]
Fixed an issue where the reserved free space in the file writer was larger than intended

The problem was that even though user does not explicitly request the max file size
limit via MediaRecorder.setMaxFileSize(), the file writer sets an implicit file
size limit if 32-bit file offset is used on user's behalf. The reserved free space
is estimated based on the file size, if the file size limit is set by the user.

The fix is to add an extra bool to tell the difference between an
explit requested file size and an implicit file limit and use that
to set the estimated moov box size accordingly.

Change-Id: I731aca6c7833aa764ed7b905edb77721577471b3

13 years agoMerge "Resilent media time stamp adjustment" into gingerbread
James Dong [Mon, 4 Oct 2010 22:35:40 +0000 (15:35 -0700)]
Merge "Resilent media time stamp adjustment" into gingerbread

13 years agoResilent media time stamp adjustment
James Dong [Sun, 3 Oct 2010 17:59:26 +0000 (10:59 -0700)]
Resilent media time stamp adjustment

Change-Id: I13ab87c05f26bb11a3cc9bf8559f98e6ea0752db

13 years agoMake sure to finish the preparation phase even EOS occurs before we consider the...
Andreas Huber [Mon, 4 Oct 2010 18:36:39 +0000 (11:36 -0700)]
Make sure to finish the preparation phase even EOS occurs before we consider the cache to be completely filled up.

Change-Id: I29143e357fb6ea7b860636100e010f2ea7436798
related-to-bug: 3037389

13 years agoDon't retrieve metadata unless necessary for ogg-vorbis ringtone auto-looping.
Andreas Huber [Mon, 4 Oct 2010 18:09:31 +0000 (11:09 -0700)]
Don't retrieve metadata unless necessary for ogg-vorbis ringtone auto-looping.

Change-Id: Iaf5880bb3376f9cbf22aefe198878eaf6f3f08c7
related-to-bug: 3037389

13 years agoMerge "Turn off media time adjustment by default" into gingerbread
James Dong [Sat, 2 Oct 2010 00:27:51 +0000 (17:27 -0700)]
Merge "Turn off media time adjustment by default" into gingerbread

13 years agoTurn off media time adjustment by default
James Dong [Sat, 2 Oct 2010 00:14:23 +0000 (17:14 -0700)]
Turn off media time adjustment by default

Change-Id: I1f8021d605d0fd896e0639607a84e3f7c459612e

13 years agoMerge "Start playing live streams from the start, no the middle..." into gingerbread
Andreas Huber [Fri, 1 Oct 2010 18:35:17 +0000 (11:35 -0700)]
Merge "Start playing live streams from the start, no the middle..." into gingerbread

13 years agoStart playing live streams from the start, no the middle...
Andreas Huber [Fri, 1 Oct 2010 18:28:44 +0000 (11:28 -0700)]
Start playing live streams from the start, no the middle...

Change-Id: Ie01ba1250b51155cb1fb32fc3340189a16c01476
related-to-bug: 2368598

13 years agoRemove development-only code.
Andreas Huber [Fri, 1 Oct 2010 18:19:26 +0000 (11:19 -0700)]
Remove development-only code.

Change-Id: Ic2ca0efb631eb779ca157fb01b02aa19a1222c06
related-to-bug: 2368598

13 years agoSquashed commit of the following:
Andreas Huber [Fri, 1 Oct 2010 17:51:41 +0000 (10:51 -0700)]
Squashed commit of the following:

commit 46744c7697f29aec71aed8de3c95ce035c284d97
Author: Andreas Huber <andih@google.com>
Date:   Thu Sep 30 16:44:57 2010 -0700

    better separation of access units

    Change-Id: I5a9e2138aed341f0bcf22cfe368a15ca5ea5a73c

commit d34952ac0feb1ae722ff65824d7353335502219b
Author: Andreas Huber <andih@google.com>
Date:   Thu Sep 30 15:35:01 2010 -0700

    Support for ES packets that do not start on PES packet boundaries.

    Change-Id: I2cf012833948eddfb20b16a1901206cf22ce71e4
    related-to-bug: 2368598

Change-Id: Ib9329bd6bb7149b5a6e2483788a96b1b158952fc

13 years agoIssue 3032913: improve AudioTrack recovery time
Eric Laurent [Thu, 30 Sep 2010 23:12:31 +0000 (16:12 -0700)]
Issue 3032913: improve AudioTrack recovery time

This issue showed that when an AudioTrack underruns during a too long period
of time and is therefore disabled by audioflinger mixer, it takes an additional
delay of up to 3 seconds to recover.
This fix adds a simple mechanism to recover immediately when the client application
is ready to write data again in the AudioTrack buffer

Also throttle warnings on record overflows

Change-Id: I8b2c71578dd134b9e60a15ee4d91b70f3799cb3d

13 years agoMerge "AMRNB: use Frame_Type_3GPP defined in frame_type_3gpp.h instead." into gingerbread
Chia-chi Yeh [Wed, 29 Sep 2010 04:11:27 +0000 (21:11 -0700)]
Merge "AMRNB: use Frame_Type_3GPP defined in frame_type_3gpp.h instead." into gingerbread

13 years agoAMRNB: use Frame_Type_3GPP defined in frame_type_3gpp.h instead.
Chia-chi Yeh [Wed, 29 Sep 2010 03:41:14 +0000 (11:41 +0800)]
AMRNB: use Frame_Type_3GPP defined in frame_type_3gpp.h instead.

This allows gsmamr_enc.h and gsmamr_dec.h to be included in the same
file without conflict definition.

Change-Id: I1c8dac235c122735ba14a1af2fda48c0f8d9f87b

13 years agoFix several audio effects problems.
Eric Laurent [Tue, 28 Sep 2010 21:09:57 +0000 (14:09 -0700)]
Fix several audio effects problems.

Fixed the following issues in LVM effect bundle wrapper:
- memory leaks in EffectCreate() in case effect creation fails at various stages
- Added saturation when accumulating to output buffer
- Fixed problems with enabled effects count when an effect is released while enabled
- Do not allocate temporary buffer for accumulation each time process() is called

Fixed the following issues in effects framework (AudioFlinger)
- Release effect synchronously in the library when deleted from effect chain
- Do not call the effect process function if no tracks are present in the same
audio session

Change-Id: Ifbd80a163415cfb3c0a337c12082853ea45d9c91

13 years agoMerge "Properly flush the AudioTrack/AudioSink on a seek request and make sure that...
Andreas Huber [Tue, 28 Sep 2010 20:23:26 +0000 (13:23 -0700)]
Merge "Properly flush the AudioTrack/AudioSink on a seek request and make sure that both the mp3 decoder and aac software decoders start fresh after a seek without any dependency on previously decoded content." into gingerbread

13 years agoProperly flush the AudioTrack/AudioSink on a seek request and make sure that both...
Andreas Huber [Tue, 28 Sep 2010 20:13:38 +0000 (13:13 -0700)]
Properly flush the AudioTrack/AudioSink on a seek request and make sure that both the mp3 decoder and aac software decoders start fresh after a seek without any dependency on previously decoded content.

Change-Id: I4909fdf19518dbabb6c340e2a31b50dfe6c5b067
related-to-bug: 3029947

13 years agoMerge "Instead of constantly polling the AudioPlayer to see if it reached EOS or...
Andreas Huber [Tue, 28 Sep 2010 19:02:35 +0000 (12:02 -0700)]
Merge "Instead of constantly polling the AudioPlayer to see if it reached EOS or finished seeking, initiate the notification from the AudioPlayer when the event happens." into gingerbread

13 years agoInstead of constantly polling the AudioPlayer to see if it reached EOS or finished...
Andreas Huber [Tue, 28 Sep 2010 18:56:39 +0000 (11:56 -0700)]
Instead of constantly polling the AudioPlayer to see if it reached EOS or finished seeking, initiate the notification from the AudioPlayer when the event happens.

Change-Id: I43875b6adaf96d4e982ef3dfc3d6c8f7034ac51d
related-to-bug: 3036592

13 years agoMerge "Vorbis files may have more samples encoded that should be used, i.e. we have...
Andreas Huber [Tue, 28 Sep 2010 18:46:41 +0000 (11:46 -0700)]
Merge "Vorbis files may have more samples encoded that should be used, i.e. we have to trim samples at the end of the stream. This is crucial for proper looping of some audio files." into gingerbread

13 years agoMerge "Squashed commit of the following:" into gingerbread
Andreas Huber [Tue, 28 Sep 2010 18:27:33 +0000 (11:27 -0700)]
Merge "Squashed commit of the following:" into gingerbread

13 years agoVorbis files may have more samples encoded that should be used, i.e. we have to trim...
Andreas Huber [Tue, 28 Sep 2010 16:16:21 +0000 (09:16 -0700)]
Vorbis files may have more samples encoded that should be used, i.e. we have to trim samples at the end of the stream. This is crucial for proper looping of some audio files.

related-to-bug: 3036592
Change-Id: Ib142b171c829ed74156c0281d9d4543fcc96c802

13 years agoFix media.player dumpsys to output open/mapped files correctly. Bug 2866669.
Dave Sparks [Mon, 27 Sep 2010 23:55:18 +0000 (16:55 -0700)]
Fix media.player dumpsys to output open/mapped files correctly. Bug 2866669.
The dump function whitelists several directories as filters to the output.
The mount point changed for SD card in Froyo, and we started filtering files
that were open on the SD card. This fix changes the filter for the SD card,
and adds the directory for data files as well.

Change-Id: I61b67c3d11d93dbd530e8b3566000e79bc037137

13 years agoSquashed commit of the following:
Andreas Huber [Mon, 27 Sep 2010 19:04:43 +0000 (12:04 -0700)]
Squashed commit of the following:

commit 29a4d3effb05a2e074cb0693316ab1977baeb0b6
Author: Andreas Huber <andih@google.com>
Date:   Mon Sep 27 12:01:32 2010 -0700

    Fully working implementation of MPEG2TSWriter (for AAC and AVC sources).

    Change-Id: I8a32a47565b647bf6c078c520e39565e08ea0d84

commit f4dec4c3899f3be393508e180d6c07e249d3335e
Author: Andreas Huber <andih@google.com>
Date:   Mon Sep 27 10:36:31 2010 -0700

    More reliable identification of MPEG2 transport streams. Don't keep scanning forever in case the stream does not have both audio and video tracks.

    Change-Id: Icc5b4e8be145b2805e8776559546a6818342aea7

commit 4fe3cc942f9b3d3cf54138b828c41214aa916dd2
Author: Andreas Huber <andih@google.com>
Date:   Mon Sep 27 08:23:39 2010 -0700

    test code

    Change-Id: I16560a17661407d06497f99ff88230724bb898af

commit 64d988b24f49f179a90fa677be11c823959e734b
Author: Andreas Huber <andih@google.com>
Date:   Thu Sep 23 14:42:52 2010 -0700

    First shot at supporting writing to an MPEG2 transport stream.

    Change-Id: Ie537939a99fa3ddc0c7661c47c18277584817c74

Change-Id: If78fd034af8f6e8ceac8dbeff96d5ecb3f6b96dc

13 years agoThe old overlay should be destroyed if orientation changes.
Wu-cheng Li [Fri, 24 Sep 2010 00:17:43 +0000 (17:17 -0700)]
The old overlay should be destroyed if orientation changes.

Previously the orientation was wrong after suspend and resume.
When the camera app is resumed behide the lock screen, it
orinteation is portrait. When users slide to unlock the screen,
surfaceChanged is called and the orientation is landscape.
The camera app stops the preview, sets the display orientation,
and starts the preview. Overlay should be destroyed if the
orientation has changed.

bug:3031640
Change-Id: I38b527f9ea78c91b538463292152c023383b4695

13 years agoMerge "Fix track duration calculation if the start timestamp is non-zero" into ginger...
James Dong [Mon, 27 Sep 2010 17:08:52 +0000 (10:08 -0700)]
Merge "Fix track duration calculation if the start timestamp is non-zero" into gingerbread

13 years agoFix track duration calculation if the start timestamp is non-zero
James Dong [Fri, 24 Sep 2010 17:01:29 +0000 (10:01 -0700)]
Fix track duration calculation if the start timestamp is non-zero

o Updated the comments in the patch
o Added some additional checks on the timestamp

Change-Id: I8ad81eb6bfe358c1db5245cbb52efc905cdc234c

13 years agoMerge "Support other kinds of HTTP redirect in NuHTTPDataSource" into gingerbread
Andreas Huber [Mon, 27 Sep 2010 16:20:58 +0000 (09:20 -0700)]
Merge "Support other kinds of HTTP redirect in NuHTTPDataSource" into gingerbread

13 years agoSupport other kinds of HTTP redirect in NuHTTPDataSource
Andreas Huber [Mon, 27 Sep 2010 15:17:40 +0000 (08:17 -0700)]
Support other kinds of HTTP redirect in NuHTTPDataSource

Change-Id: I3268a94cfb48cee9caa8914804d7907ff91d8a8e
related-to-bug: 3037686

13 years agoFix error in AudioEffect command status reporting.
Eric Laurent [Fri, 24 Sep 2010 18:52:04 +0000 (11:52 -0700)]
Fix error in AudioEffect command status reporting.

AudioEffect::command() should not interpret the status
returned in pReplyData unless the command is ENABLE or
DISABLE.

Also fixed:
- bug in Visualizer::getWAveForm() status reporting.
- wrong initialization value for capture buffer in visualizer engine.

Change-Id: I60fb0011f9dba96ee74661dec1e8ef441edcaf35

13 years agoMerge "Instead of just writing one track to the .mp4 file, write all of them (at...
Andreas Huber [Fri, 24 Sep 2010 17:44:01 +0000 (10:44 -0700)]
Merge "Instead of just writing one track to the .mp4 file, write all of them (at most 1 video and 1 audio track). Also support httplive URIs in the stagefright commandline tool." into gingerbread

13 years agoInstead of just writing one track to the .mp4 file, write all of them (at most 1...
Andreas Huber [Fri, 24 Sep 2010 16:35:49 +0000 (09:35 -0700)]
Instead of just writing one track to the .mp4 file, write all of them (at most 1 video and 1 audio track). Also support httplive URIs in the stagefright commandline tool.

Change-Id: I67b287cf76546191f398939aabe4480d9e79a948

13 years agoMerge "Fix issue 3007862" into gingerbread
Eric Laurent [Fri, 24 Sep 2010 16:43:24 +0000 (09:43 -0700)]
Merge "Fix issue 3007862" into gingerbread

13 years agoFix issue 3007862
Eric Laurent [Thu, 23 Sep 2010 23:10:16 +0000 (16:10 -0700)]
Fix issue 3007862

Removed a cross deadlock condition between audioflinger and audio policy
service mutexes.
Audioflinger::createEffect() locks audioflinger mutex and then calls
AudioSystem::getOutputForEffect() which ends up in
AudioPolicyService::getOutputForEffect() which locks audio policy service
mutex. If at the same time, the command thread in audio policy service is
processing a command(set volume, set route...), the mutex is locked and the
command will call one audioflinger method which in turn will attempt to
lock audioflinger mutex.
The fix consists in releasing audioflinger mutex before calling
getOutputForEffect().

Change-Id: Id44e7feb36e0a295731f6aa97cf32d022edd34d0

13 years agoProper sync-frame detection for sources that don't already provide it.
Andreas Huber [Thu, 23 Sep 2010 22:01:30 +0000 (15:01 -0700)]
Proper sync-frame detection for sources that don't already provide it.

Change-Id: Iafeee847b015c5cf6bec6dd5fac22a8d3e8cb78e

13 years agoMerge "Depending on our preference to write 2-byte or 4-byte NALs, patch the codec...
Andreas Huber [Thu, 23 Sep 2010 21:16:48 +0000 (14:16 -0700)]
Merge "Depending on our preference to write 2-byte or 4-byte NALs, patch the codec specific data 'avcC' accordingly." into gingerbread

13 years agoDepending on our preference to write 2-byte or 4-byte NALs, patch the codec specific...
Andreas Huber [Thu, 23 Sep 2010 21:08:32 +0000 (14:08 -0700)]
Depending on our preference to write 2-byte or 4-byte NALs, patch the codec specific data 'avcC' accordingly.

Change-Id: I1423923fafbcac6911218277e2bbfa068e49dcc6

13 years agoIgnore errors from correction parameter query and config for M4v and H263 encoders
James Dong [Thu, 23 Sep 2010 00:37:42 +0000 (17:37 -0700)]
Ignore errors from correction parameter query and config for M4v and H263 encoders

This feature is not essential for camcorder application

Change-Id: Id560632207dcf24fe361280ebe8178ea7332f22d

13 years agoUse the advertised profile and level from M4V and H263 video encoders
James Dong [Thu, 23 Sep 2010 00:42:09 +0000 (17:42 -0700)]
Use the advertised profile and level from M4V and H263 video encoders

This is already the case for AVC video encoder

Change-Id: I9cc97a03ab457b4bd0b21832c09f6d0aa7f5fc39

13 years agoRequest permission for global audio effects.
Eric Laurent [Wed, 22 Sep 2010 21:17:38 +0000 (14:17 -0700)]
Request permission for global audio effects.

Applications creating an audio effect on the output mix must
have the MODIFY_AUDIO_SETTINGS permission.

Change-Id: I57d88533f91ad0d33680107d79abcec28f7263b5

13 years agoRaise the amount of memory set aside for omx buffer allocations in the test harness...
Andreas Huber [Wed, 22 Sep 2010 17:12:14 +0000 (10:12 -0700)]
Raise the amount of memory set aside for omx buffer allocations in the test harness to accomodate the new requirements of some codecs.

Change-Id: I73974a336852974e2fb95a9626c1a96f296449eb

13 years agoMake sure we drain the avc software decoder's output queue once we run out of input...
Andreas Huber [Wed, 22 Sep 2010 18:47:00 +0000 (11:47 -0700)]
Make sure we drain the avc software decoder's output queue once we run out of input data.

Change-Id: I3d92ebae4951b618a6dfcf42936cc4c63d4de539

13 years agoMerge "Fix issue 2913071." into gingerbread
Eric Laurent [Tue, 21 Sep 2010 22:55:17 +0000 (15:55 -0700)]
Merge "Fix issue 2913071." into gingerbread

13 years agoMerge "This log message is codec specific." into gingerbread
Andreas Huber [Tue, 21 Sep 2010 22:17:04 +0000 (15:17 -0700)]
Merge "This log message is codec specific." into gingerbread

13 years agoMerge "Remove stagefright foundation's incompatible logging interface and update...
Andreas Huber [Tue, 21 Sep 2010 22:14:43 +0000 (15:14 -0700)]
Merge "Remove stagefright foundation's incompatible logging interface and update callsites." into gingerbread

13 years agoRemove stagefright foundation's incompatible logging interface and update callsites.
Andreas Huber [Tue, 21 Sep 2010 20:13:15 +0000 (13:13 -0700)]
Remove stagefright foundation's incompatible logging interface and update callsites.

Change-Id: I45fba7d60530ea0f233ac3695a97306b6dc1795c