Loading include/media/IOMX.h +2 −2 Original line number Original line Diff line number Diff line Loading @@ -109,7 +109,7 @@ public: // Use |params| as an OMX buffer, but limit the size of the OMX buffer to |allottedSize|. // Use |params| as an OMX buffer, but limit the size of the OMX buffer to |allottedSize|. virtual status_t useBuffer( virtual status_t useBuffer( node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, buffer_id *buffer, OMX_U32 allottedSize, OMX_BOOL crossProcess = OMX_FALSE) = 0; buffer_id *buffer, OMX_U32 allottedSize) = 0; virtual status_t useGraphicBuffer( virtual status_t useGraphicBuffer( node_id node, OMX_U32 port_index, node_id node, OMX_U32 port_index, Loading Loading @@ -156,7 +156,7 @@ public: // may be larger. // may be larger. virtual status_t allocateBufferWithBackup( virtual status_t allocateBufferWithBackup( node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, buffer_id *buffer, OMX_U32 allottedSize, OMX_BOOL crossProcess = OMX_FALSE) = 0; buffer_id *buffer, OMX_U32 allottedSize) = 0; virtual status_t freeBuffer( virtual status_t freeBuffer( node_id node, OMX_U32 port_index, buffer_id buffer) = 0; node_id node, OMX_U32 port_index, buffer_id buffer) = 0; Loading media/libmedia/IOMX.cpp +1 −4 Original line number Original line Diff line number Diff line Loading @@ -1044,10 +1044,7 @@ status_t BnOMX::onTransact( OMX_BOOL enable = (OMX_BOOL)data.readInt32(); OMX_BOOL enable = (OMX_BOOL)data.readInt32(); MetadataBufferType type = (MetadataBufferType)data.readInt32(); MetadataBufferType type = (MetadataBufferType)data.readInt32(); status_t err = status_t err = storeMetaDataInBuffers(node, port_index, enable, &type); // only control output metadata via Binder port_index != 1 /* kOutputPortIndex */ ? BAD_VALUE : storeMetaDataInBuffers(node, port_index, enable, &type); reply->writeInt32(type); reply->writeInt32(type); reply->writeInt32(err); reply->writeInt32(err); Loading media/libstagefright/OMXClient.cpp +6 −7 Original line number Original line Diff line number Diff line Loading @@ -101,7 +101,7 @@ struct MuxOMX : public IOMX { virtual status_t useBuffer( virtual status_t useBuffer( node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, buffer_id *buffer, OMX_U32 allottedSize, OMX_BOOL crossProcess); buffer_id *buffer, OMX_U32 allottedSize); virtual status_t useGraphicBuffer( virtual status_t useGraphicBuffer( node_id node, OMX_U32 port_index, node_id node, OMX_U32 port_index, Loading Loading @@ -135,7 +135,7 @@ struct MuxOMX : public IOMX { virtual status_t allocateBufferWithBackup( virtual status_t allocateBufferWithBackup( node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, buffer_id *buffer, OMX_U32 allottedSize, OMX_BOOL crossProcess); buffer_id *buffer, OMX_U32 allottedSize); virtual status_t freeBuffer( virtual status_t freeBuffer( node_id node, OMX_U32 port_index, buffer_id buffer); node_id node, OMX_U32 port_index, buffer_id buffer); Loading Loading @@ -379,9 +379,8 @@ status_t MuxOMX::getGraphicBufferUsage( status_t MuxOMX::useBuffer( status_t MuxOMX::useBuffer( node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, buffer_id *buffer, OMX_U32 allottedSize, OMX_BOOL /* crossProcess */) { buffer_id *buffer, OMX_U32 allottedSize) { return getOMX(node)->useBuffer( return getOMX(node)->useBuffer(node, port_index, params, buffer, allottedSize); node, port_index, params, buffer, allottedSize, OMX_FALSE /* crossProcess */); } } status_t MuxOMX::useGraphicBuffer( status_t MuxOMX::useGraphicBuffer( Loading Loading @@ -448,9 +447,9 @@ status_t MuxOMX::allocateSecureBuffer( status_t MuxOMX::allocateBufferWithBackup( status_t MuxOMX::allocateBufferWithBackup( node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, buffer_id *buffer, OMX_U32 allottedSize, OMX_BOOL /* crossProcess */) { buffer_id *buffer, OMX_U32 allottedSize) { return getOMX(node)->allocateBufferWithBackup( return getOMX(node)->allocateBufferWithBackup( node, port_index, params, buffer, allottedSize, OMX_FALSE /* crossProcess */); node, port_index, params, buffer, allottedSize); } } status_t MuxOMX::freeBuffer( status_t MuxOMX::freeBuffer( Loading media/libstagefright/include/OMX.h +2 −2 Original line number Original line Diff line number Diff line Loading @@ -83,7 +83,7 @@ public: virtual status_t useBuffer( virtual status_t useBuffer( node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, buffer_id *buffer, OMX_U32 allottedSize, OMX_BOOL crossProcess); buffer_id *buffer, OMX_U32 allottedSize); virtual status_t useGraphicBuffer( virtual status_t useGraphicBuffer( node_id node, OMX_U32 port_index, node_id node, OMX_U32 port_index, Loading Loading @@ -119,7 +119,7 @@ public: virtual status_t allocateBufferWithBackup( virtual status_t allocateBufferWithBackup( node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, buffer_id *buffer, OMX_U32 allottedSize, OMX_BOOL crossProcess); buffer_id *buffer, OMX_U32 allottedSize); virtual status_t freeBuffer( virtual status_t freeBuffer( node_id node, OMX_U32 port_index, buffer_id buffer); node_id node, OMX_U32 port_index, buffer_id buffer); Loading media/libstagefright/include/OMXNodeInstance.h +2 −2 Original line number Original line Diff line number Diff line Loading @@ -70,7 +70,7 @@ struct OMXNodeInstance { status_t useBuffer( status_t useBuffer( OMX_U32 portIndex, const sp<IMemory> ¶ms, OMX_U32 portIndex, const sp<IMemory> ¶ms, OMX::buffer_id *buffer, OMX_U32 allottedSize, OMX_BOOL crossProcess); OMX::buffer_id *buffer, OMX_U32 allottedSize); status_t useGraphicBuffer( status_t useGraphicBuffer( OMX_U32 portIndex, const sp<GraphicBuffer> &graphicBuffer, OMX_U32 portIndex, const sp<GraphicBuffer> &graphicBuffer, Loading Loading @@ -107,7 +107,7 @@ struct OMXNodeInstance { status_t allocateBufferWithBackup( status_t allocateBufferWithBackup( OMX_U32 portIndex, const sp<IMemory> ¶ms, OMX_U32 portIndex, const sp<IMemory> ¶ms, OMX::buffer_id *buffer, OMX_U32 allottedSize, OMX_BOOL crossProcess); OMX::buffer_id *buffer, OMX_U32 allottedSize); status_t freeBuffer(OMX_U32 portIndex, OMX::buffer_id buffer); status_t freeBuffer(OMX_U32 portIndex, OMX::buffer_id buffer); Loading Loading
include/media/IOMX.h +2 −2 Original line number Original line Diff line number Diff line Loading @@ -109,7 +109,7 @@ public: // Use |params| as an OMX buffer, but limit the size of the OMX buffer to |allottedSize|. // Use |params| as an OMX buffer, but limit the size of the OMX buffer to |allottedSize|. virtual status_t useBuffer( virtual status_t useBuffer( node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, buffer_id *buffer, OMX_U32 allottedSize, OMX_BOOL crossProcess = OMX_FALSE) = 0; buffer_id *buffer, OMX_U32 allottedSize) = 0; virtual status_t useGraphicBuffer( virtual status_t useGraphicBuffer( node_id node, OMX_U32 port_index, node_id node, OMX_U32 port_index, Loading Loading @@ -156,7 +156,7 @@ public: // may be larger. // may be larger. virtual status_t allocateBufferWithBackup( virtual status_t allocateBufferWithBackup( node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, buffer_id *buffer, OMX_U32 allottedSize, OMX_BOOL crossProcess = OMX_FALSE) = 0; buffer_id *buffer, OMX_U32 allottedSize) = 0; virtual status_t freeBuffer( virtual status_t freeBuffer( node_id node, OMX_U32 port_index, buffer_id buffer) = 0; node_id node, OMX_U32 port_index, buffer_id buffer) = 0; Loading
media/libmedia/IOMX.cpp +1 −4 Original line number Original line Diff line number Diff line Loading @@ -1044,10 +1044,7 @@ status_t BnOMX::onTransact( OMX_BOOL enable = (OMX_BOOL)data.readInt32(); OMX_BOOL enable = (OMX_BOOL)data.readInt32(); MetadataBufferType type = (MetadataBufferType)data.readInt32(); MetadataBufferType type = (MetadataBufferType)data.readInt32(); status_t err = status_t err = storeMetaDataInBuffers(node, port_index, enable, &type); // only control output metadata via Binder port_index != 1 /* kOutputPortIndex */ ? BAD_VALUE : storeMetaDataInBuffers(node, port_index, enable, &type); reply->writeInt32(type); reply->writeInt32(type); reply->writeInt32(err); reply->writeInt32(err); Loading
media/libstagefright/OMXClient.cpp +6 −7 Original line number Original line Diff line number Diff line Loading @@ -101,7 +101,7 @@ struct MuxOMX : public IOMX { virtual status_t useBuffer( virtual status_t useBuffer( node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, buffer_id *buffer, OMX_U32 allottedSize, OMX_BOOL crossProcess); buffer_id *buffer, OMX_U32 allottedSize); virtual status_t useGraphicBuffer( virtual status_t useGraphicBuffer( node_id node, OMX_U32 port_index, node_id node, OMX_U32 port_index, Loading Loading @@ -135,7 +135,7 @@ struct MuxOMX : public IOMX { virtual status_t allocateBufferWithBackup( virtual status_t allocateBufferWithBackup( node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, buffer_id *buffer, OMX_U32 allottedSize, OMX_BOOL crossProcess); buffer_id *buffer, OMX_U32 allottedSize); virtual status_t freeBuffer( virtual status_t freeBuffer( node_id node, OMX_U32 port_index, buffer_id buffer); node_id node, OMX_U32 port_index, buffer_id buffer); Loading Loading @@ -379,9 +379,8 @@ status_t MuxOMX::getGraphicBufferUsage( status_t MuxOMX::useBuffer( status_t MuxOMX::useBuffer( node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, buffer_id *buffer, OMX_U32 allottedSize, OMX_BOOL /* crossProcess */) { buffer_id *buffer, OMX_U32 allottedSize) { return getOMX(node)->useBuffer( return getOMX(node)->useBuffer(node, port_index, params, buffer, allottedSize); node, port_index, params, buffer, allottedSize, OMX_FALSE /* crossProcess */); } } status_t MuxOMX::useGraphicBuffer( status_t MuxOMX::useGraphicBuffer( Loading Loading @@ -448,9 +447,9 @@ status_t MuxOMX::allocateSecureBuffer( status_t MuxOMX::allocateBufferWithBackup( status_t MuxOMX::allocateBufferWithBackup( node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, buffer_id *buffer, OMX_U32 allottedSize, OMX_BOOL /* crossProcess */) { buffer_id *buffer, OMX_U32 allottedSize) { return getOMX(node)->allocateBufferWithBackup( return getOMX(node)->allocateBufferWithBackup( node, port_index, params, buffer, allottedSize, OMX_FALSE /* crossProcess */); node, port_index, params, buffer, allottedSize); } } status_t MuxOMX::freeBuffer( status_t MuxOMX::freeBuffer( Loading
media/libstagefright/include/OMX.h +2 −2 Original line number Original line Diff line number Diff line Loading @@ -83,7 +83,7 @@ public: virtual status_t useBuffer( virtual status_t useBuffer( node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, buffer_id *buffer, OMX_U32 allottedSize, OMX_BOOL crossProcess); buffer_id *buffer, OMX_U32 allottedSize); virtual status_t useGraphicBuffer( virtual status_t useGraphicBuffer( node_id node, OMX_U32 port_index, node_id node, OMX_U32 port_index, Loading Loading @@ -119,7 +119,7 @@ public: virtual status_t allocateBufferWithBackup( virtual status_t allocateBufferWithBackup( node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, buffer_id *buffer, OMX_U32 allottedSize, OMX_BOOL crossProcess); buffer_id *buffer, OMX_U32 allottedSize); virtual status_t freeBuffer( virtual status_t freeBuffer( node_id node, OMX_U32 port_index, buffer_id buffer); node_id node, OMX_U32 port_index, buffer_id buffer); Loading
media/libstagefright/include/OMXNodeInstance.h +2 −2 Original line number Original line Diff line number Diff line Loading @@ -70,7 +70,7 @@ struct OMXNodeInstance { status_t useBuffer( status_t useBuffer( OMX_U32 portIndex, const sp<IMemory> ¶ms, OMX_U32 portIndex, const sp<IMemory> ¶ms, OMX::buffer_id *buffer, OMX_U32 allottedSize, OMX_BOOL crossProcess); OMX::buffer_id *buffer, OMX_U32 allottedSize); status_t useGraphicBuffer( status_t useGraphicBuffer( OMX_U32 portIndex, const sp<GraphicBuffer> &graphicBuffer, OMX_U32 portIndex, const sp<GraphicBuffer> &graphicBuffer, Loading Loading @@ -107,7 +107,7 @@ struct OMXNodeInstance { status_t allocateBufferWithBackup( status_t allocateBufferWithBackup( OMX_U32 portIndex, const sp<IMemory> ¶ms, OMX_U32 portIndex, const sp<IMemory> ¶ms, OMX::buffer_id *buffer, OMX_U32 allottedSize, OMX_BOOL crossProcess); OMX::buffer_id *buffer, OMX_U32 allottedSize); status_t freeBuffer(OMX_U32 portIndex, OMX::buffer_id buffer); status_t freeBuffer(OMX_U32 portIndex, OMX::buffer_id buffer); Loading