summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/ACodec.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix initialization of AAC presentation structMarco Nelissen2016-04-211-0/+1
| | | | | | | Otherwise the new size checks trip on this. Bug: 27207275 Change-Id: I1f8f01097e3a88ff041b69279a6121be842f1766
* do not dequeue from native window after we hit fatal errorChong Zhang2015-08-141-0/+9
| | | | | | bug: 22845824 Change-Id: I8c375790c697e02b6ab3ea54b84d3f70d5e78141 (cherry picked from commit 346de3c26a8fbd0fa0c8102f4a21ea4dcee4432a)
* ACodec: send format change for video tunneled mode when omx has output crop ↵Wei Jia2015-08-051-0/+5
| | | | | | | change. Bug: 21906777 Change-Id: Id6674a76e8f2620dd24bac9210cf8885fbd384bb
* Merge "ACodec: notify resolution change earlier for tunneled mode." into mnc-devWei Jia2015-07-301-0/+5
|\
| * ACodec: notify resolution change earlier for tunneled mode.Wei Jia2015-07-301-0/+5
| | | | | | | | | | Bug: 21906777 Change-Id: I73c265ba8e76b8a9cddcfdec28e783e30c52acaf
* | Merge "Revert "ACodec: notify resolution change earlier for tunneled mode."" ↵Bart Sears2015-07-301-5/+0
|\ \ | | | | | | | | | into mnc-dev
| * | Revert "ACodec: notify resolution change earlier for tunneled mode."Bart Sears2015-07-301-5/+0
| | | | | | | | | | | | | | | | | | This reverts commit 7cb3aff491b7f01ded5f1efe90ce1125dd33023f. Change-Id: I232d6af852ca78727caf4847855d762e08355506
* | | Merge "ACodec: notify resolution change earlier for tunneled mode." into mnc-devWei Jia2015-07-301-0/+5
|\ \ \ | |/ /
| * | ACodec: notify resolution change earlier for tunneled mode.Wei Jia2015-07-291-0/+5
| |/ | | | | | | | | Bug: 21906777 Change-Id: If8c107d4d5267173a3f2de08ec9038d3451a21d3
* | add GRALLOC_USAGE_HW_COMPOSER flag to video usage bitsChong Zhang2015-07-281-3/+2
|/ | | | | bug: 22657091 Change-Id: I6a11bc15bba34035ef31c2f4d41196ece60d4ad9
* stagefright: allow access of 32-bit pointers from 64-bit codeLajos Molnar2015-07-201-4/+9
| | | | | Bug: 22512621 Change-Id: I19f3fc92ef597029d4ae7e1cd9ca19f21661d2db
* Merge "MediaCodec: remove legacy-setsurface experiment from ↵Lajos Molnar2015-07-141-3/+1
|\ | | | | | | setOutputSurface" into mnc-dev
| * MediaCodec: remove legacy-setsurface experiment from setOutputSurfaceLajos Molnar2015-07-101-3/+1
| | | | | | | | | | | | | | This belongs to NuPlayerDecoder. Bug: 20894667 Change-Id: Iac52a51834e0a11ff206c6b03ea56ceda9c8ae61
* | MediaCodec: consider usage bits when changing surface.Lajos Molnar2015-07-131-4/+20
|/ | | | | | | | The new surface cannot add usage bits not already present (as already existing buffers may become unusable for the surface). Bug: 22414343 Change-Id: Id8169c79cd0994be134a16782dd04687e46ca1dd
* ACodec: call cancelBufferToNativeWindow() only when the buffer is owned by us.Wei Jia2015-07-101-6/+10
| | | | | Bug: 22316379 Change-Id: I0b63e507b97b5c93f06ed6b5e0b38075fccfbe8d
* SimpleSoftOMXComponent: change CHECK to error notification.Wei Jia2015-07-081-0/+6
| | | | | | | | | SoftAVCDec, SoftMPEG4: fix handling of zero-byte input buffer. ACodec: do not send empty input buffer without EOS to the omx component. Bug: 22199127 Change-Id: I0bbcf5778f969ba6e30d0db31770c4289e2b64a4
* Merge "stagefright: prevent allocating stale buffers for OMX decoders" into ↵Lajos Molnar2015-07-011-0/+1
|\ | | | | | | mnc-dev
| * stagefright: prevent allocating stale buffers for OMX decodersLajos Molnar2015-07-011-0/+1
| | | | | | | | | | | | | | | | | | Also fix some issues encountered once using generationNumbers: - properly account outstanding buffers in MediaSync - don't release arbitrary frame if attach fails Bug: 11990461 Change-Id: Icee5ea188ca4eb856138feb5e6ec5d4ee5e44008
* | stagefright: ask for flex-YUV camera buffers for software encodersLajos Molnar2015-06-261-0/+16
|/ | | | | Bug: 13222807 Change-Id: I854b73a63cf9239311729598241725d84e8513aa
* 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-191-5/+10
|/ | | | | Bug: 21815057 Change-Id: Idd1c71b4b0b68028020c3e10615936870ffd2dec
* don't trigger an integer underflow when decrementing.Nick Kralevich2015-06-131-2/+4
| | | | | | | | | | 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
* stagefright: use media timestamp for default render timestampLajos Molnar2015-06-121-7/+2
| | | | | Bug: 21814308 Change-Id: I897bc4878c0b3a758d630e9c117b746ef7e55146
* stagefright: fix issues with OMX message passingLajos Molnar2015-06-101-2/+8
| | | | | | | | | - 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-101-2/+5
| | | | | | | | | | | - 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
* stagefright: add support for output frame rendered callbackLajos Molnar2015-06-091-1/+122
| | | | | | | | | | | - 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
* stagefright: add support for batching OMX eventsLajos Molnar2015-06-051-51/+98
| | | | | Bug: 20503131 Change-Id: I762c419ed1245f8b83fb1f6bf61e5557213ca07b
* stagefright: rename VideoGrallocMetadata.hHandle to pHandleLajos Molnar2015-06-021-2/+2
| | | | | | | | This is so that it can be equivalent to the previously named VideoDecoderOutputMetaData struct. Bug: 13222807 Change-Id: I38831e19a76f49cc7e8385c079817c538d18f0ff
* stagefright: add support for fences in OMXLajos Molnar2015-06-021-22/+143
| | | | | | | Pass Fence between Surface and ACodec, and between ACodec and IOMX. Bug: 12386081 Change-Id: Ifdc566979dec0d91ed8b07c3b69d2cf092accc73
* stagefright: rework metadata buffer supportLajos Molnar2015-06-011-84/+123
| | | | | | | | | | | | | | - Add fence to new metadata buffer mode structure, but don't use it yet, so that we don't have to add another mode soon. - Change GraphicBuffers to ANativeWindowBuffer in new metadata mode. This removes internal depencency from vendor codecs. - Extend new metadata mode from SW encoders to all codecs. - Fallback from new metadata mode to old mode (so Camera can always use the new mode even with legacy codecs) Related-bug: 19614055 Bug: 13222807 Change-Id: I405a21dd6ce8e99808f633bfeab8f14278eb7079
* stagefright: allow to overallocate OMX codec buffersLajos Molnar2015-06-011-3/+3
| | | | | | | | | Specify allottedSize for useBuffer and allocateBufferWithBackup, where OMX will see only the allottedSize, even though framework may allocate and use a bigger buffer. Bug: 13222807 Change-Id: Ibfa93f6c7b7c8ca0853ef17d4a0758e496eaf921
* Merge "ACodec: fix error conversion." into mnc-devWei Jia2015-05-191-1/+1
|\
| * ACodec: fix error conversion.Wei Jia2015-05-191-1/+1
| | | | | | | | | | | | | | | | When mime is not supported, need to signal error NAME_NOT_FOUND. Bug: 19620911 Bug: 21207639 Change-Id: Ifd651858827c47a71b3087b914ad1e1e8606183c
* | Merge "libstagefright: only log succeeded when return is OK." into mnc-devRonghua Wu2015-05-181-1/+3
|\ \ | |/ |/|
| * libstagefright: only log succeeded when return is OK.Ronghua Wu2015-05-181-1/+3
| | | | | | | | | | Bug: 19300493 Change-Id: I84a2caa3450d2dbccecbed5fd12de6e1b898d6d4
* | stagefright: check IMemory::pointer() before using the allocationChong Zhang2015-05-151-2/+2
| | | | | | | | | | bug: 19779574 Change-Id: I4ffe8c3fadc07da211f421e75ee83010b01d9cbb
* | Merge "stagefright: prevent more crashes in ACodec" into mnc-devLajos Molnar2015-05-141-164/+299
|\ \
| * | stagefright: prevent more crashes in ACodecLajos Molnar2015-05-131-164/+299
| | | | | | | | | | | | | | | | | | | | | Signal errors if OMX or native window reports an error Bug: 20439174 Change-Id: Iebeb16f5a29c6819d39568a184b921799a234686
* | | Merge "stagefright: Prevent crashes in ACodec - part 1" into mnc-devJinsuk Kim2015-05-131-136/+219
|\ \ \ | |/ /
| * | stagefright: Prevent crashes in ACodec - part 1Jinsuk Kim2015-05-131-136/+219
| | | | | | | | | | | | | | | | | | | | | Replaced CHECK_ macros with return statements to avoid crashing. Bug: 20439174 Change-Id: I124297674d5654b62382457e4fcc937d79b163ff
* | | Merge "stagefright: rename usePersistentInputSurface to setInputSurface" ↵Chong Zhang2015-05-131-10/+10
|\ \ \ | |/ / |/| | | | | into mnc-dev
| * | stagefright: rename usePersistentInputSurface to setInputSurfaceChong Zhang2015-05-131-10/+10
| |/ | | | | | | | | | | | | | | and clear persistent surface pointer when MediaRecorder is reset bug: 21045118 bug: 21045402 Change-Id: Ifd0d6deeb969f2252123929541b30b518cecbf9a
* | stagefright: fix legacy-adaptive experimentLajos Molnar2015-05-081-34/+35
| | | | | | | | | | | | | | | | Now that we are checking for unregistered buffers, we need to preregister the buffers on allocation. Bug: 20894716 Change-Id: Ie89663232c4c0d5bc2dfbd58c3347581c25fb041
* | stagefright: enable experimentsLajos Molnar2015-05-071-3/+49
| | | | | | | | | | Bug: 20894716 Change-Id: I8c05b99dca8b3099a3a1b2b465f0f58bef786572
* | stagefright: allow connecting to surfaces that attach buffersLajos Molnar2015-05-071-15/+49
|/ | | | | | | | | | | | Now that consumers can attach buffers to BufferQueues, we cannot assert if an unknown buffer is dequeud, or if a buffer is dequeued from a BufferQueue multiple times. Also, when attaching to such surfaces, allocation must be enabled as attach will lock for a free buffer slot. Bug: 20885565 Change-Id: Ied466c5a848facf3149ad8bf0d18a0095da21e40
* ACodec: blank surface when switching to another surfaceLajos Molnar2015-05-071-0/+5
| | | | | Bug: 20885565 Change-Id: I9b0d279724aab24e0a270770258716d115ef15bc
* stagefright: move native window helpers into SurfaceUtilsLajos Molnar2015-05-071-208/+4
| | | | | Bug: 20885565 Change-Id: I2ed14be8a7cb08b1ed4ea65cb9286dc1384fe64a
* stagefright: fix pushBlankBuffersToNW for non-meta decodersLajos Molnar2015-05-061-0/+3
| | | | | Bug: 20709429 Change-Id: Ifaee74083dedecb755e5c8ba3369cf90dfd74035
* Merge "stagefright: add support for dynamically setting MediaCodec output ↵Lajos Molnar2015-05-021-98/+228
|\ | | | | | | surface" into mnc-dev