summaryrefslogtreecommitdiffstats
path: root/media/libstagefright
Commit message (Collapse)AuthorAgeFilesLines
* Merge "stagefright: relax check of OMX buffer header - again" into mnc-devLajos Molnar2015-06-221-8/+23
|\
| * stagefright: relax check of OMX buffer header - againLajos Molnar2015-06-191-8/+23
| | | | | | | | | | | | | | | | - move check to after FillBufferDone only. - add support for NULL graphicBuffer - just in case Bug: 21773260 Change-Id: Ibf03511f1d04425e29b63fe4e560e0d8ba6ea20e
* | Merge "stagefright: allow state change while handling OMX message list" into ↵Lajos Molnar2015-06-221-1/+8
|\ \ | |/ |/| | | mnc-dev
| * stagefright: allow state change while handling OMX message listLajos Molnar2015-06-191-1/+8
| | | | | | | | | | | | Bug: 21724210 Bug: 21925253 Change-Id: Id1c055ce611d4632ae13fbc69d79b65caf657a2a
* | stagefright: handle removal of a tracked buffer in ACodecLajos Molnar2015-06-192-12/+24
|/ | | | | Bug: 21815057 Change-Id: Idd1c71b4b0b68028020c3e10615936870ffd2dec
* Merge "MediaCodec: handle a spontaneous error while configuring" into mnc-devAndy Hung2015-06-191-0/+6
|\
| * MediaCodec: handle a spontaneous error while configuringAndy Hung2015-06-161-0/+6
| | | | | | | | | | | | | | | | | | | | Allow the INITIALIZED and UNINITIALIZED state to prevent a CHECK() from aborting the thread. This state flexibility makes the handling for kWhatComponentConfigured similar to kWhatFlushCompleted. Bug: 21840990 Change-Id: I57e08cfb146b0b9a355061e4f9ffbe176f213cf6
* | Merge "fix buffer leak due to unreleased last repeat frame" into mnc-devChong Zhang2015-06-182-56/+56
|\ \
| * | fix buffer leak due to unreleased last repeat frameChong Zhang2015-06-182-56/+56
| | | | | | | | | | | | | | | | | | bug: 21659689 bug: 21473584 Change-Id: I9e3dabd1be33352fdacd38797bc9fce91ecc7ee2
* | | Fix software video decoder buffer size calculationMarco Nelissen2015-06-172-2/+2
| |/ |/| | | | | | | | | | | | | | | | | Various software video decoders would specify the buffer size as if it were fully cropped, which then failed a sanity check in SoftwareRenderer. They now return the full buffer size. Bug: 21717327 Bug: 21443020 Change-Id: I19fcd091827ebd52a95a5509281a07ccc156e0e5
* | Merge "Revert "stagefright: relax check of OMX buffer header"" into mnc-devRachad Alao2015-06-151-12/+8
|\ \
| * | Revert "stagefright: relax check of OMX buffer header"Rachad Alao2015-06-151-12/+8
| | | | | | | | | | | | | | | | | | | | | This reverts commit 652bc0197341337bb07fc4f87f168167fb3f47dc pending the complete investigation of b/21837661 Change-Id: I9c2825fd98ff7e9898c319ee66c0e3a3466c2093
* | | don't trigger an integer underflow when decrementing.Nick Kralevich2015-06-134-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When decrementing "i", eventually i will equal zero. When that happens, i-- underflows. This causes a crash when code which uses clang's -fsanitize=unsigned-integer-overflow is run. Avoid trigging an unsigned integer underflow. Change-Id: I61709cb01f56fdb36d631aa95579e8bd09cafd12
* | | Merge "stagefright: use media timestamp for default render timestamp" into ↵Lajos Molnar2015-06-132-17/+6
|\ \ \ | | | | | | | | | | | | mnc-dev
| * | | stagefright: use media timestamp for default render timestampLajos Molnar2015-06-122-17/+6
| |/ / | | | | | | | | | | | | Bug: 21814308 Change-Id: I897bc4878c0b3a758d630e9c117b746ef7e55146
* | | Merge "libstagefright: remove out of date profiling result before doing a ↵Ronghua Wu2015-06-121-0/+2
|\ \ \ | |/ / |/| | | | | new profiling." into mnc-dev
| * | libstagefright: remove out of date profiling result before doing a new ↵Ronghua Wu2015-06-121-0/+2
| | | | | | | | | | | | | | | | | | | | | profiling. Bug: 21333717 Change-Id: Iaeff615fccf87b3aceed6fa566f82c06a981e030
* | | stagefright: relax check of OMX buffer headerLajos Molnar2015-06-121-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | - move check to after FillBufferDone only. - add support for NULL graphicBuffer - just in case Bug: 21773260 Change-Id: I804574c30ce47fd98bf09f5fe8ad00ae454ed1af
* | | fix build: use proper fmt in StagefrightMetadataRetriever.cpp logLajos Molnar2015-06-121-1/+1
| | | | | | | | | | | | Change-Id: Iadf74ed8c5b3a3bdb799c6e926fb7bea02511071
* | | Merge "stagefright: Decode video thumbnail using MediaCodec" into mnc-devLajos Molnar2015-06-121-108/+197
|\ \ \
| * | | stagefright: Decode video thumbnail using MediaCodecPraveen Chavan2015-06-121-108/+197
| | |/ | |/| | | | | | | | | | | | | | | | Use MediaCodec (in place of OMXCodec) to decode video thumbnail Change-Id: I05beaa3d67edff51aa17f58444fd34afb3933580
* | | SoftOpus: Fix output buffer capacity.Vignesh Venkatasubramanian2015-06-111-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The output buffer size as per opus project's sample decoder [1] is 960*6*channel_count. Whereas in SoftOpus, we use 960*6 (without the channel count multiplier. Fixing it to include maximum number of channels possible as the multiplier. [1] http://git.xiph.org/?p=opus-tools.git;a=blob;f=src/opusdec.c;h=d085f04eacdfd49759ffdb73db805562ba396720;hb=f2a2e88b47f6f24083a37be476f140f677fe7160#l571 BUG=20721050 Change-Id: I323891a1b11491782bc093477b09e7757b885674
* | | stagefright: fix clang buildWonsik Kim2015-06-111-1/+2
| | | | | | | | | | | | Change-Id: I4f10e4af6f0b5fb0b90513ad516b36b444d3bd68
* | | Merge "stagefright: TinyCacheSource to read continuously" into mnc-devWonsik Kim2015-06-111-3/+19
|\ \ \
| * | | stagefright: TinyCacheSource to read continuouslyWonsik Kim2015-06-111-3/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the seek operation of underlying MediaDataSource implementation is expensive and each read is relatively small (e.g. Live MPEG2 TS stream), current TinyCacheSource implementation requests seek too frequently. Bug: 21764375 Change-Id: Ic620bf027bc4ef48822549c83c5c98109986884a
* | | | Merge "mpeg2ts: more error tolerance" into mnc-devWonsik Kim2015-06-111-5/+2
|\ \ \ \ | |_|/ / |/| | |
| * | | mpeg2ts: more error toleranceWonsik Kim2015-06-111-5/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | Be more tolerant with corrupt packet. Instead of reporting EOS, simply discard the damaged packet and continue. Bug: 21764375 Change-Id: Ibfd112db884732a082371c1abbd047077d1bf57e
* | | Merge "Added support for MPEG2 video in MPEG4Extractor" into mnc-devLajos Molnar2015-06-101-1/+13
|\ \ \
| * | | Added support for MPEG2 video in MPEG4ExtractorHarish Mahendrakar2015-05-051-1/+13
| | | | | | | | | | | | | | | | Change-Id: I70b1c3a07062526fc6d5333f70f4f1d792834e7f
* | | | stagefright: fix issues with OMX message passingLajos Molnar2015-06-102-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - added destructor for MessageList so messages are freed - check if notify has been initialized - do not call onMessages if there are no messages Bug: 21659665 Change-Id: Idb4eaa63dc2f8be8b282be79e6234f83a7669481
* | | | stagefright: fix legacy support for CameraSourceLajos Molnar2015-06-102-19/+24
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - allocate big enough buffers for native metadata source even in CameraSource mode - don't check range when using native metadata mode (and converting it to GrallocSource) as OMX buffer will be smaller than input - log allocated vs. OMX reported sizes in OMXNodeInstance logs Bug: 21708032 Change-Id: I7eeffc5116079e5b368f84980e8e7524260aaccf
* | | Merge "stagefright: add support for output frame rendered callback" into mnc-devLajos Molnar2015-06-108-28/+435
|\ \ \
| * | | stagefright: add support for output frame rendered callbackLajos Molnar2015-06-098-28/+435
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added FRAME_RENDERED event in OMX, used by tunneled video decoders to signal rendered event timing - Track buffers sent for rendering in ACodec and in SoftwareRenderer, and determine when they have rendered - Propagate render times to MediaCodec Bug: 20503131 Change-Id: Idf0a8714d5368b237c2285dd39fa82db847c232f
* | | | Merge "Ogg Opus: handle cases where first sample has non 0 time" into mnc-devRobert Shih2015-06-091-1/+38
|\ \ \ \ | |/ / / |/| | |
| * | | Ogg Opus: handle cases where first sample has non 0 timeRobert Shih2015-06-081-1/+38
| | | | | | | | | | | | | | | | | | | | Bug: 19286916 Change-Id: I660daae57e7b7e793f55154c74347e9d53627324
* | | | Merge "stagefright: check the validity of the range of adaptation field" ↵Jaesung Chung2015-06-091-0/+5
|\ \ \ \ | |_|_|/ |/| | | | | | | into mnc-dev
| * | | stagefright: check the validity of the range of adaptation fieldJaesung Chung2015-05-151-0/+5
| | | | | | | | | | | | | | | | | | | | Bug: 20439174 Change-Id: I76a9a3cd1669164cee921191d27d4c669eeb9ae0
* | | | Merge "libstagefright: check memory size for overflow before allocation." ↵Wei Jia2015-06-082-0/+65
|\ \ \ \ | | | | | | | | | | | | | | | into mnc-dev
| * | | | libstagefright: check memory size for overflow before allocation.Wei Jia2015-06-082-0/+65
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 20674086 Change-Id: I431aa2b7d30a942350ab6d105451c6b77e2f99d4
* | | | | Merge "SoftwareRenderer: sanity check buffer size before copying data." into ↵Wei Jia2015-06-081-1/+17
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | mnc-dev
| * | | | | SoftwareRenderer: sanity check buffer size before copying data.Wei Jia2015-06-081-1/+17
| |/ / / / | | | | | | | | | | | | | | | | | | | | Bug: 21443020 Change-Id: I63cf86217b8201fb41809c23e4b752b845a93ee2
* | | | | Merge "fix graphic buffer leak with persistent input surface" into mnc-devChong Zhang2015-06-082-2/+102
|\ \ \ \ \
| * | | | | fix graphic buffer leak with persistent input surfaceChong Zhang2015-06-082-2/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | implement PersistentProxyListener that returns buffers during period when actual listener is not connected. also clear old buffer slot in GraphicBufferSource when re-attaching. bug: 21473584 Change-Id: I3bcf1a208e745397d6cc6ce9aef9e4f5aa604f3c
* | | | | | Merge "MPEG4Writer: add check to ensure no integer overflow on allocation." ↵Wei Jia2015-06-081-0/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | into mnc-dev
| * | | | | | MPEG4Writer: add check to ensure no integer overflow on allocation.Wei Jia2015-06-041-0/+2
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | Bug: 20674584 Change-Id: I77ef1891abf0a20994840a87fa99e55a62f40a70
* | | | | | Camera1 API: Support SW encoders for new camera HALsEino-Ville Talvala2015-06-081-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Support new set video format/dataspace command in camera service - HALv3: Select gralloc usage flags based on format - HALv1: Pass format command directly to HAL layer - Use format/dataspace command in CameraSource - Switch all API1 recording to use metadata mode - Switch all >= HALv2 API1 recording to use kMetadataBufferTypeANWBuffer Bug: 13222807 Change-Id: I2e609b92c65792611bb1dab09e0c41c363ebbc42
* | | | | | Merge "libstagefright: run codec profiling in worker thread." into mnc-devRonghua Wu2015-06-081-46/+56
|\ \ \ \ \ \
| * | | | | | libstagefright: run codec profiling in worker thread.Ronghua Wu2015-06-071-46/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 21645841 Change-Id: Ia15eb3b064b671c569afb0742db7535f6b03232e
* | | | | | | Merge "SoftAVCEnc: check requested memory size before allocation." into mnc-devWei Jia2015-06-081-0/+8
|\ \ \ \ \ \ \
| * | | | | | | SoftAVCEnc: check requested memory size before allocation.Wei Jia2015-06-041-0/+8
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 20674674 Change-Id: I569e7a9b33fe64779a40e55539929c3dc4303c19