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

DVD

开发平台:

C/C++

  1. /*
  2. *  Terry,2004/2/10 03:34PM
  3. */
  4. //#include "setup_page.h"//nono mark why add it??
  5. #ifndef AC3_BASS_MANAGEMENT
  6.  int downmix_off;
  7. #endif 
  8. #ifdef PULIANG_SETUP_MENU  //yaowh add 04-12-15
  9.     int show_menu_setup_flag;
  10. #endif
  11. #ifdef SELECT_MEDIA_IN_SETUPMENU
  12. BYTE media_changed_flag = 0;
  13. #endif
  14. void exe_setup_function(UINT8 tt_id, UINT8 sub_id, UINT8 exe);
  15. #ifdef DVD_SETUP_REENG
  16. extern void setup_VA2sel(void);
  17. extern UINT32 setup_getSelPos(UINT8 selection);
  18. extern UINT16 setup_getItemPos(UINT8 item);
  19. #endif
  20. #ifdef SETUP_MENU_TWO_BUTTON_SELECT_TWO_SUBTITLE  //added by wangwei,2004-10-24 23:12
  21. extern int IDTWO;
  22. UINT8 language_id;
  23. UINT16 LCD_2;  //Language CoDe of the second subtitle.
  24. #endif
  25. #ifdef SUPPORT_HD_DVD
  26. extern void scaler_main(void);
  27. static inline void  exe_setup_function_dvi(UINT8 tt_id, UINT8 sub_id, UINT8 exe)
  28. {
  29.     #ifdef ADD_DVI311_SETUP
  30.     #if 0////Modifed by chenzhao on 2004-12-10 15:39  
  31.     static unsigned char init_output=1;
  32. if(tt_id == STR_OS_DVI311_FORMAT)
  33. {
  34. dvi311_format = sub_id;
  35. if(dvi311_format==STR_OS_ANOLOG_OUTPUT)  ////analog kevin0710
  36. {
  37. if(init_output==0)  
  38. {
  39. }
  40. else
  41. {
  42. init_output=0;
  43. scaler_main(); 
  44. }
  45.             close_pll(0x00);
  46.             Power_off_311=1;
  47. }
  48. if(dvi311_format==STR_OS_DIGIT_OUTPUT)  //digital
  49. {
  50. if(Power_off_311==1)
  51. {
  52.     close_pll(0xff);
  53. #if 0
  54.       GPIO_O_SET(40, 1);
  55.   delay_1ms(200);
  56. delay_1ms(200);
  57. GPIO_O_SET(40, 0); //reset 311
  58. delay_1ms(600);
  59. scaler_main();
  60. #endif //0
  61. Power_off_311=0;
  62. }
  63. init_output=0;
  64. }
  65. // scaler_main(); //040512
  66. printf("set output--kevin");
  67.      psprintf(linebuf, "dvi311_format %xn", dvi311_format); 
  68.      epp_write_wait(linebuf);
  69. }
  70.     #endif
  71.     #ifdef HDCP_CUSTOM//Modifed by chenzhao on 2004-12-1 11:24   
  72. if(tt_id == STR_OS_HDCP)
  73. {
  74.     if(STR_OS_OFF==sub_id)
  75.         hdcp_mode=HDCP_OFF;
  76.         else
  77.         hdcp_mode=HDCP_ON;
  78.         ResetAuthentStates();
  79. }
  80.     #endif
  81. if(tt_id ==STR_OS_TV_SYS)
  82. {
  83.     if(sub_id!=STR_OS_AUTO)
  84. dvi311_tv_mode = sub_id;
  85.         #ifdef DVD_SETUP_REENG//Modifed by chenzhao on 2004-11-24 21:8   
  86.             dvi311_mode=setup_VA[SETUP_VA_SPV311MODE]-MIN_ITEM_SEL;
  87.         #else
  88.         dvi311_mode=SETUP_DVI_MODE-MIN_ITEM_SEL;//for load saved SETUP_DVI_MODE.added by ChenZhao on 2004-10-19 14:22  
  89.         #endif
  90. //kevin tsest
  91. //if(tv_out_id!=P_SCAN)//Modifed by chenzhao on 2004-11-25 16:46  //not HD output  kevin@2k0708
  92. //{
  93. if(dvi311_tv_mode>0x84&&dvi311_mode==Mode_576P)// NTSC and 480P   @kevin 2k40708
  94.                     dvi311_mode=Mode_480P;
  95. if(dvi311_tv_mode==0x84&&dvi311_mode==Mode_480P)// PAL and 576P   @kevin 2k40708
  96.                     dvi311_mode=Mode_576P;                        
  97. #if 0//Modifed by chenzhao on 2004-11-25 16:46   
  98. //}
  99. else if(tv_out_id==P_SCAN)                                   //not HD output  kevin@2k0708
  100. {
  101. if(dvi311_tv_mode>0x84&&dvi311_mode==Mode_576P)// NTSC and 480P   @kevin 2k40708
  102. dvi311_mode=Mode_480P;
  103. if(dvi311_tv_mode==0x84&&dvi311_mode==Mode_480P)// PAL and 576P   @kevin 2k40708
  104. dvi311_mode=Mode_576P;
  105. }
  106. #endif
  107.         #ifdef DVD_SETUP_REENG//Modifed by chenzhao on 2004-11-24 21:8   
  108.             setup_VA[SETUP_VA_SPV311MODE]=dvi311_mode+MIN_ITEM_SEL;
  109.         #else
  110.         //SETUP_DVI_MODE=dvi311_mode+MIN_ITEM_SEL;
  111.         #endif
  112.         if(Power_off_311==1)//for standby powerup start 311.added by ChenZhao on 2004-10-19 16:51  
  113.         {
  114.             close_pll(0xff);
  115.             Power_off_311=0;
  116.         }
  117. scaler_main(); //040512
  118.      psprintf(linebuf, "dvi311_tv_mode %x,exe=%dn", dvi311_tv_mode,exe); 
  119.      epp_write_wait(linebuf);
  120. }
  121. #endif
  122. }
  123. #endif
  124. #include "str_os_downmix_setup.inc"
  125. #include "str_os_aud_out.inc"
  126. #include "str_os_16_9.inc"
  127. #include "str_os_4_3lb.inc"
  128. #include "str_os_4_3ps.inc"
  129. #include "str_os_svideo.inc"
  130. #include "str_os_ycbcr.inc"
  131. #include "str_os_tv_rgb.inc"
  132. #include "str_os_pc_vga.inc"
  133. #include "str_os_pscan_yuv.inc"
  134. #ifdef SUPPORT_PROLOGIC_II
  135. #include "str_os_prologic2.inc"
  136. #endif
  137. //added by JS //for setup reengineering //20040817
  138. #ifdef DVD_SETUP_REENG
  139. #ifdef SPHE8202_CARD_STORAGE 
  140.    extern void Card_power_off();                         
  141. #endif
  142. void exe_setup_function(UINT8 tt_id, UINT8 sub_id, UINT8 exe)
  143. {
  144.     //language,osd,subtitle,audio
  145.     //printf("tt:%d sub:%d exe:%xn",tt_id,sub_id,exe);
  146.     #ifdef STORE_VIDEO_PARAMETER
  147.     BYTE res; 
  148.     #endif     
  149. printf("n exe_setup_function in  %d  %d  %dn", tt_id, sub_id, exe);
  150.     #ifdef ADD_DVI311_SETUP
  151.     exe_setup_function_dvi(tt_id,  sub_id,  exe);
  152. #endif
  153.     switch(tt_id)
  154.     {
  155.     #ifdef SELECT_MEDIA_IN_SETUPMENU
  156.     case STR_OS_MEDIA_TYPE:
  157.      if(system_state == SYSTEM_OPEN) //Maoyong 2004/8/11 can't switch in OPEN state
  158.      break;
  159.     
  160.      switch(sub_id)
  161.      {
  162.      case STR_OS_MEDIA_DISC:
  163.          if(media_type == MEDIA_CARD)
  164.                     {
  165.                       #ifdef SPHE8202_CARD_STORAGE 
  166.                         Card_power_off();   //wthsin,  2004/9/1 10:13am
  167.                       #endif 
  168.                         media_changed_flag = 1;
  169.                         SwitchMedia(CARD2CD);
  170.                         printf("========= Switch to Disk Media ==========n");
  171.                     }
  172.      break;
  173.     case STR_OS_MEDIA_USB:
  174.         if( (media_type == MEDIA_CD) || (storage_type != USB_DEVICE) )
  175.          {
  176.            #ifdef SPHE8202_CARD_STORAGE 
  177.                         Card_power_off();   //wthsin,  2004/9/1 10:13am
  178.                       #endif           
  179.              media_changed_flag = 1;
  180.              storage_type = USB_DEVICE;
  181.                         SwitchMedia(CD2CARD);
  182.                         printf("========= Switch to USB Device ==========n");
  183.                     }
  184.     break;
  185.     case STR_OS_MEDIA_CARD: //Maoyong 2004/8/11 for eastech TYPE 3 CARD Storage
  186.                     if( (media_type == MEDIA_CD) || ( (storage_type != MS_CARD_DEVICE) && (storage_type != SD_CARD_DEVICE) && (storage_type != SMC_CARD_DEVICE) )  )
  187.          {
  188.              media_changed_flag = 1;
  189.              if(detect_type & MS_CARD_DEVICE)
  190.                  storage_type = MS_CARD_DEVICE;
  191.                         else if(detect_type & SD_CARD_DEVICE)
  192.                  storage_type = SD_CARD_DEVICE;
  193.              else if(detect_type & SMC_CARD_DEVICE) 
  194.               storage_type = SMC_CARD_DEVICE;  
  195.                         SwitchMedia(CD2CARD);
  196.                         printf("========= Switch to MS/SD/SMC CARD Device ==========n");
  197.                     }
  198.     break;
  199.      }
  200.      break;
  201.     #endif //#ifdef SELECT_MEDIA_IN_SETUPMENU
  202.         
  203.     #ifdef TUNR_OFF_PARENTAL_LVL
  204.     case STR_OS_RATING:
  205. bTurnOffParentalLVL=0;//terry,2002/9/20 11:40PM
  206. break;
  207.     #endif
  208. #ifdef ADD_P_SCAN_ONOFF
  209. case STR_OS_P_SCAN_YUV:  //add by Tom 20040714
  210. if(sub_id==STR_OS_ON)
  211.   str_os_pscan_yuv();        
  212. else
  213. str_os_ycbcr(); 
  214. break;
  215. #endif
  216. case STR_OS_OSD:
  217. {
  218. int         i;
  219. for  (i=MIN_ITEM_SEL; i<=MAX_ITEM_SEL; i++) {//nono 2-10-30 17:35
  220. if (sub_id==setup_item[setup_pos[1]][setup_pos[2]][i])
  221. {
  222. break;
  223. }
  224. }
  225. /* //marked by JS //20040817
  226. #ifdef SUPER_DEFAULT_OSD_LANG
  227. if(page==CUSTMPAGEINDEX)
  228. {
  229.      UserSet.setup_default_osd_lang = i -2;
  230.                  SETUP_OSD_LANG = UserSet.setup_default_osd_lang +2;
  231. }
  232. #endif
  233. */
  234. //osd_font_mode = i-2;
  235. osd_font_mode = OSD_LANG_MAP[i-2]; //Jeff 20030217
  236. }
  237. break;
  238. case STR_OS_SUBTITLE_LANG_SETUP:
  239. UserSet.SPSTN = 0x40|0x3E;//setting sub-picture on
  240. if(sub_id==STR_OS_AUTO) {
  241. sub_id=LCD_EN;//'e' * 256 + 'n';
  242. } else if(sub_id==STR_OS_OFF) {
  243. //sub_id=LCD_EN;//'e' * 256 + 'n';
  244. sub_id=0; //Jeff 20020925
  245. UserSet.SPSTN =0xffbf;//setting sub-picture on
  246. }
  247. UserSet.SPST_LCD = lang_639code[sub_id];//trans_lang_id(sub_id);
  248. //#define SETUP_CAN_DIRECT_SEL_SUBTITLE
  249. #ifdef SETUP_CAN_DIRECT_SEL_SUBTITLE
  250. dvd_sel_subtitle_right_now();
  251. #endif
  252. printf("UserSet.SPST_LCD:%dn",UserSet.SPST_LCD);
  253. printf("SPTN:%xn",UserSet.SPSTN);
  254. break;
  255. case STR_OS_SSAVER_SETUP:
  256. break;
  257.     
  258. #ifdef SAME_DISC_RESUME
  259. case STR_OS_RESUME:
  260. if (sub_id==STR_OS_OFF) 
  261. same_disc_onoff=0;
  262. else
  263. same_disc_onoff=1;
  264. break;
  265. #endif 
  266.         
  267. #ifdef SUPPORT_ANGLE_MARK//liweihua add 2004-2-4
  268. case STR_OS_ANGLE_MARK:
  269. if (sub_id==STR_OS_OFF) 
  270. angleflag=1;
  271. else
  272.     angleflag=0;
  273. break;
  274. #endif
  275. #ifdef SUPPORT_CC_ONOFF//nono 2004-4-11 19:02
  276. case STR_OS_CLOSED_CAPTION:
  277. if (sub_id==STR_OS_OFF) 
  278. tv_l21_enable(0);
  279. else
  280.     tv_l21_enable(1);
  281. break;
  282. #endif//SUPPORT_CC_ONOFF
  283. #ifdef DYNAMIC_SPECTRUM    //fengjl  for BBK  3-10-21 20:48
  284.     case STR_OS_BAND:
  285.         if (sub_id==STR_OS_OFF) 
  286. {
  287. band_onoff=0;
  288. bEqDisplay=0;
  289. }
  290. else 
  291. {
  292. band_onoff=1;
  293.        // bEqDisplay=1;//zhaoyanhua mask for avoid the bug
  294.     }
  295.         break;
  296. #endif
  297.     
  298. #ifdef USER_MPEG_LOGO
  299. case STR_OS_SELECT_LOGO:
  300. #ifdef JIEKE_DVD
  301. if (sub_id==STR_OS_JIEKE_SETUP)
  302. #elif defined(NINTAUS_DVD)//nono 2004-2-17 17:49
  303. if (sub_id==STR_OS_RESTORE_SETUP1)
  304. #else
  305. if (sub_id==STR_OS_RESTORE_SETUP) 
  306. #endif
  307. {
  308. mpeg_logo_onoff=0;
  309. }
  310. else
  311. {
  312. mpeg_logo_onoff=1;
  313. }
  314. Change_User_Logo();
  315. need_show_logo=1;
  316. break;
  317. #endif 
  318. case STR_OS_AUDIO_LANG_SETUP:
  319. UserSet.AST_LCD = lang_639code[sub_id];
  320. printf("audio lang id:%dn",UserSet.AST_LCD);
  321. #ifdef SETUP_CAN_DIRECT_SEL_AUDIO_LANG  //axel 2004/9/21 
  322.         dvd_sel_language_right_now();
  323. #endif        
  324. break;
  325. case STR_OS_MENU_LANG_SETUP:
  326. UserSet.M_LCD = lang_639code[sub_id];;
  327. #ifdef SETUP_CAN_DIRECT_SEL_MENU_LANG //terry,2004/9/20 09:58PM
  328.                 is_reload_dvd_menu();
  329. #endif 
  330. printf("menu language id:%dn",UserSet.M_LCD);
  331. break;
  332. #ifdef SOUND_EFFECT_MENU          //sunzhh add 2004-4-30 10:36 
  333.     case STR_OS_EQ:
  334.     {    
  335.         if (sub_id==STR_OS_STANDARD)
  336.            EQ_type=1;
  337.         else if (sub_id==STR_OS_CLASSIC)
  338.            EQ_type=2;
  339.         else if (sub_id==STR_OS_ROCK)
  340.            EQ_type=3;
  341.         else if (sub_id==STR_OS_JAZZ)
  342.            EQ_type=4;
  343.         else if (sub_id==STR_OS_POP)
  344.            EQ_type=5;
  345.         else if (sub_id==STR_OS_ELECTRON)
  346.            EQ_type=6;
  347.         else if (sub_id==STR_OS_LIGHT_MUSIC)
  348.            EQ_type=7;
  349.     
  350. SetEQ();        
  351.         printf("I have finished EQ setting!Haha!n");        
  352.         break;   
  353.     }
  354.     case STR_OS_SURR:
  355.     {     
  356.         if (sub_id==STR_OS_CONCERT)
  357.            surround_type = 2;
  358.         else if (sub_id==STR_OS_CHURCH)
  359.            surround_type = 3;
  360.         else if (sub_id==STR_OS_PASSIVE)
  361.            surround_type = 4;
  362.         else if (sub_id==STR_OS_WIDE)
  363.            surround_type = 5;
  364.         else if (sub_id==STR_OS_LIVE)
  365.            surround_type = 6;
  366.         else if (sub_id==STR_OS_OFF)
  367.            surround_type = 1;
  368.          
  369. SetSurround();
  370.     printf("I have finished sound field setting!Haha!n");        
  371.         break;  
  372.     }   
  373. #endif      //#ifdef SOUND_EFFECT_MENU
  374. #ifdef DIVIDE_AC3_DTS_SPDIF_OUTPUTS
  375. case STR_OS_AC3_DIGITAL:
  376.         if(coding_mode_now&(AUDIF_CODING_MODE_AC3) && (cd_type_loaded==CDDVD))
  377.             str_os_ac3_out(sub_id);
  378.             break;
  379. case STR_OS_DTS_DIGITAL:     
  380.         if((coding_mode_now&(AUDIF_CODING_MODE_DTS )&& (cd_type_loaded==CDDVD) )|| ((cd_type_loaded==CDDA) && (cd_subtype==CD_DTS)) )
  381.             str_os_dts_out(sub_id);
  382.             break;
  383. #endif//DIVIDE_AC3_DTS_SPDIF_OUTPUTS
  384. case STR_OS_AUD_OUT:
  385. #ifdef DIVIDE_AC3_DTS_SPDIF_OUTPUTS
  386.     if((coding_mode_now!=AUDIF_CODING_MODE_AC3)&& (coding_mode_now!=AUDIF_CODING_MODE_DTS)  && (cd_subtype!=CD_DTS))
  387. #endif
  388.             str_os_aud_out(sub_id);
  389.             
  390.             //yanlb added 2004/07/07
  391.             #ifdef  REMB_3DSOUND 
  392.             {
  393.                 exe_3Dsound(sound_sel,user_osd_set); 
  394.             }
  395.             #endif
  396.             
  397.             break;
  398. //20041222 JSLIN //case for STR_OS_FREQ_MASK should always exist
  399.             case STR_OS_FREQ_MASK:
  400.     {
  401.                 //2004AUDDRV audif_set_frequency_mask(setup_sel[setup_pos[1]][setup_pos[2]] - MIN_ITEM_SEL);
  402.                 //AUDIF_Set_FrqMsk(setup_VA[SETUP_VA_FREQ_MASK] - MIN_ITEM_SEL);
  403.     setup_SetFreqMaskConfig();
  404.     break;
  405.             }
  406.             
  407.             #ifndef NO_MIC
  408.             case STR_OS_MIC_ONOFF:
  409.                 if (sub_id==STR_OS_AUTO) {
  410.                     AUDIF_Set_MICStatus(STATUS_AUTO, 0);//2004AUDDRV AudioSetMIC(2, 0); //Set MIC auto detect
  411.          } else if (sub_id==STR_OS_ON) {
  412.                     AUDIF_Set_MICStatus(STATUS_ON, 0);//2004AUDDRV AudioSetMIC(1, 0); //Set MIC on(the second parameter:unsed now)
  413. } else {
  414. AUDIF_Set_MICStatus(STATUS_OFF, 0);//2004AUDDRV AudioSetMIC(0, 0); //Set MIC off(the second parameter:unsed now)
  415. }
  416. break;
  417.             #endif  
  418.             
  419.             case STR_OS_DOWNMIX_SETUP:
  420.                 str_os_downmix_setup(sub_id);
  421.                 break;
  422.             case STR_OS_SUBWOOFER:
  423.                 if (sub_id==STR_OS_ON) {
  424.                     //sub-woof on command to DSP
  425.                     AUDIF_Set_SubWoof(STATUS_ON);//2004AUDDRV AudioSetSubWoof(1);
  426.                 } else {
  427.                     //sub-woof on command to DSP
  428.                     AUDIF_Set_SubWoof(STATUS_OFF);//2004AUDDRV AudioSetSubWoof(0);
  429.                 }
  430.                 //#ifdef TEST_BASS_MANAGEMENT
  431.                 //  #ifdef TEST_BASS_COMMAND
  432.                 //    AudioSetBassMag(SetBassConfig());
  433.                 //  #else
  434.                 //    DSPReset();
  435.                 //  #endif                                            
  436.                 //#endif
  437.                 break;
  438.             case STR_OS_DOLBY_OP_SETUP:
  439.                 printf("ac3: op moden");
  440.                 if(sub_id==STR_OS_DOLBY_LINE_SETUP) {
  441.                     printf("ac3: line op moden");
  442.                     AUDIF_Set_OutputMode(OUT_LineModeK2, 0);//2004AUDDRV AudioSetOutputMode(0x20, 0); //Set Output mode(0x20:AC3 line mode)
  443.                 } else
  444. if(sub_id==STR_OS_DOLBY_RF_SETUP) {
  445. printf("ac3: RF op moden");
  446. AUDIF_Set_OutputMode(OUT_RFModeK3, 0);//2004AUDDRV AudioSetOutputMode(0x10, 0); //Set Output mode(0x10:AC3 RF mode)
  447. }
  448.                 #ifndef NO_AC3_DYNAMIC_RANGE
  449.                 if (full_scrn & SETUP)
  450. setup_ShowAC3DynamicRange(); //Jeff 20020621
  451. set_AC3DynamicRange();
  452.                 #endif //#ifndef NO_AC3_DYNAMIC_RANGE
  453. break;
  454.             case STR_OS_DUAL_MONO_SETUP:
  455.                 printf("ac3: dual mono moden");
  456.                 if(sub_id==STR_OS_STEREO) {
  457.                     printf("ac3: stereo moden");
  458.                     AUDIF_Set_OutputMode(OUT_NoVocal, 0);//2004AUDDRV AudioSetOutputMode(0x30, 0); //Set Output mode(0x30:AC3 no vocal)
  459.          } else if(sub_id==STR_OS_CHL) {
  460. printf("ac3: ch L moden");
  461. AUDIF_Set_OutputMode(OUT_LeftVocal, 0);//2004AUDDRV AudioSetOutputMode(0x40, 0); //Set Output mode(0x40:AC3 left vocal)
  462. } else if(sub_id==STR_OS_CHR) {
  463. printf("ac3: ch R moden");
  464. AUDIF_Set_OutputMode(OUT_RightVocal, 0);//2004AUDDRV AudioSetOutputMode(0x50, 0); //Set Output mode(0x50:AC3 right vocal)
  465. } else {
  466. //STR_OS_MIX_MONO_SETUP
  467. printf("ac3: down-mix moden");
  468. AUDIF_Set_OutputMode(OUT_BothVocal, 0);//2004AUDDRV AudioSetOutputMode(0x60, 0); //Set Output mode(0x60:AC3 both vocal)
  469. }
  470. break;
  471.             #ifdef AC3_BASS_MANAGEMENT
  472. case STR_OS_BASS_MANAGEMENT: // Robert 021016
  473.                 #ifndef SPHE8202//def DESAY_DVD   //fengjl edit it to avoid noise when change bass mode between "ALL LG SPK" and "MIXED SPK" 2004-06-24 13:50
  474.                 if ( (GetCurrentFileType() != CDROM_WMA)&&(cd_subtype != CD_DTS) )
  475.      #endif 
  476. AUDIF_Reset_DSP();//2004AUDDRV DSPReset();
  477. break;
  478.             #endif //#ifdef AC3_BASS_MANAGEMENT
  479.             case STR_OS_REGION_CODE:
  480.                 UserSet.P_RCD = setup_sel[setup_pos[1]][setup_pos[2]] - MIN_ITEM_SEL;
  481.                 if (UserSet.P_RCD>6) {
  482. setup_sel[setup_pos[1]][setup_pos[2]] = MIN_ITEM_SEL;
  483. UserSet.P_RCD = setup_sel[setup_pos[1]][setup_pos[2]] - MIN_ITEM_SEL;
  484.                 }
  485.                 break;
  486.             /*
  487. case STR_OS_SHARPNESS:
  488. SetSharpness(setup_sel[setup_pos[1]][setup_pos[2]] - MIN_ITEM_SEL);
  489. break;
  490.             */
  491. case STR_OS_BRIGHTNESS:
  492. SetBrightness(setup_sel[setup_pos[1]][setup_pos[2]] - MIN_ITEM_SEL);
  493. break;
  494. case STR_OS_CONTRAST:
  495. SetContrast(setup_sel[setup_pos[1]][setup_pos[2]] - MIN_ITEM_SEL);
  496. break;
  497. case STR_OS_HUE:
  498. SetHUE(setup_sel[setup_pos[1]][setup_pos[2]] - MIN_ITEM_SEL);
  499. break;
  500. case STR_OS_SATURATION:
  501. SetSaturation(setup_sel[setup_pos[1]][setup_pos[2]] - MIN_ITEM_SEL);
  502. break;
  503.             #ifdef DIP_CFG_ENABLE
  504. case STR_OS_DEINTLC:
  505. SetDeInterlace(setup_sel[setup_pos[1]][setup_pos[2]] - MIN_ITEM_SEL);
  506. break;
  507.             #endif//#ifdef DIP_CFG_ENABLE
  508. #ifdef SUPPORT_PROLOGIC_II // alan, 2003/7/11 03:14