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

📄 menu_config_common.h

📁 Zoran V966 DVD 解码 Soc芯片的源程序
💻 H
字号:
/****************************************************************************************************
*  Copyright (c) 2005 ZORAN Corporation, All Rights Reserved
*  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
*
*  File: Menu_config_common.h
*
* Description:
* =========
*
****************************************************************************************************/
#include "Config.h"		// Global Configuration - do not remove!
#include "include\sysdefs.h"	// Global definition - do not remove!

// TODO: Split osdlaou.h into _defs.h and .h
#ifdef D_GINGER_I86
#include "Decoder\OSDLayou.h"
#endif //D_GINGER_I86
#ifdef D_GINGER_I96
#include "OSDLayou.h"
#endif //D_GINGER_I96

#include "user_interface\ui_defs.h"
#include "GUI\Object_class\Text\mso_text_defs.h"

#ifndef _O_MENU_CONFIG_COMMON_H_
#define _O_MENU_CONFIG_COMMON_H_

/****************************************************************************************************
*	INCLUDE FILES: Only typedef header files are allowed to be included here.
****************************************************************************************************/
#ifdef  D_GUI_OSD_2BPP
#define AREA_MENU_COMMON_W		ForceMultipleOf(620,8)		//Must multiple of 8 for 2 bpp 
#else
#define AREA_MENU_COMMON_W		ForceMultipleOf(620,4)		//Must multiple of 4 for 4 bpp
#endif//D_GUI_OSD_2BPP

#define AREA_MENU_COMMON_H		420
// Ensure x is multiple of 8 for 2 bpp, multiple of 4 for 4 bpp, we assume 1bpp is not used
// The menu X position doesn't need to be a multiple of 8, but the layout areas X must, and we don't want to waste OSD buffer
#ifdef  D_GUI_OSD_2BPP
#define AREA_MENU_COMMON_X		ForceMultipleOf(((UINT16)(NBRPIX_PER_LINE - AREA_MENU_COMMON_W)/2),8)
#else 
#define AREA_MENU_COMMON_X		ForceMultipleOf(((UINT16)(NBRPIX_PER_LINE - AREA_MENU_COMMON_W)/2),4)
#endif //D_GUI_OSD_2BPP
#define AREA_MENU_COMMON_Y		30

#define AREA_HELP_TEXT_COMMON_H	30

#ifdef D_GUI_SINGLE_LINE_COMPONENT
#ifdef  D_GUI_2BPP_MESSAGE
#define OSD_LAYOUT_AREA_MESSAGE_W		AREA_MENU_COMMON_W//Must multiple of 8 for 2 bpp, we assume 1bpp is not used
#define OSD_LAYOUT_AREA_MESSAGE_H		ForceMultipleOf(32,2)
#else//D_GUI_2BPP_MESSAGE
#define OSD_LAYOUT_AREA_MESSAGE_W		ForceMultipleOf(400,4)	//Must multiple of 4 for 4 bpp
#define OSD_LAYOUT_AREA_MESSAGE_H		ForceMultipleOf(26,2)
#endif//D_GUI_2BPP_MESSAGE

#else//D_GUI_SINGLE_LINE_COMPONENT
#define OSD_LAYOUT_AREA_MESSAGE_W		AREA_MENU_COMMON_W	//Must multiple of 8 for 2 bpp, we assume 1bpp is not used
#define OSD_LAYOUT_AREA_MESSAGE_H		ForceMultipleOf(32,2)
#endif //D_GUI_SINGLE_LINE_COMPONENT
// Ensure x is multiple of 8 for 2 bpp, multiple of 4 for 4 bpp, we assume 1bpp is not used
#ifdef  D_GUI_2BPP_MESSAGE
#define OSD_LAYOUT_AREA_MESSAGE_X		ForceMultipleOf(((UINT16)(NBRPIX_PER_LINE - OSD_LAYOUT_AREA_MESSAGE_W)/2),8)
#else
#define OSD_LAYOUT_AREA_MESSAGE_X		ForceMultipleOf(((UINT16)(NBRPIX_PER_LINE - OSD_LAYOUT_AREA_MESSAGE_W)/2),4)
#endif//D_GUI_OSD_2BPP
#define OSD_LAYOUT_AREA_MESSAGE_Y		AREA_MENU_COMMON_Y

#define OSD_LAYOUT_AREA_BROWSER_X		ForceMultipleOf(AREA_MENU_COMMON_X,4)	//Must multiple of 4 for 4 bpp
#define OSD_LAYOUT_AREA_BROWSER_Y		(OSD_LAYOUT_AREA_MESSAGE_Y + OSD_LAYOUT_AREA_MESSAGE_H + 2)
#define OSD_LAYOUT_AREA_BROWSER_W		ForceMultipleOf(AREA_MENU_COMMON_W,4)	//Must multiple of 4 for 4 bpp
#ifdef D_GUI_CLIPS_MULTIPAGE
#define OSD_LAYOUT_AREA_BROWSER_H		360
#else // D_GUI_CLIPS_MULTIPAGE
#define OSD_LAYOUT_AREA_BROWSER_H		342 // 378
#endif // D_GUI_CLIPS_MULTIPAGE

#ifdef D_GUI_SINGLE_LINE_COMPONENT


#ifdef D_GUI_OSD_2BPP
#define OSD_LAYOUT_AREA_POPUP_X		OSD_LAYOUT_AREA_BROWSER_X
#define OSD_LAYOUT_AREA_POPUP_W_MAX       OSD_LAYOUT_AREA_BROWSER_W
#define  OSD_LAYOUT_AREA_POPUP_Y         OSD_LAYOUT_AREA_BROWSER_Y
#else//	D_GUI_OSD_2BPP
#define OSD_LAYOUT_AREA_POPUP_X		80//ForceMultipleOf(208,4)	//Must multiple of 4 for 4 bpp
#define OSD_LAYOUT_AREA_POPUP_Y		60//200
#endif//D_GUI_OSD_2BPP
#define OSD_LAYOUT_AREA_POPUP_W		ForceMultipleOf(300,4)	//Must multiple of 4 for 4 bpp
#define OSD_LAYOUT_AREA_POPUP_H		36
#else //D_GUI_SINGLE_LINE_COMPONENT
#define OSD_LAYOUT_AREA_POPUP_X		OSD_LAYOUT_AREA_BROWSER_X
#define OSD_LAYOUT_AREA_POPUP_Y			OSD_LAYOUT_AREA_BROWSER_Y
#define OSD_LAYOUT_AREA_POPUP_W		OSD_LAYOUT_AREA_BROWSER_W	//Must multiple of 4 for 4 bpp
#define OSD_LAYOUT_AREA_POPUP_H		(OSD_LAYOUT_AREA_BROWSER_H + 36) // XXXXXXXXX
#endif //D_GUI_SINGLE_LINE_COMPONENT

#ifdef D_GUI_OSD_2BPP
#define OSD_COLOR_PALETTE_POPUP		OSD_COLOR_PALETTE_2
#else 
#define OSD_COLOR_PALETTE_POPUP		OSD_COLOR_PALETTE_0
#endif//D_GUI_OSD_2BPP

#define DEFAULT_POSITION			0xFFFF

#define  BMP_DEVICE_SD					BMP_FCU
#define  BMP_DEVICE_MMC				BMP_FCU
#define  BMP_DEVICE_MS					BMP_FCU
#define  BMP_DEVICE_MSPRO				BMP_FCU
#define  BMP_DEVICE_CF					BMP_FCU
#define  BMP_DEVICE_SM					BMP_FCU
#define  BMP_DEVICE_XD					BMP_FCU
#define  BMP_DEVICE_USB					BMP_USB
#define  BMP_DEVICE_CARD				BMP_FCU
#define  BMP_DEVICE_DISC				BMP_DISC

extern CONST MS_X_Y_ALIGN oCenterAlignToContainer;
extern CONST MS_X_Y_ALIGN oTopLeftAlignToContainer;
extern CONST MS_X_Y_ALIGN oTopCenterAlignToContainer;
extern CONST MS_COLOR_SET oDefaultTextColorSet;

extern CONST MS_COLOR_SET oButtonTextColorSet;
extern CONST MS_BITMAP_SET oButtonBitmapSet;
#define oButtonTextXYAlign				oCenterAlignToContainer

extern CONST MS_X_Y_ALIGN oHelpTextXYAlign;
extern CONST MS_COLOR_SET oHelpTextColorSet;
extern CONST MS_BITMAP_SET oHelpTextBitmapSet;

extern CONST MS_BITMAP_SET oHighlightOnlyBitmapSet;

#ifdef D_GUI_HOME_BUTTON
extern CONST MS_BITMAP_SET oHomeIconBmpSet;
#endif
extern CONST OSD_LAYOUT_AREA  gOsdLayoutAreaPopup;

#ifndef GUI_MEMPOOL_BYTE_SIZE_LARGE
#define GUI_MEMPOOL_BYTE_SIZE_LARGE		0x700	// 0x600 is 1.5kBytes
#endif
#ifndef GUI_MEMPOOL_BYTE_SIZE_SMALL
// Increased for DVD-AUDIO and DVD_VR in DISPLAY component open simultaneously with PLAYMODE component
// Could optimize DISPLAY component (all objects are added, some invisible) or close it when open the PLAYMODE.
#define GUI_MEMPOOL_BYTE_SIZE_SMALL		0x480	// 0x2cc is 1kBytes
#endif

// Include custom header file: customer specific definitions, over-writing common ones.
#include "Menu\Custom\menu_custom.h"

#endif //_O_MENU_CONFIG_COMMON_H_

⌨️ 快捷键说明

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