Ejemplo n.º 1
0
void win_dis_enter_key(UINT8 id)
{
    SYSTEM_DATA* p_sys_data=sys_data_get();
    UINT16 result;
    OSD_RECT rect;
    COM_POP_LIST_PARAM_T param;
    UINT16 sel = 0;
    POBJECT_HEAD pObj,pObjItem;
    MULTISEL* msel;

    msel = dis_item_set[id - 1];
    pObj = (POBJECT_HEAD)msel;
    pObjItem = (POBJECT_HEAD)dis_items[id - 1];

    rect.uLeft  = CON_L+SEL_L_OF;
    rect.uWidth = SEL_W;
    rect.uTop = pObj->frame.uTop;

    param.selecttype = POP_LIST_SINGLESELECT;

    switch(id)
    {
    case IDC_DIS_BRIGHT:
        sel = p_sys_data->avset.brightness;
        break;
    case IDC_DIS_CONTRAST:
        sel = p_sys_data->avset.contrast;
        break;
    case IDC_DIS_SATURATION:
        sel = p_sys_data->avset.saturation;
        break;
    case IDC_DIS_HUE:
        sel = p_sys_data->avset.hue;
        break;
    case IDC_DIS_SHARP:
        sel = p_sys_data->avset.sharpness;
        break;
    }

    rect.uHeight = 340;
    param.cur = sel - m_dis_set_range[id][0];
    sel = win_com_open_sub_list(POP_LIST_MENU_DISPLAY_SET,&rect,&param) + m_dis_set_range[id][0];

    OSD_SetMultiselSel(msel, sel);
    OSD_NotifyEvent(pObj,EVN_POST_CHANGE,(UINT32)sel, 0);
    OSD_TrackObject(pObjItem,C_DRAW_SIGN_EVN_FLG | C_UPDATE_ALL);

}
Ejemplo n.º 2
0
static void win_item_enter_key(UINT8 id)
{
	SYSTEM_DATA* p_sys_data=sys_data_get();
	//UINT16 result;
	OSD_RECT rect;
	COM_POP_LIST_PARAM_T param;
	UINT16 sel;
	POBJECT_HEAD pObj,pObjItem;
	MULTISEL* msel;

	msel = multisel_items[id - 1];
	pObj = (POBJECT_HEAD)msel;
	pObjItem = (POBJECT_HEAD)con_items[id - 1];

	rect.uLeft=CON_L+TXTS_L_OF;
	rect.uWidth=TXTS_W;
	rect.uTop = pObj->frame.uTop;
	param.selecttype = POP_LIST_SINGLESELECT;


	if(id == COUNTRY_ID)
	{
		param.cur = p_sys_data->country;
	}
	else if(id == NETWORK_ID)
	{
         if(GERMANY == OSD_GetMultiselSel(&item_country_sel))
            param.cur = p_sys_data->germ_servs_type; //germ_network_setting_to_osd(&(p_sys_data->current_ft), p_sys_data->current_ft_count);
         else
         {
		   param.cur = network_setting_to_osd(&(p_sys_data->current_ft[0]));
         }
	}

	rect.uHeight=300;
	sel  = win_com_open_sub_list(POP_LIST_MENU_COUNTRY_NETWORK,&rect,&param);
    if (sel == param.cur)
        return;
	OSD_SetMultiselSel(msel, sel);
	OSD_NotifyEvent(pObj,EVN_POST_CHANGE,(UINT32)sel, 0);
	OSD_TrackObject(pObjItem,C_DRAW_SIGN_EVN_FLG | C_UPDATE_ALL);

}
Ejemplo n.º 3
0
void win_av_enter_key(UINT8 id)
{
	SYSTEM_DATA* p_sys_data=sys_data_get();
	UINT16 result;
	OSD_RECT rect;
	COM_POP_LIST_PARAM_T param;
	UINT16 sel;
	POBJECT_HEAD pObj,pObjItem;
	MULTISEL* msel;
	

	msel = av_item_set[id - 1];
	pObj = (POBJECT_HEAD)msel;
	pObjItem = (POBJECT_HEAD)av_items[id - 1];
	
	rect.uLeft=CON_L+SEL_L_OF;
	rect.uWidth=SEL_W;
	rect.uTop = pObj->frame.uTop;

	param.selecttype = POP_LIST_SINGLESELECT;

    extern UINT8 g_rgb_yuv_changed;

	switch(id)
	{
	case TVMODE_ID:
		rect.uHeight=300;
		param.cur = tvmode_setting_to_osd(p_sys_data->avset.tv_mode);
		sel  = win_com_open_sub_list(POP_LIST_MENU_TVSYS,&rect,&param);
        if (g_rgb_yuv_changed)
            break;

		OSD_SetMultiselSel(msel, sel);
		OSD_NotifyEvent(pObj,EVN_POST_CHANGE,(UINT32)sel, 0);
		OSD_TrackObject(pObjItem,C_DRAW_SIGN_EVN_FLG | C_UPDATE_ALL);
		break;
	case TVASPECT_ID:
		rect.uHeight= 300;//26*4+20;
		param.cur=win_av_get_index(p_sys_data);
		sel = win_com_open_sub_list(POP_LIST_MENU_TVSYS,&rect,&param);
        if (g_rgb_yuv_changed)
            break;

		OSD_SetMultiselSel(msel, sel);
		OSD_NotifyEvent(pObj,EVN_POST_CHANGE,(UINT32)sel, 0);
		OSD_TrackObject(pObjItem,C_DRAW_SIGN_EVN_FLG | C_UPDATE_ALL);
		break;
	case RFSYSTEM_ID:
		rect.uTop = 240;
		rect.uHeight= 300;//26*4+20;
		param.cur = p_sys_data->avset.rf_mode;
		sel = win_com_open_sub_list(POP_LIST_MENU_TVSYS,&rect,&param);
        if (g_rgb_yuv_changed)
            break;

		OSD_SetMultiselSel(msel, sel);
		OSD_NotifyEvent(pObj,EVN_POST_CHANGE,(UINT32)sel, 0);
		OSD_TrackObject(pObjItem,C_DRAW_SIGN_EVN_FLG | C_UPDATE_ALL);
		break;
	case RFCHAN_ID:
		rect.uTop = 240;
		rect.uHeight = 300;//150;
		param.cur=p_sys_data->avset.rf_channel-rf_ch_range[p_sys_data->avset.rf_mode][0];
		sel = win_com_open_sub_list(POP_LIST_MENU_TVSYS,&rect,&param)+rf_ch_range[p_sys_data->avset.rf_mode][0];
        if (g_rgb_yuv_changed)
            break;

		OSD_SetMultiselSel(msel, sel);
		OSD_NotifyEvent(pObj,EVN_POST_CHANGE,(UINT32)sel, 0);		
		OSD_TrackObject(pObjItem,C_DRAW_SIGN_EVN_FLG | C_UPDATE_ALL);
		break;
#ifdef HDTV_SUPPORT
	case HDMIOUT_ID:
		rect.uTop = 240;
		rect.uHeight = 300;//26*5+20;
		param.cur = p_sys_data->avset.video_format;
		sel = win_com_open_sub_list(POP_LIST_MENU_TVSYS,&rect,&param);
        if (g_rgb_yuv_changed)
            break;

		OSD_SetMultiselSel(msel, sel);
		OSD_NotifyEvent(pObj,EVN_POST_CHANGE,(UINT32)sel, 0);
		OSD_TrackObject(pObjItem,C_DRAW_SIGN_EVN_FLG | C_UPDATE_ALL);
		break;
	case AUDIOOUT_ID:
		rect.uTop = 240;
		rect.uHeight = 260;//26*3+20;
		param.cur = p_sys_data->avset.audio_output;
		sel = win_com_open_sub_list(POP_LIST_MENU_TVSYS,&rect,&param);
        if (g_rgb_yuv_changed)
            break;

		OSD_SetMultiselSel(msel, sel);
		OSD_NotifyEvent(pObj,EVN_POST_CHANGE,(UINT32)sel, 0);
		OSD_TrackObject(pObjItem,C_DRAW_SIGN_EVN_FLG | C_UPDATE_ALL);
		break;
#endif
	}
	
}
Ejemplo n.º 4
0
void win_av_enter_key(UINT8 id)
{
	SYSTEM_DATA* p_sys_data=sys_data_get();
	UINT16 result;
	OSD_RECT rect;
	COM_POP_LIST_PARAM_T param;
	UINT16 sel;
	POBJECT_HEAD pObj,pObjItem;
	MULTISEL* msel;
	

	msel = av_item_set[id - 1];
	pObj = (POBJECT_HEAD)msel;
	pObjItem = (POBJECT_HEAD)av_items[id - 1];
	
	rect.uLeft=CON_L+SEL_L_OF;
	rect.uWidth=SEL_W;
	rect.uTop = pObj->frame.uTop;

	param.selecttype = POP_LIST_SINGLESELECT;

	extern UINT8 g_rgb_yuv_changed;

	switch(id)
	{
		case TVMODE_ID:
			rect.uHeight=300;
			param.cur = tvmode_setting_to_osd(p_sys_data->avset.tv_mode);
			sel  = win_com_open_sub_list(POP_LIST_MENU_TVSYS,&rect,&param);
			if (sel == param.cur)
			{
				break;
			}
#ifdef GPIO_RGB_YUV_SWITCH
			if (g_rgb_yuv_changed)
			{
				break;
			}
#endif
			OSD_SetMultiselSel(msel, sel);
			OSD_NotifyEvent(pObj,EVN_POST_CHANGE,(UINT32)sel, 0);
			OSD_TrackObject(pObjItem,C_DRAW_SIGN_EVN_FLG | C_UPDATE_ALL);
			break;
		
		case TVASPECT_ID:
			rect.uHeight= 300;//26*4+20;
			param.cur=win_av_get_index(p_sys_data);
			sel = win_com_open_sub_list(POP_LIST_MENU_TVSYS,&rect,&param);

#ifdef HDMI_CERTIFICATION_UI		
			if( check_tv_display_in_hd_mode())
			{
				// only [16:9 mode] in com_list, therefore don't need to change the tv mode 			
				sel = 3;	// 16:9
			}
#endif

			if (sel == param.cur)
			{
				break;
			}
#ifdef GPIO_RGB_YUV_SWITCH
			if (g_rgb_yuv_changed)
			{
				break;
			}
#endif

			OSD_SetMultiselSel(msel, sel);
			OSD_NotifyEvent(pObj,EVN_POST_CHANGE,(UINT32)sel, 0);
			OSD_TrackObject(pObjItem,C_DRAW_SIGN_EVN_FLG | C_UPDATE_ALL);

			break;
		
		case VIDEOOUT_ID:
#ifdef GPIO_RGB_YUV_SWITCH
			if (g_rgb_yuv_changed)
			{
				break;
			}
#endif
			rect.uHeight= 300;//26*4+20;
#ifdef HDTV_SUPPORT
			if (sys_data_get_scart_out() == SCART_YUV)
			{
				param.cur = 0;
			}
			else
			{
				param.cur = 1;
			}
#else			
			param.cur = p_sys_data->avset.scart_out;
#endif

			sel = win_com_open_sub_list(POP_LIST_MENU_TVSYS,&rect,&param);
			if (sel == param.cur)
			{
				break;
			}

			OSD_SetMultiselSel(msel, sel);
			OSD_NotifyEvent(pObj,EVN_POST_CHANGE,(UINT32)sel, 0);
			OSD_TrackObject(pObjItem,C_DRAW_SIGN_EVN_FLG | C_UPDATE_ALL);
			break;
		
		case RFSYSTEM_ID:
			rect.uTop = 240;
			rect.uHeight= 300;//26*4+20;
			param.cur = p_sys_data->avset.rf_mode;
			sel = win_com_open_sub_list(POP_LIST_MENU_TVSYS,&rect,&param);
			if (sel == param.cur)
			{
				break;
			}
#ifdef GPIO_RGB_YUV_SWITCH
			if (g_rgb_yuv_changed)
			{
				break;
			}
#endif

			OSD_SetMultiselSel(msel, sel);
			OSD_NotifyEvent(pObj,EVN_POST_CHANGE,(UINT32)sel, 0);
			OSD_TrackObject(pObjItem,C_DRAW_SIGN_EVN_FLG | C_UPDATE_ALL);
			break;
		
		case RFCHAN_ID:
			rect.uTop = 240;
			rect.uHeight = 300;//150;
			param.cur=p_sys_data->avset.rf_channel-rf_ch_range[p_sys_data->avset.rf_mode][0];
			sel = win_com_open_sub_list(POP_LIST_MENU_TVSYS,&rect,&param)+rf_ch_range[p_sys_data->avset.rf_mode][0];
			if (sel == param.cur)
			{
				break;
			}
#ifdef GPIO_RGB_YUV_SWITCH
			if (g_rgb_yuv_changed)
			{
				break;
			}
#endif

			OSD_SetMultiselSel(msel, sel);
			OSD_NotifyEvent(pObj,EVN_POST_CHANGE,(UINT32)sel, 0);		
			OSD_TrackObject(pObjItem,C_DRAW_SIGN_EVN_FLG | C_UPDATE_ALL);
			break;
		
#ifdef HDTV_SUPPORT
		case HDMIOUT_ID:
			rect.uTop = 240;
			rect.uHeight = 300;//26*5+20;
#ifdef HDMI_CERTIFICATION_UI
			param.cur = convert_sys_video_format_to_ui_hdmi_out_sel(p_sys_data->avset.video_format);
#else
			param.cur = p_sys_data->avset.video_format;
#endif
			sel = win_com_open_sub_list(POP_LIST_MENU_TVSYS,&rect,&param);
			if (sel == param.cur)
			{
				break;
			}
#ifdef GPIO_RGB_YUV_SWITCH
			if (g_rgb_yuv_changed)
			{
				break;
			}
#endif

			OSD_SetMultiselSel(msel, sel);
			OSD_NotifyEvent(pObj,EVN_POST_CHANGE,(UINT32)sel, 0);
			OSD_TrackObject(pObjItem,C_DRAW_SIGN_EVN_FLG | C_UPDATE_ALL);
			break;
		
		case AUDIOOUT_ID:
			rect.uTop = 240;
			rect.uHeight = 260;//26*3+20;
			param.cur = p_sys_data->avset.audio_output;
			sel = win_com_open_sub_list(POP_LIST_MENU_TVSYS,&rect,&param);
			if (sel == param.cur)
			{
				break;
			}
#ifdef GPIO_RGB_YUV_SWITCH
			if (g_rgb_yuv_changed)
			{
				break;
			}
#endif

			OSD_SetMultiselSel(msel, sel);
			OSD_NotifyEvent(pObj,EVN_POST_CHANGE,(UINT32)sel, 0);
			OSD_TrackObject(pObjItem,C_DRAW_SIGN_EVN_FLG | C_UPDATE_ALL);
			break;
#endif
	}
	
}