Hi,
I am developing my code on DM8127. The RDK is IPNC_RDK3.5.
The usecase is the following:
Host IPC bit out -> video IPC bit in -> dec link-> video frame out -> vpss frame in-> scalar link-> vpss frame out->video frame in->H264 enc-> video ipc bit out->host ipc bit in
SclrLink_CreateParams sclrPrm;
CHAINS_INIT_STRUCT(SclrLink_CreateParams, sclrPrm);
sclrPrm.enableLineSkipSc = FALSE;
sclrPrm.inputFrameRate = 25;
sclrPrm.outputFrameRate = 25;
sclrPrm.inQueParams.prevLinkId = SYSTEM_VPSS_LINK_ID_IPC_IN_M3_0;
sclrPrm.inQueParams.prevLinkQueId = 0;
sclrPrm.outQueParams.nextLink = nextLinkId;
sclrPrm.scaleMode = DEI_SCALE_MODE_RATIO;
sclrPrm.outScaleFactor.ratio.heightRatio.numerator = 1;
sclrPrm.outScaleFactor.ratio.heightRatio.denominator = 1;
sclrPrm.outScaleFactor.ratio.widthRatio.numerator = 1;
sclrPrm.outScaleFactor.ratio.widthRatio.denominator = 1;
sclrPrm.tilerEnable = FALSE; // force tiler disable;
//sclrPrm.numBufsPerCh = 1;
sclrPrm.outDataFormat = VF_YUV420SP_UV;
sclrPrm.pathId = SCLR_LINK_SEC0_SC3;
System_linkCreate(SYSTEM_LINK_ID_SCLR_INST_0, &sclrPrm, sizeof(sclrPrm));
The syslink chain can be created successfully, but the program will stuck at scalar link. The error message is the following:
[m3vpss ] 19586: Assertion @ Line: 1031 in links_m3vpss/sclr/sclrLink_drv.c: status == FVID2_SOK : failed !!!
If I set the scalar pathId as SCLR_LINK_SC5, then the output format can't be specified. I will add nsf link to convert the output format to 420_SP. The error message is the same when the program runs.
Thanks!