summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/MediaCodecSource.cpp
Commit message (Collapse)AuthorAgeFilesLines
* stagefright: don't use ALooperRoster mutex for reply handlingLajos Molnar2015-03-101-4/+4
| | | | | | | | 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
* media: switch to new AMessage handlingLajos Molnar2015-03-051-12/+10
| | | | | Bug: 19607784 Change-Id: I94cddcb81f671422ad4982a23dc4acfe57a9f1aa
* Stagefright: use MediaCodec in async mode for recordingPraveen Chavan2014-11-121-164/+105
| | | | | | | | | Async mode reduces the number of messages posted between MediaCodec and MediaCodecSource. This reduces thread wakeups and helps reduce CPU utilization. Bug: 18246026 Change-Id: I4b0837f309fdd12e323c1dfa72525f5a31971a03
* MediaRecorder: only dequeue available buffers from MediaCodecChong Zhang2014-10-031-5/+14
| | | | | Bug: 17514968 Change-Id: If232f92d163deb2440b927315c69e0c4d51ca290
* MediaBuffer: ABuffer will release MediaBuffer when it's destructed.Wei Jia2014-09-191-16/+3
| | | | | Bug: 17454455 Change-Id: Ia423bcc2e1fa39137f114eac44912ed15357bb99
* MediaCodecSource: stop puller from caller's thread instead of looperChong Zhang2014-08-041-32/+42
| | | | | | | | | | | | | | | | | | | | Currently CameraSource/AudioSource's stop() and read() are both called from the puller's looper. This works if source operates normally (i.e. read() returns regularly before source is stopped), as the stop() will eventually be handled by the looper. However, if for some reason the source hang, it will get stuck in read(), and the stop() will never be processed, which could lead to ANR (in addition to the source hang). We need to move the source's stop out of the puller's looper. It also can't be on MediaCodecSource's looper, because the source's stop synchrounously waits for all outstanding buffers to return, these are only returned when MediaCodecSource's looper processes the buffer. This change moves the stop to MediaCodecSource::stop, after encoder is shutdown. Bug: 16522726 Change-Id: Ie91f563c5d8a98ab091bf1945af4e51f662b9403
* libstagefright: 64-bit compile warningsMark Salyzyn2014-06-261-2/+5
| | | | Change-Id: I3d1146714fa23be3d4e696599b6f70cac1f9d28b
* warnings be gone.Andreas Huber2014-02-111-2/+2
| | | | Change-Id: Ie3bae3f037730e316d7fca12e7a3527973f752ef
* Change StagefrightRecorder to use MediaCodecChong Zhang2014-02-051-0/+881
Bug: 12305192 Change-Id: I72d7cb571be5bd348b58ad650f3269d24c15d350