summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/include
Commit message (Collapse)AuthorAgeFilesLines
* Squashed commit of the following:Andreas Huber2011-05-112-0/+314
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit c80992e419ed567abef451042f09c4958534b90d Author: Andreas Huber <andih@google.com> Date: Wed May 11 14:00:07 2011 -0700 Support for the mp3 audio decoder as a software OMX component. Change-Id: I66e10c4d0be4c3aecdef1c21b15a2c7359ceb807 commit a358d0e1bf2a88897887445f42ccdda0f5f2f528 Author: Andreas Huber <andih@google.com> Date: Wed May 11 13:11:23 2011 -0700 Support for G.711 alaw and mulaw decoders as software OMX components Change-Id: Ia5c76c02cb83a9f94ce39a27b2251e5880218f03 commit 79088b9c9a5c8b8c97ea66cb4f90a2b0f0d34553 Author: Andreas Huber <andih@google.com> Date: Thu May 5 15:43:32 2011 -0700 Instead of using an RGB surface and conversion yuv420->rgb565 convert from OMX_COLOR_FormatYUV420Planar to HAL_PIXEL_FORMAT_YV12 instead. Change-Id: I8c4fc3c54c963f0d4ba6377f3c4ab4e0013152e5 related-to-bug: 4394005 commit 69469d3bd84425777b11b9fc938c5e0c61af26a7 Author: Andreas Huber <andih@google.com> Date: Tue May 10 15:46:42 2011 -0700 voip mustn't link against libstagefright.so Change-Id: I4d0ba9a8b9dc9380b792a1bd04bcda231964862c commit 2a9a9eeeeeb36ae3a9e680469c3016d509ff08c3 Author: Andreas Huber <andih@google.com> Date: Tue May 10 14:37:10 2011 -0700 Remove most non-OMX software decoders by default Change-Id: Ic56514bc1b56b8fa952e8c4a164ea7379ecb69d0 commit a4de62c37b335c318217765403a9fb282b20a216 Author: Andreas Huber <andih@google.com> Date: Mon May 9 16:50:02 2011 -0700 Conditionally build the old-style software decoders. Change-Id: I5de609e1d76c92d26d6eb81d1551462258f3f15f commit 5d8b039f9449dc3dad1e77c42c80cc0b54b0c846 Author: Andreas Huber <andih@google.com> Date: Mon May 9 16:13:12 2011 -0700 Support for MPEG4 and H.263 video decoders as soft OMX components. Change-Id: I5e3a4835afab89f98e3aa128d013628f5830eafe commit b25a1bfbeb0ff6e62e1cc694ce2599c91489c7d0 Author: Andreas Huber <andih@google.com> Date: Mon May 9 11:49:10 2011 -0700 Boost Soft OMX thread priority, fix timestamp handling in vorbis Soft OMX decoder. Change-Id: I68d26d4999f06fcc451d69e5303663fab0cba9e8 commit c0574362f8dc3319ce84d981097867062a698527 Author: Andreas Huber <andih@google.com> Date: Mon May 9 11:28:53 2011 -0700 Support for the AMR decoders (NB and WB) as Soft OMX components. Change-Id: Ia565f59833fb52653e23f26536e7e41fc329a754 commit 3e5575a8f0e27a490cb7bde77bd9456087837f08 Author: Andreas Huber <andih@google.com> Date: Wed May 4 13:41:25 2011 -0700 Signal an error if the aac decoder failed to initialize from codec specific data. Change-Id: I01da7831bdf722edd7d6dc5974486daa2cf2b209 related-to-bug: 4272179 commit f94aeaa9886e772ff4823e671ed237096649f4af Author: Andreas Huber <andih@google.com> Date: Tue May 3 13:07:38 2011 -0700 Software OMX nodes don't (yet?) support native_window mode. Change-Id: I7d9ca9164ef4abf66b573ca21dba12d672f8b12d commit eefdfabac8dc659e00daa56da69aea705c49cb67 Author: Andreas Huber <andih@google.com> Date: Tue May 3 12:57:16 2011 -0700 Fixing the OMX tests to refer to appropriate files from test content. Change-Id: I5b61c3498749bfb876abbd3946a5132356e3f6ff commit f31b7326aef14b6a1b7946520a9688f092e844d5 Author: Andreas Huber <andih@google.com> Date: Tue May 3 11:08:38 2011 -0700 Soft OMX components are now dynamiclly loaded/unloaded, not directly linked against. Change-Id: I1e2ecfbfab67a8869886f738eaf0c7b3c948b6d9 commit b7f0343879e4df06f0a1c9bfece24df557954e2f Author: Andreas Huber <andih@google.com> Date: Mon May 2 15:58:36 2011 -0700 Support for the AVC software decoder as an OMX component. Change-Id: I13c12df435ba4afbd968a9fc659f66b91c818bc2 commit 5bb9e616d6c8e1b13d531fe996b9a9affdfb2977 Author: Andreas Huber <andih@google.com> Date: Fri Apr 29 12:05:37 2011 -0700 Fix Vorbis OMX decoder's component role. Change-Id: I5e871e5e11b3f951c93590210e63fd7987c467b5 commit 089c91f2333062e196c7afd5fb0ca914878aa474 Author: Andreas Huber <andih@google.com> Date: Fri Apr 29 12:05:18 2011 -0700 Support vorbis_decoder OMX testing. Change-Id: I1985be178a12ae3f8768bc72067d9236238be170 commit 56e241fa36fc37219bc536b823bdc2ab82dc1fad Author: Andreas Huber <andih@google.com> Date: Fri Apr 29 12:01:46 2011 -0700 SoftVorbis OMX component now respects the number of valid frames per page. Change-Id: I82a117a064d9b083fc58a54ad900a987a763ef03 commit fcd618ec520c376fdb78f4cbb44b8d9f5d213e2b Author: Andreas Huber <andih@google.com> Date: Fri Apr 29 10:59:38 2011 -0700 Support for the vorbis audio decoder as a soft OMX component. Change-Id: Iaeb057e58ca306d3dce205c0445b74d5aefef492 commit d1fcc3203fc8003ad79c6e96b3a1fc4261743f16 Author: Andreas Huber <andih@google.com> Date: Fri Apr 29 10:07:50 2011 -0700 VPX decoder now properly resizes buffers after a port settings change. Change-Id: I110749a31b6cba087891d8e5dfe420830bdbf831 commit 35c7168243cb69849d88911144a2c7fdfed5c54e Author: Andreas Huber <andih@google.com> Date: Thu Apr 28 13:23:34 2011 -0700 Support for the VPX video decoder as a Software OMX component. Change-Id: Ic345add2d6d768d4af631160153f2e9b97fcea71 commit 923b2534b4211fc5405377b5190bfa6f2dd27f32 Author: Andreas Huber <andih@google.com> Date: Thu Apr 28 11:34:40 2011 -0700 Table-based registration of soft omx components. Change-Id: I7f45f0fa5b3a7950776e69c66349731f7674e937 commit 04a88f3edb2266a463da9c4481b80178be460902 Author: Andreas Huber <andih@google.com> Date: Thu Apr 28 11:22:31 2011 -0700 Apparently OMX_GetParameter is valid in any state other than OMX_StateInvalid OMX_SetParameter is still constrained to OMX_StateLoaded or a disabled port. Change-Id: I1032d7cf4011982d306aa369d4158a82830d26fb commit 9d70ca68445e7c40f5c9b2d12466e468f514de88 Author: Andreas Huber <andih@google.com> Date: Wed Apr 27 15:03:18 2011 -0700 Use the new soft OMX aac decoder for HTTP live playback. Change-Id: Ifbcfb732a9edb855cb46b49f6d0ac942170ee28f commit 213fe4a10ea93cce08e8622dc3908053f29878a1 Author: Andreas Huber <andih@google.com> Date: Tue Apr 12 16:39:45 2011 -0700 Foundation for supporting software decoders as OMX components Change-Id: I7fdab256563b35d1d090617abaea9a26b198d816 Change-Id: I83e9236beed4af985d10333c203f065df9e09a42
* Properly honour any pending seek request when reading the first buffer afterAndreas Huber2011-05-101-0/+1
| | | | | | starting the audio player. Change-Id: Ibedc1804a8c444e4d0f5be4eb87b22ed5d2c367d
* Initial CL for the timed text support:Gloria Wang2011-05-032-16/+117
| | | | | | | | - Add support for MP4 timed text - Add API for app to turn on/off a text track - Add timed text metadata(language) in the MediaMetadataRetriever Change-Id: I0055beba38ac761627dbcc6d581ae9582d68bb94
* Add setParameter/getParameter to MediaPlayer API.Gloria Wang2011-04-291-0/+3
| | | | | | for bug 1982947 Change-Id: If3f40e4f18cbba155af29944af38bdc627f8cd53
* Add extra headers specified in the media player's setDataSource callAndreas Huber2011-04-201-1/+8
| | | | | | | to all http requests made by the http live implementation. Change-Id: I9dd78bb261bc678ea98c82009ca2634b74f3cd58 related-to-bug: 4315346
* Make sure a read restarts the prefetcher if necessary.Andreas Huber2011-04-191-1/+3
| | | | | Change-Id: I87cac0e61e4dce7987ddf29c32f51e1672d1bbed related-to-bug: 4286618
* Remove streamability verification, it's taking too long. Also...Andreas Huber2011-04-152-3/+11
| | | | | | | | make sure that findSampleAtTime uses composition time instead of decoding time, at the expense of extra memory. Change-Id: I67d09389b3df7ed265f614bdd0b142ca7f19f86a related-to-bug: 4294536
* Merge "Experimental support for changing the video surface/texture on an ↵Andreas Huber2011-04-121-0/+5
|\ | | | | | | active mediaplayer"
| * Experimental support for changing the video surface/texture on an active ↵Andreas Huber2011-03-141-0/+5
| | | | | | | | | | | | mediaplayer Change-Id: Ia7a5126e9311dc1c721ab2aef54bd698151c88cd
* | In the MP3 extractor, compute timestamps based on sample count instead of ↵Jason Simmons2011-04-071-1/+1
| | | | | | | | | | | | | | | | byte count. This fixes timestamp accuracy on VBR streams. Change-Id: I73a30309536919cbeb5e5163f2f1340e2b9fa4b1
* | Remove legacy hack to only drop frames every other late frameAndreas Huber2011-04-011-1/+0
| | | | | | | | | | Change-Id: I197e568d292341c330efb394c41aa9af0e74b081 related-to-bug: 4203195
* | Support for divx files, i.e. mpeg 4 video + mpeg audio layer III in .avi filesAndreas Huber2011-03-301-0/+111
| | | | | | | | | | Change-Id: I6e1e989c43300ddb0d341e3e9183cdccd69eeae6 related-to-bug: 4192562
* | Stagefright DataSources now expose the underlying content mime type.Andreas Huber2011-03-303-1/+14
| | | | | | | | | | | | | | | | Use that mime type to determine if we should do upfront buffering at the start of playback and don't for audio streams to ensure playback starts fairly instantly. Change-Id: If21e36d1b024f0e5c723911bceadaa2e0307ab42 related-to-bug: 4090916
* | Delay signaling the end of audio playback until all frames have actually played.Andreas Huber2011-03-221-2/+2
| | | | | | | | | | Change-Id: I1fa07358a885a818fd0a5d7da425740f86095e10 related-to-bug: 3404000
* | Support passing headers to MediaMetadataRetriever's setDataSource APIAndreas Huber2011-03-211-1/+4
| | | | | | | | | | Change-Id: Ib1a5c08fc5034cac05034db27007a35c9b660b26 related-to-bug: 3506316
* | am 782ffe91: am 9c0c5b56: am 2f1f2248: Fix missing AOSP copyright headers ↵James Dong2011-03-171-0/+16
|\ \ | |/ |/| | | | | | | | | for a bunch of media framework files * commit '782ffe91da665c6b1fb9e297faa6e0dc6035f40c': Fix missing AOSP copyright headers for a bunch of media framework files
| * Fix missing AOSP copyright headers for a bunch of media framework filesJames Dong2011-03-171-0/+16
| | | | | | | | | | | | bug - 4119349 Change-Id: If5924e16a5f596d5d73d9beb66eaf5ac9a6f0e50
* | Fix for bug 3477330Gloria Wang2011-03-105-10/+10
| | | | | | | | | | | | | | This patch fixs a crash bug caused by using a NULL DecryptHandle pointer. Fix by using sp<DecryptHandle> instead. Change-Id: Icbd59858385e8256125a615a3c82656b25319d44
* | An HTTP datasource for stagefright using the chromium code.Andreas Huber2011-03-095-13/+189
| | | | | | | | | | | | | | | | Use of this new datasource is now the default unless overwritten by adb shell setprop media.stagefright.use-chromium false Change-Id: I156a8eb9a1fff1cb537b4aec6cf3e8e6052be81e
* | am a7c9dffd: am 4ed072f9: Merge "Add missing copyright headers to a couple ↵James Dong2011-03-071-0/+16
|\ \ | |/ | | | | | | | | | | of files" into honeycomb-mr1 * commit 'a7c9dffdb8097105482ce976ba0a51baa76d8806': Add missing copyright headers to a couple of files
| * Add missing copyright headers to a couple of filesJames Dong2011-03-071-0/+16
| | | | | | | | | | | | bug - 4025673 Change-Id: Ie1c4cf18c06032f9b89cc08e5be25d38c0f76aa1
* | Reject streaming .mp4 files over http that are not muxed reasonably.Andreas Huber2011-03-031-1/+5
|/ | | | | | | | Audio and video samples must be reasonably close by at any given timestamp, for now we define "reasonably" as "their offsets must not be more than 1MB apart". related-to-bug: 3509977 Change-Id: I4c3a2a239bf911306833f3b17b73c9e2f76ab901
* Add an OMX IL API for querying buffer usage flags.Jamie Gennis2011-02-282-0/+6
| | | | | | | | | | This change defines an OpenMAX IL API for querying from the IL component the gralloc buffer usage flags that should be used to allocate the buffers. It also adds the Stagefright plumbing for using the new OMX IL API. Change-Id: I046b5e7be70ce61e2a921dcdc6e3aa9324d19ea6 Related-Bug: 3479027
* Merge "Alternate patch for late video issue: seek only the video ahead to ↵Andreas Huber2011-02-241-1/+7
|\ | | | | | | the next"
| * Alternate patch for late video issue: seek only the video ahead to the nextAndreas Huber2011-02-241-1/+7
| | | | | | | | | | | | | | syncframe after the current audio media position, leave audio untouched. Change-Id: Ia9fa8e205467e5460c8219afd396bddd09fcfb46 related-to-bug: 3375737
* | Merge "Suppress the logging of URLs when in incognito mode."Andreas Huber2011-02-243-2/+16
|\ \
| * | Suppress the logging of URLs when in incognito mode.Andreas Huber2011-02-243-2/+16
| |/ | | | | | | | | Change-Id: Ib951b495eae15669e160ef54686eab0eeb9b366a related-to-bug: 3336575
* | Merge "Bug 3438258 Add SurfaceTexture as MediaPlayer sink"Glenn Kasten2011-02-242-3/+6
|\ \ | |/ |/|
| * Bug 3438258 Add SurfaceTexture as MediaPlayer sinkGlenn Kasten2011-02-232-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This change enables the use of a SurfaceTexture in place of a Surface as the video sink for an android.media.MediaPlayer. The new API MediaPlayer.setTexture is currently hidden. This includes: - New Java and C++ interfaces - C++ plumbing and implementation (JNI, Binder) - Stagefright AwesomePlayer and NuPlayer use ANativeWindow (either Surface or SurfaceTextureClient) Change-Id: I2b568bee143d9eaf3dfc6cc4533c1bebbd5afc51
* | Remove RefBase.h dependency on TextOutput.hMathias Agopian2011-02-225-0/+5
|/ | | | Change-Id: I72cd6b98ef82b4868fe1c8ec87862cf43fb4ee73
* Experimental support for https transfers in stagefright.Andreas Huber2011-02-172-1/+6
| | | | Change-Id: If1bd0f265dda136c7c34b53317f64383023b53a3
* Remove legacy, AwesomePlayer-based http live implementation.Andreas Huber2011-02-161-5/+0
| | | | Change-Id: I455d0faa5612dcd4d2bb6f2b3c7b64a1caaabf69
* Merge "Add AAC extractor"Gloria Wang2011-02-152-0/+65
|\
| * Add AAC extractorGloria Wang2011-02-152-0/+65
| | | | | | | | Change-Id: Iedb08525ac72e65ba98e5c791734da0720a0e3f6
* | Enable cancelling the rtsp connection process early.Andreas Huber2011-02-141-0/+1
|/ | | | | Change-Id: Ie2059c54541ad8c675944d71b39c772b0f6f04c8 related-to-bug: 3452699
* Start playing (and decoding) audio only after the first video frame has been ↵Andreas Huber2011-02-111-0/+5
| | | | | | | | | | decoded. if there's both audio and video content. This gives the video decoder an opportunity to fill its internal buffer queue at the start of playback. Change-Id: Ib2c95753b430e4e47207953b913b607024a328d7 related-to-bug: 3431702
* Change timestamp handling in RTSP, remove unused, experimental, gtalk supportAndreas Huber2011-02-101-4/+0
| | | | | | | | related-to-bug: 3216447 NTP timestamp handling is now done at a higher layer than before. Change-Id: I9fb23f1335110ec59e534f9aa0fe6f6a6406dd52
* Merge "- Do not use global DrmManagerClient - Release the DrmManagerClient ↵Gloria Wang2011-02-083-2/+3
|\ | | | | | | and DecryptHandle in DataSource Fix for bug 3429811"
| * - Do not use global DrmManagerClientGloria Wang2011-02-073-2/+3
| | | | | | | | | | | | | | - Release the DrmManagerClient and DecryptHandle in DataSource Fix for bug 3429811 Change-Id: I549f72b75225751877eb0e630ce8098f8ec6316f
* | Display a single (still-)frame of video after seeking while paused.Andreas Huber2011-02-071-0/+4
|/ | | | | Change-Id: Ia78bf29ba6d649043e70c49913725cecdf918c03 related-to-bug: 3392259
* Make sure timestamps attached to encoded media are composition timestamps.Andreas Huber2011-02-031-0/+8
| | | | | | | | not decoding timestamps. Obviously there is no difference between them if the content in question does not involve frame reordering. Change-Id: Iac4d06cfeb8a136f735c1148e98cac340d3ef893 related-to-bug: 3398314
* Bug 1804058 FLAC extractorGlenn Kasten2011-02-032-0/+67
| | | | | | | | | | | | | | | | | | | | | | | | | Note: dependent on external/flac for libFLAC Implemented and tested: * FLAC container * mono and stereo * standard sample rates * standard bit depths * sniffer * media scanner * Vorbis comment metadata including album art * random access seeking with "torture test" * web browser integration for audio/flac (not audio/x-flac), but note that most web servers don't correctly report the MIME type Not implemented: * 24-bit to 16-bit dither or noise shaping in AudioFlinger * 96 kHz to 44.1 or 48 kHz downsampling low pass filter in AudioFlinger * replay gain is better done in AudioFlinger * multi-channel, would need AudioFlinger support * Ogg container, does not seem to be very popular yet Change-Id: I300873e8c0cfc2e95403d9adb5064d16a2923f17
* Merge "- Support comfort noise in AMRExtractor - Support duration and ↵Gloria Wang2011-02-011-1/+4
|\ | | | | | | seeking in AMRExtractor for different bit rates"
| * - Support comfort noise in AMRExtractorGloria Wang2011-02-011-1/+4
| | | | | | | | | | | | | | | | - Support duration and seeking in AMRExtractor for different bit rates Bug 2530101 Change-Id: I12beffea73cea0ec056f0e0cf51a4a8d46d897b8
* | Disconnect HTTP live sessions as soon as the request comes in.Andreas Huber2011-01-311-0/+1
|/ | | | | | | Instead of waiting until pending events have been processed. Change-Id: Id758f5508a514561e18aade82175d69e9156965e related-to-bug: 3409681
* Fix the presentation video resolution when it is different from the actual ↵James Dong2011-01-191-0/+3
| | | | | | | | image resolution of the video. bug - 3352413 Change-Id: I8f08f3896e9fb90f09119dccdb88b82af60f79f2
* Don't report 100% buffered when the stream ends prematurely.Bryan Mawhinney2011-01-181-2/+2
| | | | Change-Id: Ia4e80d02f28104427a3309e3d5b155faa5702757
* integrate videoeditor preview player.Dharmaray Kundargi2011-01-161-0/+1
| | | | Change-Id: I83084f494605c8e6f4d198afa8c36f9e29579667
* Increase cache size and low-watermark threshold, alsoAndreas Huber2011-01-112-2/+6
| | | | | | | | | MediaPlayer now sends out MEDIA_INFO,MEDIA_INFO_VIDEO_TRACK_LAGGING messages to the JAVA client informing it how much (if at all) the video lags behind audio (arg2 is the media delay in ms). Change-Id: I6933f573d8597a35112e4b5ee0fcb826a7f6ddd1 related-to-bug: 3335220
* Awesomeplayer : Frame dropping logic changepmehendale2011-01-071-0/+1
| | | | | | | | | | | Changed late frame drop policy, now we are dropping only 1 in 8, late (> 40ms) frames. Dropping every late frame result in lot of noticible pauses, usually with peaky bitrate activity these pauses become more prominant. Dropping few frames is still required to allow overall playback chain, to regain the performance. Experimentally decided to drop Max one late frame in 8. Change-Id: If20848d619a76aaf8179b1e5c3155610e3bc85fd