OSDN Git Service
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Andreas Huber [Wed, 13 Oct 2010 16:14:40 +0000 (09:14 -0700)]
Merge "Support for writing to MPEG2 transport stream files." into gingerbread
Andreas Huber [Tue, 12 Oct 2010 21:17:45 +0000 (14:17 -0700)]
Support for writing to MPEG2 transport stream files.
Change-Id: If3b7a807bc224a4b1cb2236537c3ebdc5aee0d97
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
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
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
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
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
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
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
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
James Dong [Fri, 8 Oct 2010 17:06:22 +0000 (10:06 -0700)]
Merge "Name the writer threads" into gingerbread
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
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
Eric Laurent [Fri, 8 Oct 2010 15:28:08 +0000 (08:28 -0700)]
Merge "Added getter for session Id to AudioSink" into gingerbread
James Dong [Fri, 8 Oct 2010 03:20:59 +0000 (20:20 -0700)]
Name the writer threads
Change-Id: I51461c3800ac5850e21ff398e80eb20b562264b3
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
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
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
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
Eric Laurent [Wed, 6 Oct 2010 00:06:16 +0000 (17:06 -0700)]
Merge "Fixed AudioFlinger not always pausing tracks" into gingerbread
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
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
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
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
James Dong [Mon, 4 Oct 2010 22:35:40 +0000 (15:35 -0700)]
Merge "Resilent media time stamp adjustment" into gingerbread
James Dong [Sun, 3 Oct 2010 17:59:26 +0000 (10:59 -0700)]
Resilent media time stamp adjustment
Change-Id: I13ab87c05f26bb11a3cc9bf8559f98e6ea0752db
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
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
James Dong [Sat, 2 Oct 2010 00:27:51 +0000 (17:27 -0700)]
Merge "Turn off media time adjustment by default" into gingerbread
James Dong [Sat, 2 Oct 2010 00:14:23 +0000 (17:14 -0700)]
Turn off media time adjustment by default
Change-Id: I1f8021d605d0fd896e0639607a84e3f7c459612e
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
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
Andreas Huber [Fri, 1 Oct 2010 18:19:26 +0000 (11:19 -0700)]
Remove development-only code.
Change-Id: Ic2ca0efb631eb779ca157fb01b02aa19a1222c06
related-to-bug:
2368598
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
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
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
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
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
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
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
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
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
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
Andreas Huber [Tue, 28 Sep 2010 18:27:33 +0000 (11:27 -0700)]
Merge "Squashed commit of the following:" into gingerbread
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
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
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
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
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
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
Andreas Huber [Mon, 27 Sep 2010 16:20:58 +0000 (09:20 -0700)]
Merge "Support other kinds of HTTP redirect in NuHTTPDataSource" into gingerbread
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
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
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
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
Eric Laurent [Fri, 24 Sep 2010 16:43:24 +0000 (09:43 -0700)]
Merge "Fix issue
3007862" into gingerbread
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
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
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
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
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
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
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
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
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
Eric Laurent [Tue, 21 Sep 2010 22:55:17 +0000 (15:55 -0700)]
Merge "Fix issue
2913071." into gingerbread
Andreas Huber [Tue, 21 Sep 2010 22:17:04 +0000 (15:17 -0700)]
Merge "This log message is codec specific." into gingerbread
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
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
Eric Laurent [Tue, 21 Sep 2010 21:52:01 +0000 (14:52 -0700)]
Fix issue
2913071.
Scale audio signal during capture according to peak level so that
returned values on 8 bits contain enough information even for weak
signals.
Also do not reject requests to enable/disable the visualizer if we are
already in the requested state.
Change-Id: I07a705619764350834e61f82d161761eab688747
Andreas Huber [Tue, 21 Sep 2010 22:08:52 +0000 (15:08 -0700)]
This log message is codec specific.
Change-Id: I603ae7bd13b186a6df0a26ea9abe073e89276caf
James Dong [Tue, 21 Sep 2010 18:34:26 +0000 (11:34 -0700)]
Merge "Allow record to set input color format as a command line option" into gingerbread
James Dong [Tue, 21 Sep 2010 17:19:22 +0000 (10:19 -0700)]
Merge "Another attempt for fixing AAC+/eAAC+ related issue" into gingerbread
Wu-cheng Li [Mon, 20 Sep 2010 23:15:32 +0000 (16:15 -0700)]
Rename FOCUS_MODE_CONTINUOUS to FOCUS_MODE_CONTINUOUS_VIDEO.
This constant is not public yet. Continuous autofocus should
behave differently in still camera and camcorder. In camcorder,
lens movement may be more smooth. And the triggers to start a
new focus search may be different. If there is a need,
FOCUS_MODE_CONTINUOUS_PHOTO can be added in the future.
Change-Id: I05df9e491aca37829be3df92a73b952f26c86a4a
James Dong [Sat, 18 Sep 2010 03:50:07 +0000 (20:50 -0700)]
Another attempt for fixing AAC+/eAAC+ related issue
The decoder has to decode the very first two frames (decoder specific data + first data
frame) in order to be really sure whether a stream is AAC or AAC+/eAAC+.
bug -
2966336
Change-Id: Ib12a07285933df0d6c346370a12f70e99e811881
James Dong [Sat, 18 Sep 2010 23:13:57 +0000 (16:13 -0700)]
Allow record to set input color format as a command line option
o Only YUV420SP and YUV420P are supported
Change-Id: I425e8b29d9dca8c05066c1cd777f8bdede52964a
Marco Nelissen [Fri, 17 Sep 2010 22:04:01 +0000 (15:04 -0700)]
Add a check to track a problem the monkey script has been triggering.
Change-Id: If3896946d993cbab2442e17740f18efd7e753a3b
Andreas Huber [Fri, 17 Sep 2010 18:49:39 +0000 (11:49 -0700)]
Make sure the message dispatcher stays around until after OMX_FreeHandle is finished in case it posts some more messages during shutdown. Clear the source as soon as possible in OMXCodec's destructor.
Change-Id: I9c896cf07dea0c3201b6f074dbaf27e6d85cd784
Andreas Huber [Thu, 16 Sep 2010 18:23:09 +0000 (11:23 -0700)]
Register the new OMX components.
Change-Id: I795287c63073ca86ad0f97d6afcfc85c401dc984