本文整理汇总了C++中OMX_COMPONENTTYPE::FillThisBuffer方法的典型用法代码示例。如果您正苦于以下问题:C++ OMX_COMPONENTTYPE::FillThisBuffer方法的具体用法?C++ OMX_COMPONENTTYPE::FillThisBuffer怎么用?C++ OMX_COMPONENTTYPE::FillThisBuffer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OMX_COMPONENTTYPE
的用法示例。
在下文中一共展示了OMX_COMPONENTTYPE::FillThisBuffer方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: vcil_in_fill_this_buffer
void vcil_in_fill_this_buffer(ILCS_COMMON_T *st, void *call, int clen, void *resp, int *rlen)
{
IL_PASS_BUFFER_EXECUTE_T *exe = call;
IL_RESPONSE_HEADER_T *ret = resp;
OMX_COMPONENTTYPE *pComp = exe->reference;
OMX_BUFFERHEADERTYPE *pHeader = exe->bufferHeader.pOutputPortPrivate;
OMX_U8 *pBuffer = pHeader->pBuffer;
OMX_PTR *pAppPrivate = pHeader->pAppPrivate;
OMX_PTR *pPlatformPrivate = pHeader->pPlatformPrivate;
OMX_PTR *pInputPortPrivate = pHeader->pInputPortPrivate;
OMX_PTR *pOutputPortPrivate = pHeader->pOutputPortPrivate;
vc_assert(pHeader);
memcpy(pHeader, &exe->bufferHeader, sizeof(OMX_BUFFERHEADERTYPE));
pHeader->pBuffer = pBuffer;
pHeader->pAppPrivate = pAppPrivate;
pHeader->pPlatformPrivate = pPlatformPrivate;
pHeader->pInputPortPrivate = pInputPortPrivate;
pHeader->pOutputPortPrivate = pOutputPortPrivate;
vc_assert(is_valid_hostside_buffer(pHeader));
*rlen = sizeof(IL_RESPONSE_HEADER_T);
ret->func = IL_FILL_THIS_BUFFER;
ret->err = pComp->FillThisBuffer(pComp, pHeader);
}