setup_page.h
上传用户:caisangzi8
上传日期:2013-10-25
资源大小:15756k
文件大小:32k
源码类别:

DVD

开发平台:

C/C++

  1. //special page index
  2. #if  0//eastech
  3. //page index-0
  4. #define SYSPAGE         0
  5. #ifdef AUTO_ADJUST_TV_TYPE  //lijd 2004-9-15 13:34
  6. #define  SETUP_TV_TYPE           setup_sel[SYSPAGE][3]
  7. #endif
  8. #define TV_FORMAT       0
  9. #define SSAVERITEM      1       //Screen Saver item index
  10. //#define VIDEOITEM      MODE_MAX_PSCAN//not use nono mark it. 2003-10-20 21:50
  11. #define PASSWDITEM      4
  12. #define GRADEITEM       5
  13. #define SysNextPage 7
  14. #define SAME_DISC_RESUME_ITEM 1
  15. #define NEXTPAGEITEM 6
  16. #define PREVPAGEITEM 3
  17. //page index-1
  18. #define LANGPAGE        1
  19. #define LANGITEM        0
  20. //page index-2
  21. #define AUDPAGE         2
  22. #define DIGIOUTITEM     0
  23.  
  24. #define SPDIFBITSTREAM  2
  25. #define SPDIFPCM        3
  26. #define SPDIFSIMULATE   4
  27. #define MICONOFFITEM    4 //gerry,3-10-25 10:30
  28. #define ECHOITEM        2
  29. #define MICITEM         3
  30. #define VOLCTRLSTART    1    
  31. #define VOLCTRLEND      1//4   
  32. #define MICAUTO         2
  33. #define MICOFF          2
  34. //page index-3
  35. #define VIDEOPAGE 3
  36. #define AC3DOWNMIXITEM  0    
  37. #define SPKSTART        3
  38. #define SPKEND          4
  39. #define DOWNMIXLTRT     2   //Jeff 20020822
  40. #define DOWNMIXSTEREO   3
  41. #define DOWNMIXVSRND    4
  42. #define AC3DOWNMIXOFF   5
  43. //page index-4
  44. #define MULTISPKPAGE    4      //valid when AC3 or DTS
  45. //page index-5
  46. #define AC3DIGITALPAGE  5      //valid when AC3
  47. //CUSTM page index(for system admin use)
  48. #define CUSTMPAGEINDEX  6
  49. #define KEYITEM         1
  50. #define CUSTMPASSWDITEM 4
  51. #define CUSTMRATEITEM 3 // Maoyong 2004.03.25
  52. #define C_UNLOCK    1
  53. #define C_LOCK      0
  54. #ifdef  TEST_BASS_MANAGEMENT 
  55.     #define BASS_CONFIG_X   0   //no bass management necessary
  56.     #define BASS_CONFIG_1   1   //bass management config1
  57.     #define BASS_CONFIG_S   2   //simplified bass management
  58.     #define BASS_CONFIG_3   3   //bass management config3
  59.     #define BASS_CONFIG_CAR_S   4   //car audio,modification of simplified bass management
  60. #endif
  61. //defition for special items
  62. #define SETUP_TV_FORMAT             setup_sel[SYSPAGE][0]
  63. #define SETUP_SSAVER                 setup_sel[SYSPAGE][1]
  64. #define SETUP_VIDEO_FORMAT       setup_sel[SYSPAGE][2]
  65. #define SETUP_PASSWORD              setup_sel[SYSPAGE][4]
  66. #define SETUP_GRADE                  setup_sel[SYSPAGE][5]
  67. #define SETUP_OSD_LANG              setup_sel[LANGPAGE][0]
  68. #define SETUP_SPDIF                  setup_sel[AUDPAGE][0]
  69. #define SETUP_DOWN_SAMPLE setup_sel[AUDPAGE][1]
  70. #define SETUP_MIC_ONF                setup_sel[AUDPAGE][6]//[4]//setup_sel[AUDPAGE][1]
  71. #define SETUP_ECHO                   setup_sel[AUDPAGE][6]//[5]//setup_sel[AUDPAGE][2]
  72. #define SETUP_MIC_VOL                setup_sel[AUDPAGE][6]//[3]//setup_sel[AUDPAGE][3]
  73. #define SETUP_KEY                   setup_sel[4][5]
  74.   
  75. /*
  76. *  Prologic-2  and Freq. mask
  77. */
  78. #define PROLOGIC_OFF                            4//terry,2004/1/9 10:57AM         
  79. #define LPCM_ITEM                                       5//terry,2004/2/4 02:43PM        
  80. #define SETUP_FREQ_MASK setup_sel[AUDPAGE][LPCM_ITEM]//setup_sel[AUDPAGE][5]
  81. #define SETUP_BRIGHTNESS setup_sel[VIDEOPAGE][0]
  82. #define SETUP_CONTRAST setup_sel[VIDEOPAGE][1]
  83. #define SETUP_HUE setup_sel[VIDEOPAGE][2]
  84. #define SETUP_SATURATION setup_sel[VIDEOPAGE][3]
  85. #define SETUP_SPK_DOWNMIX            setup_sel[MULTISPKPAGE][0]
  86. #define SETUP_SPK_SUBWOOFER          setup_sel[MULTISPKPAGE][1]
  87. #define SETUP_BASS_MODE              setup_sel[MULTISPKPAGE][2]
  88. #define SETUP_SPK_CENTER_DELAY      setup_sel[MULTISPKPAGE][3]
  89. #define SETUP_SPK_SURROUND_DELAY    setup_sel[MULTISPKPAGE][4]
  90. #define ITEM_SPK_DOWNMIX             setup_item[MULTISPKPAGE][0]
  91. #define SETUP_AC3DIGITAL_DYNA       setup_sel[AC3DIGITALPAGE][1]    
  92. #define SETUP_AC3DIGITAL_LnR        setup_sel[AC3DIGITALPAGE][2]    
  93. #define ITEM_AC3DIGITAL_LnR         setup_item[AC3DIGITALPAGE][2]
  94. #define SETUP_AC3DIGITAL_OUTMODE    setup_sel[AC3DIGITALPAGE][0]
  95. #define ITEM_AC3DIGITAL_OUTMODE     setup_item[AC3DIGITALPAGE][0]
  96. #define AC3OUTMODEITEM              0
  97. #define AC3DYNAMICITEM1             1
  98. #define AC3DYNAMICITEM2             2 //(2+2)
  99. #define SETUP_CUSTM_REGION          setup_sel[CUSTMPAGEINDEX][2]
  100. #define SETUP_CUSTM_GRADE           setup_sel[CUSTMPAGEINDEX][3]
  101. #endif   //#IF  1//eastech
  102. //special page index
  103. //page index-0
  104. #ifndef DVB_MENU_SETUP_STYLE
  105. #define SYSPAGE         0
  106. #else
  107. #define INSTALLPAGE     0
  108. #define CHANNELPAGE     1
  109. #define SYSPAGE         2
  110. #define SETUP_DVB_LANG              setup_sel[INSTALLPAGE][1]
  111. #define SETUP_DVB_TIME_ZONE         setup_sel[INSTALLPAGE][2]
  112. #endif
  113. #ifdef DP3240_SETUP_MENU
  114. #define TV_FORMAT       0
  115. #define  SETUP_TV_TYPE   1       
  116. #define SLEEEP_CONTROLLER 2
  117. #ifdef SETUP_ITEM_NO_SCREEN_SAVER_AND_DEFAULT_ON
  118. #define PASSWDITEM      3
  119. #define GRADEITEM       4
  120. #define SysNextPage 7
  121. #define NEXTPAGEITEM 6
  122. #define PREVPAGEITEM 3
  123. #define SAME_DISC_RESUME_ITEM 1
  124. #else //#ifdef SETUP_ITEM_NO_SCREEN_SAVER_AND_DEFAULT_ON
  125. #define SSAVERITEM      3     //Screen Saver item index
  126. #define PASSWDITEM      4
  127. #define GRADEITEM       5
  128. #define SysNextPage 7
  129. #define NEXTPAGEITEM 6
  130. #define PREVPAGEITEM 3
  131. #define SAME_DISC_RESUME_ITEM 1
  132. #endif //#ifdef SETUP_ITEM_NO_SCREEN_SAVER_AND_DEFAULT_ON
  133. #else//#ifdef DP3240_SETUP_MENU
  134. #ifdef FUSS_TV_DVD//nono 2-8-20 13:05
  135.     #define SSAVERITEM      0//3       //Screen Saver item index
  136.     #define PASSWDITEM      1//4
  137.     #define GRADEITEM       2//5
  138. #else
  139.     #ifdef NO_TV_FORMAT
  140.     #define SSAVERITEM      0       //Screen Saver item index
  141.     #elif defined(SELECT_MEDIA_IN_SETUPMENU)    //Maoyonng 2004-8-10 14:52
  142.     #define ITEM_MEDIA_TYPE 0
  143.     #define TV_FORMAT       1
  144.     #else//NO_TV_FORMAT
  145.     #define TV_FORMAT       0
  146. #ifdef NO_SCREEN_SAVER
  147.     #define SSAVERITEM      7       //Screen Saver item index
  148. #else
  149.     #define SSAVERITEM      1       //Screen Saver item index
  150. #endif
  151.     //#define VIDEOITEM      MODE_MAX_PSCAN//not use nono mark it. 2003-10-20 21:50
  152.     #endif//NO_TV_FORMAT
  153.     #if defined(HIMAGE_CANADA_CUS)&& !defined(INCLUDE_YUV)
  154.         #define PASSWDITEM      3//4
  155.         #define GRADEITEM       4//5
  156.     #elif ( defined(DELETE_VIDEO_ITEM)&&defined(NO_TV_FORMAT)  )||defined(GBM_FULL_FUNCTION)
  157.         #define PASSWDITEM      2
  158.         #define GRADEITEM       3
  159.     #elif defined(DELETE_VIDEO_ITEM)||defined(NO_TV_FORMAT)
  160.         #define PASSWDITEM      3
  161.         #define GRADEITEM       4
  162.     #elif defined(ARGUS_PORTABLE_DVD)
  163.         #define PASSWDITEM      3
  164.         #define GRADEITEM       4    
  165.     #elif defined(NO_SCREEN_SAVER)
  166.         #define PASSWDITEM      3
  167.         #define GRADEITEM       4
  168.     #else
  169.         #define PASSWDITEM      4
  170.         #define GRADEITEM       5
  171.     #endif
  172. #endif
  173. #endif//#ifdef DP3240_SETUP_MENU
  174. //#if defined(SAME_DISC_RESUME)||defined(SHOW_STANDBY_TIMER)
  175. #if defined(NEXTPAGE_SYS)       //freyman 2004-3-25 23:57
  176. #define SysNextPage     7
  177. #ifdef GBM_FULL_FUNCTION
  178. #define SAME_DISC_RESUME_ITEM   0
  179. #elif defined(NOT_SHOW_SAME_DISC_RESUME)//GBM_FULL_FUNCTION
  180. #define SAME_DISC_RESUME_ITEM   7
  181. #else//GBM_FULL_FUNCTION
  182. #define SAME_DISC_RESUME_ITEM   1
  183. #endif//GBM_FULL_FUNCTION
  184. #ifdef GBM_FULL_FUNCTION
  185. #define NEXTPAGEITEM    5
  186. #define PREVPAGEITEM    4
  187. #elif defined(NOT_SHOW_SAME_DISC_RESUME)//GBM_FULL_FUNCTION
  188. #define NEXTPAGEITEM    6
  189. #define PREVPAGEITEM    2
  190. #else//GBM_FULL_FUNCTION
  191. #define NEXTPAGEITEM    6
  192. #define PREVPAGEITEM    3
  193. #endif//GBM_FULL_FUNCTION
  194. #endif 
  195. #ifdef USER_MPEG_LOGO
  196. #define MPEG_LOGO_ON    3
  197.     #ifdef NOT_SHOW_SAME_DISC_RESUME
  198.     #define MPEG_LOGO_ITEM      1
  199.     #else//NOT_SHOW_SAME_DISC_RESUME
  200.     #define MPEG_LOGO_ITEM      2
  201.     #endif//NOT_SHOW_SAME_DISC_RESUME
  202. #endif//USER_MPEG_LOGO
  203. //page index-1
  204. #ifndef DVB_MENU_SETUP_STYLE
  205. #define LANGPAGE        1
  206. #else
  207. #define LANGPAGE        3
  208. #endif
  209. #define LANGITEM        0
  210. //page index-2
  211. #ifndef DVB_MENU_SETUP_STYLE
  212. #define AUDPAGE        2
  213. #else
  214. #define AUDPAGE         4
  215. #endif
  216. #define DIGIOUTITEM     0
  217. //axel,2003/12/12 05:46PM
  218. #if defined(BBK_DVD)||defined(EASTECH_NEW_SETUP_MENU)||defined(DP3240_SETUP_MENU)
  219.  /*#ifdef BBK_DV961_DVD*/
  220. #define SPDIFBITSTREAM  2
  221. #define SPDIFPCM        3
  222. #define SPDIFSIMULATE   4
  223.  /*#elif defined(BBK_DSS_555_DVD)
  224.   #define SPDIFBITSTREAM  2
  225.   #define SPDIFPCM        3
  226.  #endif*/
  227. #else
  228. #define SPDIFSIMULATE   2
  229. #define SPDIFBITSTREAM  3
  230. #define SPDIFPCM        4
  231. #endif
  232. #ifdef NO_MIC
  233. #define MICONOFFITEM    4       //gerry,3-10-25 10:30
  234. #define ECHOITEM        2
  235. #define MICITEM         3
  236. #if defined(HJ_APEX_NO_KEY)&&!defined(SUPPORT_PROLOGIC_II)//20040617
  237. #define KEYITEM         7
  238. #else//#if defined(HJ_APEX_NO_KEY)&&defined(SUPPORT_PROLOGIC_II)
  239. #define KEYITEM         1
  240. #endif//#if defined(HJ_APEX_NO_KEY)&&defined(SUPPORT_PROLOGIC_II)
  241. #elif defined(NO_MIC_VOL)
  242. #define MICONOFFITEM    1       //gerry,3-10-23 15:43
  243. #define ECHOITEM        2
  244. #define MICITEM         7
  245. #define KEYITEM         6
  246. #elif defined(KARAOKE_MENU)
  247.     #define MICONOFFITEM    2   //wangfeng 2003-11-11 15:06
  248.     #define ECHOITEM        3
  249.     #define MICITEM         4
  250.     #define KEYITEM         5
  251. #elif defined(NOT_SHOW_MIC_SETUP_DAFAULT_AUTO)
  252.     #define MICONOFFITEM    7   //wangfeng 2003-11-11 15:06
  253.     #define ECHOITEM        1
  254.     #define MICITEM         2
  255.     #define KEYITEM         3
  256. #else
  257. #define MICONOFFITEM    1       //gerry,3-10-23 15:43
  258. #define ECHOITEM        2
  259. #define MICITEM         3
  260. #define KEYITEM         4
  261. #endif
  262. #define VOLCTRLSTART    1
  263.     #ifdef NO_MIC
  264.         #define VOLCTRLEND      1//4
  265.     #elif defined(NO_MIC_VOL)
  266.         #define VOLCTRLEND      2
  267.     #else
  268.         #define VOLCTRLEND      4
  269.     #endif
  270. #define MICAUTO         2
  271. #ifdef DVDRELEASE
  272.     #define MICOFF          2
  273. #else
  274.     #define MICOFF          3
  275. #endif
  276. #if defined(NO_DIGIT_VIDEO_MENU)&&!defined(EASTECH_NEW_SETUP_MENU)
  277. #define VIDEOPAGE       4
  278. //page index-3
  279. #define MULTISPKPAGE    3      //valid when AC3 or DTS
  280. #elif defined(QSI_SETUP_MENU)//liweihua 2004-6-15
  281. #define KARAOKPAGE      3
  282. #define VIDEOPAGE       5
  283. #elif defined(SETUP_DONGLI459)
  284. #define VIDEOPAGE       3
  285. #define MULTISPKPAGE    3     //valid when AC3 or DTS
  286. #elif defined(EASTECH_NEW_SETUP_MENU)
  287. #define VIDEOPAGE       3
  288. #define MULTISPKPAGE       3
  289. #elif defined(DVB_MENU_SETUP_STYLE)
  290. #define VIDEOPAGE      5
  291. #define MULTISPKPAGE    6 
  292. #else//#endif//NO_DIGIT_VIDEO_MENU
  293. //page index-3
  294. #define VIDEOPAGE       3
  295. //page index-4
  296. #define MULTISPKPAGE    4 
  297. #endif//NO_DIGIT_VIDEO_MENU
  298. #if defined(EASTECH_NEW_SETUP_MENU)
  299. #define AC3DOWNMIXITEM  2//0//4-8-30 10:30
  300. #else
  301. #define AC3DOWNMIXITEM  0
  302. #endif
  303. #ifndef AC3_BASS_MANAGEMENT
  304.     #define SPKSTART        2
  305.     #define SPKEND          6
  306. #else
  307.     #if defined(TEMP_TWO_CHANNEL)&&!defined(ONLY_DOWNMIX)&&!defined(ONLY_BASSMODE_DOWNMIX)//nono 4-3-11 18:34
  308.     #define SPKSTART        3
  309.     #define SPKEND          3
  310.     #elif defined(ONLY_DOWNMIX)
  311.     #define SPKSTART        1
  312.     #define SPKEND          1
  313.     #elif defined(ONLY_DOWNMIX_SUBW)||defined(ONLY_BASSMODE_DOWNMIX)//yaowh add 2005-3-27 22:16
  314.     #define SPKSTART        2
  315.     #define SPKEND          2
  316.     #else
  317.     #define SPKSTART        3
  318.     #define SPKEND          4
  319. #endif
  320. #endif
  321. #define DOWNMIXLTRT     2   //Jeff 20020822
  322. #define DOWNMIXSTEREO   3
  323. #if defined(JIEKE_DVD)|defined(MINTON_DVD)//wangfeng 2003-12-12 14:40
  324. #define AC3DOWNMIXOFF   4
  325. #define DOWNMIXVSRND    5
  326. #else
  327. #define DOWNMIXVSRND    4
  328. #define AC3DOWNMIXOFF   5
  329. #endif
  330. //page index-4
  331. #ifdef SETUP_DONGLI459
  332. #define AC3DIGITALPAGE  4      //valid when AC3
  333. #else//#ifdef SETUP_DONGLI459
  334. #ifdef DVB_MENU_SETUP_STYLE
  335. #define AC3DIGITALPAGE  7
  336. #else
  337. #define AC3DIGITALPAGE  5      //valid when AC3
  338. #endif
  339. #endif//#ifdef SETUP_DONGLI459
  340. //page index-5
  341. //CUSTM page index(for system admin use)
  342. #ifdef Ti3001_OSD_UI_2
  343.     #define  CUSTMPAGEINDEX  8
  344. #elif defined(QSI_SETUP_MENU)//liweihua 2004-6-15
  345.     #define  CUSTMPAGEINDEX  4
  346. #elif defined(EASTECH_NEW_SETUP_MENU)||defined(EASTECH_DP3240_SETUP_MENU)
  347.     #define CUSTMPAGEINDEX  4
  348. #elif defined(DVB_MENU_SETUP_STYLE)
  349.     #define CUSTMPAGEINDEX  8    
  350. #else
  351.     #define CUSTMPAGEINDEX  6
  352. #endif
  353. #ifdef RCD_GPIO_CONTROL                 // alan 2002/7/26 02:07