Hi:

Is there anybody kind enough to share the resizer filter coefficients? I
am not sure what it means by S10Q8. Is it a two's complement or what.
What I have tried is to time the float number with 256, and truncated to
an integer, and then take the last 10 LSBs. Well, my lancoze3 filter
doesn't work right. I only succeed in using a simple box filter with all
coefficients set to 0.25. 

 

The other problem is regarding to the input size calculation. Does
anyone actually succeed in resizing from SDRAM to SDRAM? I have tried to
resize a 704x576 image to 352x288. According to the formula in SPRUE38A,
the HRSZ and VRSZ are both 511, with 0 starting phase. But the resizer
won't work with these settings. My register values are:

 

RSZ_CNT: 1007fdff
OUT_SIZE: 1200160
IN_START: 0
IN_SIZE: 24002c0
SDR_INADD: 886c6000
SDR_INOFF: 580
SDR_OUTADD: 86c31800
SDR_OUTOFF: 2c0
YENH: 0

 

After several trials, I managed to get it right, by setting input height
to be equal to or greater than 578. In fact, any width >= 704, and
height >= 578 will work, even if the picture input is actually 704x576,
and the bytes per line is still 1408. So, does this mean that the
formula in SPRUE38A is wrong? I also tried different settings for VRSZ
to be 510, 509, 508, and 507. No luck for any of these. If the input
height is smaller than certain value, then the resizer will hang, and
never generate any interrupt. If it is bigger, then the picture gets all
weird. 

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to