summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/foundation
Commit message (Collapse)AuthorAgeFilesLines
* am 474038ae: am 27158eb5: Merge "AArch64: AString::append for longs and ↵Nick Kralevich2014-04-211-21/+21
|\ | | | | | | | | | | | | pointers" * commit '474038aef32f47d080567e8519d916b069a4f707': AArch64: AString::append for longs and pointers
| * AArch64: AString::append for longs and pointersMarcus Oakland2014-04-151-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The AString::append methods for long, unsigned long and void * pointers were using char arrays of 16 elements, which were not long enough for 64-bit longs and pointers in __LP64__ systems. This resulted in "FORTIFY_SOURCE: vsprintf: prevented write past end of buffer. Calling abort()." when the android.media.cts.DecoderTest#testFlush CTS test was run. The AString::append methods that were using sprintf have been modifed to use snprintf instead, taking the sizeof the "s" array (which has been made 32 char without conditional compilation for __LP64__ where appropriate), and checking the return value to ensure that the string has not been truncated. After this change and changes to the types of OMX_U32 and OMX_S32 in the frameworks/native/include/media/openmax/OMX_Types.h header file, the android.media.cts.DecoderTest#testFlush CTS test passes. Change-Id: I76d897373473c82f52986f43a15b050b844a370a Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
| * warnings be gone.Andreas Huber2014-04-112-2/+2
| | | | | | | | | | | | | | | | (cherry picked from commit 84333e0475bc911adc16417f4ca327c975cf6c36) Modified by Mark Salyzyn <salyzyn@google.com> to keep merge conflicts or errors downstream to a minimum. Change-Id: Ic3b272f9cbf3155001aabd2f79728f1bc31de613
* | stagefright: add AString constructor from String8Lajos Molnar2014-04-041-0/+8
| | | | | | | | Change-Id: I85b37b6dee4ea9d5f7f1c1a40ff405a01a0c67f1
* | am c7c839dc: am b2ecad7f: Merge "libstagefright_foundation: fix printf ↵Colin Cross2014-03-181-1/+1
|\ \ | |/ | | | | | | | | | | format for 64-bit" * commit 'c7c839dccf58ab6322c1898cbf1b2332792d2e86': libstagefright_foundation: fix printf format for 64-bit
| * libstagefright_foundation: fix printf format for 64-bitColin Cross2014-03-181-1/+1
| | | | | | | | | | | | | | | | | | | | Fixes build error: frameworks/av/media/libstagefright/foundation/ANetworkSession.cpp:582:131: error: format '%d' expects argument of type 'int', but argument 4 has type 'size_t {aka long unsigned int}' [-Werror=format=] ALOGI("%d datagrams remain queued.", mOutFragments.size()); ^ cc1plus: all warnings being treated as errors Change-Id: I69d1f086b8f1e450f107671c8f8f3ed696d170b4
* | Merge "warnings be gone."Andreas Huber2014-02-112-2/+2
|\ \
| * | warnings be gone.Andreas Huber2014-02-112-2/+2
| |/ | | | | | | Change-Id: Ie3bae3f037730e316d7fca12e7a3527973f752ef
* | Support "data:" URIs again in mediaplayer...Andreas Huber2014-02-111-1/+5
|/ | | | | Change-Id: I6dac35c7e606f738a60f985f6dca977dc92c82a4 related-to-bug: 12957757
* Unregister any handlers still registered on now "dead" ALoopersAndreas Huber2013-07-312-0/+18
| | | | | | | upon the death of an ALooper. Change-Id: I64c0835b8db04486204f3d0fa7173ee53708a116 related-to-bug: 10106648
* ANetworkSession and ParsedMessage are now part of stagefright foundation.Andreas Huber2013-07-183-0/+1716
| | | | | | | | Also fixes some bugs in ParseMessage and adds "WebSocket" mode to ANetworkSession, something that's opt-in and should not affect existing clients of the API. Change-Id: I86d5748e0d818231d85d3590d86c2b41d4f8b1f1
* New HLS implementation supporting independent stream sources, audio-only streamsAndreas Huber2013-05-311-0/+4
| | | | | | and more. Change-Id: Icfc45a0100243b2f7a14a9e65696be45b67d6495
* Add liblogYing Wang2013-04-091-0/+1
| | | | | Bug: 8580410 Change-Id: If493d87d60d71be664ad75b140c62acadb75b0d0
* HLS now properly publishes its "seekable" flags after connectionAndreas Huber2013-02-061-1/+2
| | | | | | | has successfully completed and a sufficient amount of data fetched, and only then signals that preparation is completed. Change-Id: I7684a14238b826909f518f2af506966e522dfcfc
* ALooper::GetNowUs() now relies on systemTime instead of gettimeofday.Andreas Huber2012-10-011-4/+1
| | | | | Change-Id: Ia31eb0940b02581327a8bf51af6df135f9ab6de3 related-to-bug: 7266324
* experimental support for fragmented mp4 playback in nuplayerAndreas Huber2012-08-032-4/+33
| | | | | | cherry picked from change 170999 Change-Id: I407775f0290154ad4961134839a15c9f296424c0
* Add NOTICE and MODULE_LICENSE_APACH2 to libs build under /frameworks/av/James Dong2012-06-132-0/+190
| | | | | Change-Id: I0a3af3e2abdedebd5934f3d941d01c32cfc75e26 related-to-bug: 6647465
* AV Android make files changesJames Dong2012-03-281-1/+1
| | | | | | | o plus a few file relocation: ActivityManager.cpp/h, SoundPool.h, etc o remove some runtime dependencies to libandroid, libandroid_runtime, etc Change-Id: I047a47c5fb361dd5cf85cd98798c39f629a75d10
* Provisional support for secure decryption of media streams.Andreas Huber2012-03-261-0/+10
| | | | Change-Id: Ib3982a9c960bfdb0cb7e1b174440b141b194cfbe
* Fix memory leak when carrying ABuffer* in AMessages.Andreas Huber2012-03-091-0/+6
| | | | Change-Id: Icb4770ca238d316e6dd2d89159357a8fdb504ea9
* Add new APIs AMessage::(set|find)Buffer to make it safer to passAndreas Huber2012-02-221-2/+21
| | | | | | ABuffer objects through messages. Change-Id: I9f8b4e4c4767d0d70a0105e0c0813b754379b49d
* Implementation of a java media codec interface and associated tools.Andreas Huber2012-02-221-0/+16
| | | | Change-Id: I13e54062d4de584355c5d82bb027a68aeaf2923b
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-081-2/+2
| | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
* Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGESteve Block2012-01-062-5/+5
| | | | | | | See https://android-git.corp.google.com/g/157065 Bug: 5449033 Change-Id: I00a4b904f9449e6f93b7fd35eac28640d7929e69
* Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGESteve Block2012-01-041-1/+1
| | | | | | | See https://android-git.corp.google.com/g/156801 Bug: 5449033 Change-Id: Ib08fe86d23db91ee153e9f91a99a35c42b9208ea
* Fix Bitreader "putBits" implementation, make sure we emulate timestampsAndreas Huber2011-12-081-1/+7
| | | | | | | if we don't receive npt time mapping from the rtsp server (i.e. live stream) Change-Id: I5147d665bd90c9a303ad6ffdafbf770f930f917c related-to-bug: 5660357
* Various improvements to nuplayer playbackAndreas Huber2011-09-161-0/+9
| | | | | | | | | | | | | | | | | | | | - Drastically cut down the number of times we supply the AudioSink with data by estimating the time until the sink would run out of data and then scheduling a refill in advance of that. - Use a dedicated looper for video decoders since they are currently taking too long to return from OMX_FillThisBuffer (bug 5325201) - Revise thread priorities for the OMX dispatcher and software codecs, instead of running them at ANDROID_PRIORITY_AUDIO, they now only run at ANDROID_PRIORITY_FOREGROUND - Since threads created by pthread_create inherit all of the parent threads attributes including thread priority, briefly reset thread priority to ANDROID_PRIORITY_FOREGROUND before instantiating OMX components and then restore it. Change-Id: If9332a3a20dad5485333d68c11de0d2d5d3fffc3
* Support for posting messages and synchronously waiting for a response.Andreas Huber2011-08-252-6/+68
| | | | Change-Id: Id6c7a08c34fd5cb6c4632f78ece9e7898b29e52c
* Make sure we don't trigger a log warning if calling ALooper::stop() from the ↵Andreas Huber2011-03-291-2/+21
| | | | | | | looper thread. Change-Id: I669d589ab4521fe44a3e8f638c7ce8e79174d625 related-to-bug: 4179898
* 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
* | frameworks/base: remove LOCAL_PRELINK_MODULEIliyan Malchev2011-03-141-1/+1
|/ | | | | Change-Id: I54dd62ebef47e7690afa5a858f3cad941b135481 Signed-off-by: Iliyan Malchev <malchev@google.com>
* Support more MPEG4-LATM audio functionality.Andreas Huber2011-02-221-3/+1
| | | | | | | related-to-bug: 3474610 Change-Id: I6dab40e8b465922c62be9ee7f168718822c6caac Now skipping extra header that the spec claimed shouldn't be present in LATM...
* NuPlayer now properly sends MEDIA_SET_VIDEOSIZE notifications.Andreas Huber2011-01-101-0/+28
| | | | | Change-Id: I99b4223ad6ecfd8839a3c0e737fef3165565d76d related-to-bug: 3336496
* Properly announce decoder output format changes, make sure AMessage::dup does.Andreas Huber2010-12-161-1/+10
| | | | Change-Id: Ia77f6b6d5e5c5055583740dfe876b8a3c22be9b6
* Initial support for a true streaming player for mpeg2 transport streams.Andreas Huber2010-12-152-10/+108
| | | | Change-Id: I153eec439d260a5524b21270e16d36940ec3161a
* API Support for both synchronous and queued commands, optionally associated ↵Andreas Huber2010-12-062-7/+134
| | | | | | metadata. Change-Id: Idb90d64cb638942210c5822b3cba2f05b087d601
* 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
* Remove stagefright foundation's incompatible logging interface and update ↵Andreas Huber2010-09-214-85/+11
| | | | | | callsites. Change-Id: I45fba7d60530ea0f233ac3695a97306b6dc1795c
* ALoopers can now be named (useful to distinguish threads).Andreas Huber2010-08-271-1/+6
| | | | Change-Id: Ieabaddb2e3a9e3a7a5bc36e55cd0721b60dbd50e
* In the absence of width/height information in the sdp, extract the ↵Andreas Huber2010-08-192-0/+99
| | | | | | dimensions from the avc codec specific data. Change-Id: I98c4194593c7e6e24f6fc339c862245111800293
* Various changes to improve rtsp networking, reduce packet loss and adapt to ↵Andreas Huber2010-07-221-2/+3
| | | | | | ALooper API changes. Change-Id: I110e19d5ce33e597add3ffbd3e3ff3815862396d
* ALooperRoster no longer holds strong references to handlers and loopers.Andreas Huber2010-07-071-6/+38
| | | | Change-Id: I038d69b0a34eda1bfc5216d92c837a5ddf4fb802
* Merge "An AHandler can now find its associated ALooper." into gingerbreadAndreas Huber2010-07-073-0/+46
|\
| * An AHandler can now find its associated ALooper.Andreas Huber2010-07-023-0/+46
| | | | | | | | Change-Id: Ic7087b8dcbc0d9abda272df0cb01b04b006f82ad
* | Merge "Add an option to ALooper::start that allows it to call back into java ↵Andreas Huber2010-07-021-4/+5
|\ \ | |/ |/| | | or not." into gingerbread
| * Add an option to ALooper::start that allows it to call back into java or not.Andreas Huber2010-07-021-4/+5
| | | | | | | | Change-Id: Iec172901a04a575d8d350bd162565f04677c3f26
* | Added AMessage::debugString() for debugging purposes.Andreas Huber2010-07-011-0/+103
|/ | | | Change-Id: Id43ffd2c56d659dc29f37e277f8c7b38f11c1591
* Initial checkin of "foundation" library for future stagefright development.Andreas Huber2010-06-0710-0/+1334
Change-Id: I11714dcaa647d0437a13e4c5b953b35e712da8f3