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.

TDA2SX: EVE : Image Resize using YUV Scalar

Part Number: TDA2SX

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

  • Hi Sritam,

    I have forwarded your question to an EVE expert.

    Regards,
    Yordan
  • Thanks a lot Yordan.
  • The input buffer width and height are set wrongly. Please use the below setting.

    Input buffer descriptor

    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 = 1280;
    pObj->inBufDesc.bufPlanes[0].height = 960;
    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;

    Output Buffer descriptor

    pObj->outBufDesc.numPlanes = 1;
    pObj->outBufDesc.bufPlanes[0].frameROI.topLeft.x = 0;
    pObj->outBufDesc.bufPlanes[0].frameROI.topLeft.y = 0;
    pObj->outBufDesc.bufPlanes[0].width = 384;
    pObj->outBufDesc.bufPlanes[0].height = 256;
    pObj->outBufDesc.bufPlanes[0].frameROI.width = 320; /*Should be non padded one*/
    pObj->outBufDesc.bufPlanes[0].frameROI.height = 240;
    pObj->outBufDesc.bufPlanes[0].planeType = 0;

    Regrads,

    Kumar.D

  • Thanks a lot Kumar for your Support

    I was able to figure out the issue and have changed the input buf height and width..as given by you.

    Regards,

    Sritam