summaryrefslogtreecommitdiffstats
path: root/media
Commit message (Collapse)AuthorAgeFilesLines
* Fix off-by-two and other bugs in the visualization code.Marco Nelissen2010-10-271-9/+12
| | | | | | b/3137511 Change-Id: Ic431701e93c025bc417c9742e9af6bb2350c7dd6
* Assume that all of the decoded vorbis audio data is valid unless the source ↵Andreas Huber2010-10-261-6/+14
| | | | | | indicates otherwise. Change-Id: Iea88e3f09955d82a9a11fbcc075db8d9c4007490
* Turn the media time adjustment in file writer back onJames Dong2010-10-211-2/+5
| | | | | | | | | 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
* File writer size estimation improvementJames Dong2010-10-191-18/+38
| | | | | | | | | | | | | | 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
* If we encounter video stream EOS while seeking we may still need to seek audio.Andreas Huber2010-10-192-18/+37
| | | | | Change-Id: Ie260942247b6810ca94e86328a3725d75b12181d related-to-bug: 3108724
* An attempt to unregister a handler that's no longer registered should not ↵Andreas Huber2010-10-181-3/+8
| | | | | | | | | | 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
* Merge "For thumbnail extraction make sure we instantiate a decoder that ↵Andreas Huber2010-10-182-2/+46
|\ | | | | | | allows access to the framebuffer. Implement the samsung workaround to support this by reconfiguring the decoder." into gingerbread
| * For thumbnail extraction make sure we instantiate a decoder that allows ↵Andreas Huber2010-10-182-2/+46
| | | | | | | | | | | | | | access to the framebuffer. Implement the samsung workaround to support this by reconfiguring the decoder. related-to-bug: 3106534 Change-Id: Ie28d72af2f9e93818d1840ac83aa7bc11fa57b3b
* | If the PES packet size exceeds 16-bit range, use a packet size of 0 instead. ↵Andreas Huber2010-10-181-0/+8
|/ | | | | | This is valid for video content according to the specs. Change-Id: I686320d9d4cd826f43c0813c6ba1dc4949d1115f
* Include the framework copy of the OpenMAX headers instead of referencing ↵Andreas Huber2010-10-1515-16/+19
| | | | | | | external/opencore. Change-Id: I762f59acf5e1f770e4d7c2d89af362bfffebefa6 related-to-bug: 3101573
* Make sure we cache the sampleTable again if using the caching datasource.Andreas Huber2010-10-151-1/+3
| | | | | | | 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
* Metadata.cpp and Metadata.java had drifted out of sync. This change remedies ↵Andreas Huber2010-10-131-1/+1
| | | | | | | that. Change-Id: I48175666857ab0fb1519777bdb6f7f0b6b5cc599 related-to-bug: 3073955
* Merge "Attempt to derive the avg. bitrate of the entire stream from ↵Andreas Huber2010-10-132-9/+50
|\ | | | | | | metadata." into gingerbread
| * Attempt to derive the avg. bitrate of the entire stream from metadata.Andreas Huber2010-10-132-9/+50
| | | | | | | | | | related-to-bug: 3093224 Change-Id: I4726b023373e04468cc12fd64f7fe6ee923add95
* | Some webcams output rtp streams but never send any rtcp data in violation ofAndreas Huber2010-10-133-4/+62
|/ | | | | | | the specs. Attempt to use fake timestamps to be able to play these... Change-Id: Ia7a926616fb764e972955df4acdb59d85cdd93df related-to-bug: 3087310
* Merge "Support for writing to MPEG2 transport stream files." into gingerbreadAndreas Huber2010-10-134-21/+120
|\
| * Support for writing to MPEG2 transport stream files.Andreas Huber2010-10-124-21/+120
| | | | | | | | Change-Id: If3b7a807bc224a4b1cb2236537c3ebdc5aee0d97
* | HTTP Live content that are tagged as complete are now seekable.Andreas Huber2010-10-1214-33/+297
|/ | | | | Change-Id: I9d0d2f009f883e5baf3e9de8c5c0aa05760e4bde related-to-bug: 2368598
* Just in case we're behind a NAT router/firewall, attempt to poke holes into ↵Andreas Huber2010-10-111-0/+153
| | | | | | | it for future incoming RTP/RTCP packets to pass through. Change-Id: Idd47968d4027f357222f19f15eecfd70fdec3282 related-to-bug: 3073813
* RTSP seeking is now asynchronous, MediaPlayer is not notified that the seek ↵Andreas Huber2010-10-085-11/+87
| | | | | | | is complete until it actually is. Ignore seek requests on live streams. Change-Id: Ie61230cd60dd6c682baf72529100369ad6291189 related-to-bug: 3073955
* Refactor some more h.264 utility code out into avc_utils. Work around a ↵Andreas Huber2010-10-086-153/+207
| | | | | | 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
* Merge "Disable 10secs forward/backward seeking for rtsp as seek is a very ↵Andreas Huber2010-10-084-4/+14
|\ | | | | | | expensive operation there. Decouple the 10sec forward/backward button functionality from seekbar functionality." into gingerbread
| * Disable 10secs forward/backward seeking for rtsp as seek is a very expensive ↵Andreas Huber2010-10-084-4/+14
| | | | | | | | | | | | | | operation there. Decouple the 10sec forward/backward button functionality from seekbar functionality. Change-Id: I016e79b688774f8ee91ac53216197b5fb9cb41b2 related-to-bug: 3073955
* | Merge "Respect the cropping rectangle when extracting the video dimensions ↵Andreas Huber2010-10-081-1/+38
|\ \ | | | | | | | | | from the sequence parameter set of H.264 streams." into gingerbread
| * | Respect the cropping rectangle when extracting the video dimensions from the ↵Andreas Huber2010-10-081-1/+38
| |/ | | | | | | | | | | sequence parameter set of H.264 streams. Change-Id: Id7f21d5ab8533b4e17ceaa8619a39c27f0306150
* | Merge "Name the writer threads" into gingerbreadJames Dong2010-10-082-2/+11
|\ \
| * | Name the writer threadsJames Dong2010-10-072-2/+11
| | | | | | | | | | | | Change-Id: I51461c3800ac5850e21ff398e80eb20b562264b3
* | | Merge "Disable the access unit timeout temporarily while a seek operation is ↵Andreas Huber2010-10-081-6/+29
|\ \ \ | | | | | | | | | | | | in progress." into gingerbread
| * | | Disable the access unit timeout temporarily while a seek operation is in ↵Andreas Huber2010-10-081-6/+29
| | |/ | |/| | | | | | | | | | | | | | | | progress. Change-Id: I116cb76342aae4168f34ebae49ecb2301702a0ea related-to-bug: 3073955
* | | Merge "Added getter for session Id to AudioSink" into gingerbreadEric Laurent2010-10-083-0/+13
|\ \ \ | |/ / |/| |
| * | Added getter for session Id to AudioSinkEric Laurent2010-10-073-0/+13
| |/ | | | | | | | | | | | | | | | | | | | | 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
* | Increase scratch buffers sizes in mp3 software decoder, this integrates a PV ↵Andreas Huber2010-10-073-4/+4
|/ | | | | | | master/opensource patch. Change-Id: I5a637f1b380e44c94040ec507843d58a1f5a9b61 related-to-bug: 3065605
* Work to support switching transport streams mid-stream and signalling ↵Andreas Huber2010-10-0714-110/+459
| | | | | | | discontinuities to the decoder. Change-Id: I7150e5e7342e1117c524856b204aadcb763e06ed related-to-bug: 2368598
* On this particular device the hardware video decoder spits out buffers that ↵Andreas Huber2010-10-073-16/+51
| | | | | | | 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
* Make sure to call AudioTrack::stop() instead of AudioTrack::pause() after ↵Andreas Huber2010-10-053-11/+26
| | | | | | submitting all samples to AudioTrack to make sure those remaining samples are actually played out. Change-Id: Id574a0203efcb5e565f1b0fe77869fc33b9a9d56
* Fixed an issue where the reserved free space in the file writer was larger ↵James Dong2010-10-041-2/+14
| | | | | | | | | | | | | | | 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
* Merge "Resilent media time stamp adjustment" into gingerbreadJames Dong2010-10-041-24/+181
|\
| * Resilent media time stamp adjustmentJames Dong2010-10-041-24/+181
| | | | | | | | Change-Id: I13ab87c05f26bb11a3cc9bf8559f98e6ea0752db
* | Make sure to finish the preparation phase even EOS occurs before we consider ↵Andreas Huber2010-10-041-0/+4
| | | | | | | | | | | | | | the cache to be completely filled up. Change-Id: I29143e357fb6ea7b860636100e010f2ea7436798 related-to-bug: 3037389
* | Don't retrieve metadata unless necessary for ogg-vorbis ringtone auto-looping.Andreas Huber2010-10-041-5/+11
|/ | | | | Change-Id: Iaf5880bb3376f9cbf22aefe198878eaf6f3f08c7 related-to-bug: 3037389
* Merge "Turn off media time adjustment by default" into gingerbreadJames Dong2010-10-011-1/+1
|\
| * Turn off media time adjustment by defaultJames Dong2010-10-011-1/+1
| | | | | | | | Change-Id: I1f8021d605d0fd896e0639607a84e3f7c459612e
* | Merge "Start playing live streams from the start, no the middle..." into ↵Andreas Huber2010-10-011-1/+1
|\ \ | | | | | | | | | gingerbread
| * | Start playing live streams from the start, no the middle...Andreas Huber2010-10-011-1/+1
| | | | | | | | | | | | | | | Change-Id: Ie01ba1250b51155cb1fb32fc3340189a16c01476 related-to-bug: 2368598
* | | Remove development-only code.Andreas Huber2010-10-011-15/+0
|/ / | | | | | | | | Change-Id: Ic2ca0efb631eb779ca157fb01b02aa19a1222c06 related-to-bug: 2368598
* | Squashed commit of the following:Andreas Huber2010-10-019-357/+597
|/ | | | | | | | | | | | | | | | | | | | | 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
* Issue 3032913: improve AudioTrack recovery timeEric Laurent2010-09-301-0/+8
| | | | | | | | | | | | 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
* Merge "AMRNB: use Frame_Type_3GPP defined in frame_type_3gpp.h instead." ↵Chia-chi Yeh2010-09-283-55/+19
|\ | | | | | | into gingerbread
| * AMRNB: use Frame_Type_3GPP defined in frame_type_3gpp.h instead.Chia-chi Yeh2010-09-293-55/+19
| | | | | | | | | | | | | | This allows gsmamr_enc.h and gsmamr_dec.h to be included in the same file without conflict definition. Change-Id: I1c8dac235c122735ba14a1af2fda48c0f8d9f87b
* | Fix several audio effects problems.Eric Laurent2010-09-282-126/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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