各位老师好,请问DM8168 DVRRDK4.0 SC模块能否支持保持画面比例的缩放?
MCFW中SC的配置结构体很少,请问该如何配置.
这是我现在的配置:
SclrLink_CreateParams_Init(&sclrPrm[0]);
sclrPrm[0].inQueParams.prevLinkId = gVcapModuleContext.deiId[0];
sclrPrm[0].inQueParams.prevLinkQueId = DEI_LINK_OUT_QUE_DEI_SC;
sclrPrm[0].outQueParams.nextLink = gMultiChHd_VcapVencVdisObj.mergeId[0];
sclrPrm[0].tilerEnable = FALSE;
sclrPrm[0].enableLineSkipSc = FALSE;//FALSE;
sclrPrm[0].inputFrameRate = 50;
sclrPrm[0].outputFrameRate = 50;
sclrPrm[0].scaleMode = DEI_SCALE_MODE_RATIO;//DEI_SCALE_MODE_ABSOLUTE;DEI_SCALE_MODE_RATIO
// sclrPrm[0].outScaleFactor.absoluteResolution.outWidth = 1920;
// sclrPrm[0].outScaleFactor.absoluteResolution.outHeight = 1080;
sclrPrm[0].outScaleFactor.ratio.widthRatio.numerator = 1;
sclrPrm[0].outScaleFactor.ratio.widthRatio.denominator = 1;
sclrPrm[0].outScaleFactor.ratio.heightRatio.numerator = 1;
sclrPrm[0].outScaleFactor.ratio.heightRatio.denominator = 1;
Louis:
根据你的配置:SCALE模式是基于ratio(即是缩放比率)
sclrPrm[0].scaleMode = DEI_SCALE_MODE_RATIO;//DEI_SCALE_MODE_ABSOLUTE;DEI_SCALE_MODE_RATIO
缩放比率在下面的代码有配置:输出/输入 = numerator/denominator,这里配置的比率就是1:1
sclrPrm[0].outScaleFactor.ratio.widthRatio.numerator = 1;
sclrPrm[0].outScaleFactor.ratio.widthRatio.denominator = 1;
sclrPrm[0].outScaleFactor.ratio.heightRatio.numerator = 1;
sclrPrm[0].outScaleFactor.ratio.heightRatio.denominator = 1;