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

📄 o_message_mute.c

📁 Zoran V966 DVD 解码 Soc芯片的源程序
💻 C
字号:
/****************************************************************************************************
*  Copyright (c) 2005 ZORAN Corporation, All Rights Reserved
*  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
*
*  File: o_message.c
*
* Description:
* =========
* This is the basic message-handler object, from which the other (specific)
* message handlers are derived. It is unlikely that this object type would
* be used directly - check your design.
****************************************************************************************************/

/****************************************************************************************************
*	DECLARATION: Public functions
****************************************************************************************************/
typedef MS_DESCRIPTOR_MESSAGE	MS_DESCRIPTOR_MESSAGE_MUTE;
typedef MSO_MESSAGE				MSO_MESSAGE_MUTE;

MS_OP OMESSAGE_MUTE_Operation(MSO_OBJECT __NEAR* pThis, MS_OP MsOp, UINT32 lParam);
#define OMESSAGE_MUTE_FillOSDSeg(o, a)		OMESSAGE_FillOSDSeg(o, a)


/***************************************************************************************
* 	Include customization file.
****************************************************************************************/

// Include custom code file: customer specific code, over-writing common one.
#include "Components\Custom\Message\o_message_mute_custom.c"

/****************************************************************************************************
*	DEFINITION: Private named constants
****************************************************************************************************/
/****************************************************************************************************
*	DEFINITION: Private macros
****************************************************************************************************/
/****************************************************************************************************
*	DEFINITION: Private typedefs
****************************************************************************************************/
/****************************************************************************************************
*	DEFINITION: Public (global) variables
****************************************************************************************************/
/****************************************************************************************************
*	DEFINITION: Private (static) variables
****************************************************************************************************/
/****************************************************************************************************
*	DECLARATION: Private (static) functions
****************************************************************************************************/

/****************************************************************************************************
*	DEFINITION: Public functions
****************************************************************************************************/
/****************************************************************************************************
* Function	: OMESSAGE_Operation
*
* Input		: Parameter_1 - description
*			  Parameter_2 - description
*
* Output		: Parameter_3 - description
*			  Parameter_4 - description
*
* Return		: Describe_possible_returned_values_and_their_meaning
*
* Description	: Describe_what_the_function_does_in_English
*
****************************************************************************************************/
MS_OP OMESSAGE_MUTE_Operation(MSO_OBJECT __NEAR* pThis, MS_OP MsOp, UINT32 lParam)
{
	FORMATED_UNICODE_STRING oFormUniStr;
	MSO_MESSAGE __NEAR* pMessage = (MSO_MESSAGE __NEAR*)pThis;

	// Initialize oFormUniStr, if no font index, then OSDR_GetFormUniStr_OsdMessage will be wrong
	oFormUniStr.mtFontIndex = FONT_MESSAGE;
	oFormUniStr.mszUniStr[0] = 0;
	
	switch(MsOp)
	{
	case MS_OP_TICK:
		if (pMessage->moParam.mwCoreTimer)
			break;

		if ((pMessage->moParam.mMsOpMsg == MS_OP_MSG_MUTE) && !CoreAPI_IsMute())
		{
			_DisplayMessageOnTick(pThis, MS_OP_MSG_MUTE, 0);
		}
		else if ((pMessage->moParam.mMsOpMsg != MS_OP_MSG_MUTE) && CoreAPI_IsMute())
		{
			_DisplayMessageOnTick(pThis, MS_OP_MSG_MUTE, 1);
		}
		break;

	case MS_OP_MSG_MUTE:
		if (lParam == 0)
		{
			pMessage->moParam.mMsOpMsg = MS_OP_NONE;
			MS_SetInvisible(pThis);
			return MS_OP_NONE;
		}
		else if (lParam == 1)
		{
			pMessage->moParam.mMsOpMsg = MsOp;
			OSDR_GetFormUniStr_OsdMessage((FORMATED_UNICODE_STRING __NEAR*)&oFormUniStr, (UINT32) S_MUTE);
			MsOp = MS_OP_MSO_MESSAGE_BUILD;
			lParam = (UINT32)&oFormUniStr;
		}
		else
		{
			BREAK_POINT();
		}
		break;

	default:
		break;
	}

	return OMESSAGE_Operation(pThis, MsOp, lParam);
}



/****************************************************************************************************
*	DEFINITION: Private functions
****************************************************************************************************/




⌨️ 快捷键说明

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