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

📄 o_firmware_upgrade_config.c

📁 Zoran V966 DVD 解码 Soc芯片的源程序
💻 C
字号:
/* **************************************************************************************
*  Copyright (c) 2004 ZORAN Corporation, All Rights Reserved
*  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
*
*  File: $Workfile: o_firmware_upgrade_config.c$
*
* Description:
* ========
*
***************************************************************************/



/***************************************************************************************
*	Descriptor 	: 	oDescriptorPageTitle
*
*	Purpose	 	:	This is the descriptor for the page title text
****************************************************************************************/
#ifndef D_CUSTOM_oPageTitleText
static CONST OSD_TEXT oPageTitleText =
{	OSDR_GetFormUniStr_OsdMessage,		(UINT32)S_FUPGRADE	};
#endif//oPageTitleText

#ifndef D_CUSTOM_oDescriptorPageTitle
static CONST MS_DESCRIPTOR_TEXT oDescriptorPageTitle =
{ // MS_DESCRIPTOR_TEXT
	{ // MS_DESCRIPTOR
		sizeof(MSO_TEXT),
		MS_NAV_NULL,
		MS_ATTR_OSD_LAYER_0,
		{
			AREA_FIRMWARE_UPGRADE_TEXT_X,
			AREA_FIRMWARE_UPGRADE_PAGE_TEXT_TITLE_Y,
			AREA_FIRMWARE_UPGRADE_TEXT_W,
			AREA_FIRMWARE_UPGRADE_TEXT_H
		},
		OTEXT_Operation,
		OTEXT_FillOSDSeg,
		(UINT8*)NULL
	},
	(MS_X_Y_ALIGN *)&oCenterAlignToContainer,
	(MS_COLOR_SET *)&oDefaultTextColorSet,
	NULL,
	(OSD_TEXT*)&oPageTitleText,
	FONT_0,
	NULL,
	NULL
};
#endif//oDescriptorPageTitle

/***************************************************************************************
*	Descriptor 	: 	oDescriptorInstructionText
*
*	Purpose	 	:	This is the descriptor for the user instructions
****************************************************************************************/
#ifndef D_CUSTOM_oInstructionText
static CONST OSD_TEXT oInstructionText =
{	OSDR_GetFormUniStr_OsdMessage,		(UINT32)S_ERASE_AND_PROGRAM	};
#endif//oInstructionText

#ifndef D_CUSTOM_oDescriptorInstructionText
static CONST MS_DESCRIPTOR_TEXT oDescriptorInstructionText =
{ // MS_DESCRIPTOR_TEXT
	{ // MS_DESCRIPTOR
		sizeof(MSO_TEXT),
		MS_NAV_NULL,
		MS_ATTR_OSD_LAYER_0,
		{
			AREA_FIRMWARE_UPGRADE_TEXT_X,
			AREA_FIRMWARE_UPGRADE_INSTRUCTION_TEXT_Y,
			AREA_FIRMWARE_UPGRADE_TEXT_W,
			AREA_FIRMWARE_UPGRADE_TEXT_H
		},
		OTEXT_Operation,
		OTEXT_FillOSDSeg,
		(UINT8*)NULL
	},
	(MS_X_Y_ALIGN *)&oCenterAlignToContainer,
	(MS_COLOR_SET *)&oDefaultTextColorSet,
	NULL,
	(OSD_TEXT*)&oInstructionText,
	FONT_0,
	NULL,
	NULL
};
#endif//oDescriptorInstructionText

/***************************************************************************************
*	Descriptor 	: 	oDescriptorProgramWaitText
*
*	Purpose	 	:	 This is the descriptor for the "please wait" text:
****************************************************************************************/
#ifndef D_CUSTOM_oProgramWaitText
static CONST OSD_TEXT oProgramWaitText =
{	OSDR_GetFormUniStr_OsdMessage,		(UINT32)S_PROGRAMMING_WAIT	};
#endif//oProgramWaitText

#ifndef D_CUSTOM_oDescriptorProgramWaitText
static CONST MS_DESCRIPTOR_TEXT oDescriptorProgramWaitText=
{ // MS_DESCRIPTOR_TEXT
	{ // MS_DESCRIPTOR
		sizeof(MSO_TEXT),
		MS_NAV_NULL,
#ifdef	D_CD_UPGRADE_AUTO
		MS_ATTR_OSD_LAYER_0,
#else
		MS_ATTR_OSD_LAYER_0 | MS_ATTR_INVISIBLE,
#endif
		{
			AREA_FIRMWARE_UPGRADE_TEXT_X,
			AREA_FIRMWARE_UPGRADE_INSTRUCTION_TEXT_Y,
			AREA_FIRMWARE_UPGRADE_TEXT_W,
			AREA_FIRMWARE_UPGRADE_TEXT_H
		},
		OTEXT_Operation,
		OTEXT_FillOSDSeg,
		(UINT8*)NULL
	},
	(MS_X_Y_ALIGN *)&oCenterAlignToContainer,
	(MS_COLOR_SET *)&oDefaultTextColorSet,
	NULL,
	(OSD_TEXT*)&oProgramWaitText,
	FONT_0,
	NULL,
	NULL
};
#endif//oDescriptorProgramWaitText

/***************************************************************************************
*	Descriptor 	: 	oDescriptorDontSwitchOffText
*
*	Purpose	 	:	This is the descriptor for the "don't switch off..." text:
****************************************************************************************/
#ifndef D_CUSTOM_oDontSwitchOffText
static CONST OSD_TEXT oDontSwitchOffText =
{	OSDR_GetFormUniStr_OsdMessage,		(UINT32)S_DONT_POWER_OFF	};
#endif//oDontSwitchOffText

#ifndef D_CUSTOM_oDescriptorDontSwitchOffText
static CONST MS_DESCRIPTOR_TEXT oDescriptorDontSwitchOffText =
{ // MS_DESCRIPTOR_TEXT
	{ // MS_DESCRIPTOR
		sizeof(MSO_TEXT),
		MS_NAV_NULL,
#ifdef	D_CD_UPGRADE_AUTO
		MS_ATTR_OSD_LAYER_0,
#else
		MS_ATTR_OSD_LAYER_0 | MS_ATTR_INVISIBLE,
#endif
		{
			AREA_FIRMWARE_UPGRADE_TEXT_X,
			AREA_FIRMWARE_UPGRADE_DONOT_SWTICH_TEXT_Y,
			AREA_FIRMWARE_UPGRADE_TEXT_W,
			AREA_FIRMWARE_UPGRADE_TEXT_H
		},
		OTEXT_Operation,
		OTEXT_FillOSDSeg,
		(UINT8*)NULL
	},
	(MS_X_Y_ALIGN *)&oCenterAlignToContainer,
	(MS_COLOR_SET *)&oDefaultTextColorSet,
	NULL,
	(OSD_TEXT*)&oDontSwitchOffText,
	FONT_0,
	NULL,
	NULL
};
#endif//oDescriptorDontSwitchOffText

/***************************************************************************************
*	Descriptor 	: 	oDescriptorStartButton
*
*	Purpose	 	:	This is the descriptor for the "Start" button:
****************************************************************************************/
#ifndef D_CUSTOM_oStartText
static CONST OSD_TEXT oStartText =
{	OSDR_GetFormUniStr_OsdMessage,		(UINT32)S_START	};
#endif//oStartText

#ifndef D_CUSTOM_oDescriptorStartButton
static CONST MS_DESCRIPTOR_BUTTON oDescriptorStartButton =
{ // MS_DESCRIPTOR_BUTTON
	{
		{ // MS_DESCRIPTOR
			sizeof(MSO_BUTTON),
			MS_NAV_NULL,
			MS_ATTR_OSD_LAYER_0 | MS_ATTR_FOCUSABLE,
			{
				AREA_FIRMWARE_UPGRADE_START_BUTTON_X,
				AREA_FIRMWARE_UPGRADE_BUTTON_Y,
				AREA_FIRMWARE_UPGRADE_BUTTON_W,
				AREA_FIRMWARE_UPGRADE_BUTTON_H
			},
			_StartButtonOperation,
			OBUTTON_FillOSDSeg,
			(UINT8*)NULL
		},
		(MS_X_Y_ALIGN *)&oButtonTextXYAlign,
		(MS_COLOR_SET *)&oButtonTextColorSet,
		(MS_BITMAP_SET *)&oButtonBitmapSet,
		(OSD_TEXT*)&oStartText,
		FONT_0,
		NULL,
		NULL
	},
	MS_OP_NONE
};
#endif//oDescriptorStartButton

/***************************************************************************************
*	Descriptor 	: 	oDescriptorCancelButton
*
*	Purpose	 	:	This is the descriptor for the "Cancel" button:
****************************************************************************************/
#ifndef D_CUSTOM_oCancelText
static CONST OSD_TEXT oCancelText =
{	OSDR_GetFormUniStr_OsdMessage,		(UINT32)S_CANCEL	};
#endif//oCancelText

#ifndef D_CUSTOM_oDescriptorCancelButton
static CONST MS_DESCRIPTOR_BUTTON oDescriptorCancelButton =
{ // MS_DESCRIPTOR_BUTTON
	{
		{ // MS_DESCRIPTOR
			sizeof(MSO_BUTTON),
			MS_NAV_NULL,
			MS_ATTR_OSD_LAYER_0 | MS_ATTR_FOCUSABLE,
			{
				AREA_FIRMWARE_UPGRADE_CANCEL_BUTTON_X,
				AREA_FIRMWARE_UPGRADE_BUTTON_Y,
				AREA_FIRMWARE_UPGRADE_BUTTON_W,
				AREA_FIRMWARE_UPGRADE_BUTTON_H
			},
			_CancelButtonOperation,
			OBUTTON_FillOSDSeg,
			(UINT8*)NULL
		},
		(MS_X_Y_ALIGN *)&oButtonTextXYAlign,
		(MS_COLOR_SET *)&oButtonTextColorSet,
		(MS_BITMAP_SET *)&oButtonBitmapSet,
		(OSD_TEXT*)&oCancelText,
		FONT_0,
		NULL,
		NULL
	},
	MS_OP_CLOSE_PARENT
};
#endif//oDescriptorCancelButton

/***************************************************************************************
*	Descriptor 	: 	oDescriptorFirmwareUpgrade
*
*	Purpose	 	:	The descriptor for TIME SEARCH
****************************************************************************************/
#ifndef D_CUSTOM_apComponentContents
STATIC CONST MS_DESCRIPTOR* CONST apComponentContents[] =
{
#ifdef	D_CD_UPGRADE_AUTO
	(MS_DESCRIPTOR*)&oDescriptorPageTitle,
	(MS_DESCRIPTOR*)&oDescriptorProgramWaitText,
	(MS_DESCRIPTOR*)&oDescriptorDontSwitchOffText,
#else
	(MS_DESCRIPTOR*)&oDescriptorPageTitle,
	(MS_DESCRIPTOR*)&oDescriptorInstructionText,
	(MS_DESCRIPTOR*)&oDescriptorProgramWaitText,
	(MS_DESCRIPTOR*)&oDescriptorDontSwitchOffText,
	(MS_DESCRIPTOR*)&oDescriptorStartButton,
	(MS_DESCRIPTOR*)&oDescriptorCancelButton,

#endif
};
#endif // D_CUSTOM_apComponentContents

#ifndef D_CUSTOM_oDescriptorFirmwareUpgrade
CONST MS_DESCRIPTOR_FIRMWARE_UPGRADE oDescriptorFirmwareUpgrade =
{
	{// MS_DESCRIPTOR_COMPONENT
		{// MS_DESCRIPTOR_CONTAINER
			{// MS_DESCRIPTOR
				sizeof(MSO_FIRMWARE_UPGRADE),
				MS_NAV_TO_ALGINED_Y | MS_NAV_DISABLE_LR | MS_NAV_DISABLE_UD |
				MS_NAV_CONTAINER_WRAP_LR | MS_NAV_CONTAINER_WRAP_UD | MS_NAV_CONTAINER_GOTO_TOP,
				MS_ATTR_CONTAINER | MS_ATTR_FOCUSABLE | MS_ATTR_OSD_LAYER_2,
				{
				    0, 0, 0, 0
				},
				_FirmwareUpgradeOperation,
				_FirmwareUpgradeFillOSDSeg,
				mpParamNull,
			},
			(CONST MS_DESCRIPTOR**)apComponentContents,
			(sizeof(apComponentContents) /sizeof(MS_DESCRIPTOR*)),
		},
		(MS_DESCRIPTOR*)&oDescriptorCancelButton,
	},
	BMP_BG_2,
	CIDX_6
};
#endif//oDescriptorFirmwareUpgrade

⌨️ 快捷键说明

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