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:使用 YUV 标量重构图像

Guru**** 2560240 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/597294/tda2sx-eve-image-resize-using-yuv-scalar

器件型号:TDA2Sx

大家好、

我们正在尝试使用小程序 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 图像不正确。  

如果我遗漏了一些东西、请告诉我

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、Sritam、

    我已将您的问题转交给 EVE 专家。

    此致、
    Yordan
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    非常感谢 Yordan。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    输入缓冲器宽度和高度设置错误。 请使用以下设置。

    输入缓冲区描述符

    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;/*应该不填充一个*/
    pObj->inBufDesc.bufPlanes[0].frameROI.height = 384;
    pObj->inBufDesc.bufPlanes[0].planeType = 0;

    输出缓冲区描述符

    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;/*应该不填充一个*/
    pObj->outBufDesc.bufPlanes[0].frameROI.height = 240;
    pObj->outBufDesc.bufPlanes[0].planeType = 0;

    平路机、

    Kumar.D

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    非常感谢 Kumar 的支持

    我能够弄清这个问题、并根据您的意见更改了输入缓冲器的高度和宽度。

    此致、

    Sritam