diff options
author | Lajos Molnar <lajos@google.com> | 2015-06-01 14:58:37 -0700 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2015-06-01 15:31:13 -0700 |
commit | cc7cc67349b7a3f498882087aa42ffc05a2daf11 (patch) | |
tree | 8eee8d499bf395c14750b900a82ecc59d47e6dbd /media/libstagefright/include | |
parent | f9a3dce5d44b1ba598cc6f6a2e80da36e44618f7 (diff) | |
download | frameworks_av-cc7cc67349b7a3f498882087aa42ffc05a2daf11.zip frameworks_av-cc7cc67349b7a3f498882087aa42ffc05a2daf11.tar.gz frameworks_av-cc7cc67349b7a3f498882087aa42ffc05a2daf11.tar.bz2 |
stagefright: allow to overallocate OMX codec buffers
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
Diffstat (limited to 'media/libstagefright/include')
-rw-r--r-- | media/libstagefright/include/OMX.h | 4 | ||||
-rw-r--r-- | media/libstagefright/include/OMXNodeInstance.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/media/libstagefright/include/OMX.h b/media/libstagefright/include/OMX.h index c183208..fa1e03f 100644 --- a/media/libstagefright/include/OMX.h +++ b/media/libstagefright/include/OMX.h @@ -81,7 +81,7 @@ public: virtual status_t useBuffer( node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, - buffer_id *buffer); + buffer_id *buffer, OMX_U32 allottedSize); virtual status_t useGraphicBuffer( node_id node, OMX_U32 port_index, @@ -111,7 +111,7 @@ public: virtual status_t allocateBufferWithBackup( node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, - buffer_id *buffer); + buffer_id *buffer, OMX_U32 allottedSize); virtual status_t freeBuffer( node_id node, OMX_U32 port_index, buffer_id buffer); diff --git a/media/libstagefright/include/OMXNodeInstance.h b/media/libstagefright/include/OMXNodeInstance.h index 3c032f9..e067598 100644 --- a/media/libstagefright/include/OMXNodeInstance.h +++ b/media/libstagefright/include/OMXNodeInstance.h @@ -70,7 +70,7 @@ struct OMXNodeInstance { status_t useBuffer( OMX_U32 portIndex, const sp<IMemory> ¶ms, - OMX::buffer_id *buffer); + OMX::buffer_id *buffer, OMX_U32 allottedSize); status_t useGraphicBuffer( OMX_U32 portIndex, const sp<GraphicBuffer> &graphicBuffer, @@ -98,7 +98,7 @@ struct OMXNodeInstance { status_t allocateBufferWithBackup( OMX_U32 portIndex, const sp<IMemory> ¶ms, - OMX::buffer_id *buffer); + OMX::buffer_id *buffer, OMX_U32 allottedSize); status_t freeBuffer(OMX_U32 portIndex, OMX::buffer_id buffer); |