summaryrefslogtreecommitdiffstats
path: root/include/media/stagefright
Commit message (Collapse)AuthorAgeFilesLines
* stagefright: preserve output format flags on format changeLajos Molnar2014-12-051-0/+1
| | | | | | | | Some flags are only set in configure, and get lost when output format changes. Bug: 17383204 Change-Id: I2011bce70920c4ee46fccc378da3b428f3395c11
* Merge "stagefright: add runtime debug support" into lmp-mr1-devLajos Molnar2014-11-142-0/+66
|\
| * stagefright: add runtime debug supportLajos Molnar2014-11-122-0/+66
| | | | | | | | | | Bug: 18285408 Change-Id: I56346f4652b2c5f7ef5fa3003fd8676051339384
* | Merge "Stagefright: use MediaCodec in async mode for recording" into lmp-mr1-devChong Zhang2014-11-131-4/+0
|\ \ | |/ |/|
| * Stagefright: use MediaCodec in async mode for recordingPraveen Chavan2014-11-121-4/+0
| | | | | | | | | | | | | | | | | | 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
* | Add a BufferItem parameter to onFrameAvailableDan Stoza2014-11-041-1/+1
|/ | | | | | | | Passes the BufferItem for the queued buffer to the onFrameAvailable callback so the consumer can track the BufferQueue's contents. Bug: 18111837 Change-Id: If9d07229c9b586c668e5f99074e9b63b0468feb0
* Merge "stagefright: try to free codec instance if MediaCodec.release hangs" ↵Lajos Molnar2014-10-221-0/+1
|\ | | | | | | into lmp-dev
| * stagefright: try to free codec instance if MediaCodec.release hangsLajos Molnar2014-10-211-0/+1
| | | | | | | | | | Bug: 18033275 Change-Id: If86cd26566d7b75941976f37829bbec619800778
* | Stagefright: MediaCodec: shutdown allocated codec on errorPraveen Chavan2014-10-211-0/+1
|/ | | | | | | | | | | | If MediaCodec sees a fatal error and transitions to UNINITIALIZED state, The codec may still be alive (with an exception of 'mediaserver-died' error). Handle Shutdown of the codec during release(). Bug: 17784012 Bug: 18033275 Change-Id: I891e036499d9b440a57f77fb735a5ba4da9a6e43
* Merge "stagefright: do not allocate output buffers for tunneled playback" ↵Rachad2014-10-071-0/+2
|\ | | | | | | into lmp-dev
| * stagefright: do not allocate output buffers for tunneled playbackRachad2014-09-281-0/+2
| | | | | | | | | | | | | | Do not allocate native window buffers for tunneled video playback codecs. Bug: 17112525 Change-Id: I262d8030a9df6188938fde5d62ebce8faf7dba1f
* | MediaRecorder: only dequeue available buffers from MediaCodecChong Zhang2014-10-031-1/+1
| | | | | | | | | | Bug: 17514968 Change-Id: If232f92d163deb2440b927315c69e0c4d51ca290
* | mediarecorder: set level if setting default profileLajos Molnar2014-10-021-2/+8
| | | | | | | | | | Bug: 17676461 Change-Id: If01ccd09935945d330de0842be95c3544951b6b9
* | stagefright: move math templates into AUtils.hLajos Molnar2014-10-011-0/+65
| | | | | | | | | | | | | | add unit test for math templates Bug: 17676461 Change-Id: Ie964c5fcfcca1ec53b4538f8e577392e8fbb4319
* | Merge "add AAC audio decoder params for PCM limiter enable" into lmp-devChong Zhang2014-10-011-1/+2
|\ \
| * | add AAC audio decoder params for PCM limiter enableChong Zhang2014-10-011-1/+2
| | | | | | | | | | | | | | | Bug: 17470065 Change-Id: Ib67aa1c50e3b6c24c4b12b0f31a996cc6874abd1
* | | GenericSource: support disconnect before NuCachedSource2 is createdRobert Shih2014-10-011-1/+5
|/ / | | | | | | | | Bug: 17672488 Change-Id: I96776c9679fdcfbe9a442c86447c59802b1465ac
* | Merge "MediaCodec: Fix deallocated pointer reference when calling reset()" ↵Andy Hung2014-09-221-1/+1
|\ \ | | | | | | | | | into lmp-dev
| * | MediaCodec: Fix deallocated pointer reference when calling reset()Andy Hung2014-09-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The name pointer argument in MediaCodec::init() was being implicitly deallocated. Bug: 17499622 Change-Id: If9409f95674e52d1478f969f77693c4d27ff1ff2
* | | MediaBuffer: ABuffer will release MediaBuffer when it's destructed.Wei Jia2014-09-193-3/+51
|/ / | | | | | | | | Bug: 17454455 Change-Id: Ia423bcc2e1fa39137f114eac44912ed15357bb99
* | stagefright: don't use AAtomizer in AMessageLajos Molnar2014-09-101-1/+5
| | | | | | | | | | Bug: 15094301 Change-Id: Ib82fb6d8fb6b48402d81f411123b3d924368eb93
* | Merge "Add error code for insufficient output protection" into lmp-devJeff Tinker2014-09-091-15/+17
|\ \ | |/ |/|
| * Add error code for insufficient output protectionJeff Tinker2014-08-281-15/+17
| | | | | | | | | | bug: 16034599 Change-Id: Ib52c8bdae83ea138cac897bce78ab651c36c1998
* | Merge "Fix more potential deadlocks in ALooperRoster" into lmp-devMarco Nelissen2014-09-031-2/+0
|\ \
| * | Fix more potential deadlocks in ALooperRosterMarco Nelissen2014-08-281-2/+0
| |/ | | | | | | | | Bug: 17059501 Change-Id: I242f2859527bed2d6e275c27de94fb19f4dcdc28
* | Tunneled Video Playback:Rachad2014-08-281-1/+1
|/ | | | | | | Changed AudioHwSync token to int32_t to match Audio stack api. Bug: 17112525 Change-Id: I673819495c2e7b540e8d7572cc95796bddbf63bb
* move cache prefill to GenericSource's message handlerChong Zhang2014-08-211-5/+1
| | | | | | | | | | | | This allows prepareAsync to be terminated by reset promptly. It also makes it easier to do buffer update as GenericSource can access the cache status now. Bug: 16892748 Bug: 17182378 Change-Id: Ia55c04a810fd805041cb2025f6739afa5120b5ed
* Added Tunneled video playback support to ACodecRachad2014-08-081-0/+3
| | | | | Bug:16132368 Change-Id: I88d2d66b8548fc203f4a2c4797196af15e56ff38
* Merge "AAC decoder: add support for controlling presentation parameters" ↵Jean-Michel Trivi2014-08-081-1/+10
|\ | | | | | | into lmp-dev
| * AAC decoder: add support for controlling presentation parametersJean-Michel Trivi2014-08-081-1/+10
| | | | | | | | | | | | | | | | | | Control the dowmixing of the AAC decoder Control the DRC processing of the AAC decoder Bug 16740915 Change-Id: I9b06ea8785f56213ea120ed85eeb360c88223297
* | Merge "Clarify and implement MediaCodec status codes" into lmp-devAndy Hung2014-08-072-2/+53
|\ \
| * | Clarify and implement MediaCodec status codesAndy Hung2014-08-072-2/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clarify MediaCodec status codes in MediaError.h When appropriate, return OMX error codes for status. Optionally return a status code from CreateByType() and CreateByComponentName(). Bug: 12034929 Bug: 13976475 Change-Id: I7463dd08d101074f730481b26127a69c9186c97e
* | | stagefright: support flexible YUV formatLajos Molnar2014-08-071-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | - Report flexible format for standard OMX formats that are flexible. - Accept flexible format when specifying video port formats. Bug: 10706245 Change-Id: I9e82bc895bb0d5d606eb05fdf83bec766eaa2046
* | | stagefright: rework media codec list and infosLajos Molnar2014-08-072-36/+22
| | | | | | | | | | | | | | | | | | | | | | | | This is in preparation of serving the codec list and codec infos from the mediaserver Bug: 11990470 Change-Id: Ib8e2708679c9ce461a4ba179974a740cdcdf2731
* | | stagefright: add AString parceling, and equal/compareIgnoreCaseLajos Molnar2014-08-071-0/+7
| | | | | | | | | | | | | | | Bug: 11990470 Change-Id: If43ada5d2e768931f4409e499eaa268edade0500
* | | stagefright: move ARRAY_SIZE to foundationLajos Molnar2014-08-061-0/+2
| | | | | | | | | | | | | | | Bug: 11990470 Change-Id: Ifae790b774a0fb210acbe33a1310d3d6ba46e7fa
* | | some fixes for crash when extractor creation failsChong Zhang2014-08-062-1/+9
|/ / | | | | | | | | | | | | | | | | | | - prefetch data for sniffing - notify error instead of crashing if extractor is NULL Bug: 16818302 Change-Id: I56ff4996d99ac2811d19d141f7ff7acdd7c1da17
* | Merge "AAC encoder: add support for SBR mode selection" into lmp-devJean-Michel Trivi2014-08-051-1/+1
|\ \ | |/
| * AAC encoder: add support for SBR mode selectionJean-Michel Trivi2014-08-051-1/+1
| | | | | | | | Change-Id: Ibc07bff7710398929c135f38324dd29857fa0ea6
* | MediaCodecSource: stop puller from caller's thread instead of looperChong Zhang2014-08-041-2/+1
|/ | | | | | | | | | | | | | | | | | | | 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
* Merge "stagefright: MediaCodec async operations." into lmp-devLajos Molnar2014-07-301-0/+2
|\
| * stagefright: MediaCodec async operations.Lajos Molnar2014-07-301-0/+2
| | | | | | | | | | | | | | | | | | | | In async mode: - codec must be restarted after flush - dequeueIn/OutputBuffers fail - getIn/OutputBuffers fail Bug: 11990118 Change-Id: If2d6a76ab499ee9ed4a11486fb537acbc52e66f6
* | stagefright: enable decoder color format selectionLajos Molnar2014-07-301-1/+1
|/ | | | | Bug: 10706245 Change-Id: I9a77631bfae0358be229b079228c1fcae0e77faf
* handle rotation in NuPlayerChong Zhang2014-07-301-0/+1
| | | | | Bug: 16653284 Change-Id: I54165041da5a13498d627eee1b3ec59ef3c923b0
* Add isSafeArraySize for new array size checksAndy Hung2014-07-301-0/+27
| | | | Bug: 15328708 Change-Id: I9dfca30745c3e4dda91c3894363462f8631c41a1
* stagefright: add flexible YUV supportLajos Molnar2014-07-251-0/+3
| | | | | Bug: 10706245 Change-Id: Icd246f22edfc67ed5240d59f5a5bde3e5f749465
* stagefright: add ABuffer.CreateAsCopyLajos Molnar2014-07-251-0/+3
| | | | | Bug: 10706245 Change-Id: I8c4e96a2581a039e9e8237c3e09e2c22226da055
* Merge "MediaWriter: make get/setStartTimeOffsetMs virtual" into lmp-devRobert Shih2014-07-222-2/+5
|\
| * MediaWriter: make get/setStartTimeOffsetMs virtualRobert Shih2014-07-172-2/+5
| | | | | | | | | | Bug: 16329805 Change-Id: Ib971dd95b54829438c8af97528f9e00b87ab3f1e
* | update battery stats for video/audioChong Zhang2014-07-221-0/+7
| | | | | | | | | | | | Bug: 12979595 Change-Id: Iafd93046a4fd9f22bcd66084deace746a7ca5d3c