summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/foundation/AMessage.cpp
Commit message (Collapse)AuthorAgeFilesLines
* stagefright: fix AMessage::FromParcelFlanker2015-09-241-3/+25
| | | | | | | | | | | Add check for incoming mNumItems. Also add check readCString return value. Fix style & add log. Bug: 24123723 Change-Id: If41a5312c27d868f481893eef56019b6807c39b7
* stagefright: don't use ALooperRoster mutex for reply handlingLajos Molnar2015-03-101-8/+45
| | | | | | | | 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-051-12/+0
| | | | | Bug: 19607784 Change-Id: I4b2ca396fb50cde5e7dc9801add69037febe698d
* stagefright: use handler instead of handler-id in AMessageLajos Molnar2015-03-051-7/+48
| | | | | | | This avoids locking gLooperRoster mutex on post() and deliver(). Bug: 19607784 Change-Id: If6d9d7884dbb08fc390983bda896d223803476ba
* Move AString's StringPrintf out of the way.Elliott Hughes2015-02-041-15/+15
| | | | | | | | | 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
* 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
* stagefright: don't use AAtomizer in AMessageLajos Molnar2014-09-101-30/+93
| | | | | Bug: 15094301 Change-Id: Ib82fb6d8fb6b48402d81f411123b3d924368eb93
* Add MediaCodecList capabilitiesLajos Molnar2014-07-181-0/+19
| | | | | Bug: 12065651 Change-Id: Icfb73c0009621cd747e113d8a0cd84c966bf055d
* experimental support for fragmented mp4 playback in nuplayerAndreas Huber2012-08-031-2/+14
| | | | | | cherry picked from change 170999 Change-Id: I407775f0290154ad4961134839a15c9f296424c0
* 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
* 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-251-2/+23
| | | | Change-Id: Id6c7a08c34fd5cb6c4632f78ece9e7898b29e52c
* 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
* API Support for both synchronous and queued commands, optionally associated ↵Andreas Huber2010-12-061-0/+134
| | | | | | metadata. Change-Id: Idb90d64cb638942210c5822b3cba2f05b087d601
* 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-071-0/+241
Change-Id: I11714dcaa647d0437a13e4c5b953b35e712da8f3