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

📄 tidtv_menusetup.c

📁 ti的数字电视芯片 tvp9000的源码
💻 C
📖 第 1 页 / 共 2 页
字号:
	// Attributes
	TI_DTV_MENU_ITEM_DISP,//TI_DTV_MENU_FRAME_DISP | TI_DTV_MENU_FOOTER_DISP | TI_DTV_MENU_ITEM_DISP,
	NULL,								// Initialization function
	DtvSubMenuOpcodeParser,				// Operation codes parsing function

{	//  Frame
	0, 0, 0, 0,							// Area: (x, y), (w x y)
	0,									// Attributes,
	0,									// Border Color
	0,									// Interior Filling Color
	0,									// Shadow Color
},


{	// Header
	{	// Frames for Header
		0, 0, 0, 0,						// Area: (x, y), (w x y)
	},
	
	0, 0,								// X, Y coordinate
	0,									// Message index
	0									// Message color index
},

{	// Footer
	{	// Frames for Footer
		0, 0, 0, 0,						// Area: (x, y), (w x y)
	},
	
	0,0,								// X, Y coordinate
	0,									// Message index
	0,									// Message color index
},
	
	3,									// Total number of Items
	TiDtvSetupClosedCaptionMenuItems,			// pointer to the Item List
	TiDtvSetupClosedCaptionMenuItems,			// pointer to current selected Item
	
//	&DtvMainMenu,						// pointer to Previous menu
	&TiDtvMenuSetup,
	NULL,
};


//////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
// closed captions mode page
/////////////////////////////////////////////////////////////////

static TI_DTV_MENU_ITEM TiDtvSetupClosedCaptionModeMenuItems[] = {
//-----------------------------------------------------
// Closed Caption analog type
//
{
	0, 0,								// X, Y coordinates for the Icon
	NULL,								// Icon code
	
	SUB_MENU_TITLE_XPOSITION, SUB_MENU_FIRSTTITLE_YPOSITION,	// X, Y coordinates for the Message
	ANALOGTYPE_INDEX,						// Message index
	SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR,			// Message color index
	
	TI_DTV_ITEM_SEL,					// Attributes
	DtvSetupClosedCaptionModeAnalogTypeInitFuct,								// Initialization function
	DtvSetupClosedCaptionModeAnalogTypeActFuct,				// Action function
	
	&TiDtvSetupClosedCaptionModeMenuItems[1],								// *pUp: Back to the Main Menu
	&TiDtvSetupClosedCaptionModeMenuItems[1],		// *pDown;
	NULL,								// *pLeft;
	NULL,								// *pRight;
	NULL,								// *pworkingData;
},

//-----------------------------------------------------
// Closed Caption digital type
//
{
	0, 0,								// X, Y coordinates for the Icon
	NULL,								// Icon code
	
	SUB_MENU_TITLE_XPOSITION, SUB_MENU_SECONDTITLE_YPOSITION,	// X, Y coordinates for the Message
	DIGITALTYPE_INDEX,						// Message index
	SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR,					// Message color index
	
	TI_DTV_ITEM_SEL,					// Attributes
	DtvSetupClosedCaptionModeDigitalTypeInitFuct,								// Initialization function
	DtvSetupClosedCaptionModeDigitalTypeActFuct,				// Action function
	
	&TiDtvSetupClosedCaptionModeMenuItems[0],		// *pUp;
	&TiDtvSetupClosedCaptionModeMenuItems[0],		// *pDown;
	NULL,								// *pLeft;
	NULL,								// *pRight;
	NULL,								// *pworkingData;
},
};

TI_DTV_MENU TiDtvMenuSetupClosedCaptionMode = {
	// Attributes
	TI_DTV_MENU_ITEM_DISP,//TI_DTV_MENU_FRAME_DISP | TI_DTV_MENU_FOOTER_DISP | TI_DTV_MENU_ITEM_DISP,
	NULL,								// Initialization function
	DtvSubMenuOpcodeParser,				// Operation codes parsing function

{	//  Frame
	0, 0, 0, 0,							// Area: (x, y), (w x y)
	0,									// Attributes,
	0,									// Border Color
	0,									// Interior Filling Color
	0,									// Shadow Color
},


{	// Header
	{	// Frames for Header
		0, 0, 0, 0,						// Area: (x, y), (w x y)
	},
	
	0, 0,								// X, Y coordinate
	0,									// Message index
	0									// Message color index
},

{	// Footer
	{	// Frames for Footer
		0, 0, 0, 0,						// Area: (x, y), (w x y)
	},
	
	0,0,								// X, Y coordinate
	0,									// Message index
	0,									// Message color index
},
	
	2,									// Total number of Items
	TiDtvSetupClosedCaptionModeMenuItems,			// pointer to the Item List
	TiDtvSetupClosedCaptionModeMenuItems,			// pointer to current selected Item
	
	&TiDtvMenuSetupClosedCaption,						// pointer to Previous menu
	NULL,
};

/////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////
// closed captions Options page
/////////////////////////////////////////////////////////////////

static TI_DTV_MENU_ITEM TiDtvSetupClosedCaptionOptionMenuItems[] = {
//-----------------------------------------------------
// Closed Caption option font size
//
{
	0, 0,								// X, Y coordinates for the Icon
	NULL,								// Icon code
	
	SUB_MENU_TITLE_XPOSITION, SUB_MENU_FIRSTTITLE_YPOSITION,	// X, Y coordinates for the Message
	FONTSIZE_INDEX,						// Message index
	SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR,			// Message color index
	
	TI_DTV_ITEM_SEL,					// Attributes
	DtvSetupClosedCaptionOptionFontSizeInitFuct,								// Initialization function
	DtvSetupClosedCaptionOptionFontSizeActFuct,				// Action function
	
	&TiDtvSetupClosedCaptionOptionMenuItems[5],		// *pUp;
	&TiDtvSetupClosedCaptionOptionMenuItems[1],		// *pDown;
	NULL,								// *pLeft;
	NULL,								// *pRight;
	NULL,								// *pworkingData;
},

//-----------------------------------------------------
// Closed Caption Font Style
//
{
	0, 0,								// X, Y coordinates for the Icon
	NULL,								// Icon code
	
	SUB_MENU_TITLE_XPOSITION, SUB_MENU_SECONDTITLE_YPOSITION,	// X, Y coordinates for the Message
	FONTSTYLE_INDEX,						// Message index
	SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR,					// Message color index
	
	TI_DTV_ITEM_SEL,					// Attributes
	DtvSetupClosedCaptionOptionFontStyleInitFuct,								// Initialization function
	DtvSetupClosedCaptionOptionFontStyleActFuct,				// Action function
	
	&TiDtvSetupClosedCaptionOptionMenuItems[0],		// *pUp;
	&TiDtvSetupClosedCaptionOptionMenuItems[2],		// *pDown;
	NULL,								// *pLeft;
	NULL,								// *pRight;
	NULL,								// *pworkingData;
},


//-----------------------------------------------------
// Closed Caption Foreground color
//
{
	0, 0,								// X, Y coordinates for the Icon
	NULL,								// Icon code
	
	SUB_MENU_TITLE_XPOSITION, SUB_MENU_THIRDTITLE_YPOSITION,	// X, Y coordinates for the Message
	FOREGROUNDCOLOR_INDEX,						// Message index
	SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR,					// Message color index
	
	TI_DTV_ITEM_SEL,					// Attributes
	DtvSetupClosedCaptionOptionForeColorInitFuct,								// Initialization function
	DtvSetupClosedCaptionOptionForeColorActFuct,				// Action function
	
	&TiDtvSetupClosedCaptionOptionMenuItems[1],		// *pUp;
	&TiDtvSetupClosedCaptionOptionMenuItems[3],		// *pDown;
	NULL,								// *pLeft;
	NULL,								// *pRight;
	NULL,								// *pworkingData;
},


//-----------------------------------------------------
// Closed Caption background color
//
{
	0, 0,								// X, Y coordinates for the Icon
	NULL,								// Icon code
	
	SUB_MENU_TITLE_XPOSITION, SUB_MENU_FOURTHTITLE_YPOSITION,	// X, Y coordinates for the Message
	BACKGROUNDCOLOR_INDEX,						// Message index
	SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR,					// Message color index
	
	TI_DTV_ITEM_SEL,					// Attributes
	DtvSetupClosedCaptionOptionBackColorInitFuct,								// Initialization function
	DtvSetupClosedCaptionOptionBackColorActFuct,				// Action function
	
	&TiDtvSetupClosedCaptionOptionMenuItems[2],		// *pUp;
	&TiDtvSetupClosedCaptionOptionMenuItems[4],		// *pDown;
	NULL,								// *pLeft;
	NULL,								// *pRight;
	NULL,								// *pworkingData;
},


//-----------------------------------------------------
// Closed Caption foreground opacity
//
{
	0, 0,								// X, Y coordinates for the Icon
	NULL,								// Icon code
	
	SUB_MENU_TITLE_XPOSITION, SUB_MENU_FIFTHTITLE_YPOSITION,	// X, Y coordinates for the Message
	FOREGROUNDOPACITY_INDEX,						// Message index
	SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR,					// Message color index
	
	TI_DTV_ITEM_SEL,					// Attributes
	DtvSetupClosedCaptionOptionForeOpacityInitFuct,								// Initialization function
	DtvSetupClosedCaptionOptionForeOpacityActFuct,				// Action function
	
	&TiDtvSetupClosedCaptionOptionMenuItems[3],		// *pUp;
	&TiDtvSetupClosedCaptionOptionMenuItems[5],		// *pDown;
	NULL,								// *pLeft;
	NULL,								// *pRight;
	NULL,								// *pworkingData;
},


//-----------------------------------------------------
// Closed Caption background opacity
//
{
	0, 0,								// X, Y coordinates for the Icon
	NULL,								// Icon code
	
	SUB_MENU_TITLE_XPOSITION, SUB_MENU_SIXTHTITLE_YPOSITION,	// X, Y coordinates for the Message
	BACKGROUNDOPACITY_INDEX,						// Message index
	SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR,					// Message color index
	
	TI_DTV_ITEM_SEL,					// Attributes
	DtvSetupClosedCaptionOptionBackOpacityInitFuct,								// Initialization function
	DtvSetupClosedCaptionOptionBackOpacityActFuct,				// Action function
	
	&TiDtvSetupClosedCaptionOptionMenuItems[4],		// *pUp;
	&TiDtvSetupClosedCaptionOptionMenuItems[0],		// *pDown;
	NULL,								// *pLeft;
	NULL,								// *pRight;
	NULL,								// *pworkingData;
},

};

TI_DTV_MENU TiDtvMenuSetupClosedCaptionOption = {
	// Attributes
	TI_DTV_MENU_ITEM_DISP,//TI_DTV_MENU_FRAME_DISP | TI_DTV_MENU_FOOTER_DISP | TI_DTV_MENU_ITEM_DISP,
	NULL,								// Initialization function
	DtvSubMenuOpcodeParser,				// Operation codes parsing function

{	//  Frame
	0, 0, 0, 0,							// Area: (x, y), (w x y)
	0,									// Attributes,
	0,									// Border Color
	0,									// Interior Filling Color
	0,									// Shadow Color
},


{	// Header
	{	// Frames for Header
		0, 0, 0, 0,						// Area: (x, y), (w x y)
	},
	
	0, 0,								// X, Y coordinate
	0,									// Message index
	0									// Message color index
},

{	// Footer
	{	// Frames for Footer
		0, 0, 0, 0,						// Area: (x, y), (w x y)
	},
	
	0,0,								// X, Y coordinate
	0,									// Message index
	0,									// Message color index
},
	
	6,									// Total number of Items
	TiDtvSetupClosedCaptionOptionMenuItems,			// pointer to the Item List
	TiDtvSetupClosedCaptionOptionMenuItems,			// pointer to current selected Item
	
	&TiDtvMenuSetupClosedCaption,						// pointer to Previous menu
	NULL,
};


////////////////////////////////////////
/////////////////////////////////////////////////////////////////

static TI_DTV_MENU_ITEM TiDtvSetupVChipMenuItems[] = {
//-----------------------------------------------------
// V Chip On/Off
//
{
	0, 0,								// X, Y coordinates for the Icon
	NULL,								// Icon code
	
	SUB_MENU_TITLE_XPOSITION, SUB_MENU_FIRSTTITLE_YPOSITION,	// X, Y coordinates for the Message
	VCHIPONOFF_INDEX,						// Message index
	SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR,			// Message color index
	
	TI_DTV_ITEM_SEL,					// Attributes
	DtvSetupVChipOnOffInitFuct,								// Initialization function
	DtvSetupVChipOnOffActFuct	,				// Action function
	
	&TiDtvSetupVChipMenuItems[3],								// *pUp: Back to the Main Menu
	&TiDtvSetupVChipMenuItems[1],		// *pDown;
	NULL,								// *pLeft;
	NULL,								// *pRight;
	NULL,								// *pworkingData;
},

//-----------------------------------------------------
// Parent Guide
//
{
	0, 0,								// X, Y coordinates for the Icon
	NULL,								// Icon code
	
	SUB_MENU_TITLE_XPOSITION, SUB_MENU_SECONDTITLE_YPOSITION,	// X, Y coordinates for the Message
	PARENTALGUIDE_INDEX,						// Message index
	SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR,					// Message color index
	
	TI_DTV_ITEM_SEL,					// Attributes
	DtvSetupVChipParentGuideInitFuct,								// Initialization function
	DtvSetupVChipParentGuideActFuct,				// Action function
	
	&TiDtvSetupVChipMenuItems[0],		// *pUp;
	&TiDtvSetupVChipMenuItems[2],		// *pDown;
	NULL,								// *pLeft;
	NULL,								// *pRight;
	NULL,								// *pworkingData;
},
	
//-----------------------------------------------------
// Mpaa rating
//
{
	0, 0,								// X, Y coordinates for the Icon
	NULL,								// Icon code
	
	SUB_MENU_TITLE_XPOSITION, SUB_MENU_THIRDTITLE_YPOSITION,	// X, Y coordinates for the Message
	MPAARATING_INDEX,						// Message index
	SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR,					// Message color index
	
	TI_DTV_ITEM_SEL,					// Attributes
	DtvSetupVChipMPAAGuideInitFuct,								// Initialization function
	DtvSetupVChipMPAAGuideActFuct,				// Action function
	
	&TiDtvSetupVChipMenuItems[1],		// *pUp;
	&TiDtvSetupVChipMenuItems[3],		// *pDown;
	NULL,								// *pLeft;
	NULL,								// *pRight;
	NULL,								// *pworkingData;
},

//-----------------------------------------------------
// password change
//
{
	0, 0,								// X, Y coordinates for the Icon
	NULL,								// Icon code
	
	SUB_MENU_TITLE_XPOSITION, SUB_MENU_FOURTHTITLE_YPOSITION,	// X, Y coordinates for the Message
	CHANGEPIN_INDEX,						// Message index
	SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR,					// Message color index
	
	TI_DTV_ITEM_SEL,					// Attributes
	DtvVChipPassWordChangeInitFuct,		//DtvSetupVChipMPAAGuideInitFuct,								// Initialization function
	DtvVChipPassWordChangeActFuct,				// Action function
	
	&TiDtvSetupVChipMenuItems[2],		// *pUp;
	&TiDtvSetupVChipMenuItems[0],		// *pDown;
	NULL,								// *pLeft;
	NULL,								// *pRight;
	NULL,								// *pworkingData;
},

};

TI_DTV_MENU TiDtvMenuSetupVChip = {
	// Attributes
	TI_DTV_MENU_ITEM_DISP,//TI_DTV_MENU_FRAME_DISP | TI_DTV_MENU_FOOTER_DISP | TI_DTV_MENU_ITEM_DISP,
	NULL,								// Initialization function
	DtvSubMenuOpcodeParser,				// Operation codes parsing function

{	//  Frame
	0, 0, 0, 0,							// Area: (x, y), (w x y)
	0,									// Attributes,
	0,									// Border Color
	0,									// Interior Filling Color
	0,									// Shadow Color
},


{	// Header
	{	// Frames for Header
		0, 0, 0, 0,						// Area: (x, y), (w x y)
	},
	
	0, 0,								// X, Y coordinate
	0,									// Message index
	0									// Message color index
},

{	// Footer
	{	// Frames for Footer
		0, 0, 0, 0,						// Area: (x, y), (w x y)
	},
	
	0,0,								// X, Y coordinate
	0,									// Message index
	0,									// Message color index
},
	
	4,									// Total number of Items
	TiDtvSetupVChipMenuItems,			// pointer to the Item List
	TiDtvSetupVChipMenuItems,			// pointer to current selected Item
	
	&TiDtvMenuSetup,						// pointer to Previous menu
	NULL,
};

⌨️ 快捷键说明

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