summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/foundation
Commit message (Collapse)AuthorAgeFilesLines
* stagefright: don't use ALooperRoster mutex for reply handlingLajos Molnar2015-03-103-43/+74
| | | | | | | | Change replyID-s from uint32_t to an object Move reply handling into the loopers (to reuse a common mutex) Bug: 19607784 Change-Id: Iaa035b846c424c5687ed17ce1079b325e86c54be
* stagefright: remove AMessage methods using id()Lajos Molnar2015-03-052-28/+0
| | | | | Bug: 19607784 Change-Id: I4b2ca396fb50cde5e7dc9801add69037febe698d
* stagefright: use handler instead of handler-id in AMessageLajos Molnar2015-03-054-93/+82
| | | | | | | This avoids locking gLooperRoster mutex on post() and deliver(). Bug: 19607784 Change-Id: If6d9d7884dbb08fc390983bda896d223803476ba
* am a963dacc: am 64753517: Merge "Add dumpsys info"Marco Nelissen2015-02-181-0/+82
|\ | | | | | | | | * commit 'a963dacc1b44ec80742c86ce75611eb9cfa936ea': Add dumpsys info
| * Add dumpsys infoMarco Nelissen2015-02-181-0/+82
| | | | | | | | | | | | | | | | Print a list of looper-handler pairs and the number of messages they've processed, and optionally break those stats out by message type. Change-Id: I68ce4a7003152d5c9b5cb3f42e6f3949b471aa6e
* | Track change of IInterface::asBinder from instance method to static methodBrian Carlstrom2015-02-091-1/+1
| | | | | | | | Change-Id: Iee262d4223ec3c61dab5ca8d9d7e4a14795da1c3
* | am 4fc5d758: am 0c11f31b: Merge "nuplayer: acquire wakelock during offload ↵Lajos Molnar2015-02-102-1/+112
|\ \ | | | | | | | | | | | | | | | | | | pause timeout" into lmp-mr1-dev * commit '4fc5d758d6722bedf341e5d93a0ba5698c658c29': nuplayer: acquire wakelock during offload pause timeout
| * | nuplayer: acquire wakelock during offload pause timeoutWeiyin Jiang2015-02-062-1/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hold a wakelock while paused in audio offload mode, until audio teardown event is received, or pause is canceled. Since ARM cores are sleeping, the delayed AMessage will not be received, and the audio output driver will not be closed. This blocks XO shutdown. Bug: 19297092 Change-Id: I3d11fef633e3f2783f4aa31e71285e2fa09d234c
* | | am 6a025acb: am ec0472ba: Merge "Move AString\'s StringPrintf out of the way."Elliott Hughes2015-02-043-19/+19
|\ \ \ | |/ / |/| / | |/ | | * commit '6a025acb630a3ac4a84715d188aeb48f1946bc3f': Move AString's StringPrintf out of the way.
| * Move AString's StringPrintf out of the way.Elliott Hughes2015-02-043-19/+19
| | | | | | | | | | | | | | | | | | We should come back and replace AString with std::string and switch to the "real" StringPrintf family, but this fixes the ODR violation that was preventing us from booting. Bug: 19265750 Change-Id: I798eb9ca5dd634e44625af5e583439ef9f0cdc35
* | stagefright: add runtime debug supportLajos Molnar2014-11-123-0/+197
|/ | | | | Bug: 18285408 Change-Id: I56346f4652b2c5f7ef5fa3003fd8676051339384
* NuPlayer: Fix decoder error handlingAndy Hung2014-09-241-1/+1
| | | | | | | | | | Upon error, release MediaCodec after flushing data. Report errors when they occur with ALOGE. Fix onInputBufferFilled mInputBufferIsDequeued check. Bug: 17423087 Bug: 17622642 Change-Id: I316601a19d5ec95cf8e14f5bc0418a05ec423041
* MediaBuffer: ABuffer will release MediaBuffer when it's destructed.Wei Jia2014-09-191-2/+21
| | | | | Bug: 17454455 Change-Id: Ia423bcc2e1fa39137f114eac44912ed15357bb99
* stagefright: don't use AAtomizer in AMessageLajos Molnar2014-09-101-30/+93
| | | | | Bug: 15094301 Change-Id: Ib82fb6d8fb6b48402d81f411123b3d924368eb93
* Move stale handler cleanup to constructorMarco Nelissen2014-08-281-4/+4
| | | | | | | | This avoids the potential side effect of deleting more ALoopers inside the cleanup loop. Bug: 17059501 Change-Id: I41efaf490449b95fedfe01175f3b19067d50da24
* Fix more potential deadlocks in ALooperRosterMarco Nelissen2014-08-281-29/+12
| | | | | Bug: 17059501 Change-Id: I242f2859527bed2d6e275c27de94fb19f4dcdc28
* Fix potential deadlock in unregisterStaleHandlers()Marco Nelissen2014-08-271-7/+19
| | | | | | | | | | | | | The scenario is that a call to unregisterStaleHandlers() is in progress, and is holding a temporary sp<ALooper> reference to an active ALooper inside of the loop. At this point the only other remaining external reference to the ALooper goes away, so the temporary sp<ALooper> in the loop is now the only reference keeping that object alive. When the loop iterates and the sp<> goes out of scope, the ALooper destructor is called, which in turn calls unregisterStaleHandlers again, resulting in a recursive lock. Bug: 17300093 Change-Id: I116f2ffab4ae7c43b6bcf54a367ae6f9d77c9626
* libstagefright: foundation: Add syntactic sugar to the cast.Sasha Levitskiy2014-08-081-1/+1
| | | Change-Id: I0b6b3ae440addd4891c26b0639bd6e647a7b031e
* libstagefright_foundation: fix buildColin Cross2014-08-071-1/+1
| | | | Change-Id: If61766efa8834df175bd5758c760344364458d4a
* stagefright: add AString parceling, and equal/compareIgnoreCaseLajos Molnar2014-08-071-0/+24
| | | | | Bug: 11990470 Change-Id: If43ada5d2e768931f4409e499eaa268edade0500
* stagefright: add ABuffer.CreateAsCopyLajos Molnar2014-07-251-0/+8
| | | | | Bug: 10706245 Change-Id: I8c4e96a2581a039e9e8237c3e09e2c22226da055
* Add MediaCodecList capabilitiesLajos Molnar2014-07-181-0/+19
| | | | | Bug: 12065651 Change-Id: Icfb73c0009621cd747e113d8a0cd84c966bf055d
* Merge "handle emulation_prevention_three_bytes for AVC"Chong Zhang2014-07-081-0/+68
|\
| * handle emulation_prevention_three_bytes for AVCChong Zhang2014-07-081-0/+68
| | | | | | | | | | bug: 15917805 Change-Id: I824fe7eea807f8faba6b149c31890b7a5df87825
* | Merge "AString: add startsWithIgnoreCase and endsWithIgnoreCase"Lajos Molnar2014-07-081-0/+14
|\ \
| * | AString: add startsWithIgnoreCase and endsWithIgnoreCaseLajos Molnar2014-06-181-0/+14
| |/ | | | | | | Change-Id: I340159aa14d4d3d28ea675c6c5b8a82f7e731069
* | stagefright: create CodecBase interface (abstract class)Lajos Molnar2014-07-071-1/+1
|/ | | | | | | This abstracts out the ACodec dependency in MediaCodec. Bug: 11784825 Change-Id: I0aa8b56c6414865fd4b0646e2c5bd1b62d030682
* am 6b787cb8: am 1b8b8793: am 3059e27d: Merge "libstagefright foundation: fix ↵Andreas Huber2014-05-161-1/+1
|\ | | | | | | | | | | | | uninitialized varibale warning" * commit '6b787cb8ddde9d411cab0964062d5d942a710ff8': libstagefright foundation: fix uninitialized varibale warning
| * libstagefright foundation: fix uninitialized varibale warningAmit Pundir2014-05-151-1/+1
| | | | | | | | | | | | | | | | gcc-4.9 reports warning for this uninitialized variable and -Werror make this warning fatal. Change-Id: I6901362246d53deeded78fa38ad656b167705346 Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
* | 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