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

DVD

开发平台:

C/C++

  1. /*
  2.  * FileName:       setup_ui_sel_SFM.c
  3.  * Author:         ChenZhao  Version:   Date: 2004-9-20
  4.  * Description:    include fucntion setup_func_select
  5.  * Version:        
  6.  * Function List:  
  7.  *                 1.setup_func_select
  8.  * History:        
  9.  *     <author>   <time>    <version >   <desc>
  10.  */
  11. #ifdef EASTECH_SETUPMENU
  12. extern void show_pscan_wait(void);
  13. extern void show_pscan_warning(void);
  14. extern BYTE check_show_pscan_wait_time_mode;
  15. extern BYTE video_out_type;
  16. BYTE Pscan_on=0;
  17. #endif
  18. void setup_func_select(void)
  19. {
  20. switch(setup_gui_state)
  21. {
  22. case SETUPGUI_MENU:
  23. if(2==setupLevel)
  24. {
  25. if(SET_FUNC==setup_item[page][index_y][0])
  26. {
  27. if(index_y2>=MIN_ITEM_SEL && index_y2<setupItemNum[2])
  28. {
  29. if(STR_OS_RESTORE_SETUP==setup_item[page][index_y][index_y2])
  30. {
  31. set_default_value();
  32. run_set_variable();
  33. run_save_total_sel();
  34. setupLevel=1;
  35. ShowSetupPage(REFRESH_SETUP);
  36. setup_SetDTSDOWNMIXConfig();
  37. }
  38.                                                 #ifdef EASTECH_SETUPMENU
  39. else if((STR_OS_P_SCAN_YUV==setup_item[page][index_y][index_y2-1])&&(STR_OS_ON==setup_item[page][index_y][index_y2]))
  40. {
  41. setupLevel=3;
  42. index_pscan_ok=0;
  43. show_pscan_warning();
  44. }
  45.                                                 #endif                  
  46. else
  47. {
  48. setup_sel[page][index_y]=index_y2;
  49.                                                         #ifdef EASTECH_SETUPMENU                     
  50. video_out_type=index_y2;
  51. setup_sel[page][index_y]=video_out_type;
  52.         #endif
  53. exe_setup_function(setup_item[page][index_y][1],setup_item[page][index_y][index_y2],1);
  54. setupLevel=1;
  55. ShowSetupPage(REFRESH_ITEM);
  56. run_save_sel_cmd(page,index_y);
  57. }
  58. }
  59. }
  60. else if(SET_SCALE==setup_item[page][index_y][0])
  61. {
  62. setupLevel=1;
  63. run_save_sel_cmd(page,index_y);
  64. ShowSetupPage(REFRESH_ITEM);
  65. }
  66. }
  67. else if(1==setupLevel)
  68. {
  69. if((SET_NM==setup_item[page][index_y][0]) && !(full_scrn&CUSTM))
  70. {
  71. setupLevel=2;
  72. setup_gui_state=SETUPGUI_PASSWORD;
  73. passwordstate=PASSWORDS_INIT;
  74. ShowSetupPassword("");
  75. }
  76. else if(STR_OS_RETURN_MAIN_SETUP==setup_item[page][index_y][1])
  77.     {
  78.                         if (full_scrn&CUSTM)
  79.                             {
  80.                             ExitSetupPage(1);
  81.                             }
  82.                         else 
  83.                             {
  84.                             ExitSetupPage(1);
  85.                             }
  86.     }
  87. #ifdef TEST_INTERLACE//Modifed by ChenZhao on 2004-9-20 11:39  
  88. else if((STR_OS_DEINTLC==setup_item[page][index_y][1])&&(full_scrn&CUSTM))
  89. {
  90. setupLevel=2;
  91. setup_gui_state=SETUPGUI_TESTINTERLACE;
  92. osd_changeAlpha(0xff);
  93. test_interlace(0);
  94. }
  95. #endif//TEST_INTERLACE
  96. }
  97.                         #ifdef EASTECH_SETUPMENU
  98. else if(3==setupLevel)
  99. {
  100. if(index_pscan_ok==1){
  101. setup_sel[page][index_y]=index_y2;
  102. exe_setup_function(setup_item[page][index_y][1],setup_item[page][index_y][index_y2],1);
  103. show_pscan_wait();
  104. setupLevel=4;
  105. index_pscan_ok=0;
  106. }
  107. else{
  108. index_y2+=1;
  109. index_pscan_ok=0;
  110. setup_sel[page][index_y]=video_out_type;
  111. index_y2=video_out_type;
  112. setup_sel[page][index_y]=index_y2;
  113. exe_setup_function(setup_item[page][index_y][1],setup_item[page][index_y][index_y2],1);
  114. setupLevel=1;
  115. ShowSetupPage(REFRESH_ITEM);
  116. run_save_sel_cmd(page,index_y);
  117. video_out_type=0;
  118. }
  119. }
  120. else if(4==setupLevel)
  121. {
  122. if(index_pscan_ok==1){
  123. setupLevel=1;
  124. index_pscan_ok=0;
  125. setup_sel[page][index_y]=index_y2;
  126. video_out_type=index_y2;
  127. setup_sel[page][index_y]=video_out_type;
  128. ShowSetupPage(REFRESH_ITEM);
  129. run_save_sel_cmd(page,index_y);
  130. check_show_pscan_wait_time_mode=0;
  131. Pscan_on=1;
  132. }
  133. else{
  134. index_y2+=1;
  135. index_pscan_ok=0;
  136. //setup_sel[page][index_y]=3;    //set it to s_video(default value)
  137.                                           setup_sel[page][index_y]=video_out_type; 
  138. index_y2=video_out_type;
  139. setup_sel[page][index_y]=index_y2;
  140. exe_setup_function(setup_item[page][index_y][1],setup_item[page][index_y][index_y2],1);
  141. setupLevel=1;
  142. ShowSetupPage(REFRESH_ITEM);
  143. run_save_sel_cmd(page,index_y);
  144. check_show_pscan_wait_time_mode=0;
  145.        video_out_type=0;
  146. }
  147. }
  148. #endif
  149. break;
  150. case SETUPGUI_PASSWORD:
  151. switch(passwordstate)
  152. {
  153. case PASSWORDS_OLD:
  154. case PASSWORDS_NEW:
  155. case PASSWORDS_CONFIRM:
  156. setupLevel=1;
  157. reset_passwd_cnt();
  158. setup_gui_state=SETUPGUI_MENU;
  159. ShowSetupPage(REFRESH_ITEM);
  160. break;
  161. case PASSWORDS_ENTER:
  162. passwordstate=PASSWORDS_UNLOCK;
  163. ShowSetupPassword("");
  164. break;
  165. case PASSWORDS_NULL:
  166. break;
  167. default:
  168. passwordstate=PASSWORDS_NULL;
  169. break;
  170. }
  171. break;
  172. #ifdef TEST_INTERLACE//Modifed by ChenZhao on 2004-9-20 11:39  
  173. case SETUPGUI_TESTINTERLACE:
  174. setupLevel=1;
  175. setup_gui_state=SETUPGUI_MENU;
  176. osd_changeAlpha(0x00);
  177. ShowSetupPage(REFRESH_ITEM);
  178. break;
  179. #endif//TEST_INTERLACE
  180. default:
  181. break;
  182. }
  183. }
  184. //end of file--------------------------