link框架 capture—-nfs—-outvpss—inhost
—-(processlink)indsp—osdlink
下面是详细的参数
ipcFramesOutVpssPrm.baseCreateParams.inQueParams.prevLinkId = nsfId[0];
ipcFramesOutVpssPrm.baseCreateParams.inQueParams.prevLinkQueId = 0;
ipcFramesOutVpssPrm.baseCreateParams.numOutQue = 1;
ipcFramesOutVpssPrm.baseCreateParams.outQueParams[0].nextLink = ipcFramesInHostId;
ipcFramesOutVpssPrm.baseCreateParams.numChPerOutQue[0] = 1;
ipcFramesOutVpssPrm.baseCreateParams.processLink=ipcFramesInDspId;
ipcFramesOutVpssPrm.baseCreateParams.notifyProcessLink = TRUE;
ipcFramesOutVpssPrm.baseCreateParams.noNotifyMode = TRUE;
ipcFramesOutVpssPrm.baseCreateParams.notifyPrevLink = TRUE;
ipcFramesOutVpssPrm.baseCreateParams.notifyNextLink = TRUE;
ipcFramesInDspPrm.baseCreateParams.inQueParams.prevLinkId = ipcFramesOutVpssId;
ipcFramesInDspPrm.baseCreateParams.inQueParams.prevLinkQueId = 0;
ipcFramesInDspPrm.baseCreateParams.numOutQue = 1;
ipcFramesInDspPrm.baseCreateParams.outQueParams[0].nextLink = osdId;
ipcFramesInDspPrm.baseCreateParams.notifyPrevLink = FALSE;
ipcFramesInDspPrm.baseCreateParams.notifyNextLink = TRUE;
ipcFramesInDspPrm.baseCreateParams.noNotifyMode = TRUE;
osdPrm.inQueParams.prevLinkId = ipcFramesInDspId;
osdPrm.enableOSDAlg=TRUE;
osdPrm.enableSCDAlg=FALSE;
osdPrm.inQueParams.prevLinkQueId = 0;
for(chId = 0; chId < ALG_LINK_OSD_MAX_CH; chId++)
{
osdPrm.osdChCreateParams[chId].chDefaultParams= g_osdChParam[chId];
/* set osd window max width and height */
osdPrm.osdChCreateParams[chId].maxWidth = DEMO_OSD_WIN_MAX_WIDTH;
osdPrm.osdChCreateParams[chId].maxHeight = DEMO_OSD_WIN_MAX_HEIGHT;
osdPrm.osdChCreateParams[chId].chDefaultParams.chId = chId;
osdPrm.osdChCreateParams[chId].chDefaultParams.numWindows = 0;
}
在所有的linkcreate之后
memset(osdFormat, SYSTEM_DF_YUV420SP_UV, ALG_LINK_OSD_MAX_CH);
Demo_osdInit(1, osdFormat); status = System_linkControl(osdId,ALG_LINK_OSD_CMD_SET_CHANNEL_WIN_PRM,&g_osdChParam[0], sizeof(AlgLink_OsdChWinParams), TRUE );
错入日志在附件 辛苦啦
Ternence_Hsu:
你好;
你是在什么版本的SDK上面调试的 ?