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

DVD

开发平台:

C/C++

  1. /***************************************************************
  2. *  setup_menu_content.c
  3. *  include  in setup_item.c   when defined DVD_SETUP_REENG
  4. * Creator:  JSLin 
  5. * Date:   2004/07/28
  6. *
  7. * Description :
  8. * the content of setup menu (setup_item[Page][Item][Selection]) 
  9. * can be transform into graphical presentation (GUI)
  10. *
  11. ****************************************************************/
  12. #define setup_max_icon 6
  13. #define setup_page_SYS 0
  14. #define setup_page_LAN 1
  15. #define setup_page_AUD 2
  16. #define setup_page_VID 3
  17. #define setup_page_SPE 4
  18. #define setup_page_DIG 5
  19. #define setup_page_CUS 6
  20. #define setup_page_SYS2 7
  21. enum
  22. {
  23. SETUP_ML0 = 0,
  24. SETUP_ML1 = 1, //page level
  25. SETUP_ML2, //item level
  26. SETUP_ML3  //select level
  27. }; //setup menu moving level
  28. enum
  29. {
  30. SETUP_ENTER = 0,
  31. SETUP_SELECTION = 1,
  32. SETUP_UP = 2,
  33. SETUP_DOWN,
  34. SETUP_LEFT,
  35. SETUP_RIGHT
  36. }; // setup moving direction
  37. enum
  38. {
  39. SETUP_itemNormal = 0,
  40. SETUP_itemMark = 1,
  41. SETUP_itemSelected = 2,
  42. SETUP_itemTitle = 3,
  43. }; //GUI item type 
  44. UINT8 setup_pos[4] = {0,0,0,0};
  45. UINT8 setup_last_pos[4] = {0,0,0,0};
  46. UINT8 setup_mLevel, setup_mDir, setup_itemType;
  47. UINT32 setup_refresh = 0;
  48. //======================================================================================
  49. const UINT8 setup_item[MAX_SETUP_PAGE + MAX_CUSTM_SETUP_PAGE][MAX_PAGE_ITEM+1][MAX_ITEM_SEL+1+1+1]=
  50. {
  51.     //page 0-SYSTEM SETUP
  52.     {
  53.         {SET_SHOW, STR_OS_SYS_SETUP, setup_page_SYS, 2, 0,0,0,0,0,0,0,0,0}, //page 0
  54.      //item0
  55.         {SET_FUNC, STR_OS_TV_SYS, TV_SYS_SETUP_STRING, 0, 0, SETUP_VA_TV_SYS, 0},
  56.         //item1
  57.         {SET_FUNC,STR_OS_SSAVER_SETUP,STR_OS_ON,STR_OS_OFF,0,0,0, 0, 0,0, 1, SETUP_VA_SSAVER, 0},
  58.         //item2
  59.         {SET_FUNC,STR_OS_VIDEO,VIDEO_SETUP_STRING, 0, 2, SETUP_VA_VIDEO, 0},
  60.         //item3
  61.         {SET_FUNC,STR_OS_TV_RATIO,STR_OS_4_3PS,STR_OS_4_3LB,STR_OS_16_9,0, 0, 0,0,0, 3, SETUP_VA_TV_RATIO, 0},        
  62.         //item4
  63.         {SET_NM,STR_OS_PASSWORD,STR_OS_LOCK,STR_OS_UNLOCK,0,0,0, 0, 0,0, 0, SETUP_VA_PASSWORD, 0},
  64.         //item5
  65.      {SET_FUNC,STR_OS_RATING,STR_OS_NO_ADULT,STR_OS_KID_ONLY,STR_OS_VIEW_ALL,0,0, 0,0,0, 5, SETUP_VA_RATING, 2},
  66.      //item6
  67.      {SET_FUNC,STR_OS_DEFAULT_SETUP,STR_OS_RESTORE_SETUP,0,0,0,0, 0, 0,0, 6, SETUP_VA_DEFAULT, 0},
  68.      //item7    
  69.         {SET_SH,STR_OS_EXIT_MENU,0,0,0,0,0, 0, 0,0, 0, SETUP_VA_NONE, 0},
  70.     },
  71. //=========================================================================================
  72.     //page 1-LANGUAGE SETUP
  73.     {
  74.         {SET_SHOW, STR_OS_LANG_SETUP, setup_page_LAN,6, 0,0,0,0,0,0,0,0,0}, //page 1
  75.      //item0
  76.         {SET_FUNC,STR_OS_OSD, OSD_LAGN_SETUP_STRING, 0, SETUP_VA_OSD_LANG, 0},
  77.         //item1
  78.         {SET_FUNC,STR_OS_AUDIO_LANG_SETUP,OSD_AUDIO_LAGN_SETUP_STRING, 0, SETUP_VA_AUDIO_LANG, 0},
  79.   //item2
  80.         {SET_FUNC,STR_OS_SUBTITLE_LANG_SETUP,OSD_SUBT_LAGN_SETUP_STRING, 0, SETUP_VA_SUBTITLE_LAN, 0},
  81.         //item3
  82.         {SET_FUNC,STR_OS_MENU_LANG_SETUP,OSD_MENU_LAGN_SETUP_STRING, 0, SETUP_VA_MENU_LANG, 0},
  83.         //item4
  84.         {SET_SPACE,0,0,0,0,0,0, 0, 0,0, 0, SETUP_VA_NONE, 0},
  85.         //item5
  86.         {SET_SH,STR_OS_EXIT_MENU,0,0,0,0,0, 0, 0,0, 0, SETUP_VA_NONE, 0},
  87.         //item6
  88.         {SET_NE,0,0,0,0,0,0, 0, 0,0, 0, SETUP_VA_NONE, 0},
  89.         //item7
  90.         {SET_NE,0,0,0,0,0,0, 0, 0,0, 0, SETUP_VA_NONE, 0},
  91.     },
  92.     //=========================================================================================
  93.         
  94.     //page 2-AUDIO SETUP
  95.     {
  96.      {SET_SHOW, STR_OS_AUD_SETUP, setup_page_AUD, 10, 0,0,0,0,0,0,0,0,0}, //page 2
  97. //item0
  98.         {SET_FUNC,STR_OS_AUD_OUT,STR_OS_SIMULATE,STR_OS_BITSTREAM,STR_OS_STEREO_PCM,0,0, 0, 0,0, 0, SETUP_VA_AUD_OUT, 0},
  99.         //item1
  100.         {SET_FUNC,STR_OS_MIC_ONOFF,STR_OS_AUTO,STR_OS_OFF,0,0,0, 0, 0,0, 1, SETUP_VA_MIC_ONOFF, 0},
  101.         //item2
  102.         {SET_SCALE,STR_OS_ECHO,5,0,8,0,0, 0, 0,0, 0, SETUP_VA_ECHO, 4},
  103.         //item3
  104.         {SET_SCALE,STR_OS_MIC_VOL,5,0,8,0,0, 0, 0,0, 1, SETUP_VA_MIC_VOL, 6},
  105.         //item4
  106.         {SET_SCALE,STR_OS_KEY,7,0,12,0,0, 0, 0,0, 1, SETUP_VA_KEY, 6},
  107.         //item5
  108.         {SET_FUNC,STR_OS_FREQ_MASK,STR_OS_48K,STR_OS_96K,STR_OS_192K,0,0, 0, 0,0, 5, SETUP_VA_FREQ_MASK, 0},
  109.         //item6
  110.         {SET_SPACE,0,0,0,0,0,0, 0, 0,0, 0, SETUP_VA_NONE, 0},
  111.         //item7
  112.         {SET_SH,STR_OS_EXIT_MENU,0,0,0,0,0, 0, 0,0, 0, SETUP_VA_NONE, 0},
  113.     },
  114.    //=========================================================================================
  115.     //page 3-VIDEO SETUP
  116.     {
  117.      {SET_SHOW, STR_OS_VIDEO_SETUP, setup_page_VID, 16, 0,0,0,0,0,0,0,0,0}, //page 3
  118.     //item0
  119.         {SET_SCALE,STR_OS_BRIGHTNESS,7,0,12,0,0, 0, 0,0, 0, SETUP_VA_BRIGHTNESS, 6},
  120.         //item1
  121.         {SET_SCALE,STR_OS_CONTRAST,7,0,12,0,0, 0, 0,0, 0, SETUP_VA_CONTRAST, 6},
  122.         //item2
  123.         {SET_SCALE,STR_OS_HUE,7,0,12,0,0, 0, 0,0, 0, SETUP_VA_HUE, 6},
  124.         //item3
  125.         {SET_SCALE,STR_OS_SATURATION,7,0,12,0,0, 0, 0,0, 0, SETUP_VA_SATURATION, 0},
  126.         //item4
  127. {SET_SPACE,0,0,0,0,0,0, 0, 0,0, 0, SETUP_VA_NONE, 0},
  128.         //item5
  129.         {SET_SH,STR_OS_EXIT_MENU,0,0,0,0,0, 0, 0,0, 0, SETUP_VA_NONE, 0},
  130.         //item6
  131.         {SET_NE,0,0,0,0,0,0, 0, 0,0, 0, SETUP_VA_NONE, 0},
  132.         //item7
  133.         {SET_NE,0,0,0,0,0,0, 0, 0,0, 0, SETUP_VA_NONE, 0},        
  134.     },
  135. //=========================================================================================
  136. //page 4-SPEAKER SETUP
  137.     {
  138.      {SET_SHOW, STR_OS_SPK_SETUP, setup_page_SPE, 20, 0,0,0,0,0,0,0,0,0}, //page 4
  139. //item0
  140.         {SET_FUNC,STR_OS_DOWNMIX_SETUP,STR_OS_LTRT_SETUP,STR_OS_STEREO,STR_OS_VSURROUND_SETUP,STR_OS_OFF,0, 0, 0,0, 0, SETUP_VA_DOWNMIX, 2},
  141.         //item1      
  142.         {SET_FUNC,STR_OS_SUBWOOFER,STR_OS_OFF,STR_OS_ON,0,0,0, 0, 0,0, 1, SETUP_VA_SUBWOOFER, 1},     //set subwoofer on/off
  143.       //item2
  144.         {SET_FUNC,STR_OS_BASS_MANAGEMENT,STR_OS_BASS_MODE_1,STR_OS_BASS_MODE_2,STR_OS_BASS_MODE_3,0,0, 0, 0,0, 2, SETUP_VA_BASE_MODE, 0},
  145.         //item3
  146.         {SET_SCALE,STR_OS_CSPK_DELAY,4,0,5,0, 0, 0, 0,0, 2, SETUP_VA_CSPK_DELAY, 0},   //set c-speaker delay
  147.         //item4
  148.         {SET_SCALE,STR_OS_SSPK_DELAY,4,0,5,0, 0, 0, 0,0, 2, SETUP_VA_SSPK_DELAY, 2},   //set s-speaker delay
  149.         //item5
  150.         {SET_SPACE,0,0,0,0,0,0, 0, 0,0, 0, SETUP_VA_NONE, 0},
  151.         //item6
  152.         {SET_SH,STR_OS_EXIT_MENU,0,0,0,0,0, 0, 0,0, 0, SETUP_VA_NONE, 0},
  153.         //item7
  154.         {SET_NE,0,0,0,0,0,0, 0, 0,0, 0, SETUP_VA_NONE, 0},
  155.     },
  156. //==============================================================================================
  157.     //page 5-DIGITAL SETUP
  158.     {
  159.         {SET_SHOW, STR_OS_DIGTAL_SETUP, setup_page_DIG, 22, 0,0,0,0,0,0,0,0,0}, //page 5
  160. //item0
  161.         {SET_FUNC,STR_OS_DOLBY_OP_SETUP,STR_OS_DOLBY_LINE_SETUP,STR_OS_DOLBY_RF_SETUP,0,0,0, 0, 0,0, 0, SETUP_VA_DOLBY_OP, 0},
  162.         //item1
  163.         {SET_SCALE,STR_OS_DYNAMICRANGE,5,0,8,0,0, 0, 0,0, 0, SETUP_VA_DYNAMCRANGE, 0},
  164.         //item2
  165.         {SET_FUNC,STR_OS_DUAL_MONO_SETUP,STR_OS_STEREO,STR_OS_CHL,STR_OS_CHR,STR_OS_MIX_MONO_SETUP,0, 0, 0,0, 2, SETUP_VA_DUAL_MONO, 3},
  166.         //item3
  167.         {SET_SPACE,0,0,0,0,0,0, 0, 0,0, 0, SETUP_VA_NONE, 0},
  168.         //item4
  169.         {SET_SH,STR_OS_EXIT_MENU,0,0,0,0,0, 0, 0,0, 0, SETUP_VA_NONE, 0},
  170.         //item5
  171.         {SET_NE,0,0,0,0,0,0, 0, 0,0, 0, SETUP_VA_NONE, 0},
  172.         //item6
  173.         {SET_NE,0,0,0,0,0,0, 0, 0,0, 0, SETUP_VA_NONE, 0},
  174.         //item7
  175.         {SET_NE,0,0,0,0,0,0, 0, 0,0, 0, SETUP_VA_NONE, 0},
  176.         
  177.     },
  178. //==============================================================================================
  179.     //custm setup page
  180.     {
  181.         {SET_SHOW, 0, 0, 0, 0,0,0,0,0,0,0,0,0},  //CSTUM page
  182.     //item0
  183.         {SET_SHOW, STR_OS_FIRMWARE_ID, STR_OS_SPACE,0,0,0,0, 0, 0,0, 0, SETUP_VA_NONE, 0},
  184.         //item1
  185.         {SET_SHOW,STR_OS_CHIP_ID,STR_OS_SPACE,0,0,0,0, 0, 0,0, 0, SETUP_VA_NONE, 0},
  186.         //item2
  187.         {SET_FUNC,STR_OS_REGION_CODE,STR_OS_REGION_0,STR_OS_REGION_1,STR_OS_REGION_2,STR_OS_REGION_3,STR_OS_REGION_4, STR_OS_REGION_5, STR_OS_REGION_6,0, 2, SETUP_VA_REGION_CODE, 0},
  188.         //item3
  189.         {SET_FUNC,STR_OS_RATING,STR_OS_NO_ADULT,STR_OS_KID_ONLY,STR_OS_VIEW_ALL,0,0, 0, 0,0, 3, SETUP_VA_RATING, 2},
  190.         //item4
  191.         {SET_NM,STR_OS_PASSWORD,STR_OS_LOCK,STR_OS_UNLOCK,0,0,0, 0, 0,0, 4, SETUP_VA_NONE, 0},
  192.         //item5
  193.         {SET_SH,STR_OS_EXIT_MENU,0,0,0,0,0, 0, 0,0, 0, SETUP_VA_NONE, 0},
  194.         //item6
  195.         {SET_NE,0,0,0,0,0,0, 0, 0,0, 0, SETUP_VA_NONE, 0},
  196.         //item7
  197.         {SET_NE,0,0,0,0,0,0, 0, 0,0, 0, SETUP_VA_NONE, 0},
  198. },
  199. //====================================================================================================
  200. };
  201. //===========================================ending=================================