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.

DM365 Resizer

I am using DM365 resizer module to scale 720X480i resolution to 128X72. From the DM365 user guide I understood that, the resizer can able to resize by a factor 256/n (16 <= n < 4096) in both horizontal and vertical direction.

But in my requirement the resize factor is not an integer multiple. So how can I resize 720X480i to 128X72 using DM365 resizer module.


Thanks in Advance..

Raghavendra

  • Hi Raghu,

    You can put the integral value in RSZx_V_DIF and RSZx_H_DIF, such that the output size that Resize can generate is more than what you want. Once that is done, you can program the exact required output in RSZx_O_VSZ and RSZx_O_HSZ.

    For your particular example, please set

    RSZx_H_DIF = 720*256/128 = 1440

    RSZx_V_DIF = 240*256/72 = 853 (rounding off from 853.333)

    This way the resizer can generate upto 128x72.02 from input of 720x240

    Now set,

    RSZx_O_HSZ = 128

    RSZx_O_VSZ = 72

     

    This way although the resize ratio says that you can generate more (72.02 lines), you are only writing out 72 lines.

    So in summary, put the resize ratio such that you can generate more data than what you want and then get the exact size using the HSZ and VSZ register.

     

    Hope this helps.

    Regards,

    Anshuman

  • Hi Anshuman,

    I got it.... Thanks a lot...

    Regards

    Raghavendra

     

  • Dear Raghu,

    Would you please tell me what the resizer mode do you use?continuous or the singleshot?

    Thanks very much.

  • Dear Anshuman,

    Would you please tell me  where can I find RSZx_V_DIF and RSZx_H_DIF?

    Thanks a lot 

    Grace