本文整理汇总了C++中SharedBuffer::getMPCHeader方法的典型用法代码示例。如果您正苦于以下问题:C++ SharedBuffer::getMPCHeader方法的具体用法?C++ SharedBuffer::getMPCHeader怎么用?C++ SharedBuffer::getMPCHeader使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SharedBuffer
的用法示例。
在下文中一共展示了SharedBuffer::getMPCHeader方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: fillThisBuffer
ENS_API_EXPORT OMX_ERRORTYPE NmfHostMpc_ProcessingComponent::fillThisBuffer(OMX_BUFFERHEADERTYPE* pBuffer)
{
OMX_U32 portIndex = pBuffer->nOutputPortIndex;
if (portIndex>=mENSComponent.getPortCount() || mENSComponent.getPort(pBuffer->nOutputPortIndex)==0) {
return OMX_ErrorBadPortIndex;
}
ENS_Port * port = static_cast<ENS_Port *>(mENSComponent.getPort(pBuffer->nOutputPortIndex));
if(port->isMpc())
{
SharedBuffer *sharedbuffer = static_cast<SharedBuffer *>(pBuffer->pOutputPortPrivate);
pBuffer->nFlags = 0;
pBuffer->nFilledLen = 0;
pBuffer->nOffset = 0;
sharedbuffer->updateMPCHeader();
mIfillThisBufferMpc[pBuffer->nOutputPortIndex].fillThisBuffer(sharedbuffer->getMPCHeader());
}
else
{
mIfillThisBuffer[pBuffer->nOutputPortIndex].fillThisBuffer(pBuffer);
}
return OMX_ErrorNone;
}
示例2: emptyThisBuffer
ENS_API_EXPORT OMX_ERRORTYPE NmfHostMpc_ProcessingComponent::emptyThisBuffer(OMX_BUFFERHEADERTYPE* pBuffer)
{
OMX_U32 portIndex = pBuffer->nInputPortIndex;
if (portIndex>=mENSComponent.getPortCount() || mENSComponent.getPort(pBuffer->nInputPortIndex)==0) {
return OMX_ErrorBadPortIndex;
}
ENS_Port * port = static_cast<ENS_Port *>(mENSComponent.getPort(pBuffer->nInputPortIndex));
if(port->isMpc())
{
SharedBuffer *sharedbuffer = static_cast<SharedBuffer *>(pBuffer->pInputPortPrivate);
DBC_ASSERT(pBuffer->nFilledLen <= pBuffer->nAllocLen);
sharedbuffer->updateMPCHeader();
mIemptyThisBufferMpc[pBuffer->nInputPortIndex].emptyThisBuffer(sharedbuffer->getMPCHeader());
}
else
{
mIemptyThisBuffer[pBuffer->nInputPortIndex].emptyThisBuffer(pBuffer);
}
return OMX_ErrorNone;
}
示例3: emptyThisBuffer
ENS_API_EXPORT OMX_ERRORTYPE NmfMpc_ProcessingComponent::emptyThisBuffer(
OMX_BUFFERHEADERTYPE* pBuffer) {
SharedBuffer *sharedbuffer = static_cast<SharedBuffer *>(pBuffer->pInputPortPrivate);
DBC_ASSERT(pBuffer->nFilledLen <= pBuffer->nAllocLen);
sharedbuffer->updateMPCHeader();
mIemptyThisBuffer[pBuffer->nInputPortIndex].emptyThisBuffer(sharedbuffer->getMPCHeader());
return OMX_ErrorNone;
}
示例4: fillThisBuffer
ENS_API_EXPORT OMX_ERRORTYPE NmfMpc_ProcessingComponent::fillThisBuffer(
OMX_BUFFERHEADERTYPE* pBuffer) {
SharedBuffer *sharedbuffer = static_cast<SharedBuffer *>(pBuffer->pOutputPortPrivate);
pBuffer->nFlags = 0;
pBuffer->nFilledLen = 0;
pBuffer->nOffset = 0;
sharedbuffer->updateMPCHeader();
mIfillThisBuffer[pBuffer->nOutputPortIndex].fillThisBuffer(sharedbuffer->getMPCHeader());
return OMX_ErrorNone;
}
示例5: fillBufferDoneMpc_cb
ENS_API_EXPORT void NmfHostMpc_ProcessingComponent::fillBufferDoneMpc_cb(t_uint32 dspBufferHdrArmAddress)
{
SharedBuffer * sharedbuffer = getSharedBuffer(dspBufferHdrArmAddress, true);
doSpecificFillBufferDone_cb(sharedbuffer->getOMXHeader());
OstTraceFiltInst2(TRACE_DEBUG, "ENS_PROXY: NmfHostMpc_ProcessingComponent:fillBufferDone_cb (HOST)0x%x (MPC)0x%x", (unsigned int)sharedbuffer->getOMXHeader(), (unsigned int)sharedbuffer->getMPCHeader());
mENSComponent.fillBufferDone(sharedbuffer->getOMXHeader());
}