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.

DM6437 resizer stuck in specific ratio

Hi.

I have DM6437(TMS320DM6437ZWTQ6) processor with resizer driver version 1.10.3


I resize grayscale images in many different scales, and most of the time it is successful.
I use fix coefficients array for all the scales, taken from the driver sample and basically it works fine.

In some cases the resizer is hang.
specifically resizing image of 114*114 to 56*56 always get stuck.
hrsz&vrsz calculated by driver are both 497, after (-1 subtraction).

1. Can wrong coefficients cause resizer stuck ?


2. I tried to calculate new coefficients for this setup by linux coefficients utilty, and replaced the fixed coefficients.
    first, the hrsz&vrsz in the generated file were 512 and not 497 (in the remarks).
    second, the result was the same. the resizer was stucked.

can anyone have an idea what can be the problem ?

I read all the relevant documents, and posts about resizing and don't have a clue.

Thanks,
Barak.

  • Hi Barak,

    Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages (for processor issues). Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics (e2e.ti.com).

    Kindly check Warning section at Page 16 of below mentioned Davinci Resizer Document.
    It Says


    Equation 9 and Equation 10 must be satisfied for the resizer to work properly. iw and ih values greater or smaller than required by
    the equations may hang the hardware.

    http://www.ti.com/lit/an/spraai7b/spraai7b.pdf

  • I have read these section before and the PSP driver is taking care to satisfy Equation 9 and Equation 10,

    and also recalculate input hight and width accordingly.

    Also I read in advance SPRAAI7B and all the posts regarding resizer.

    still it didn't help me.

  • I found the problem.
    Somehow it was related to DSP load.
    When I process frames in frame rate, everything is ok.

    I just want to validate something about the coefficients.
    I want to support scaling in many ratios.
    Therefore I want to prepare ahead arrays of coefficients.

    1. Are the coefficients infuenced only from RSZ, or also from input or output hight & width ?
    2. Are the coefficients equal for hight & width if the hrsz=vrsz ?