⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 osd_timer.c

📁 SAMSUNG 5009的源代码
💻 C
📖 第 1 页 / 共 2 页
字号:
 *       INOUT
 *  Return        	: VOID
 *  By            	: QQ
 *  Description   	: Function for timer expiration
 ******************************************************************************
 */
VOID OsdScoreTimerExpired( UNSIGNED id )
{
	SysPrintf("\n[GFX] Change SCORE color. ");
	OSD_ChangeDisplay(OSD_CTRL_CHANGE_SCORE_CLT, NULL, SYS_NO_WAIT );
}
#endif/*_APP_CAP_FUNC_SCORING*/


#if _APP_CAP_OSD_SEPERATE_ICON_TIMER
/******************************************************************************
* Function name  : OsdWarnTimerExpired
* Arguments      :  
*     IN       UNSIGNED id 
*			
*     OUT       
*     I/O       
* Return         :  
*			VOID
* By             : Kim Do Yeon
* Description    :  
* Revision       :  
******************************************************************************
*/
// Change the scheme Qian liping 060509
extern ONOFF 	gOsd_angle_onoff; 
VOID OsdWarnTimerExpired( UNSIGNED id )
{
	DiscType_t		disc;
	DvdvAngleInfo_t	angle;
	
	disc = GetDiscState();

    // Warn icon seperate from the notice window_array in these cases:
	if( IsTransNoticeBg()== FALSE ) 
	{
		OSD_SetIconDisplay(ICON_CLEAR, NULL, SYS_NO_WAIT);
	}
	else
	{
		if( (disc==DVDV_DISC ||disc==DVDA_DISC)&&
			gOsd_angle_onoff == TRUE &&
			GetDvdvAngleAttribute( &angle ) == TRUE )
			OSD_SetIconDisplay(ICON_CAMERA, NULL, SYS_NO_WAIT);
		else
			OSD_SetIconDisplay(ICON_HIDE_NOTICE_BOX_ICON, NULL, SYS_NO_WAIT);

		if (gOSD_state.etPrev_icon == ICON_LOADING)
			OSD_SetIconDisplay(ICON_LOADING, NULL, SYS_NO_WAIT);
	}
}
#endif

/******************************************************************************
 *  Function name : OsdSelTimerExpire
 *  Arguments     : 
 *       IN         
 *       OUT
 *       INOUT
 *  Return        : VOID
 *  By            : Taejin Kwon
 *  Description   : Function for timer expiration
 ******************************************************************************
 */
VOID OsdSelTimerExpired( UNSIGNED id )
{
	SysPrintf("\n[OSD] Selection timer expired");		
	
#if _APP_CAP_KEY_SELECTION_TIMEOUT	
	switch(S5H_GetAppType())
	{	
		case APP_MMN:
			UiCmdGeneral(UOP_MMP_SEL_TIME_OUT);
			break;
					
		default: // Qian liping 060525
			/* No need to keep previous display */
			if(gOSD_state.etInfo_sub <= INFO_SUB_VTIME || 
				(gOSD_state.etInfo_sub >= INFO_SUB_CTRACK && gOSD_state.etInfo_sub <= INFO_SUB_CTIME))
			{			
				OsdCtrl_st ctrl;

				// Reset current playing infomation.
				InitTempValueState();
				SetTempValueSetFlag( FALSE );
				InitSearchValue();
				InitXvcdSearchValue();
				
				ctrl.p.info.old = gOSD_state.etInfo_sub; 
				ctrl.p.info.new = INFO_SUB_NONE;
				OSD_ChangeDisplay(OSD_CTRL_ELEM_SELECT, &ctrl, SYS_NO_WAIT);
				break;
			}
			OSD_ChangeDisplay(OSD_CTRL_UPDATE_INFO, NULL, SYS_NO_WAIT);
			break;
	}
#endif /* _APP_CAP_KEY_SELECTION_TIMEOUT */	

}

/******************************************************************************
 *  Function name : OsdLoadingTimerExpired
 *  Arguments     : 
 *       IN         
 *       OUT
 *       INOUT
 *  Return        : VOID
 *  By            : Taejin Kwon
 *  Description   : Function for timer expiration
 ******************************************************************************
 */
VOID OsdLoadingTimerExpired( UNSIGNED id )
{
	OsdMsg_st	tx;

	tx.type = OSD_MSG_CTRL;
	tx.p.ctrl.control = OSD_CTRL_LOADING;
	tx.etWait = SYS_NO_WAIT;//gaoping 20060920 problem when load in , the gosd_sema is error 
	SysSendMsg( &gQ_osd, &tx, sizeof(OsdMsg_st), SYS_NO_WAIT, 0 );

}
/******************************************************************************
 *  Function name : OsdMmpNoticeTimerExpired
 *  Arguments     : 
 *       IN         
 *       OUT
 *       INOUT
 *  Return        : VOID
 *  By            : Liu renliang
 *  Description   : Function for timer expiration
 ******************************************************************************
 */

VOID OsdMmpNoticeTimerExpired(UNSIGNED id)
{
#if _APP_CAP_OSD_EXPLORE_NOTICE_TIMEOUT
	MmpShowNoticeString(MMP_NOTICE_DEFAULT, NULL);
#endif 
}

/******************************************************************************
 *  Function name : OsdTimerSet
 *  Arguments     : 
 *       IN         
 *       OUT
 *       INOUT
 *  Return        : VOID
 *  By            : Taejin Kwon
 *  Description   : Reset OSD timer in a proper time value
 ******************************************************************************
 */
VOID OsdTimerSet( SysTimeTick_t time, SysEnable_t	set )
{
	SYS_RETURN	status;

	//SysPrintf("\n[OSD] OSD timer set in %d", time);
	
	status = SysResetTimer(&gTimer_osd, OsdTimerExpired, time, 0, 
		set, 0 );
	if( status == SYS_RETURN_FAIL )
	{
		SysPrintf(" ..... [FAIL]\n");
	}

	//SysPrintf(" ..... [OK]\n");
}

/******************************************************************************
 *  Function name : OsdNumericTimerSet
 *  Arguments     : 
 *       IN         
 *       OUT
 *       INOUT
 *  Return        : VOID
 *  By            : Taejin Kwon
 *  Description   : Reset OSD timer in a proper time value
 ******************************************************************************
 */
VOID OsdNumericTimerSet( SysTimeTick_t time, SysEnable_t	set )
{
	SYS_RETURN	status;

	//SysPrintf("\n[OSD] Numeric timer set in %d", time);
	
	status = SysResetTimer(&gTimer_num, OsdNumericTimerExpired, time, 0, 
		set, 0 );
	if( status == SYS_RETURN_FAIL )
	{
		SysPrintf(" ..... [FAIL]\n");
	}
	
	//SysPrintf(" ..... [OK]\n");
}

/******************************************************************************
 *  Function name : OsdIconTimerSet
 *  Arguments     : 
 *       IN         
 *       OUT
 *       INOUT
 *  Return        : VOID
 *  By            : Taejin Kwon
 *  Description   : Reset OSD timer in a proper time value
 ******************************************************************************
 */
VOID OsdIconTimerSet( SysTimeTick_t time, SysEnable_t	set )
{
	SYS_RETURN	status;

	//SysPrintf("\n[OSD] OSD timer set in %d", time);
	
	status = SysResetTimer(&gTimer_icon, OsdIconTimerExpired, time, 0, 
		set, 0 );
	if( status == SYS_RETURN_FAIL )
	{
		SysPrintf(" ..... [FAIL]\n");
	}

	//SysPrintf(" ..... [OK]\n");
}

#if _APP_CAP_OSD_SEPERATE_ICON_TIMER
VOID OsdWarnTimerSet( SysTimeTick_t time, SysEnable_t	set )
{
	SYS_RETURN	status;

	//SysPrintf("\n[OSD] Warning timer set in %d", time);
	
	status = SysResetTimer(&gTimer_warn, OsdWarnTimerExpired, time, 0, 
		set, 0 );
	if( status == SYS_RETURN_FAIL )
	{
		SysPrintf(" ..... [FAIL]\n");
	}

	//SysPrintf(" ..... [OK]\n");
}
#endif

/******************************************************************************
 *  Function name : OsdSelTimerSet
 *  Arguments     : 
 *       IN         
 *       OUT
 *       INOUT
 *  Return        : VOID
 *  By            : Taejin Kwon
 *  Description   : Reset OSD timer in a proper time value
 ******************************************************************************
 */
VOID OsdSelTimerSet( SysTimeTick_t time, SysEnable_t	set )
{
	SYS_RETURN	status;

	//SysPrintf("\n[OSD] Selection timer set in %d", time);
	
	status = SysResetTimer(&gTimer_selection, OsdSelTimerExpired, time, 
		0, set, 0 );
	if( status == SYS_RETURN_FAIL )
	{
		SysPrintf(" ..... [FAIL]\n");
	}

	//SysPrintf(" ..... [OK]\n");
}

/******************************************************************************
 *  Function name : OsdLoadingTimerSet
 *  Arguments     : 
 *       IN         
 *       OUT
 *       INOUT
 *  Return        : VOID
 *  By            : Taejin Kwon
 *  Description   : Reset OSD timer in a proper time value
 ******************************************************************************
 */
VOID OsdLoadingTimerSet( SysTimeTick_t time, SysEnable_t set)
{
	SYS_RETURN	status;
	
	status = SysResetTimer(&gTimer_loading, OsdLoadingTimerExpired, time, 
		time, set, 0 );
	if( status == SYS_RETURN_FAIL )
	{
		SysPrintf(" ..... [FAIL]\n");
	}
}
/******************************************************************************
 *  Function name : OsdLoadingTimerSet
 *  Arguments     : 
 *       IN         
 *       OUT
 *       INOUT
 *  Return        : VOID
 *  By            : Taejin Kwon
 *  Description   : Reset OSD timer in a proper time value
 ******************************************************************************
 */
VOID OsdMmpNoticeTimerSet( SysTimeTick_t time, SysEnable_t set )
{
#if _APP_CAP_OSD_EXPLORE_NOTICE_TIMEOUT
	SYS_RETURN	status;
	
	status = SysResetTimer(&gTimer_mmp_notice, OsdMmpNoticeTimerExpired, time, 
		0, set, 0 );
	if( status == SYS_RETURN_FAIL )
	{
		SysPrintf(" ..... [FAIL]\n");
	}
#endif/*_APP_CAP_OSD_EXPLORE_NOTICE_TIMEOUT*/
}


VOID OsdHandlerTimerSet( OsdTimerSet_st value )
{
	SysEnable_t toggle = TIMER_ENABLE;

	if( value.time == 0 )
		toggle = TIMER_DISABLE;

	switch( value.etType )
	{
		case OSD_TIMER_NORMAL:
			OsdTimerSet(value.time, toggle);
			break;
		case OSD_TIMER_NUMERIC:
			OsdNumericTimerSet(value.time, toggle);
			break;
		case OSD_TIMER_ICON:
			OsdIconTimerSet(value.time, toggle);
			break;
		case OSD_TIMER_WARNING:
			OsdWarnTimerSet(value.time, toggle);
			break;
		case OSD_TIMER_SELECTION:
			OsdSelTimerSet(value.time, toggle);
			break;
		case OSD_TIMER_LOADING:
			OsdLoadingTimerSet(value.time, toggle);
			break;
		case OSD_TIMER_EXP_NOTICE:
			OsdMmpNoticeTimerSet(value.time, toggle);		
			break;
		default:
			break;
	}
}

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -