summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/omx/OMXNodeInstance.cpp
Commit message (Collapse)AuthorAgeFilesLines
* IOMX: convert ANWB to Gralloc meta if using useBuffer in the same processLajos Molnar2017-02-031-3/+5
| | | | | | | | This was disabled by a previous commit. Bug: 32436178 Change-Id: I9f9c6a372a039226d61f3651be3af207fed63e60 (cherry picked from commit 4fb1e42a16e77d7abf1d84bedbc20f901af26524)
* stagefright: remove allottedSize equality check in IOMX::useBufferLajos Molnar2017-02-031-7/+0
| | | | | | | | | This was meant for buffers shared cross-process, but we are not gaining anything from this check even if it was at the correct place. Bug: 32436178 Change-Id: I6919e8ac6e35092273e171f49f6711ba577ba2e6 (cherry picked from commit 58388aa7be1c6963eb4b8464d46938ba9b0a04b0)
* Merge tag 'android-6.0.1_r74' into HEADJessica Wagantall2016-11-091-21/+175
|\ | | | | | | | | | | | | | | CYNGNOS-3303 Android 6.0.1 release 74 Change-Id: I0a14578751f4ecb8d13def26b9ffe5dcba4afd72
| * IOMX: do not clear buffer if it's allocated by componentChong Zhang2016-09-301-1/+0
| | | | | | | | | | | | | | | | | | The component might depends on their buffers to be initialized in certain ways to work. Don't clear unless we're allocating it. bug: 31586647 Change-Id: Ia0a125797e414998ef0cd8ce03672f5b1e0bbf7a (cherry picked from commit ea76573aa276f51950007217a97903c4fe64f685)
| * IOMX: allow configuration after going to loaded stateLajos Molnar2016-09-301-2/+8
| | | | | | | | | | | | | | | | | | This was disallowed recently but we still use it as MediaCodcec.stop only goes to loaded state, and does not free component. Bug: 31450460 Change-Id: I72e092e4e55c9f23b1baee3e950d76e84a5ef28d (cherry picked from commit e03b22839d78c841ce0a1a0a1ee1960932188b0b)
| * IOMX: restrict conversion of ANWB to gralloc source in emptyBufferLajos Molnar2016-09-301-2/+7
| | | | | | | | | | | | | | | | | | | | This is only allowed in-process (if backup and codec buffers are connected.) Bug: 29422020 Bug: 31412859 Change-Id: If48e3e0b6f1af99a459fdc3f6f03744bbf0dc375 (cherry picked from commit 087ff38490016f4a0b6a1e717ae8af781d9b750c)
| * IOMX: work against metadata buffer spoofingLajos Molnar2016-09-271-20/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Prohibit direct set/getParam/Settings for extensions meant for OMXNodeInstance alone. This disallows enabling metadata mode without the knowledge of OMXNodeInstance. - Do not share metadata mode buffers cross process. - Disallow setting up metadata mode/tunneling/input surface after first sendCommand. - Disallow store-meta for input cross process. - Disallow emptyBuffer for surface input (via IOMX). - Fix checking for input surface. Bug: 29422020 Change-Id: I801c77b80e703903f62e42d76fd2e76a34e4bc8e (cherry picked from commit f8a4cb410115045278f534e54b41ac78d6bf6c07)
* | Merge tag 'android-6.0.1_r61' into HEADJessica Wagantall2016-08-021-19/+54
|\ \ | |/ | | | | | | | | Android 6.0.1 Release 61 (MOB30Z) Change-Id: Ic86e42d5fb8f81fe5c4f58d2e76852829c609760
| * DO NOT MERGE omx: check buffer port before usingWonsik Kim2016-06-231-19/+54
| | | | | | | | | | Bug: 28816827 Change-Id: I3d5bad4a1ef96dec544b05bb31cc6f7109aae0a5
| * 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
* | Merge tag 'android-6.0.1_r24' into HEADJessica Wagantall2016-04-051-0/+1
|\ \ | | | | | | | | | | | | Ticket: CYNGNOS-2213 Android 6.0.1 release 24
| * | Fixing safteynet logging bug introduced in ag/862848mspector@google.com2016-03-011-0/+1
| |/ | | | | | | | | | | We moved the safteynet logging into storeMetaDataInBuffers_l Bug: 26324358 Change-Id: I2171742b53192ebb71d546bcb8970bb3c68f366f
* | stagefright: omx: delay observer death handlingHaynes Mathew George2015-11-301-5/+8
| | | | | | | | | | | | | | | | Delay observer death handling to give the component a chance to observe pending freeNode (in other words, allow component to observe mDying = true). Change-Id: I5f70e9b04a1d2decc7abd0d2a9588f2298519cbb
* | Fix benign overflow in OMXNodeInstanceMarco Nelissen2015-11-051-1/+2
| | | | | | | | Change-Id: I7470bddb7ade97143ba70c026e3b7d61dd8d97b0
* | Merge tag 'android-6.0.0_r26' into cm-13.0Ricardo Cerqueira2015-11-051-0/+1
|\ \ | |/ | | | | | | | | Android 6.0.0 release 26 Change-Id: I8a57007bf6efcd8b95c3cebf5e0444345bdd4cda
| * OMX: allow only secure codec to remotely call allocateBuffer.Wei Jia2015-10-021-0/+1
| | | | | | | | | | Bug: 24310423 Change-Id: Iebcfc58b447f925ec2134898060af2ef227266a3
* | libstagefright: Copy the entire buffer from/to OMX componentDeva Ramasubramanian2015-10-061-2/+5
| | | | | | | | | | | | | | Presence of OMX extradata in buffers isn't reflected as part of nFilledLen. To avoid omitting the extradata, copy the entire buffer. Change-Id: Ib310dda3dc93693d4ab380912a9997d7ea120be1
* | libstagefright/omx: Fix logic to handle dead observers.Shivaprasad Hongal2015-10-061-0/+1
|/ | | | | | | | OMXNodeInstance freeNode tries to tear down OMX component if not in OMX_StateLoaded. It handles all other states except OMX_StatePause. This change adds OMX_StatePause handling. Change-Id: I3bae2015c57b932186069756490c9bdf1f93eea4
* stagefright: fix deadlock and NPE in GraphicBufferSourceLajos Molnar2015-07-011-1/+10
| | | | | Bug: 22202388 Change-Id: I04f2f783ecc0e0c50adf16a666f6d7ab4221e285
* ignore buffers that's already removedChong Zhang2015-06-291-4/+19
| | | | | bug: 22005018 Change-Id: I892a0fe77519d5fb996bcb4cc95e0d10e859000c
* 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
* 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
* 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
* 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 batching OMX eventsLajos Molnar2015-06-051-7/+16
| | | | | 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-20/+85
| | | | | | | Pass Fence between Surface and ACodec, and between ACodec and IOMX. Bug: 12386081 Change-Id: Ifdc566979dec0d91ed8b07c3b69d2cf092accc73
* stagefright: rework metadata buffer supportLajos Molnar2015-06-011-58/+126
| | | | | | | | | | | | | | - 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-10/+16
| | | | | | | | | 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-131-1/+1
| | | | | | | | 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-051-1/+3
|\
| * Stagefright: propagate InsufficientResources errorPraveen Chavan2015-05-051-1/+3
| | | | | | | | | | | | | | | | | | 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-011-8/+63
|/ | | | | | | Bug: 19127604 Bug: 19489395 Change-Id: Idaf1cc9008016f66903e93907a676f54e342e1a3
* 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-121-0/+10
|/ | | | | Bug: 19014096 Change-Id: I6de781e4d140a247dfd8fd8f12c3ddd7baa39ad4
* stagefright: add runtime debug supportLajos Molnar2014-11-121-167/+398
| | | | | Bug: 18285408 Change-Id: I56346f4652b2c5f7ef5fa3003fd8676051339384
* stagefright: try to free codec instance if MediaCodec.release hangsLajos Molnar2014-10-211-0/+5
| | | | | Bug: 18033275 Change-Id: If86cd26566d7b75941976f37829bbec619800778
* stagefright: support passing GraphicBuffer in metadata bufferLajos Molnar2014-10-131-6/+29
| | | | | Bug: 17935149 Change-Id: I6bb5dd654e498a7153410afc052c2c8f7f35e44d
* Added Tunneled video playback support to ACodecRachad2014-08-081-0/+43
| | | | | Bug:16132368 Change-Id: I88d2d66b8548fc203f4a2c4797196af15e56ff38
* Update OMX messages for 64 bitAndy Hung2014-05-141-20/+88
| | | | | | | | | Change node_id and buffer_id to uint32_t. Ensure IOMX messages are fixed size. Remove 64 bit compile warnings in associated files. Change-Id: Icdbef00aca575e5dc502ebb52e3ce7d0d7883203 Signed-off-by: Andy Hung <hunga@google.com>
* Merge "support for time lapse/slow motion when using SURFACE source"Chong Zhang2014-02-221-1/+8
|\
| * support for time lapse/slow motion when using SURFACE sourceChong Zhang2014-02-141-1/+8
| | | | | | | | | | Bug: 13032650 Change-Id: Iecbadf9f29c8c49353416fc467fb3acdde279595
* | warnings be gone.Andreas Huber2014-02-111-8/+8
|/ | | | Change-Id: Ie3bae3f037730e316d7fca12e7a3527973f752ef
* Change StagefrightRecorder to use MediaCodecChong Zhang2014-02-051-1/+11
| | | | | Bug: 12305192 Change-Id: I72d7cb571be5bd348b58ad650f3269d24c15d350