- #ifdef Ti3001_OSD_UI_2
- #define MAX_SETUP_PAGE 8
- #elif defined(BBK_NEW_SETUP)&&defined(BBK_DV961_DVD) //fengjl edit 2004-06-22 18:55
- #define MAX_SETUP_PAGE 7
- //#if defined(SAME_DISC_RESUME)||defined(SHOW_STANDBY_TIMER)
- #elif defined(NEXTPAGE_SYS) //freyman 2004-3-25 22:39
- #define MAX_SETUP_PAGE 7 //max. pages(# of level-1 selection items)
- #elif defined(QSI_SETUP_MENU)//liweihua 2004-6-15
- #define MAX_SETUP_PAGE 6//4 one page as background
- #elif defined(EASTECH_NEW_SETUP_MENU)
- #define MAX_SETUP_PAGE 4
- #elif defined(EASTECH_DP3240_SETUP_MENU) //add xrh 2004_12_08
- #define MAX_SETUP_PAGE 4
- #elif defined(DVB_MENU_SETUP_STYLE)
- #define MAX_SETUP_PAGE 8
- #elif defined(PULIANG_SETUP_MENU)
- #define MAX_SETUP_PAGE 5 //yaowh 04-12-15
- #else
- #define MAX_SETUP_PAGE 6 //max. pages(# of level-1 selection items)
- #endif
- #define MAX_CUSTM_SETUP_PAGE 1 //max. pages of engerineering page(press 8561 to enter)
- //yanlb added 2004/07/15,modify 07/21,modify 09/10
- //#define SAVE_NUM 2
- #define MAX_BAND 7
- #define MAX_3D_PAGE_ITEM 4
- extern UINT8 sound_sel[MAX_3D_PAGE_ITEM];
- extern UINT8 user_osd_set[MAX_BAND];
- #ifdef REMB_3DSOUND
- extern void run_sound_save(BYTE *p);
- extern int load_3Dsound(UINT8 *sound_save,UINT8 *user_osd_set);
- extern void exe_3Dsound(UINT8 *sound_save,UINT8 *user_osd_set);
- #endif
- #ifdef SETUP_RESTORE_ALSO_RESTORE_3D //added by wangwei,2004-9-17 16:05
- extern void restore_3Dsound(void);
- #endif
- #if defined(SOUND_EFFECT_MENU)||defined(REMB_3DSOUND) // sunzhh add 2004-4-30 10:52
- #ifdef SEVEN_OPTIONS_IN_EQ
- #define MAX_MUSIC 7
- #else
- #define MAX_MUSIC 5
- #endif
- BYTE EQ_type;
- BYTE surround_type;
- extern const UINT8 music_osd_set[MAX_MUSIC][MAX_BAND];
- void SettingEqLevel(BYTE *);
- void SettingEQType(BYTE type);
- void SetEQ(void);
- void SetSurround(void);
- #endif //#ifdef SOUND_EFFECT_MENU
- #ifdef SETUP_6_DIGIT_PASSWORD
- #define PASSWORD_LENGTH 6
- #else
- #define PASSWORD_LENGTH 4
- #endif
- //define selection items count
- #define MAX_PAGE_ITEM 8 //max. selection items in page(# of level-2 selection items)
- #define MAX_ITEM_SEL 10 //selected value from MIN_ITEM_SEL to MAX_ITEM_SEL
- #define MIN_ITEM_SEL 2 //min. selected value, 0th:item-function, 1st:item-string-id
- //define GUI setting
- #define SETUP_MAX_WIDTH 35 //English-characters-width
- #ifdef SOFT_MENU//Modifed by ChenZhao on 2004-9-8 17:38 WP
- #define SETUP_MAX_LINE 10 //lines
- #else
- #define SETUP_MAX_LINE 12 //lines
- #endif
- #define SETUP_BUTTON_HEIGHT (24+8) //24:font height, 4:top and bottom border
- //string coordinate
- //x: i-th English character with 16 pixel
- //y: j-th line with SETUP_BUTTON_HEIGHT pixel
- #ifdef SOFT_MENU//Modifed by ChenZhao on 2004-9-16 10:26 WP
- #define SETUP_MENU_XSTART (ITEM_XSTART/8)//string start at x-axis
- #define SETUP_MENU_YSTART (TITLE_HEIGHT/SETUP_BUTTON_HEIGHT) //string start at y-axis
- #define SETUP_SUB_XSTART (SELECT_XSTART/8+1)
- #else//SOFT_MENU
- #define SETUP_MENU_XSTART 2 //string start at x-axis
- #define SETUP_MENU_YSTART 2 //string start at y-axis
- #define SETUP_SUB_XSTART 18
- #endif//SOFT_MENU
- #ifdef DVD_SETUP_REENG
- //JSLin 20040908
- //move setup menu color setting to ..\customersXXXXsetup_menu_XXXX.c
- //after setup_item
- #else
- //16-Color table:see palette_16color_setup() in osd1.c
- #if defined(SETUP_COLOR_TYPE2) && !defined(PULIANG_SETUP_MENU)//yaowh modify 04-12-15//zhangyu 3-9-2 4:49张宇P
- #define STITLECOLOR 7
- #define SFONTCOLOR 10
- #ifdef SELECT_MEDIA_IN_SETUPMENU
- #define SGRAYCOLOR 12 //Maoyong 2004/8/11 disable item in red
- #elif defined(DVB_MENU_SETUP_STYLE) //Maoyong 2004-12-22 10:51
- #define SGRAYCOLOR 8
- #else
- #define SGRAYCOLOR 13
- #endif
- #define SRECTCOLOR 14
- #define SANTIBGCOLOR 6 //14
- #define SBGCOLOR 14
- #define SANTIFONTCOLOR 1
- #define SBLACKCOLOR 0
- #define SWHITECOLOR 2
- #define SDEFAULTCOLOR 4
- #define SBARCOLOR 14
- #elif defined(SETUP_COLOR_TYPE1)
- #define SFONTCOLOR 2
- #define SBARCOLOR 1
- #define SSHEER 15
- #define SRECTCOLOR 4
- #define SANTIBGCOLOR 10//12//13//5
- #define SBGCOLOR 10//12
- #define SBLACKCOLOR 0
- #define SWHITECOLOR 2
- #define SANTIFONTCOLOR 7//11//2
- #define SDEFAULTCOLOR 0//4
- #define SGRAYCOLOR 3
- #elif defined( QSI_SETUP_MENU_DESIGN)//liweihua 2004-7-2 17:14
- #define SFONTCOLOR 6//