Hi, Sir
I'm using IPCFramesOutHLOSLINK, allocation SR buffers for it, encountered following messages:
"ASSERT (ipcFramesOutLink_tsk.c|IpcFramesOutLink_processFrameBufs|379)"
Thanks for your response!
Resume my codes:
static Void ipcFramesOutSRAllocDMAInit(Chains_IpcFramesCtrlThrObj * thrObj)
{
VIDFrame_BufList bufList;
VIDFrame_Buf *pFrame;
Int32 i = 0;
Int32 status;
Int32 bufSize = 1280 * 720 * 2;
bufList.numFrames = 0;
for (i = 0; i < VIDFRAME_MAX_FRAME_BUFS;i++)
{
status = Vsys_allocBuf(FRAMEBUF_HEAP_SR_ID, bufSize, 128, &thrObj->bufInfo[i]);
if (ERROR_NONE == status)
{
bufList.numFrames++;
pFrame = &bufList.frames[i];
pFrame->channelNum = 0;
pFrame->fid = 0;
pFrame->frameHeight = 720;
pFrame->frameWidth = 1280;
pFrame->framePitch[0] = 2560;
pFrame->phyAddr[0][0] = &thrObj->bufInfo[i].physAddr;
pFrame->addr[0][0] = &thrObj->bufInfo[i].virtAddr;
}
}
status = IpcFramesOutLink_putFullVideoFrames(SYSTEM_HOST_LINK_ID_IPC_FRAMES_OUT_0, &bufList); //stop at this line
OSA_assert(0 == status);
OSA_dmaInit();
}