大家好、
我们正在尝试使用小程序 YUV 标量将大小为512x384的图像调整为320 x 240
我们的图像为1280 x 960、在偏移位置(60、70)时、我们需要获取512 x 384的 ROI、然后将其调整为320 x 240
我们的块大小为192 x 64。
分配大小为384 x 256的缓冲区以存储调整大小的图像输出。
我已经给出了下面的 inBUf 说明
pObj->inBufDesc.numPlanes = 1;
pObj->inBufDesc.bufPlanes[0]。frameROI.topLeft.x = 60;
pObj->inBufDesc.bufPlanes[0]。frameROI.topLeft.y = 70;
pObj->inBufDesc.bufPlanes[0].width = 384;
pObj->inBufDesc.bufPlanes[0].height = 256;
pObj->inBufDesc.bufPlanes[0].frameROI.width = 512;/*应该不填充一个*/
pObj->inBufDesc.bufPlanes[0].frameROI.height = 384;
pObj->inBufDesc.bufPlanes[0].planeType = 0;
分数= 4
ScaleRatioQ12 =(512/320)= 1.6 * 4096 = 6553
使用上述参数时,调整大小的 outptut 图像不正确。
如果我遗漏了一些东西、请告诉我