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.

DMAI resize function problem

Hi everyone,

I am working on DM6467 EVM recently and first time join this community, "Say hello to everybody here".

I want to use resize function of DMAI module to resize "1920x1080" to "720x480" but I got an error message like below when program run to function "Resize_execute".

DavinciHD_vdce DavinciHD_vdce.2:  invalid size

This message show me invalid size but what is the invalid size, anybody can explain it? I can't find the message on DMAI module to know what's happen. I also try run example code under folder dvsdk_1_40_02_33/PSP_01_30_00_082/example/dm646x/Source/saResize.c, it can be executed successfully, so it should not be a size problem.

 I have follow the doc to implement resize function using DMAI interface, doc like as

dvsdk_1_40_02_33/dmai_1_10_00_06/docs/html/group__ti__sdo__dmai__resize.html.

Anybody can give me a help? Thank you!

  • hello, Jacson,

    I am doing dm6467 now, and trying to replace the 264enc and 264dec with videnc1_copy and viddec2_copy, but I encountered the same problem as you.

    The terminal prints:

    DavinciHD_vdce DavinciHD_vdce.2:  invalid size

    I don't know why, could you help me?

    Thank you!

    zhiqiang li

  • Hello,

    The VDCE peripheral and device driver have a number of restrictions on the buffers you pass in. The DMAI Resizer module tries it best to catch these using assertions, make sure they are turned on, see the DMAI user guide. They are turned on by default at release, so unless you have changed this it should still be the case.

    In addition you will have to look at the VDCE user's guide which is part of the Platform Support Package (PSP) on the various restrictions posed by the hardware and driver. The error message you see is not from DMAI, it's from the driver.

    Regards, Niclas

  • Hi, Li

    Now I'm trying to replace the 264enc and 264dec with videnc1_copy and viddec2_copy. And I am puzzled with the same problem as you.

    Would you tell me how you resolve this problem? Thank you very much!

     

    Bin Tian