- //special page index
- #if 0//eastech
- //page index-0
- #define SYSPAGE 0
- #ifdef AUTO_ADJUST_TV_TYPE //lijd 2004-9-15 13:34
- #define SETUP_TV_TYPE setup_sel[SYSPAGE][3]
- #endif
- #define TV_FORMAT 0
- #define SSAVERITEM 1 //Screen Saver item index
- //#define VIDEOITEM MODE_MAX_PSCAN//not use nono mark it. 2003-10-20 21:50
- #define PASSWDITEM 4
- #define GRADEITEM 5
- #define SysNextPage 7
- #define SAME_DISC_RESUME_ITEM 1
- #define NEXTPAGEITEM 6
- #define PREVPAGEITEM 3
- //page index-1
- #define LANGPAGE 1
- #define LANGITEM 0
- //page index-2
- #define AUDPAGE 2
- #define DIGIOUTITEM 0
- #define SPDIFBITSTREAM 2
- #define SPDIFPCM 3
- #define SPDIFSIMULATE 4
- #define MICONOFFITEM 4 //gerry,3-10-25 10:30
- #define ECHOITEM 2
- #define MICITEM 3
- #define VOLCTRLSTART 1
- #define VOLCTRLEND 1//4
- #define MICAUTO 2
- #define MICOFF 2
- //page index-3
- #define VIDEOPAGE 3
- #define AC3DOWNMIXITEM 0
- #define SPKSTART 3
- #define SPKEND 4
- #define DOWNMIXLTRT 2 //Jeff 20020822
- #define DOWNMIXSTEREO 3
- #define DOWNMIXVSRND 4
- #define AC3DOWNMIXOFF 5
- //page index-4
- #define MULTISPKPAGE 4 //valid when AC3 or DTS
- //page index-5
- #define AC3DIGITALPAGE 5 //valid when AC3
- //CUSTM page index(for system admin use)
- #define CUSTMPAGEINDEX 6
- #define KEYITEM 1
- #define CUSTMPASSWDITEM 4
- #define CUSTMRATEITEM 3 // Maoyong 2004.03.25
- #define C_UNLOCK 1
- #define C_LOCK 0
- #ifdef TEST_BASS_MANAGEMENT
- #define BASS_CONFIG_X 0 //no bass management necessary
- #define BASS_CONFIG_1 1 //bass management config1
- #define BASS_CONFIG_S 2 //simplified bass management
- #define BASS_CONFIG_3 3 //bass management config3
- #define BASS_CONFIG_CAR_S 4 //car audio,modification of simplified bass management
- #endif
- //defition for special items
- #define SETUP_TV_FORMAT setup_sel[SYSPAGE][0]
- #define SETUP_SSAVER setup_sel[SYSPAGE][1]
- #define SETUP_VIDEO_FORMAT setup_sel[SYSPAGE][2]
- #define SETUP_PASSWORD setup_sel[SYSPAGE][4]
- #define SETUP_GRADE setup_sel[SYSPAGE][5]
- #define SETUP_OSD_LANG setup_sel[LANGPAGE][0]
- #define SETUP_SPDIF setup_sel[AUDPAGE][0]
- #define SETUP_DOWN_SAMPLE setup_sel[AUDPAGE][1]
- #define SETUP_MIC_ONF setup_sel[AUDPAGE][6]//[4]//setup_sel[AUDPAGE][1]
- #define SETUP_ECHO setup_sel[AUDPAGE][6]//[5]//setup_sel[AUDPAGE][2]
- #define SETUP_MIC_VOL setup_sel[AUDPAGE][6]//[3]//setup_sel[AUDPAGE][3]
- #define SETUP_KEY setup_sel[4][5]
- /*
- * Prologic-2 and Freq. mask
- */
- #define PROLOGIC_OFF 4//terry,2004/1/9 10:57AM
- #define LPCM_ITEM 5//terry,2004/2/4 02:43PM
- #define SETUP_FREQ_MASK setup_sel[AUDPAGE][LPCM_ITEM]//setup_sel[AUDPAGE][5]
- #define SETUP_BRIGHTNESS setup_sel[VIDEOPAGE][0]
- #define SETUP_CONTRAST setup_sel[VIDEOPAGE][1]
- #define SETUP_HUE setup_sel[VIDEOPAGE][2]
- #define SETUP_SATURATION setup_sel[VIDEOPAGE][3]
- #define SETUP_SPK_DOWNMIX setup_sel[MULTISPKPAGE][0]
- #define SETUP_SPK_SUBWOOFER setup_sel[MULTISPKPAGE][1]
- #define SETUP_BASS_MODE setup_sel[MULTISPKPAGE][2]
- #define SETUP_SPK_CENTER_DELAY setup_sel[MULTISPKPAGE][3]
- #define SETUP_SPK_SURROUND_DELAY setup_sel[MULTISPKPAGE][4]
- #define ITEM_SPK_DOWNMIX setup_item[MULTISPKPAGE][0]
- #define SETUP_AC3DIGITAL_DYNA setup_sel[AC3DIGITALPAGE][1]
- #define SETUP_AC3DIGITAL_LnR setup_sel[AC3DIGITALPAGE][2]
- #define ITEM_AC3DIGITAL_LnR setup_item[AC3DIGITALPAGE][2]
- #define SETUP_AC3DIGITAL_OUTMODE setup_sel[AC3DIGITALPAGE][0]
- #define ITEM_AC3DIGITAL_OUTMODE setup_item[AC3DIGITALPAGE][0]
- #define AC3OUTMODEITEM 0
- #define AC3DYNAMICITEM1 1
- #define AC3DYNAMICITEM2 2 //(2+2)
- #define SETUP_CUSTM_REGION setup_sel[CUSTMPAGEINDEX][2]
- #define SETUP_CUSTM_GRADE setup_sel[CUSTMPAGEINDEX][3]
- #endif //#IF 1//eastech
- //special page index
- //page index-0
- #ifndef DVB_MENU_SETUP_STYLE
- #define SYSPAGE 0
- #else
- #define INSTALLPAGE 0
- #define CHANNELPAGE 1
- #define SYSPAGE 2
- #define SETUP_DVB_LANG setup_sel[INSTALLPAGE][1]
- #define SETUP_DVB_TIME_ZONE setup_sel[INSTALLPAGE][2]
- #endif
- #ifdef DP3240_SETUP_MENU
- #define TV_FORMAT 0
- #define SETUP_TV_TYPE 1
- #define SLEEEP_CONTROLLER 2
- #ifdef SETUP_ITEM_NO_SCREEN_SAVER_AND_DEFAULT_ON
- #define PASSWDITEM 3
- #define GRADEITEM 4
- #define SysNextPage 7
- #define NEXTPAGEITEM 6
- #define PREVPAGEITEM 3
- #define SAME_DISC_RESUME_ITEM 1
- #else //#ifdef SETUP_ITEM_NO_SCREEN_SAVER_AND_DEFAULT_ON
- #define SSAVERITEM 3 //Screen Saver item index
- #define PASSWDITEM 4
- #define GRADEITEM 5
- #define SysNextPage 7
- #define NEXTPAGEITEM 6
- #define PREVPAGEITEM 3
- #define SAME_DISC_RESUME_ITEM 1
- #endif //#ifdef SETUP_ITEM_NO_SCREEN_SAVER_AND_DEFAULT_ON
- #else//#ifdef DP3240_SETUP_MENU
- #ifdef FUSS_TV_DVD//nono 2-8-20 13:05
- #define SSAVERITEM 0//3 //Screen Saver item index
- #define PASSWDITEM 1//4
- #define GRADEITEM 2//5
- #else
- #ifdef NO_TV_FORMAT
- #define SSAVERITEM 0 //Screen Saver item index
- #elif defined(SELECT_MEDIA_IN_SETUPMENU) //Maoyonng 2004-8-10 14:52
- #define ITEM_MEDIA_TYPE 0
- #define TV_FORMAT 1
- #else//NO_TV_FORMAT
- #define TV_FORMAT 0
- #ifdef NO_SCREEN_SAVER
- #define SSAVERITEM 7 //Screen Saver item index
- #else
- #define SSAVERITEM 1 //Screen Saver item index
- #endif
- //#define VIDEOITEM MODE_MAX_PSCAN//not use nono mark it. 2003-10-20 21:50
- #endif//NO_TV_FORMAT
- #if defined(HIMAGE_CANADA_CUS)&& !defined(INCLUDE_YUV)
- #define PASSWDITEM 3//4
- #define GRADEITEM 4//5
- #elif ( defined(DELETE_VIDEO_ITEM)&&defined(NO_TV_FORMAT) )||defined(GBM_FULL_FUNCTION)
- #define PASSWDITEM 2
- #define GRADEITEM 3
- #elif defined(DELETE_VIDEO_ITEM)||defined(NO_TV_FORMAT)
- #define PASSWDITEM 3
- #define GRADEITEM 4
- #elif defined(ARGUS_PORTABLE_DVD)
- #define PASSWDITEM 3
- #define GRADEITEM 4
- #elif defined(NO_SCREEN_SAVER)
- #define PASSWDITEM 3
- #define GRADEITEM 4
- #else
- #define PASSWDITEM 4
- #define GRADEITEM 5
- #endif
- #endif
- #endif//#ifdef DP3240_SETUP_MENU
- //#if defined(SAME_DISC_RESUME)||defined(SHOW_STANDBY_TIMER)
- #if defined(NEXTPAGE_SYS) //freyman 2004-3-25 23:57
- #define SysNextPage 7
- #ifdef GBM_FULL_FUNCTION
- #define SAME_DISC_RESUME_ITEM 0
- #elif defined(NOT_SHOW_SAME_DISC_RESUME)//GBM_FULL_FUNCTION
- #define SAME_DISC_RESUME_ITEM 7
- #else//GBM_FULL_FUNCTION
- #define SAME_DISC_RESUME_ITEM 1
- #endif//GBM_FULL_FUNCTION
- #ifdef GBM_FULL_FUNCTION
- #define NEXTPAGEITEM 5
- #define PREVPAGEITEM 4
- #elif defined(NOT_SHOW_SAME_DISC_RESUME)//GBM_FULL_FUNCTION
- #define NEXTPAGEITEM 6
- #define PREVPAGEITEM 2
- #else//GBM_FULL_FUNCTION
- #define NEXTPAGEITEM 6
- #define PREVPAGEITEM 3
- #endif//GBM_FULL_FUNCTION
- #endif
- #ifdef USER_MPEG_LOGO
- #define MPEG_LOGO_ON 3
- #ifdef NOT_SHOW_SAME_DISC_RESUME
- #define MPEG_LOGO_ITEM 1
- #else//NOT_SHOW_SAME_DISC_RESUME
- #define MPEG_LOGO_ITEM 2
- #endif//NOT_SHOW_SAME_DISC_RESUME
- #endif//USER_MPEG_LOGO
- //page index-1
- #ifndef DVB_MENU_SETUP_STYLE
- #define LANGPAGE 1
- #else
- #define LANGPAGE 3
- #endif
- #define LANGITEM 0
- //page index-2
- #ifndef DVB_MENU_SETUP_STYLE
- #define AUDPAGE 2
- #else
- #define AUDPAGE 4
- #endif
- #define DIGIOUTITEM 0
- //axel,2003/12/12 05:46PM
- #if defined(BBK_DVD)||defined(EASTECH_NEW_SETUP_MENU)||defined(DP3240_SETUP_MENU)
- /*#ifdef BBK_DV961_DVD*/
- #define SPDIFBITSTREAM 2
- #define SPDIFPCM 3
- #define SPDIFSIMULATE 4
- /*#elif defined(BBK_DSS_555_DVD)
- #define SPDIFBITSTREAM 2
- #define SPDIFPCM 3
- #endif*/
- #else
- #define SPDIFSIMULATE 2
- #define SPDIFBITSTREAM 3
- #define SPDIFPCM 4
- #endif
- #ifdef NO_MIC
- #define MICONOFFITEM 4 //gerry,3-10-25 10:30
- #define ECHOITEM 2
- #define MICITEM 3
- #if defined(HJ_APEX_NO_KEY)&&!defined(SUPPORT_PROLOGIC_II)//20040617
- #define KEYITEM 7
- #else//#if defined(HJ_APEX_NO_KEY)&&defined(SUPPORT_PROLOGIC_II)
- #define KEYITEM 1
- #endif//#if defined(HJ_APEX_NO_KEY)&&defined(SUPPORT_PROLOGIC_II)
- #elif defined(NO_MIC_VOL)
- #define MICONOFFITEM 1 //gerry,3-10-23 15:43
- #define ECHOITEM 2
- #define MICITEM 7
- #define KEYITEM 6
- #elif defined(KARAOKE_MENU)
- #define MICONOFFITEM 2 //wangfeng 2003-11-11 15:06
- #define ECHOITEM 3
- #define MICITEM 4
- #define KEYITEM 5
- #elif defined(NOT_SHOW_MIC_SETUP_DAFAULT_AUTO)
- #define MICONOFFITEM 7 //wangfeng 2003-11-11 15:06
- #define ECHOITEM 1
- #define MICITEM 2
- #define KEYITEM 3
- #else
- #define MICONOFFITEM 1 //gerry,3-10-23 15:43
- #define ECHOITEM 2
- #define MICITEM 3
- #define KEYITEM 4
- #endif
- #define VOLCTRLSTART 1
- #ifdef NO_MIC
- #define VOLCTRLEND 1//4
- #elif defined(NO_MIC_VOL)
- #define VOLCTRLEND 2
- #else
- #define VOLCTRLEND 4
- #endif
- #define MICAUTO 2
- #ifdef DVDRELEASE
- #define MICOFF 2
- #else
- #define MICOFF 3
- #endif
- #if defined(NO_DIGIT_VIDEO_MENU)&&!defined(EASTECH_NEW_SETUP_MENU)
- #define VIDEOPAGE 4
- //page index-3
- #define MULTISPKPAGE 3 //valid when AC3 or DTS
- #elif defined(QSI_SETUP_MENU)//liweihua 2004-6-15
- #define KARAOKPAGE 3
- #define VIDEOPAGE 5
- #elif defined(SETUP_DONGLI459)
- #define VIDEOPAGE 3
- #define MULTISPKPAGE 3 //valid when AC3 or DTS
- #elif defined(EASTECH_NEW_SETUP_MENU)
- #define VIDEOPAGE 3
- #define MULTISPKPAGE 3
- #elif defined(DVB_MENU_SETUP_STYLE)
- #define VIDEOPAGE 5
- #define MULTISPKPAGE 6
- #else//#endif//NO_DIGIT_VIDEO_MENU
- //page index-3
- #define VIDEOPAGE 3
- //page index-4
- #define MULTISPKPAGE 4
- #endif//NO_DIGIT_VIDEO_MENU
- #if defined(EASTECH_NEW_SETUP_MENU)
- #define AC3DOWNMIXITEM 2//0//4-8-30 10:30
- #else
- #define AC3DOWNMIXITEM 0
- #endif
- #ifndef AC3_BASS_MANAGEMENT
- #define SPKSTART 2
- #define SPKEND 6
- #else
- #if defined(TEMP_TWO_CHANNEL)&&!defined(ONLY_DOWNMIX)&&!defined(ONLY_BASSMODE_DOWNMIX)//nono 4-3-11 18:34
- #define SPKSTART 3
- #define SPKEND 3
- #elif defined(ONLY_DOWNMIX)
- #define SPKSTART 1
- #define SPKEND 1
- #elif defined(ONLY_DOWNMIX_SUBW)||defined(ONLY_BASSMODE_DOWNMIX)//yaowh add 2005-3-27 22:16
- #define SPKSTART 2
- #define SPKEND 2
- #else
- #define SPKSTART 3
- #define SPKEND 4
- #endif
- #endif
- #define DOWNMIXLTRT 2 //Jeff 20020822
- #define DOWNMIXSTEREO 3
- #if defined(JIEKE_DVD)|defined(MINTON_DVD)//wangfeng 2003-12-12 14:40
- #define AC3DOWNMIXOFF 4
- #define DOWNMIXVSRND 5
- #else
- #define DOWNMIXVSRND 4
- #define AC3DOWNMIXOFF 5
- #endif
- //page index-4
- #ifdef SETUP_DONGLI459
- #define AC3DIGITALPAGE 4 //valid when AC3
- #else//#ifdef SETUP_DONGLI459
- #ifdef DVB_MENU_SETUP_STYLE
- #define AC3DIGITALPAGE 7
- #else
- #define AC3DIGITALPAGE 5 //valid when AC3
- #endif
- #endif//#ifdef SETUP_DONGLI459
- //page index-5
- //CUSTM page index(for system admin use)
- #ifdef Ti3001_OSD_UI_2
- #define CUSTMPAGEINDEX 8
- #elif defined(QSI_SETUP_MENU)//liweihua 2004-6-15
- #define CUSTMPAGEINDEX 4
- #elif defined(EASTECH_NEW_SETUP_MENU)||defined(EASTECH_DP3240_SETUP_MENU)
- #define CUSTMPAGEINDEX 4
- #elif defined(DVB_MENU_SETUP_STYLE)
- #define CUSTMPAGEINDEX 8
- #else
- #define CUSTMPAGEINDEX 6
- #endif
- #ifdef RCD_GPIO_CONTROL // alan 2002/7/26 02:07