我想问一下dm8168的SclrLink可以把高分辨率缩放成低分辨率,谢谢
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
你好,
请参考MPScalar Link,可以实现大于1080p的分辨率,缩小到1080p。缩小的其他分辨率(小于1080p)没有验证,但理论上也是可以的。
你好,
我看了一下3.0里面就有了,但建议还是更新到最新的4.x版本。
问下 使用mpscalar 将 原始大小图像进行缩放时可不可以指定起始坐标?
就是说原始大小图像2464*2048, 从坐标(100,100)的位置开始将图像缩放至1080p, 可以不?
typedef struct
{
UInt32 cropStartX;
/**< Horizontal offset from which picture needs to be cropped. */
UInt32 cropStartY;
/**< Vertical offset from which picture needs to be cropped. */
UInt32 cropWidth;
/**< Width of the picture to be cropped. */
UInt32 cropHeight;
/**< Height of the picture to be cropped. */
} Vps_CropConfig;
BR,
Eason
使用scalar, (DVRRDK_04)
SclrLink_CreateParams_Init(&sclrPrm);
sclrPrm.inQueParams.prevLinkId = gVcapModuleContext.captureId;
sclrPrm.inQueParams.prevLinkQueId = 1;
sclrPrm.outQueParams.nextLink = gVcapModuleContext.nsfId[0];
sclrPrm.tilerEnable = FALSE;
sclrPrm.enableLineSkipSc = TRUE;
sclrPrm.inputFrameRate = 30;
sclrPrm.outputFrameRate = 2;
sclrPrm.numBufsPerCh = 2;
sclrPrm.outDataFormat = SYSTEM_DF_YUV422I_YUYV;
sclrPrm.scaleMode = DEI_SCALE_MODE_ABSOLUTE;
sclrPrm.outScaleFactor.absoluteResolution.outWidth = 1000;
sclrPrm.outScaleFactor.absoluteResolution.outHeight= 1000;
执行时发生错误:
[m3vpss ] 8473: SCLR: Create in progress !!!
[m3vpss ] !!!XDC RUNTIME ASSERT FAILED
[m3vpss ] xdc.runtime.Error @ ti.sdo.ipc.heaps.HeapMemMP: line 573:
[m3vpss ] assertion failure: A_zeroBlock: Cannot allocate size 0
我的scalarPrm设置问题?
上述错误已经修改, 原因是sclrPrm.inQueParams.prevLinkQueId = 1;设置错误。
现在问题有2个:
1. scalar只缩放一次,后续的图哪去了?
2. 修改mcfw/src_bios6/links_m3vpss/sclr/sclrLink_drv.c中的pChObj->scCropConfig.cropStartX=700,
得到的图像和pChObj->scCropConfig.cropStartX=0的一样, pChObj->scCropConfig.cropStartX修改不起作用?