Hi: Could you be more elaborate on this? Could you tell me your filter coefficients? Thanks
-----Original Message----- From: George Gu [mailto:[EMAIL PROTECTED] Sent: Monday, January 15, 2007 1:41 PM To: #ZHENG LEI#; [email protected] Subject: RE: VPFE Resizer zheng, you need to set the resizer filter properly. George Gu (Xiangyu Gu) Wintech Digital System Co. Beijing, China Ph: 8610-8278-2828 ext.168 Fax: 8610-8278-0028 http://www.wintechdigtal.com <http://www.wintechdigtal.com/> ---------------------------- ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of #ZHENG LEI# Sent: 2007年1月15日 12:52 To: [email protected] Subject: Fwd: VPFE Resizer 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
