summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/omx
Commit message (Collapse)AuthorAgeFilesLines
* omx: prevent input port enable/disable for software codecsWonsik Kim2016-08-161-0/+7
| | | | | Bug: 29421804 Change-Id: Iba1011e9af942a6dff7f659af769a51e3f5ba66f
* DO NOT MERGE Verify OMX buffer sizes prior to accessMarco Nelissen2016-04-212-0/+38
| | | | | Bug: 27207275 Change-Id: I4412825d1ee233d993af0a67708bea54304ff62d
* Add VPX output buffer size checkMarco Nelissen2016-03-251-1/+6
| | | | | | | and handle dead observers more gracefully Bug: 27597103 Change-Id: Id7acb25d5ef69b197da15ec200a9e4f9e7b03518
* Fixing safteynet logging bug introduced in ag/862848mspector@google.com2016-02-261-0/+1
| | | | | | We moved the safteynet logging into storeMetaDataInBuffers_l Bug: 26324358 Change-Id: I2171742b53192ebb71d546bcb8970bb3c68f366f
* OMX: allow only secure codec to remotely call allocateBuffer.Wei Jia2015-10-022-0/+6
| | | | | Bug: 24310423 Change-Id: Iebcfc58b447f925ec2134898060af2ef227266a3
* SimpleSoftOMXComponent: change CHECK to error notification.Wei Jia2015-07-081-1/+9
| | | | | | | | | 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-3/+5
|\ | | | | | | mnc-dev
| * stagefright: prevent allocating stale buffers for OMX decodersLajos Molnar2015-07-011-3/+5
| | | | | | | | | | | | | | | | | | 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: fix deadlock and NPE in GraphicBufferSourceLajos Molnar2015-07-013-10/+15
| | | | | | | | | | Bug: 22202388 Change-Id: I04f2f783ecc0e0c50adf16a666f6d7ab4221e285
* | Merge "ignore buffers that's already removed" into mnc-devChong Zhang2015-06-301-4/+19
|\ \
| * | ignore buffers that's already removedChong Zhang2015-06-291-4/+19
| |/ | | | | | | | | bug: 22005018 Change-Id: I892a0fe77519d5fb996bcb4cc95e0d10e859000c
* | stagefright: ask for flex-YUV camera buffers for software encodersLajos Molnar2015-06-262-2/+23
|/ | | | | Bug: 13222807 Change-Id: I854b73a63cf9239311729598241725d84e8513aa
* 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
* fix buffer leak due to unreleased last repeat frameChong Zhang2015-06-182-56/+56
| | | | | | bug: 21659689 bug: 21473584 Change-Id: I9e3dabd1be33352fdacd38797bc9fce91ecc7ee2
* stagefright: fix issues with OMX message passingLajos Molnar2015-06-101-1/+3
| | | | | | | | | - 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-17/+19
| | | | | | | | | | | - 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-2/+26
| | | | | | | | | | | - 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
* 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
* stagefright: add support for batching OMX eventsLajos Molnar2015-06-054-21/+37
| | | | | Bug: 20503131 Change-Id: I762c419ed1245f8b83fb1f6bf61e5557213ca07b
* stagefright: rename VideoGrallocMetadata.hHandle to pHandleLajos Molnar2015-06-023-5/+5
| | | | | | | | 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-025-49/+134
| | | | | | | Pass Fence between Surface and ACodec, and between ACodec and IOMX. Bug: 12386081 Change-Id: Ifdc566979dec0d91ed8b07c3b69d2cf092accc73
* stagefright: rework metadata buffer supportLajos Molnar2015-06-015-129/+168
| | | | | | | | | | | | | | - 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-013-15/+21
| | | | | | | | | 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
* IOMX: Clear buffer id for arm32Andy Hung2015-05-271-4/+2
| | | | | | | Initial counter needs to be cleared for ease of debugging. Bug: 20634516 Change-Id: I4131d759b9cc296bbecf25a53433d42b22ef228f
* IOMX: Enable buffer ptr to buffer id translation for arm32Andy Hung2015-05-261-21/+0
| | | | | Bug: 20634516 Change-Id: Iac9eac3cb251eccd9bbad5df7421a07edc21da0c
* IOMX: Add buffer range check to emptyBufferAndy Hung2015-05-261-0/+6
| | | | | Bug: 20634516 Change-Id: If351dbd573bb4aeb6968bfa33f6d407225bc752c
* stagefright: measure max encoder buffer count for persistent surfaceChong Zhang2015-05-211-9/+1
| | | | | | bug: 19127604 Change-Id: I9a9b29b527d20f43a5a0188380baf2242bd31507
* stagefright: rename usePersistentInputSurface to setInputSurfaceChong Zhang2015-05-132-4/+3
| | | | | | | | and clear persistent surface pointer when MediaRecorder is reset bug: 21045118 bug: 21045402 Change-Id: Ifd0d6deeb969f2252123929541b30b518cecbf9a
* Merge "Stagefright: propagate InsufficientResources error" into mnc-devRonghua Wu2015-05-052-3/+6
|\
| * Stagefright: propagate InsufficientResources errorPraveen Chavan2015-05-052-3/+6
| | | | | | | | | | | | | | | | | | Propagate OMX_ErrorInsufficientResources when handling node-allocation failure any other error from the component. bug: 20132289 Change-Id: I1ed9626dab947227e3d5e983bbbeee89ad7b2d2a
* | MediaCodec: implement persistent input surface APIsChong Zhang2015-05-014-41/+163
|/ | | | | | | Bug: 19127604 Bug: 19489395 Change-Id: Idaf1cc9008016f66903e93907a676f54e342e1a3
* stagefright: make more warnings errorsLajos Molnar2015-04-172-3/+3
| | | | Change-Id: I9b1ad60fbfb866dbf9c00843e06553c3eb25c113
* stagefright: warnings be gone, some are now errors, use clangLajos Molnar2015-04-176-11/+21
| | | | Change-Id: I81f438ae444f04c12ae27ae4ef6d073033de172c
* am 655084f9: am e7a53499: am 0a45cda6: am 187b196e: Merge changes ↵Lajos Molnar2015-04-161-2/+3
|\ | | | | | | | | | | | | | | | | Ic51e92e9,Ie808aa82,I74f5f4a1 * commit '655084f979b3067cb5a6fd2d4de148b411fbec23': stagefright: add SoftAVCEnc using libavc stagefright: add SoftAVCDec using libavc stagefright: add SoftMPEG2 decoder using libmpeg2
| * stagefright: add SoftAVCEnc using libavcVenkatarama Avadhani2015-04-151-1/+1
| | | | | | | | Change-Id: Ic51e92e9d86db21109b8714e822697869e184cd1
| * stagefright: add SoftAVCDec using libavcVenkatarama Avadhani2015-04-151-1/+1
| | | | | | | | Change-Id: Ie808aa82c624dbbcaeb6b41662c9b7770bc80bd9
| * stagefright: add SoftMPEG2 decoder using libmpeg2Venkatarama Avadhani2015-04-151-0/+1
| | | | | | | | Change-Id: I74f5f4a1e6d7be8df45bcbc83a965111454b97ea
* | am 3f14f569: am de2faabb: am d661654a: am 0958e926: Merge "Log cause of ↵Marco Nelissen2015-04-091-1/+1
|\ \ | |/ | | | | | | | | | | failure to dlopen" * commit '3f14f5692ab396bfd0193a280311a600abeabeaa': Log cause of failure to dlopen
| * Log cause of failure to dlopenMarco Nelissen2015-04-091-1/+1
| | | | | | | | | | Bug: 19782799 Change-Id: Idba3d802debb12bb4986c525bb9bb5e3cec09f7d
| * DO NOT MERGE libstagefright: Stop using IGBC::BufferItemDan Stoza2015-04-012-10/+11
| | | | | | | | | | | | | | | | | | | | Switches all uses of IGraphicBufferConsumer::BufferItem (and BufferQueue::BufferItem) to the BufferItem in libgui. Similar to I0ddd38df37500cfd6b21d1e768ed14e39c5cd9fc, but not a cherry-pick. Change-Id: I9b16c81bd3bdacdba86eb8fb9b216b295a44b1cb
* | libstagefright: Stop using IGBC::BufferItemDan Stoza2015-03-122-10/+11
| | | | | | | | | | | | | | | | | | | | | | Switches all uses of IGraphicBufferConsumer::BufferItem (and BufferQueue::BufferItem) to the BufferItem in libgui. Depends on frameworks/native I699ed0a6837076867ca756b28d1ffb2238f7a0d9. This is a member of I187b3a7d05196b6289596afac8fb9a9d4aebff76, but since it was split out from the camera change in frameworks/av, they have to have different change IDs. Change-Id: I0ddd38df37500cfd6b21d1e768ed14e39c5cd9fc
* | media: switch to new AMessage handlingLajos Molnar2015-03-052-6/+6
| | | | | | | | | | Bug: 19607784 Change-Id: I94cddcb81f671422ad4982a23dc4acfe57a9f1aa
* | Remove manta support in MNC.Ying Wang2015-03-031-4/+0
| | | | | | | | | | Bug: 19548232 Change-Id: I5fd341c7cf55792c4b2c9a4928f1ad21308c4469
* | am 935b4750: am 011734f0: Fix clang build errorBill Yi2015-02-201-1/+1
|\ \ | |/ | | | | | | * commit '935b47504411b6ac69f708ba698a72b7282aada1': Fix clang build error
| * Fix clang build errorBill Yi2015-02-191-1/+1
| | | | | | | | Change-Id: I294903dcf3ce3aa6a3b2f50364067e701a33d327
* | stagefright: add support for limiting framerate in GraphicBufferSourceRonghua Wu2015-02-128-45/+365
|/ | | | | Bug: 19014096 Change-Id: I6de781e4d140a247dfd8fd8f12c3ddd7baa39ad4
* am d8ba6ef1: am 38a97bd7: stagefright: keep alignment restrictions for ↵Lajos Molnar2015-01-101-21/+14
|\ | | | | | | | | | | | | SoftVideoDecoder * commit 'd8ba6ef11cb89672ee121ec7f4ee527446aa5dbf': stagefright: keep alignment restrictions for SoftVideoDecoder
| * stagefright: keep alignment restrictions for SoftVideoDecoderLajos Molnar2015-01-091-21/+14
| | | | | | | | | | | | | | | | Reuse updatePortDefinitions for setParam(PortDefinition). Allow increasing input buffer size even if size changes. Bug: 18528130 Change-Id: I62b66d8f1135504dd16ac576046bfc5b5b8cda59
* | resolved conflicts for merge of 6571ed31 to lmp-mr1-dev-plus-aospLajos Molnar2014-12-112-29/+364
|\ \ | |/ | | | | Change-Id: Ibaea3a0766f75a61964615482a9ef28651a42b37
| * stagefright: misc fixes to software video encoders (and decoders)Lajos Molnar2014-12-102-29/+364
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - move logic to set encoder parameters to common encoder class (similarly to what was done for decoders) - set compressed buffer size based on frame size and compression ratio, and codec-specific minimum size - set raw buffer size based on frame size and metadata mode - do not set stride and slice height on compressed ports - advertise only QCIF support for google H263 encoder - set large-enough input size for video decoders to support adaptive playback - do not change input buffer size on output port reconfiguration, as no input buffer reallocation takes place - do not return empty buffers with EOS after EOS has been signaled Bug: 18513091 Bug: 18639027 Change-Id: Ib13492ef66adf331aa4572c67d2b283ea020cb41