Is there anyone use the ipipeif resizer on the dm355?

ashish pareek bless2ashish at rediffmail.com
Thu Nov 13 07:31:54 CST 2008


 Hi ,
Even i am having similar problem .I want to see 1920x1080 resolution image but i am getting it on left side tht too divided in 2 sections .

Ashish

My Setparams func looks like 

pIpipeParam->ipipeif_param.hnum = width;
	pIpipeParam->ipipeif_param.vnum = height;
	pIpipeParam->ipipeif_param.glob_hor_size = width + 8;
	pIpipeParam->ipipeif_param.glob_ver_size = height + 10;
	pIpipeParam->ipipeif_param.adofs = ((width * 2 + 31)&(~31));
	pIpipeParam->ipipeif_param.decimation = 1;
   
	pIpipeParam->ipipeif_param.data_shift = BITS11_0;

	pIpipeParam->prefilter.pre_en = DISABLE;
	pIpipeParam->false_color_suppresion.fcs_en = DISABLE;
	pIpipeParam->edge_enhancer.yee_emf = DISABLE;
	pIpipeParam->rgb2yuv.yuv_adj_ctr = 0x20;
	pIpipeParam->rgb2yuv.yuv_adj_brt = 0;
   
	if (width > 1344)
		pIpipeParam->ipipe_hsz = (width>>1)+32 - 1;
	else
		pIpipeParam->ipipe_hsz = width - 1;
   
	pIpipeParam->ipipe_vsz = height - 1;

	if (width == 1280) {
		pIpipeParam->ipipe_vst = 1;
		pIpipeParam->ipipe_hst = 1;
	} else {
		pIpipeParam->ipipe_vst = 0;
		pIpipeParam->ipipe_hst = 0;
	}

	pIpipeParam->wb.wb2_dgn = 256;
	pIpipeParam->wb.wb2_wg_r = 128;
	pIpipeParam->wb.wb2_wg_gr = 128;
	pIpipeParam->wb.wb2_wg_gb = 128;
	pIpipeParam->wb.wb2_wg_b = 128;
   
	pIpipeParam->rsz_rsc_param[0].rsz_i_hst = 0;
	pIpipeParam->rsz_rsc_param[0].rsz_o_hst = 0;
	pIpipeParam->rsz_rsc_param[0].rsz_h_phs = 0;
   
	if (width > 1344)
		pIpipeParam->rsz_rsc_param[0].rsz_o_hsz = (width>>1)+32-1;
	else
		pIpipeParam->rsz_rsc_param[0].rsz_o_hsz = width - 1 ;
   
	pIpipeParam->rsz_rsc_param[0].rsz_h_dif = 256;// (width* 256 /width );
	pIpipeParam->rsz_rsc_param[0].rsz_v_dif = 256 ;// ((height )* 256 / height);
	pIpipeParam->rsz_rsc_param[0].rsz_o_vsz = height - 1 ;
   
	pIpipeParam->ext_mem_param[0].rsz_sdr_oft = ((width * 2+ 31)&(~31));
	pIpipeParam->ext_mem_param[0].rsz_sdr_ptr_e = height;

#if 0   
	pIpipeParam->ipipe_dpaths_fmt = RAW2RAW; //YUV2YUV;
	pIpipeParam->ipipe_dpaths_bypass = RAW_MODE_ON;
#else
	pIpipeParam->ipipe_dpaths_fmt = RAW2YUV;
	pIpipeParam->ipipe_dpaths_bypass = RAW_MODE_OFF;
#endif 


On Thu, 13 Nov 2008 pavelhan wrote :
>yes,I have test the ipipeif rsz and the ccdc culling pattern,I think these two methon is different in their implement:
>the ipipeif rsz only dicimate the pixels that is larger than 1280 pixels,so it is not the real scale,which means you can only get the left block of the image;
>and the culling pattern decimate the pixels in a different way,you can specifies the decimation parameter in a 8x8 windows,so you can get a whole look of the image
>Am I right?
>
>
>2008-11-13
>
>
>
>
>
>Pavel Han
>Oplinx Co.,Ltd
>Address:Hanggang Fuchun Business Mansion 2116# Futian, Shenzhen 518041,PRC
>Tel: (086)0755-88359865
>Website:www.oplinx.com.cn
>E-mail: pavelhan at oplinx.com
>
>
>
>·¢¼þÈË£º Karicheri, Muralidharan
>·¢ËÍʱ¼ä£º 2008-11-13  02:01:37
>ÊÕ¼þÈË£º pavelhan; davinci-linux-open-source
>³­ËÍ£º
>Ö÷Ì⣺ RE: Is there anyone use the ipipeif resizer on the dm355?
>
>I have done resize of 1920 pixels to 1280 pixels. You need to set the rsz parameter to
>input width * 16 / output width. Also set decm in ipipeif cfg register to 1 to enable decimation at the ipipeif. If you are using the ipipe driver provided with MV LSP, this can be achieved by setting these parameters in the ipipeif structure for IPIPE_SET_PARAM ioctl.
>structure name ipipeif
>parameters :-
>decimation = 1;
>rsz = <value calculated as above>
>
>
>
> From: davinci-linux-open-source-bounces+m-karicheri2=ti.com at linux.davincidsp.com [mailto:davinci-linux-open-source-bounces+m-karicheri2=ti.com at linux.davincidsp.com] On Behalf Of pavelhan
>Sent: Thursday, October 09, 2008 5:24 AM
>To: davinci-linux-open-source
>Subject: Is there anyone use the ipipeif resizer on the dm355?
>
>Hello All!
> From the dm355 VPFE datasheet,the resizer block on the ipipeif(not ipipe) has the ability to resize the input image to its 1x to 1/7x resolution.But in my application, I find that if I use it to resize a 1920x1080 image to its 1/2 resolution and then perform the ipipe processing,I only can get the left block of the image displayed on the TV.In my viewpoint, I hope I can get a full image with a smaller resolution disaplayed on my TV,not just the left block.Is it possible to use the ipipeif resizer to achieve this goal?
>Thank you! Any help will be appreciated!
>
>2008-10-09
>
>
>
>
>
>Pavel Han
>Oplinx Co.,Ltd
>Address:Hanggang Fuchun Business Mansion 2116# Futian, Shenzhen 518041,PRC
>Tel: (086)0755-88359865
>Website:www.oplinx.com.cn
>E-mail: pavelhan at oplinx.com
>
>
>__________ Information from ESET Smart Security, version of virus signature database 3608 (20081113) __________
>
>The message was checked by ESET Smart Security.
>
>http://www.eset.com
>_______________________________________________
>Davinci-linux-open-source mailing list
>Davinci-linux-open-source at linux.davincidsp.com
>http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://linux.omap.com/pipermail/davinci-linux-open-source/attachments/20081113/ba8b597f/attachment-0001.htm


More information about the Davinci-linux-open-source mailing list