summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/omx
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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
* 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.
| * Fix video flickering by propagating the NO_CACHING flag from the master to ↵Andreas Huber2009-11-031-1/+2
| | | | | | | | MemoryHeapPMem.
| * do not merge: The qcom video decoders always output yuv data after adjusting ↵Andreas Huber2009-10-201-0/+5
| | | | | | | | | | | | dimensions to be a multiple of 16. Add a quirk mode to OMXCodec that makes it aware of this fact for proper display. Also integrate back a change from eclair-mr2 that delays releasing an output buffer briefly after posting it to surface flinger, as we don't know how long it'll take it to actually display the buffer's content.
* | When freeing an OMX node, attempt to transition it from its current state ↵Andreas Huber2009-10-262-1/+90
| | | | | | | | all the way to "Loaded" in order to properly free any allocated buffers.
* | Make stagefright a little less verbose. Fix heap corruption for real.Andreas Huber2009-10-231-5/+2
| |
* | Still don't know why the heap gets corrupted, but not deleting the ↵Andreas Huber2009-10-221-1/+2
| | | | | | | | OMXNodeInstance appears to prevent this from happening.
* | Reimplement the OMX backend for stagefright.Andreas Huber2009-10-164-411/+489
| | | | | | | | | | | | 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.
* | Separated private from public header files.Andreas Huber2009-10-134-6/+10
| |
* | Split the ColorConverter off SoftwareRenderer, metadata support in stagefright.Andreas Huber2009-10-084-267/+305
| |
* | Some decoders will return an error on OMX_EmptyThisBuffer to indicate that ↵Andreas Huber2009-10-082-6/+8
| | | | | | | | they don't support the media format, deal with this.
* | Insert a small delay after submitting to surface flinger and before ↵Andreas Huber2009-10-081-0/+5
|/ | | | | | | | returning the buffer to the decoder. Since we cannot tell how long it'll take until surface flinger has displayed the data onscreen, we'll just have to guess... We must not return the buffer to the decoder before it's been displayed.
* Another software color conversion implementation, this time ↵Andreas Huber2009-09-151-0/+75
| | | | OMX_QCOM_COLOR_FormatYVU420SemiPlanar => rgb565.
* Merge change 25128 into eclairAndroid (Google) Code Review2009-09-152-15/+101
|\ | | | | | | | | * changes: Support CbYCrY -> RGB565 color conversion in IOMXRenderer.