Hello All,
We are trying to resize an Image of Size 512x384 to 320 x 240 using the applet YUV Scalar
We have an image of 1280 x 960, from where at an offset of location (60,70) we need to take an ROI of 512 x 384 and then resize the same to 320 x 240
Our block size is 192 x 64.
A buffer is allocated of the size 384 x 256 to store the resize image output.
I have given the inBUf description as below
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; /*Should be non padded one*/
pObj->inBufDesc.bufPlanes[0].frameROI.height = 384;
pObj->inBufDesc.bufPlanes[0].planeType = 0;
fracQFmt = 4
scaleRatioQ12 = (512/320)= 1.6 * 4096 = 6553
With the above parameters the resized outptut image is not proper.
Please let me know, if i am missing on to something