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.

AM57x VPE scaling with low level ap testvepm2m

Other Parts Discussed in Thread: AM5728

Hi experts,

We tested the AM5728 VPE scaling with low level app testvpem2m mentioned in http://processors.wiki.ti.com/index.php/Linux_Core_VPE_User's_Guide

root@am57xx-evm:~# testvpem2m 1920x1080_100frmaes_nv12.yuv 1920 1080 nv12 1928x1080.yuv 1928 1080 yuyv 0 3
Input @ 3 = 1920 x 1080 , 842094158
Output @ 4 = 1928 x 1080 , 1448695129
query buf, plane 0 = 2073600, plane 1 = 1036800
query buf, plane 0 = 2073600, plane 1 = 1036800
query buf, plane 0 = 2073600, plane 1 = 1036800
query buf, plane 0 = 2073600, plane 1 = 1036800
query buf, plane 0 = 2073600, plane 1 = 1036800
query buf, plane 0 = 2073600, plane 1 = 1036800
query buf, plane 0 = 4164480, plane 1 = 1036800

...............................................

when the output solution of scaling image is bigger than 1920x1080, the image will be cropped, as the pic shown below, any ideas??

  • Hi Dwayne,

    Is the display support resolution higher then 1920x1080? I'm trying to verify whether the issue is cause by the AM57x VPE and board output or due to display limitation.

    BR
    Tsvetolin Shulev
  • Hi Tsvetolin Shulev,

    Thanks for your response!
    The output yuyv file was displayed by ffmpeg, so it may not be caused by display limitation I think.

    In AM57xx PSDK 02.00.01.07
    ../board-support/linux-4.1.13+gitAUTOINC+8dc66170d9-g8dc6617/drivers/media/platform/ti-vpe/vpdma.h,
    the maximum resolution of VPDMA is only defined to 1920x1080, is it possible the reason to cause this issue?
    enum vpdma_max_width {
    ...
    MAX_OUT_WIDTH_1920
    }
    enum vpdma_max_height {
    ....
    MAX_OUT_HEIGHT_1080
    }

    Regards,
    Dwayne
  • Dwayne,

    Yes, it is true. There are limitation of 1920x1080 resolution for vpdma.

    BR
    Tsvetolin Shulev
  • Hi Tsvetolin Shulev,

    Thanks for reply!!

    According to AM5728 TRM,
    10.3.4 VPE Scaler (SC)
    ....
    10.3.4.1 SC Features
    .....
    - Maximum horizontal scaling ratio only limited by output line buffer (2047 pixels)
    ....
    Does it mean that VPE SC is capable to operate scaling horizontal upto 2047 pixels?
    If I do not misunderstand the meaning above, is it SW limitation?
    Is it possible to break that limitation?

    Regards,
    Dwayne
  • Dwayne,

    Yes, that is true - Maximum horizontal scaling ratio only limited by output line buffer (2047 pixels). This is hardware limitation.
    But in other hand according to the vpdma.h maximal resolution is 1920x1080 - this is SW limitation.
    You can try to increase the software limitations but I could not guarantee for the result.

    BR
    Tsvetolin Shulev