summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/omx
Commit message (Collapse)AuthorAgeFilesLines
* Squashed commit of the following:Andreas Huber2010-11-221-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 0870f7bdd10a7cd36087d723d1957d8e1b967ca7 Author: Andreas Huber <andih@google.com> Date: Mon Nov 22 12:57:04 2010 -0800 set_surface_crop doesn't seem to work right yet, stop using it in the SoftwareRenderer. Change-Id: If0a24f78b7810a6cecaa82eb4f23d0f90c22cc42 commit 4767b52bee3a54ae117a8708d6832276a44e6a6a Author: Andreas Huber <andih@google.com> Date: Mon Nov 22 11:14:57 2010 -0800 info->mMediaBuffer may still be NULL at this point... Change-Id: I25a71569015b1bb87f1ea7efff7588958774426f commit 0cef79874e1f1ddb10b7402177a87d3cffc7de92 Author: Andreas Huber <andih@google.com> Date: Mon Nov 22 10:55:12 2010 -0800 QCOM's YVU420 color format conversion has now been tested. Change-Id: I7fef4b642a928af15d42f006f7cdc107d5ff1d67 commit 84fe05a6c969ede0ce8a85a530e110afca07c7a7 Author: Andreas Huber <andih@google.com> Date: Mon Nov 22 09:59:50 2010 -0800 Removed remaining traces of suspend/resume. Proper reporting of video dimensions based on cropping rectangle. Change-Id: Ib238b80cbc1f19e7d312f2422eb5e9ab6b06b1bc commit 50970cdc837c5c498bcf0cb61b436196ca9e2ef7 Author: Andreas Huber <andih@google.com> Date: Fri Nov 19 16:11:06 2010 -0800 Revamped Software Renderer respects the crop rectangle. Removed obsolete ADRENO support code. Change-Id: I984cbc8a99c4d97e09e7d1b1292099c88b9ae535 commit 8abbc6a5608bff650f968540f24a2eab75f254ed Author: Andreas Huber <andih@google.com> Date: Fri Nov 19 16:10:41 2010 -0800 The metadata retriever now respects the crop rectangle while capturing a video frame. Change-Id: Id3377176060086d16717f62c77ce26fabe899050 commit 2d42e4466609d304e88bd2cdd6eb7b297340cc21 Author: Andreas Huber <andih@google.com> Date: Fri Nov 19 16:09:50 2010 -0800 Changed ColorConverter APIs to be more general. Clients can now refer to crop rectangles in both source and destination. Change-Id: Ief151d736818396d0389ec04e7df5650e3ad7c04 commit 273184303d54a54febd3e9c3dd4df30507ea78b5 Author: Andreas Huber <andih@google.com> Date: Fri Nov 19 15:04:06 2010 -0800 The stagefright commandline tool now writes the extracted video frame to /sdcard/out.jpg Change-Id: Ieb2ab3fda7a7cd9294beccb8db0eed75096eeef4 commit 2d43390328cadf4ba94c1c3c02e4fb30baa29690 Author: Andreas Huber <andih@google.com> Date: Fri Nov 19 14:36:55 2010 -0800 The AVC software decoder now properly advertises the cropping rectangle. Change-Id: Idb7a8a7e2fde5740f0fc34b7e8c92eca2577104b commit 9a7ed23c2fac8ce19dce7a34a603acee945a89f6 Author: Andreas Huber <andih@google.com> Date: Fri Nov 19 13:40:39 2010 -0800 OMXCodec now signals a format change if the cropping rectangle changes. ...and puts the cropping info into its output format. Change-Id: I3ffbd8e877ba286fe06a82c536ef20d92548d2e2 commit efe0323947029df1c502599ccc288c8d676dfd31 Author: Andreas Huber <andih@google.com> Date: Fri Nov 19 11:29:39 2010 -0800 Stagefright's MetaData object now supports rectangle items. Change-Id: I5667bb5ee6622c76104b99fb57f60abb802a8504 Change-Id: I27cb78f2c5e0353f95fdfc5cb53991949ed75b70
* Remove all traces of legacy renderer support in stagefright.Andreas Huber2010-11-162-153/+0
| | | | Change-Id: I17b8e0dbf53fca37c96830c41131b4bc0c24ca6d
* OMX extension to support storing meta data in video input buffers during ↵James Dong2010-10-212-0/+36
| | | | | | | | recording bug - 3042125 Change-Id: I7543809fa4ff61d48da35eec6c2bd5eaa7e8cead
* Merge fb474872 from gingerbread-plus-aospJean-Baptiste Queru2010-10-182-1/+5
|\ | | | | | | Change-Id: I1bbb845a86a7b7df44ea175df3af22e5f47c44e3
| * Include the framework copy of the OpenMAX headers instead of referencing ↵Andreas Huber2010-10-152-1/+5
| | | | | | | | | | | | | | external/opencore. Change-Id: I762f59acf5e1f770e4d7c2d89af362bfffebefa6 related-to-bug: 3101573
| * Raise the amount of memory set aside for omx buffer allocations in the test ↵Andreas Huber2010-09-221-1/+1
| | | | | | | | | | | | harness to accomodate the new requirements of some codecs. Change-Id: I73974a336852974e2fb95a9626c1a96f296449eb
* | Merge "Raise the amount of memory set aside for omx buffer allocations in ↵Andreas Huber2010-09-221-1/+1
|\ \ | | | | | | | | | the test harness to accomodate the new requirements of some codecs." into gingerbread
| * | Raise the amount of memory set aside for omx buffer allocations in the test ↵Andreas Huber2010-09-221-1/+1
| |/ | | | | | | | | | | harness to accomodate the new requirements of some codecs. Change-Id: I0650af10acb3097e9f03c6079992305540b6bc86
* | am 7bc600cb: am f98197a7: Make sure the message dispatcher stays around ↵Andreas Huber2010-09-171-3/+5
|\ \ | |/ | | | | | | | | | | | | | | 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. Merge commit '7bc600cb08394e60eef984843976d4f79e5d94e8' * commit '7bc600cb08394e60eef984843976d4f79e5d94e8': 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.
| * Make sure the message dispatcher stays around until after OMX_FreeHandle is ↵Andreas Huber2010-09-171-3/+5
| | | | | | | | | | | | finished in case it posts some more messages during shutdown. Clear the source as soon as possible in OMXCodec's destructor. Change-Id: I9c896cf07dea0c3201b6f074dbaf27e6d85cd784
* | Add the new Stagefright ANativeWindow OMX codec API.Jamie Gennis2010-09-032-2/+110
| | | | | | | | | | | | | | | | | | | | | | This change defines the two OMX_SetParameter calls that enable OMX codecs to interact with ANativeWindows. It also adds the plumbing to the IOMX, OMX, and OMXNodeInstance classes to use these new APIs. This is try 2 for this change, after reverting the first one because it broke the build. Change-Id: I94249b72bdb5d5719360f03d7935fcca4ece5028
* | Revert "Merge "Add the new Stagefright ANativeWindow OMX codec API.""Jamie Gennis2010-09-012-99/+2
| | | | | | | | | | This reverts commit 8a643b411e1802977f742709113ce01b06a18e12, reversing changes made to 73ea9beaf8eb3d0027e78cbc0ac5e626c3f8deb4.
* | Add the new Stagefright ANativeWindow OMX codec API.Jamie Gennis2010-09-012-2/+99
| | | | | | | | | | | | | | | | This change defines the two OMX_SetParameter calls that enable OMX codecs to interact with ANativeWindows. It also adds the plumbing to the IOMX, OMX, and OMXNodeInstance classes to use these new APIs. Change-Id: Ibfbf893dc3513db0b3d3221bec5708c77287cddc
* | Squashed commit of the following:Andreas Huber2010-08-231-0/+5
|/ | | | | | | | | | | | | | | | | | | | | | commit 35cc68814a9537c31fde146e171e7b0bbdfe211e Author: Andreas Huber <andih@google.com> Date: Mon Aug 16 08:48:42 2010 -0700 Only enable support for yuv to yuv conversion on passion, where it's available, use the slower yuv->rgb565 path everywhere else. commit d8ac5a8814103e60d11d2acf61997fc31a1dc58d Author: Andreas Huber <andih@google.com> Date: Fri Aug 13 13:56:44 2010 -0700 The software renderer takes over all rendering, converting from yuv to yuv if possible and rgb565 otherwise. commit 684972074b74318bdcb826ed9b5b0864d2d2e273 Author: Andreas Huber <andih@google.com> Date: Fri Aug 13 09:34:35 2010 -0700 A first shot at supporting the new rendering APIs. Change-Id: Iea9b32856da46950501f1a700f616b5feac710fd
* Make sure the OMX callback thread is properly shutdown after the node goes away.Andreas Huber2010-07-071-0/+9
| | | | Change-Id: Ib0b25855b0dfc191e5529193b4cb519f644a8412
* Remove most stagefright property overrides, remove VorbisPlayer and ↵Andreas Huber2010-06-231-6/+0
| | | | | | | VorbisMetadataRetriever as this functionality is now provided by stagefright. Change-Id: Ieafe75a4550c273ad59b4518d7cd4c0fce0f7cce related-to-bug: 2370115
* Properly assign LOG_TAGs in OMXMaster.cpp and MediaScanner.cppAndreas Huber2010-06-231-0/+4
| | | | | Change-Id: I863651619f84b2b66e9a926ce1fef8ce6a53a42d related-to-bug: 2639116
* This patch enables each omx instance to have a separate message dispatcher, andJames Dong2010-06-141-10/+17
| | | | | | | | | | | | | | | | | | thus eliminates the sharing of the message dispatches between omx instances. If the omx audio and video encoders share the same dispatcher, when the audio read blocks in the AudioSource, the message dispatcher thread gets blocked. As a result, the message for the omx video encoder can not be dispatched, hence gets blocked too. If the blocking time is long enough, the video frame rate decreases significantly. This is the case when we read 2048 bytes by default each time. Reading smaller blocks of audio data helps mitigate the above-mentioned problem, but it is not an ideal solution for two reasons: a) it is not efficient, and thus can cause a lot of overhead passing buffers between the frame work and the omx encoders; b) also, the audio record thread can overflow as a result, which lead to the loss of recorded audio frames. This patch affects both authoring engine and the playback engine. Change-Id: I26dfde7ac46c8752cf1793ce1bfcc7be7724580e
* am 2a1674b1: am 2d315667: For issue #2651381, allow library prelinking.Dan Bornstein2010-05-051-2/+0
|\ | | | | | | | | | | | | Merge commit '2a1674b1d00fda68980ec834d6ce61aacd379bc8' into kraken * commit '2a1674b1d00fda68980ec834d6ce61aacd379bc8': For issue #2651381, allow library prelinking.
| * For issue #2651381, allow library prelinking.Dan Bornstein2010-05-051-2/+0
| | | | | | | | Change-Id: I119348b55ad0015a286e9c94709977cd1973a7e1
* | Various fixes to enable recording on passion and nexus1.Andreas Huber2010-04-091-0/+6
|/ | | | Change-Id: I75a461c9882e2449082ad754ee7b231c1ceec039
* Tweak the omx tests to always do a seek-beyond-EOS on the first iteration, ↵Andreas Huber2010-03-181-3/+14
| | | | | | | followed by a linear read on the second iteration. Change-Id: I16fc9e42ee9f8e4cb120ab41364cae6dd4544634 related-to-bug: 2338792
* Properly handle errors during the codec configuration phase, attempt to ↵Andreas Huber2010-03-161-1/+9
| | | | | | | revert to next available (likely software-) codec if configuration fails. Change-Id: Id1c699711e30139c9cc29df972254b5ba026e6fb related-to-bug: 2517098
* Fixing the sim build.Andreas Huber2010-03-151-1/+2
| | | | Change-Id: I307f6d59f473471adcf855e66b4e8275ab1b3b74
* Boost OMX callback dispatcher thread priority to prevent audio playback ↵Andreas Huber2010-03-121-0/+7
| | | | | | | stuttering under increased system load Change-Id: I1b5339b4d39bd964f286cdf1369d0e0492a465d7 related-to-bug: 2492002
* Properly unload the renderer shared library after the renderer goes away.Andreas Huber2010-02-221-5/+38
|
* During shutdown, don't loop forever on a state transition to OMX_StateInvalid.Andreas Huber2010-02-081-2/+8
| | | | related-to-bug: 2420917
* When the extractor is not able to be created successfully, don't crashJames Dong2010-02-041-1/+7
|
* Simplify the MemoryDealer implementationMathias Agopian2010-01-291-1/+1
| | | | | | | | | | | | | | At some point the implementation became complicated because of SurfaceFlinger's special needs, since we are now relying on gralloc we can go back to much simpler MemoryDealer. Removed HeapInterface and AllocatorInterface, since those don't need to be paramterized anymore. Merged SimpleMemory and Allocation. Made SimplisticAllocator non virtual. Removed MemoryDealer flags (READ_ONLY, PAGE_ALIGNED) Removed a lot of unneeded code.
* Support the specification of additional HTTP headers in the creation of a ↵Andreas Huber2010-01-281-2/+12
| | | | | | DataSource. related-to-bug: 2393577
* The qcom OMX video decoders do not allocate output buffer memory at the time ↵Andreas Huber2010-01-251-0/+1
| | | | OMX_AllocateBuffer is called, wait until we received the first FILL_BUFFER_DONE notification until we rely on the buffer data ptr.
* Fix no-copy-overhead OMXCodec implementation to actually work.Andreas Huber2010-01-202-3/+5
|
* Avoid unnecessary buffer copying if at all possible, detect if running in ↵Andreas Huber2010-01-191-0/+4
| | | | the mediaserver process.
* Merge "Remove totally unused code from OMX.cpp"Andreas Huber2010-01-191-44/+0
|\
| * Remove totally unused code from OMX.cppAndreas Huber2010-01-191-44/+0
| |
* | Make sure the seek test attempts to seek on the very first iteration, as ↵Andreas Huber2010-01-141-2/+2
|/ | | | this appears to be a special case that decoders frequently get wrong.
* Add missing shared libraries in linker commands. Currently these libraries areDoug Kwan2009-12-221-1/+1
| | | | linked implicitly via dependencies of other shared libraries.
* Squashed commit of the following:Andreas Huber2009-12-176-27/+976
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 144b1c40e9cf08a584c50e1bef7ba3f287e81a4f Author: Andreas Huber <andih@google.com> Date: Wed Dec 16 09:28:23 2009 -0800 This H264 file shows a certain problem even better. commit 3245f1f3b7471975aeeb824a756c987abd610f55 Author: Andreas Huber <andih@google.com> Date: Wed Dec 16 09:20:08 2009 -0800 Using only the QA testfiles now. commit 074817eb3816c5dd70858a3594e3b92d799d873b Author: Andreas Huber <andih@google.com> Date: Tue Dec 15 16:17:39 2009 -0800 Yay, roles are back again now that the API is in place. commit 6d847e4932cc38301ae27cb7283b7f1553a95457 Author: Andreas Huber <andih@google.com> Date: Tue Dec 15 13:01:20 2009 -0800 Added commandline option for specifying the random seed for reproducable tests. commit 62ab37b26336eaa67e49791c41c996acb6acee3f Author: Andreas Huber <andih@google.com> Date: Mon Dec 14 10:53:27 2009 -0800 When issuing a seek it is important that only the first MediaSource::read call has the seek option. commit e77c46644b2fb6862bafa3569f7d304252074f1e Author: Andreas Huber <andih@google.com> Date: Mon Dec 7 16:39:07 2009 -0800 Make sure the tests are actually built, sp<OMXCodec> becomes sp<MediaSource> commit 6df56915bd55a9445b3c6f953d3cc251d81579b8 Author: Andreas Huber <andih@google.com> Date: Thu Dec 3 14:25:36 2009 -0800 Temporarily disable support for querying the roles of OMX components. commit 31bb26930df9e3658dea684cedb4b0f1a06a4a88 Author: Andreas Huber <andih@google.com> Date: Tue Dec 1 13:36:52 2009 -0800 Disregard EOS events, slightly change the way the EOS flag on output buffers is handled. commit 4c382fbc9aebee8197d5988d04378062809e7c48 Author: Andreas Huber <andih@google.com> Date: Tue Dec 1 09:37:24 2009 -0800 New random seek test for the codec tests. Fixed "sticky" end-of-output-buffers flag behaviour in OMXCodec. commit c762eac3e44309592b61a168d66e091cf609fa03 Author: Andreas Huber <andih@google.com> Date: Tue Nov 3 14:13:43 2009 -0800 Fix a typo. commit 50540a59b65c7d476b0193c7494cd75895e6ca6d Author: Andreas Huber <andih@google.com> Date: Tue Nov 3 09:48:35 2009 -0800 Some more fine tuning of the unit tests, make MPEG4Extractor less verbose. commit 1157a7e52a0636706caa235abe16d2ff8a0b8140 Author: Andreas Huber <andih@google.com> Date: Wed Oct 28 12:01:01 2009 -0700 Changes to the IOMX::listNodes API, this now returns the component's roles as well, unit tests now test all components in all supported roles by default. commit 30fbf2d8c6cb927689f7ba75eb550a81e9df488a Author: Andreas Huber <andih@google.com> Date: Mon Oct 26 09:45:26 2009 -0700 Initial check-in of unit tests for OMX components.
* Add a new API to support determining the roles of an OMX component specified ↵Andreas Huber2009-12-158-134/+95
| | | | by name. Remove unneeded OMXSoftwareCodecsPlugin.
* AwesomePlayer now renders either remote (IOMXRenderer) or locally depending ↵Andreas Huber2009-12-143-376/+2
| | | | on what kind of decoder was instantiated. Split off color conversion code into its own shared library.
* Initial checkin of stagefright MP3 audio decoder based on PV source code.Andreas Huber2009-12-075-411/+1
|
* Enable proper cleanup of OMX nodes managed through stagefright.Andreas Huber2009-12-048-18/+59
|
* Two more uses of strlcpy that break the sim build. Now fixed.Andreas Huber2009-12-031-2/+2
|
* Apparently strlcpy is not part of a standard linux distribution... ↵Andreas Huber2009-12-031-1/+2
| | | | Unbreaking the sim build.
* Squashed commit of the following:Andreas Huber2009-12-0314-20/+1178
| | | | | | | | | | | | | | commit 543e192bf2ae13f573dc4c4e53b239ed4ea00e81 Author: Andreas Huber <andih@google.com> Date: Thu Dec 3 11:33:57 2009 -0800 stagefright now acts as the OMX Master, vendors supply their own plugins through libstagefrighthw. In OpenCore-enabled builds we now sit on top of PVMaster... commit 3cbfdbd9cecadbb77b63125c62883bf1065884fe Author: Andreas Huber <andih@google.com> Date: Wed Dec 2 12:39:07 2009 -0800 More OMX infrastructure, stagefright is now taking over the OMX Master, multiplexing all contributing OMX implementations under a common interface.
* resolved conflicts for merge of c66d53f9 to eclair-mr2Andreas Huber2009-11-124-301/+35
|\
| * Delegate the platform dependent hardware renderer implementation to a shared ↵Andreas Huber2009-11-125-300/+36
| | | | | | | | library provided by the vendor.
| * DO NOT MERGE: Squashed commit of the following:Andreas Huber2009-11-054-409/+578
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 08259dd3dc9026887f9bbfedaf45866eb56ea9bc Author: Andreas Huber <andih@google.com> Date: Thu Nov 5 12:02:31 2009 -0800 DO NOT MERGE: Use PV for metadata extraction even if stagefright is used for playback. commit 991832fe4dc012e51d3d9ed8d647c7f09991858f Author: Andreas Huber <andih@google.com> Date: Thu Nov 5 11:24:11 2009 -0800 DO NOT MERGE: Do not assert if we encounter OMX_StateInvalid. All bets are off though. commit cec45cf302d9218fe79956cbe8a462d7ca3a10bb Author: Andreas Huber <andih@google.com> Date: Mon Oct 26 16:11:54 2009 -0700 DO NOT MERGE: When freeing an OMX node, attempt to transition it from its current state all the way to "Loaded" in order to properly free any allocated buffers. commit 34a1e885ef9113d68acbc26d36fcc47fdebbed84 Author: Andreas Huber <andih@google.com> Date: Thu Nov 5 11:10:49 2009 -0800 DO NOT MERGE: Fix heap corruptin in OMXNodeInstance. commit 5a47f7439a1298b330541a7e4e647a8b44487388 Author: Andreas Huber <andih@google.com> Date: Thu Nov 5 11:08:19 2009 -0800 DO NOT MERGE: Fix seek-on-initial-read behaviour of OMXCodec. commit 45bed64722501b9f411a2940aff5aff4cc4d2e98 Author: Andreas Huber <andih@google.com> Date: Thu Nov 5 11:02:23 2009 -0800 DO NOT MERGE: Renaming string.h to stagefright_string.h to avoid conflicts. commit 6738e306a50196f31a73d4fc7b7c45faff639903 Author: Andreas Huber <andih@google.com> Date: Thu Oct 15 13:46:54 2009 -0700 DO NOT MERGE: Reimplement the OMX backend for stagefright. Besides a major cleanup and refactoring, OMX is now a singleton living in the media server, it listens for death notifications of node observers/clients that allocated OMX nodes and performs/attempts cleanup. Changed APIs to conform to the rest of the system.
* | Handle OMX_StateInvalid in emergency shutdown properly (by ignoring it and ↵Andreas Huber2009-11-061-0/+1
| | | | | | | | hoping for the best) instead of asserting.
* | am 338ccf43: Merge change Id2906ad8 into eclairAndreas Huber2009-11-031-1/+2
|\ \ | |/ | | | | | | | | | | Merge commit '338ccf43b6a4468aea6aa7d831be7d6c8d8d134d' into eclair-mr2 * commit '338ccf43b6a4468aea6aa7d831be7d6c8d8d134d': Fix video flickering by propagating the NO_CACHING flag from the master to MemoryHeapPMem.