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

📄 o_playmode_config.c

📁 Zoran V966 DVD 解码 Soc芯片的源程序
💻 C
📖 第 1 页 / 共 2 页
字号:
/****************************************************************************************************
*  Copyright (c) 2005 ZORAN Corporation, All Rights Reserved
*  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
*
*  File: o_playmode_config.c
*
* Description:
* =========
****************************************************************************************************/

/****************************************************************************************************
*	DEFINITION: Private constants 
****************************************************************************************************/
/***************************************************************************************
* 	Object definitions
****************************************************************************************/
#ifndef D_CUSTOM_oPlaymodeComponentColorSet
CONST MS_COLOR_SET oPlaymodeComponentColorSet = {
	CIDX_6,
	NULL,
	NULL,
	NULL
};
#endif//D_CUSTOM_oPlaymodeComponentColorSet

#ifndef D_CUSTOM_InitChoiceParam
static CONST MS_PARAM_CHOICE InitChoiceParam = 
{
	0
};
#endif//D_CUSTOM_InitChoiceParam
/***************************************************************************************
*	Descriptor 	: 	oPlaymodeComponentTitleDescriptor
*
*	Purpose	 	:	
 ****************************************************************************************/
#ifndef D_GUI_SINGLE_LINE_COMPONENT

#ifndef D_CUSTOM_oPlaymodeComponentTitleText
static CONST OSD_TEXT oPlaymodeComponentTitleText = {OSDR_GetFormUniStr_OsdMessage, S_PLAY_MODE};
#endif//D_CUSTOM_oPlaymodeComponentTitleText

#ifndef D_CUSTOM_oPlaymodeComponentTitleDescriptor
static CONST MS_DESCRIPTOR_TEXT oPlaymodeComponentTitleDescriptor =
{ // MS_DESCRIPTOR_TEXT
	{ // MS_DESCRIPTOR
        	sizeof(MSO_TEXT),
        	MS_NAV_NULL,
        	MS_ATTR_OSD_LAYER_0,
        	{
        		AREA_PLAYMODE_TITLE_X,
			AREA_PLAYMODE_TITLE_Y,
            		AREA_PLAYMODE_TITLE_W,
            		AREA_PLAYMODE_TITLE_H
        	},
        	OTEXT_Operation,
        	OTEXT_FillOSDSeg,
        	mpParamNull
    	},
    	(MS_X_Y_ALIGN *)&oCenterAlignToContainer,
	(MS_COLOR_SET *)&oPlaymodeComponentColorSet, //oDefaultTextColorSet,
	NULL,
	(OSD_TEXT*)&oPlaymodeComponentTitleText,
	FONT_0,
	NULL,
	NULL
};
#endif//D_CUSTOM_oPlaymodeComponentTitleDescriptor
#endif // D_GUI_SINGLE_LINE_COMPONENT

/***************************************************************************************
* 	The Play Mode choice object
****************************************************************************************/

#ifndef D_CUSTOM_aPlayModeValueTable
#define MAX_PLAYMODE_VALUES		4
static CONST MS_CHOICE_DATA aPlayModeValueTable[MAX_PLAYMODE_VALUES] =
{
	{PLAYMODE_NORMAL,		S_NORMAL	},
	{PLAYMODE_SHUFFLE,		S_SHUFFLE	},
	{PLAYMODE_PBC,			S_PBC		},
	{PLAYMODE_PROGRAM,		S_PROGRAM	}
};
#endif//D_CUSTOM_aPlayModeValueTable

#ifndef D_CUSTOM_oPlayModeChoiceDescriptor
static CONST MS_DESCRIPTOR_CHOICE oPlayModeChoiceDescriptor = 
{
	{// MS_DESCRIPTOR
		sizeof(MSO_CHOICE),
		MS_NAV_TO_ALGINED_Y,
		MS_ATTR_FOCUSABLE | MS_ATTR_OSD_LAYER_0,
		{
			20, 50, 120, OPTION_HEIGHT
		},
		ChoiceNoExpandingOperation,
		ChoiceFillOSDSeg,
		(UINT8*)&InitChoiceParam
	},
	NULL,
	S_MODE,
	MAX_PLAYMODE_VALUES,
	(MS_CHOICE_DATA*)&aPlayModeValueTable,
	CIDX_8,
	CIDX_8,
	CIDX_6,
	BMP_BG_3,
	_PlayModeChoiceAction
};
#endif//D_CUSTOM_oPlayModeChoiceDescriptor

/***************************************************************************************
* 	The Repeat Mode choice object
****************************************************************************************/
#ifndef D_CUSTOM_aRepeatValueTable
#define MAX_REPEAT_VALUES			3
static CONST MS_CHOICE_DATA aRepeatValueTable[MAX_REPEAT_VALUES] =
{
	{REPEAT_OFF,			S_OFF		},
	{REPEAT_SINGLE,		S_SINGLE		},
	{REPEAT_ALL,			S_ALL		}	
};
#endif//D_CUSTOM_aRepeatValueTable

#ifndef D_CUSTOM_oRepeatChoiceDescriptor
static CONST MS_DESCRIPTOR_CHOICE oRepeatChoiceDescriptor = 
{
	{// MS_DESCRIPTOR
		sizeof(MSO_CHOICE),
		MS_NAV_TO_ALGINED_Y,
		MS_ATTR_FOCUSABLE | MS_ATTR_OSD_LAYER_0,
		{
			20, 50, 120, OPTION_HEIGHT
		},
		ChoiceNoExpandingOperation,
		ChoiceFillOSDSeg,
		(UINT8*)&InitChoiceParam
	},
	NULL,
	S_REPEAT,
	MAX_REPEAT_VALUES,
	(MS_CHOICE_DATA*)&aRepeatValueTable,
	CIDX_8,
	CIDX_8,
	CIDX_6,
	BMP_BG_3,
	_RepeatChoiceAction
};
#endif//D_CUSTOM_oRepeatChoiceDescriptor

/***************************************************************************************
*	Descriptor 	: 	oPlayProgramButtonDescriptor
*
*	Purpose	 	:	Descriptor of the clear program button.
 ****************************************************************************************/
#ifndef D_CUSTOM_oPlayProgramText
static CONST OSD_TEXT oPlayProgramText = 
{ OSDR_GetFormUniStr_OsdMessage, S_PLAY };
#endif//D_CUSTOM_oPlayProgramText

#ifndef D_CUSTOM_oPlayProgramButtonDescriptor
static CONST MS_DESCRIPTOR_BUTTON oPlayProgramButtonDescriptor =
{// MS_DESCRIPTOR
	{
		{
			sizeof(MSO_BUTTON),
			MS_NAV_TO_ALGINED_Y,
			MS_ATTR_FOCUSABLE | MS_ATTR_OSD_LAYER_0,
			{
				20, 50, 120, OPTION_HEIGHT
			},
			_PlayProgramButtonOperation,//OBUTTON_Operation,
			OBUTTON_FillOSDSeg,
			mpParamNull
		},
		(MS_X_Y_ALIGN *)&oButtonTextXYAlign,
		(MS_COLOR_SET *)&oButtonTextColorSet,
		(MS_BITMAP_SET *)&oButtonBitmapSet,
		(OSD_TEXT *)	&oPlayProgramText,
		FONT_0,
		NULL,
		NULL
	},
	MS_OP_PLAY
};
#endif//D_CUSTOM_oPlayProgramButtonDescriptor
/***************************************************************************************
*	Descriptor 	: 	oClearProgramButtonDescriptor
*
*	Purpose	 	:	Descriptor of the clear program button.
 ****************************************************************************************/
#ifndef D_CUSTOM_oClearProgramText
static CONST OSD_TEXT oClearProgramText = 
{ OSDR_GetFormUniStr_OsdMessage, S_CLEAR_PROGRAM };
#endif//D_CUSTOM_oClearProgramText

#ifndef D_CUSTOM_oClearProgramButtonDescriptor
static CONST MS_DESCRIPTOR_BUTTON oClearProgramButtonDescriptor =
{// MS_DESCRIPTOR
	{
		{
			sizeof(MSO_BUTTON),
			MS_NAV_TO_ALGINED_Y,
			MS_ATTR_FOCUSABLE | MS_ATTR_OSD_LAYER_0,
			{
				20, 50, 120, OPTION_HEIGHT
			},
			_ClearProgramButtonOperation,
			OBUTTON_FillOSDSeg,
			mpParamNull
		},
		(MS_X_Y_ALIGN *)&oButtonTextXYAlign,
		(MS_COLOR_SET *)&oButtonTextColorSet,
		(MS_BITMAP_SET *)&oButtonBitmapSet,
		(OSD_TEXT *)	&oClearProgramText,
		FONT_0,
		NULL,
		NULL
	},
	MS_OP_NONE
};
#endif//D_CUSTOM_oClearProgramButtonDescriptor

/***************************************************************************************
*	Descriptor 	: 	oPlaymodeKitVListDescriptor
*
*	Purpose	 	:	Descriptor of the list (MSO_VLIST) containing the buttons.
 ****************************************************************************************/
#ifndef D_CUSTOM_oVListParam
STATIC CONST MS_PARAM_VLIST oVListParam = {
	0,	// Total number of items in the list.
	0,	// Index of the first item.
	MAX_VISIBLE_PLAYMODE_OPTIONS, // Visible
	0, // offset
	0
};
#endif//D_CUSTOM_oVListParam

#ifndef D_CUSTOM_oPlaymodeKitVListDescriptor
STATIC CONST MS_DESCRIPTOR_VLIST oPlaymodeKitVListDescriptor = 
{ // Container descriptor start
	{// Descriptor start
		sizeof(MSO_VLIST),
		MS_NAV_CONTAINER_WRAP_UD | MS_NAV_CONTAINER_GOTO_PREV_FOCUS | MS_NAV_CONTAINER_GOTO_TOP,
		MS_ATTR_CONTAINER | MS_ATTR_FOCUSABLE | MS_ATTR_OSD_LAYER_0 | MS_ATTR_VLIST_OFFSET_FIRSTITEM | MS_ATTR_VLIST_SCROLL_SINGLE_ITEM, 
		{
			AREA_PLAYMODEKIT_X,
			AREA_PLAYMODEKIT_Y,
			AREA_PLAYMODEKIT_W,
			AREA_PLAYMODEKIT_H
		},
		_PlaymodekitVlistOperation,
		mpfFillOsdSegNull,
		(UINT8*)&oVListParam
	},// Descriptor end
	maContentsNull,
	mwNbrContentsNull,
};
#endif//D_CUSTOM_oPlaymodeKitVListDescriptor
/***************************************************************************************
*	Descriptor 	: 	oPlaymodeKitDescriptor
*
*	Purpose	 	:	Descriptor of the toolkit. The toolkit is a MSO_VSCROLL_LIST object, 
*					that contains an MSO_VLIST (descriptor oPlaymodeKitVListDescriptor) object 
*					within it.
 ****************************************************************************************/
#ifndef D_CUSTOM_oPlaymodeKitDescriptor
STATIC CONST MS_DESCRIPTOR_VSCROLL_LIST oPlaymodeKitDescriptor = 
{
	{ // Container descriptor start
		{ // Descriptor start
			sizeof(MSO_VSCROLL_LIST),
			MS_NAV_NULL,
			MS_ATTR_CONTAINER | MS_ATTR_FOCUSABLE | MS_ATTR_OSD_LAYER_1 | MS_ATTR_VSLIST_DISPLAY_BG_BMP | 
			MS_ATTR_VSLIST_SCROLL_ARROW | MS_ATTR_VSLIST_SCROLL_ARROW_ON_SIDE,
			{
				AREA_PLAYMODEKIT_X,
				AREA_PLAYMODEKIT_Y,
				AREA_PLAYMODEKIT_W,
				AREA_PLAYMODEKIT_H

⌨️ 快捷键说明

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