当前位置: 首页>>代码示例>>C++>>正文


C++ SharedBuffer::getMPCHeader方法代码示例

本文整理汇总了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;
}
开发者ID:Meticulus,项目名称:vendor_st-ericsson_u8500,代码行数:27,代码来源:NmfHostMpc_ProcessingComponent.cpp

示例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;
}
开发者ID:Meticulus,项目名称:vendor_st-ericsson_u8500,代码行数:25,代码来源:NmfHostMpc_ProcessingComponent.cpp

示例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;
}
开发者ID:Meticulus,项目名称:vendor_st-ericsson_u8500,代码行数:13,代码来源:NmfMpc_ProcessingComponent.cpp

示例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;
}
开发者ID:Meticulus,项目名称:vendor_st-ericsson_u8500,代码行数:15,代码来源:NmfMpc_ProcessingComponent.cpp

示例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());
}
开发者ID:Meticulus,项目名称:vendor_st-ericsson_u8500,代码行数:8,代码来源:NmfHostMpc_ProcessingComponent.cpp


注:本文中的SharedBuffer::getMPCHeader方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。