ircmd_dir.c
上传用户:poi891205
上传日期:2013-07-15
资源大小:9745k
文件大小:23k
源码类别:

DVD

开发平台:

C/C++

  1. /**************************************************************************
  2.  *                                                                        *
  3.  *         Copyright (c) 2002 by Sunplus Technology Co., Ltd.             *
  4.  *                                                                        *
  5.  *  This software is copyrighted by and is the property of Sunplus        *
  6.  *  Technology Co., Ltd. All rights are reserved by Sunplus Technology    *
  7.  *  Co., Ltd. This software may only be used in accordance with the       *
  8.  *  corresponding license agreement. Any unauthorized use, duplication,   *
  9.  *  distribution, or disclosure of this software is expressly forbidden.  *
  10.  *                                                                        *
  11.  *  This Copyright notice MUST not be removed or modified without prior   *
  12.  *  written consent of Sunplus Technology Co., Ltd.                       *
  13.  *                                                                        *
  14.  *  Sunplus Technology Co., Ltd. reserves the right to modify this        *
  15.  *  software without notice.                                              *
  16.  *                                                                        *
  17.  *  Sunplus Technology Co., Ltd.                                          *
  18.  *  19, Innovation First Road, Science-Based Industrial Park,             *
  19.  *  Hsin-Chu, Taiwan, R.O.C.                                              *
  20.  **************************************************************************/
  21. /*--------------------------------------------------------------------------
  22. |  File Name   :  ircmd_dir.c
  23. |
  24. |  Description :  realize up,down,left,right function in remoter.
  25. |
  26. |  Version    :  0.1  
  27. |  Rev Date         Author(s)      Status & Comments
  28. |---------------------------------------------------------------------------------
  29. |  0.1 2004/1/30        Terry         Creating
  30. |--------------------------------------------------------------------------------*/
  31. /*
  32. *  Terry,2004/1/30 04:12PM
  33.    Maoyong 2004/09/24 AM, ircmd_full_scrn_up replace call_full_scrn_fun((IRCMDFUNC *)func);
  34. */
  35. #define is_zoom() ((vpp_zoom > 1) && (vpp_zoom <= ZOOMIN_MAX))
  36. /**************************************************************************
  37.  *  Function Name: ircmd_up                           
  38.  *  Purposes:                                                             
  39.  *      realize up function using up key of IR.
  40.  *  Descriptions:                                                            
  41.  *      ircmd_post_func(CMD_SELECT | CMD_FUNC_GAME_UL)
  42.  *      CMD_SELECT:  number or up/down/left/right.
  43.  *      CMD_FUNC_GAME_UL: up key.
  44.  *  Arguments:   NONE                                                         
  45.  *      
  46.  *  Returns:     NONE
  47.  *  See also:    NONE                                                          
  48.  *    
  49.  **************************************************************************/
  50. void ircmd_up(void)
  51. {
  52. #ifdef IRCMD_DBG
  53.     printf("======================= up =====================n");
  54. #endif
  55. #ifdef SUPPORT_MIDIDISK_TITLE
  56.         if (bIsPlayMidiTitle)//xlluo for midi title
  57.         {
  58. invalid_key();
  59. return;
  60.         }
  61. #endif
  62. #ifdef TEST_VFD
  63.     update_vfd_mod_inc();           //shawn modify at 910131
  64.     return ;
  65. #endif
  66.     #ifdef SUPPORT_MULTI_PARTITION//liweihua mod 2004-11-2
  67.     if((pFsJpeg->gifsState == FS_STATE_HDD)
  68.     #ifdef FAT_FILE_MODE
  69.         ||(pFsJpeg->gifsState == FS_STATE_MODE)
  70.         ||(fat_play_mode == 1)
  71.         #endif
  72.         )
  73.     {
  74.         HDDCard_up();
  75.         return;
  76.     }
  77.     #endif
  78.     
  79.     if(full_scrn)
  80.     {
  81.      //call_full_scrn_fun((IRCMDFUNC *)ircmd_up_table);
  82.      ircmd_full_scrn_up();
  83.      return;
  84.     }
  85.     else if( is_zoom() )
  86. #ifdef MOVE_INVERSE_WHEN_ZOOM     
  87.     {   //heqiang, down, 2004-3-2 17:51
  88.         if(vpp_zoom_y < getVPP_YOffsetMax())
  89.     {
  90.             PrintOsdMsg(STR_OS_PIC_UP, REGION1, 1, 0);
  91.             vpp_zoom_y += ZOOM_MOVE;
  92.             startup_vpp();
  93.             return;
  94.         }
  95.     #if defined(UPDN_AND_KEYUPDN_IN_A_KEY) || defined(LRUPDW_AND_BACKWARD_FORWARD_PREV_NEXT_IN_A_KEY)||defined(UPDN_AND_ECHO_IN_A_KEY) ||defined(UPDN_AND_MICVOL_IN_A_KEY)    //nono 20020706   wu 20020920
  96.         else
  97.         {
  98. invalid_key();
  99. return;
  100.         }
  101.     #endif
  102.     }
  103. #else//MOVE_INVERSE_WHEN_ZOOM    
  104.     {         
  105.         if (vpp_zoom_y > -getVPP_YOffsetMax())
  106.         {
  107.             OSD1000ISP_STATUS(OSDISP_DIR_ZOOM, OSDIR_UP);
  108.             PrintOsdMsg(STR_OS_PIC_UP, REGION1, 1, 0);
  109.             vpp_zoom_y -= ZOOM_MOVE;
  110.             startup_vpp();
  111.             return;
  112.         }
  113.         #if defined(UPDN_AND_KEYUPDN_IN_A_KEY) || defined(LRUPDW_AND_BACKWARD_FORWARD_PREV_NEXT_IN_A_KEY)||defined(UPDN_AND_ECHO_IN_A_KEY) ||defined(UPDN_AND_MICVOL_IN_A_KEY)    //nono 20020706   wu 20020920
  114.         else
  115.         {
  116. invalid_key();
  117. return;
  118.         }
  119. #endif
  120.     }
  121. #endif//MOVE_INVERSE_WHEN_ZOOM
  122.     else if (HL_exist)
  123.     {
  124.         ExeHLBm(HL_DIR, HL_BM_U);
  125.         return;
  126.     }
  127. #ifdef MIC_FUNCTION_KEY    
  128.     #ifdef BBK_DVD//zhaoyanhua add 03-10-19 14:02
  129.     else if (bFuncStep)
  130.     {
  131.         switch (bFuncStep)
  132. {
  133. case 1:
  134. ircmd_mic_up();
  135. break;
  136. case 2:
  137. ircmd_echo_up();
  138. break;
  139.         case 3:
  140.         ircmd_key_up();
  141.         break;;
  142. }
  143. return;
  144. }
  145. #endif//end BBK_DVd
  146. #endif//end MIC_FUNCTION_KEY
  147.     else if (cd_type_loaded == CDROM)
  148.     {
  149.         if ((play_state == VCD_STATE_MP3_FILELIST) || (play_state == VCD_STATE_NORMAL) || adv_search_time)
  150.         {
  151.             if ( (shuffle_flag == 0||Is_JPEG_SlideMode()==1)
  152.             && ((prog_cnt == 0)||Is_JPEG_SlideMode()==1)
  153.             )//NONO 3-12-22 23:22
  154.             {
  155. #ifdef ZOOM_DIRECT_STOP_SLIDE //wanghaoying 2003-08-25 20:35
  156. if( Is_JPEG_SlideMode() ) 
  157. jpg_slide_time = 0xffffffff;
  158. #endif                
  159. #ifdef ZOOMOUT_NOT_ROTATE //zhaoyanhua add for DESAY 03-10-11 14:54 when zoom ratio less than 1,not rotate.    
  160. if ((vpp_zoom >= ZOOMOUT_BASE) && (vpp_zoom <= ZOOMOUT_MAX))
  161. invalid_key();
  162. else
  163. #endif
  164.                 {
  165.                     OSD1000ISP_STATUS(OSDISP_DIR_ROTATE, OSDIR_UP);
  166.                     ircmd_post_func(CMD_SELECT | CMD_FUNC_GAME_UL);
  167.                     return;
  168.                 }
  169.             }
  170.         }
  171.         
  172. #ifdef ROTATE_WHEN_PAUSE       //zhaoyanhua add 03-10-13 10:09
  173.     else if ((play_state == VCD_STATE_PAUSE) && (Is_JPEG_SlideMode()))
  174.     {
  175.     ircmd_post_func(CMD_SELECT | CMD_FUNC_GAME_UL);
  176.     return;
  177.     }
  178.         #endif 
  179.         #if defined(UPDN_AND_KEYUPDN_IN_A_KEY) || defined(LRUPDW_AND_BACKWARD_FORWARD_PREV_NEXT_IN_A_KEY)||defined(UPDN_AND_ECHO_IN_A_KEY)||defined(UPDN_AND_MICVOL_IN_A_KEY)     //nono 20020706   wu 20020920
  180.         else
  181.         {
  182. invalid_key();
  183. return;
  184.         }
  185. #endif
  186.     }
  187. #ifdef UPDN_AND_KEYUPDN_IN_A_KEY  //nono 20020706
  188. ircmd_key_up();
  189. #elif defined(LRUPDW_AND_BACKWARD_FORWARD_PREV_NEXT_IN_A_KEY)   //wu 20020920
  190. ircmd_prev();
  191. #elif defined(FUSS_FEIYANG_2120_PANEL)   //wu 20020923
  192. ircmd_forward();
  193. #elif defined(UPDN_AND_MICVOL_IN_A_KEY)
  194. ircmd_mic_up();
  195. #elif defined(UPDN_AND_ECHO_IN_A_KEY)  //nono 20020706
  196. ircmd_echo_up();
  197. #elif defined(CF_GPIO_CONTROL_COLOR)
  198. chang_vfd_back_color_down();
  199. #else
  200. invalid_key();
  201. #endif
  202. }
  203. /**************************************************************************
  204.  *  Function Name: ircmd_down                           
  205.  *  Purposes:                                                             
  206.  *      realize down function using down key of IR.
  207.  *  Descriptions:                                                            
  208.  *      ircmd_post_func(CMD_SELECT | CMD_FUNC_GAME_DN)
  209.  *      CMD_SELECT:  number or up/down/left/right.
  210.  *      CMD_FUNC_GAME_DN: down key.
  211.  *  Arguments:   NONE                                                          
  212.  *      
  213.  *  Returns:     NONE
  214.  *  See also:    NONE                                                          
  215.  *    
  216.  **************************************************************************/
  217. void ircmd_down(void)
  218. {
  219. #ifdef IRCMD_DBG
  220.     printf("======================= ircmd_down ================n");
  221. #endif
  222. #ifdef SUPPORT_MIDIDISK_TITLE
  223.         if (bIsPlayMidiTitle)//xlluo for midi title
  224.         {
  225. invalid_key();
  226. return;
  227.         }
  228. #endif
  229. #ifdef TEST_VFD
  230.     update_vfd_mod_dec();           //shawn modify at 910131
  231.     return;
  232. #endif
  233.     #ifdef SUPPORT_MULTI_PARTITION//liweihua mod 2004-11-2
  234.     if((pFsJpeg->gifsState == FS_STATE_HDD)
  235.     #ifdef FAT_FILE_MODE
  236.         ||(pFsJpeg->gifsState == FS_STATE_MODE)
  237.         ||(fat_play_mode == 1)
  238.         #endif
  239.         )
  240.     {
  241.         HDDCard_down();
  242.         return;
  243.     }
  244.     #endif
  245.     
  246.     
  247.     if (full_scrn)
  248.     {
  249.      //call_full_scrn_fun((IRCMDFUNC *)ircmd_down_table);
  250.      ircmd_full_scrn_down();
  251.      return;
  252.     }
  253.     else if( is_zoom() )
  254. #ifdef MOVE_INVERSE_WHEN_ZOOM  
  255.    {    //heqiang, up, 2004-3-2 17:51
  256.         if (vpp_zoom_y > -getVPP_YOffsetMax())
  257.         {
  258.             PrintOsdMsg(STR_OS_PIC_DN, REGION1, 1, 0);
  259.             vpp_zoom_y -= ZOOM_MOVE;
  260.             startup_vpp();
  261.             return;
  262.         }
  263.     #if defined(UPDN_AND_KEYUPDN_IN_A_KEY) || defined(LRUPDW_AND_BACKWARD_FORWARD_PREV_NEXT_IN_A_KEY)||defined(UPDN_AND_ECHO_IN_A_KEY) ||defined(UPDN_AND_MICVOL_IN_A_KEY)    //nono 20020706   wu 20020920
  264.         else
  265.         {
  266. invalid_key();
  267. return;
  268.         }
  269.     #endif
  270.     }
  271. #else//MOVE_INVERSE_WHEN_ZOOM       
  272.     {
  273.         if(vpp_zoom_y < getVPP_YOffsetMax())
  274.         {
  275.             OSD1000ISP_STATUS(OSDISP_DIR_ZOOM, OSDIR_DOWN);
  276.             PrintOsdMsg(STR_OS_PIC_DN, REGION1, 1, 0);
  277.             vpp_zoom_y += ZOOM_MOVE;
  278.             startup_vpp();
  279.             return;
  280.         }
  281.         #if defined(UPDN_AND_KEYUPDN_IN_A_KEY) || defined(LRUPDW_AND_BACKWARD_FORWARD_PREV_NEXT_IN_A_KEY)||defined(UPDN_AND_ECHO_IN_A_KEY)||defined(UPDN_AND_MICVOL_IN_A_KEY)     //nono 20020706   wu 20020920
  282.         else
  283.         {
  284. invalid_key();
  285. return;
  286.         }
  287. #endif
  288.     }
  289. #endif//MOVE_INVERSE_WHEN_ZOOM    
  290.     else if(HL_exist)
  291.     {
  292.         ExeHLBm(HL_DIR, HL_BM_D);
  293.         return;
  294.     }
  295. #ifdef MIC_FUNCTION_KEY
  296.     #ifdef BBK_DVD//zhaoyanhua add 03-10-19 14:02
  297. else if (bFuncStep)
  298. {
  299. switch (bFuncStep)
  300. {
  301. case 1:
  302. ircmd_mic_down();
  303. break;
  304. case 2:
  305. ircmd_echo_down();
  306. break;
  307.     case 3:
  308.         ircmd_key_down();
  309.         break;
  310. }
  311. return;
  312. }
  313.     #endif//end ifdef BBK_DVD
  314. #endif//MIC_FUNCTION_KEY
  315.     else if(cd_type_loaded == CDROM)
  316.     {
  317.         if ( (play_state == VCD_STATE_MP3_FILELIST) || (play_state == VCD_STATE_NORMAL) ||adv_search_time)
  318.         {
  319.             if ((shuffle_flag && Is_JPEG_SlideMode()!=1) //nono 2004-7-28 1:51
  320.             || (prog_cnt&&Is_JPEG_SlideMode()!=1)
  321.             )//nono 3-12-22 23:22
  322. {
  323.                 invalid_key();
  324.             }
  325.             else
  326.             {
  327. #ifdef ZOOM_DIRECT_STOP_SLIDE //wanghaoying 2003-08-25 20:35
  328. if( Is_JPEG_SlideMode() ) 
  329. jpg_slide_time = 0xffffffff;
  330. #endif                
  331. #ifdef ZOOMOUT_NOT_ROTATE //zhaoyanhua add for DESAY 03-10-11 14:54 when zoom ratio less than 1,not rotate.    
  332. if ((vpp_zoom >= ZOOMOUT_BASE) && (vpp_zoom <= ZOOMOUT_MAX))
  333. invalid_key();
  334. else
  335. #endif
  336.                 {
  337.                 OSD1000ISP_STATUS(OSDISP_DIR_ROTATE, OSDIR_DOWN);
  338.                 ircmd_post_func(CMD_SELECT | CMD_FUNC_GAME_DN);
  339.                 }
  340. }
  341.             return;
  342.         }
  343.         #ifdef ROTATE_WHEN_PAUSE       //zhaoyanhua add 03-10-13 10:09
  344.     else if ((play_state == VCD_STATE_PAUSE) && (Is_JPEG_SlideMode()))
  345.     {
  346.     ircmd_post_func(CMD_SELECT | CMD_FUNC_GAME_DN);
  347.     return;
  348.     }
  349.         #endif 
  350.         #if defined(UPDN_AND_KEYUPDN_IN_A_KEY) || defined(LRUPDW_AND_BACKWARD_FORWARD_PREV_NEXT_IN_A_KEY)||defined(UPDN_AND_ECHO_IN_A_KEY) ||defined(UPDN_AND_MICVOL_IN_A_KEY)   //nono 20020706   wu 20020920
  351.         else
  352.         {
  353. invalid_key();
  354. return;
  355.         }
  356. #endif
  357.     }
  358. #ifdef UPDN_AND_KEYUPDN_IN_A_KEY  //nono 20020706
  359. ircmd_key_down();
  360. #elif defined(LRUPDW_AND_BACKWARD_FORWARD_PREV_NEXT_IN_A_KEY)   //wu 20020920
  361.     ircmd_next();
  362. #elif defined(FUSS_FEIYANG_2120_PANEL)   //wu 20020923
  363. ircmd_backward();
  364.     #elif defined(UPDN_AND_MICVOL_IN_A_KEY)
  365.    ircmd_mic_down();
  366. #elif defined(UPDN_AND_ECHO_IN_A_KEY)  //nono 20020706
  367. ircmd_echo_down();
  368. #elif defined(CF_GPIO_CONTROL_COLOR)
  369.    chang_vfd_back_color_up();
  370. #else
  371. invalid_key();
  372. return;
  373. //#else
  374. // LoadModual(MODUAL_CDROM);
  375. // Change_User_Logo();
  376. //#endif
  377. #endif
  378. }
  379. /**************************************************************************
  380.  *  Function Name: ircmd_left                           
  381.  *  Purposes:                                                             
  382.  *      realize left function using left key of IR.
  383.  *  Descriptions:                                                            
  384.  *      ircmd_post_func(CMD_SELECT | CMD_FUNC_GAME_L)
  385.  *      CMD_SELECT:  number or up/down/left/right.
  386.  *      CMD_FUNC_GAME_L: left key.
  387.  *  Arguments:   NONE                                                          
  388.  *      
  389.  *  Returns:     NONE
  390.  *  See also:    NONE                                                          
  391.  *    
  392.  **************************************************************************/
  393. void ircmd_left(void)
  394. {
  395. #ifdef IRCMD_DBG
  396.     printf("====================== ircmd_left ==================n");
  397. #endif
  398.     #ifdef FAT_FILE_MODE//liweihua 2004-11-2 21:47
  399.     if(fat_play_mode == 1)
  400.         {
  401.         HDDCard_left();
  402.             return;
  403.         }
  404. #endif
  405. #ifdef SUPPORT_MIDIDISK_TITLE
  406.         if (bIsPlayMidiTitle)//xlluo for midi title
  407.         {
  408. invalid_key();
  409. return;
  410.         }
  411. #endif
  412. #ifdef TEST_VFD         //shawn add at 910131
  413.     update_vfd_dot_dec();
  414.     return ;
  415. #endif
  416.     #ifdef BRIGHTNESS_COLOR_KEY // Kevin Sep 21,04 
  417.    if(BriCol_timer)
  418.    {
  419.    BriCol_value_down();
  420.    return;
  421.    } 
  422.     #endif
  423.     
  424.     if(full_scrn)
  425.     {
  426.      //call_full_scrn_fun((IRCMDFUNC *)ircmd_left_table);
  427.      ircmd_full_scrn_left();
  428.      return;
  429.     }
  430.     else if( is_zoom() )
  431. #ifdef MOVE_INVERSE_WHEN_ZOOM  
  432.     {   //heqiang, right, 2004-3-2 17:51
  433.         if(vpp_zoom_x < getVPP_XOffsetMax())
  434.         {
  435.             OSD1000ISP_STATUS(OSDISP_DIR_ZOOM, OSDIR_LEFT);
  436.             PrintOsdMsg(STR_OS_PIC_L, REGION1, 1, 0);
  437.             vpp_zoom_x += ZOOM_MOVE;
  438.             startup_vpp();
  439.             return;
  440.         }
  441.     #if defined(LR_AND_ECHOUPDN_IN_A_KEY)|| defined(LRUPDW_AND_BACKWARD_FORWARD_PREV_NEXT_IN_A_KEY) ||defined(LR_AND_KEYUPDN_IN_A_KEY)  //nono 20020706   wu 20020920
  442.         else
  443.     {
  444. invalid_key();
  445. return;
  446.         }
  447.     #endif
  448.     }
  449. #else//MOVE_INVERSE_WHEN_ZOOM 
  450.     {   //heqiang, left, 2004-3-2 17:51
  451.         if (vpp_zoom_x > -getVPP_XOffsetMax())
  452.         {
  453.             OSD1000ISP_STATUS(OSDISP_DIR_ZOOM, OSDIR_LEFT);
  454.             PrintOsdMsg(STR_OS_PIC_L, REGION1, 1, 0);
  455.             vpp_zoom_x -= ZOOM_MOVE;
  456.             startup_vpp();
  457.             return;
  458.         }
  459. #if defined(LR_AND_ECHOUPDN_IN_A_KEY) || defined(LRUPDW_AND_BACKWARD_FORWARD_PREV_NEXT_IN_A_KEY) ||defined(LR_AND_KEYUPDN_IN_A_KEY)  //nono 20020706   wu 20020920
  460.         else
  461.         {
  462. invalid_key();
  463. return;
  464.         }
  465. #endif
  466.     }
  467. #endif//MOVE_INVERSE_WHEN_ZOOM    
  468.     else if(HL_exist)
  469.     {
  470.         ExeHLBm(HL_DIR, HL_BM_L);
  471.         return;
  472.     }
  473.     else if(cd_type_loaded == CDROM)
  474.     {
  475.         if ((play_state == VCD_STATE_MP3_FILELIST) || (play_state == VCD_STATE_NORMAL) || adv_search_time)
  476.         {
  477.             if ((shuffle_flag && Is_JPEG_SlideMode()!=1)//nono 2004-7-28 1:51
  478.             || (prog_cnt&&Is_JPEG_SlideMode()!=1 ) 
  479.             )//nono 3-12-22 23:23
  480. {
  481.                 invalid_key();
  482. }
  483.             else
  484.             {
  485. #ifdef ZOOM_DIRECT_STOP_SLIDE //wanghaoying 2003-08-25 20:35
  486. if( Is_JPEG_SlideMode() ) 
  487. jpg_slide_time = 0xffffffff;
  488. #endif                
  489.                 //when zoom ratio less than 1,not rotate. zhaoyanhua add  03-10-11 14:54    
  490. #ifdef ZOOMOUT_NOT_ROTATE 
  491. if ((vpp_zoom >= ZOOMOUT_BASE) && (vpp_zoom <= ZOOMOUT_MAX))
  492. invalid_key();
  493. else
  494. #endif
  495. #ifdef HANYANG_LR_CHANGE_PAGE  //Maoyong 2004.07.02
  496.                 if( IsValidAreaChangePage(0) )
  497.                     FSGUI_ChangFileDirPage(0);
  498.                 else
  499. #endif
  500.                 {
  501.                 OSD1000ISP_STATUS(OSDISP_DIR_ROTATE, OSDIR_LEFT);
  502.                 ircmd_post_func(CMD_SELECT | CMD_FUNC_GAME_L);
  503.                 }
  504. }
  505.             return;
  506.         }
  507.         #ifdef ROTATE_WHEN_PAUSE       //zhaoyanhua add 03-10-13 10:09
  508.     else if ((play_state == VCD_STATE_PAUSE) && (Is_JPEG_SlideMode()))
  509.     {
  510.     ircmd_post_func(CMD_SELECT | CMD_FUNC_GAME_L);
  511.     return;
  512.     }
  513.         #endif           
  514. #if defined(LR_AND_ECHOUPDN_IN_A_KEY) || defined(LRUPDW_AND_BACKWARD_FORWARD_PREV_NEXT_IN_A_KEY) ||defined(LR_AND_KEYUPDN_IN_A_KEY)  //nono 20020706   wu 20020920
  515.         else
  516.         {
  517. invalid_key();
  518. return;
  519.         }
  520. #endif
  521.     }
  522. #ifdef LR_AND_ECHOUPDN_IN_A_KEY  //nono 20020706
  523. ircmd_echo_down();
  524. #elif defined(LRUPDW_AND_BACKWARD_FORWARD_PREV_NEXT_IN_A_KEY)    //wu 20020920
  525. ircmd_backward();
  526. #elif defined(FUSS_FEIYANG_2120_PANEL)   //wu 20020923
  527. ircmd_prev();
  528. #elif defined(LR_AND_KEYUPDN_IN_A_KEY)  //nono 20020706
  529. ircmd_key_down();
  530. #elif defined(CF_GPIO_CONTROL_COLOR)
  531.   chang_vfd_back_color_down();
  532. //#elif defined(BRIGHTNESS_COLOR_KEY) // Kevin Sep 21,04 
  533.    //BriCol_value_down();      // Kevin Sep 21,04 
  534. #else
  535. invalid_key();
  536. #endif
  537. }
  538. /**************************************************************************
  539.  *  Function Name: ircmd_right                           
  540.  *  Purposes:                                                             
  541.  *      realize up function using right key of IR.
  542.  *  Descriptions:                                                            
  543.  *      ircmd_post_func(CMD_SELECT | CMD_FUNC_GAME_R)
  544.  *      CMD_SELECT:  number or up/down/left/right.
  545.  *      CMD_FUNC_GAME_R: right key.
  546.  *  Arguments:   NONE                                                         
  547.  *     
  548.  *  Returns:     NONE
  549.  *  See also:    NONE                                                          
  550.  *    
  551.  **************************************************************************/
  552. void ircmd_right(void)
  553. {
  554. #ifdef IRCMD_DBG
  555.     printf("====================== ircmd_right ====================n");
  556. #endif
  557.     #ifdef FAT_FILE_MODE//liweihua mod 2004-11-2 21:47
  558.     if(fat_play_mode == 1)
  559.     {
  560.         HDDCard_right();
  561.             return;
  562.         }
  563. #endif
  564. #ifdef SUPPORT_MIDIDISK_TITLE
  565.         if (bIsPlayMidiTitle)//xlluo for midi title
  566.         {
  567. invalid_key();
  568. return;
  569.         }
  570. #endif
  571. #ifdef TEST_VFD         //shawn add at 910131
  572.     update_vfd_dot_inc();
  573.     return;
  574. #endif
  575.     //printf("ircmd_right:full_scrn=%xn", full_scrn);
  576. #ifdef BRIGHTNESS_COLOR_KEY // Kevin Sep 21,04 
  577.    if(BriCol_timer)
  578.    {
  579.    BriCol_value_up();
  580.    return;
  581.    } 
  582.     #endif
  583.     
  584.     if(full_scrn)
  585.     {
  586.         //call_full_scrn_fun((IRCMDFUNC *)ircmd_right_table);
  587.         ircmd_full_scrn_right();
  588.         return;
  589.     }
  590.     else if( is_zoom() )
  591. #ifdef MOVE_INVERSE_WHEN_ZOOM     
  592.     {   //heqiang, left, 2004-3-2 17:51
  593.         if (vpp_zoom_x > -getVPP_XOffsetMax())
  594.         {
  595.             OSD1000ISP_STATUS(OSDISP_DIR_ZOOM, OSDIR_RIGHT);
  596.             PrintOsdMsg(STR_OS_PIC_R, REGION1, 1, 0);
  597.             vpp_zoom_x -= ZOOM_MOVE;
  598.             startup_vpp();
  599.             return;
  600.         }
  601.     #if defined(LR_AND_ECHOUPDN_IN_A_KEY) || defined(LRUPDW_AND_BACKWARD_FORWARD_PREV_NEXT_IN_A_KEY) ||defined(LR_AND_KEYUPDN_IN_A_KEY)  //nono 20020706   wu 20020920
  602.         else
  603.         {
  604. invalid_key();
  605. return;
  606.         }
  607.     #endif
  608.     } 
  609. #else//MOVE_INVERSE_WHEN_ZOOM     
  610.     {
  611.         if(vpp_zoom_x < getVPP_XOffsetMax())
  612.         {
  613.             OSD1000ISP_STATUS(OSDISP_DIR_ZOOM, OSDIR_RIGHT);
  614.             PrintOsdMsg(STR_OS_PIC_R, REGION1, 1, 0);
  615.             vpp_zoom_x += ZOOM_MOVE;
  616.             startup_vpp();
  617.             return;
  618.         }
  619. #if defined(LR_AND_ECHOUPDN_IN_A_KEY)|| defined(LRUPDW_AND_BACKWARD_FORWARD_PREV_NEXT_IN_A_KEY) ||defined(LR_AND_KEYUPDN_IN_A_KEY)  //nono 20020706   wu 20020920
  620.         else
  621.         {
  622. invalid_key();
  623. return;
  624.         }
  625. #endif
  626.     }
  627. #endif//MOVE_INVERSE_WHEN_ZOOM        
  628.     else if(HL_exist)
  629.     {
  630.         ExeHLBm(HL_DIR, HL_BM_R);
  631.         return;
  632.     }
  633.     else if(cd_type_loaded == CDROM)
  634.     {
  635.         if ((play_state == VCD_STATE_MP3_FILELIST) || (play_state == VCD_STATE_NORMAL) || adv_search_time)
  636.         {
  637.             if ( (shuffle_flag &&(Is_JPEG_SlideMode()!=1) )//NONO 2004-7-28 1:51
  638.             || (prog_cnt&&Is_JPEG_SlideMode()!=1 ) 
  639.             )//nono 3-12-22 23:23
  640. {
  641.                 invalid_key();
  642.             }
  643.             else
  644.             {
  645. #ifdef ZOOM_DIRECT_STOP_SLIDE //wanghaoying 2003-08-25 20:35
  646. if( Is_JPEG_SlideMode() ) 
  647. jpg_slide_time = 0xffffffff;
  648. #endif                
  649. //when zoom ratio less than 1,not rotate. zhaoyanhua add  03-10-11 14:54  
  650. #ifdef ZOOMOUT_NOT_ROTATE 
  651. if ((vpp_zoom >= ZOOMOUT_BASE) && (vpp_zoom <= ZOOMOUT_MAX))
  652. invalid_key();
  653. else
  654. #endif
  655.                 #ifdef HANYANG_LR_CHANGE_PAGE  //Maoyong 2004.07.02
  656.                 if( IsValidAreaChangePage(1) )
  657.                     FSGUI_ChangFileDirPage(1);
  658.                 else
  659.                 #endif
  660.                 {
  661.                 OSD1000ISP_STATUS(OSDISP_DIR_ROTATE, OSDIR_RIGHT);
  662.                 ircmd_post_func(CMD_SELECT | CMD_FUNC_GAME_R);
  663.                 }
  664. }
  665.             return;
  666.         }
  667.         #ifdef ROTATE_WHEN_PAUSE       //zhaoyanhua add 03-10-13 10:09
  668.     else if ((play_state == VCD_STATE_PAUSE) && (Is_JPEG_SlideMode()))
  669.     {
  670.     ircmd_post_func(CMD_SELECT | CMD_FUNC_GAME_R);
  671.     return;
  672.     }
  673.         #endif    
  674. #if defined(LR_AND_ECHOUPDN_IN_A_KEY) || defined(LRUPDW_AND_BACKWARD_FORWARD_PREV_NEXT_IN_A_KEY) ||defined(LR_AND_KEYUPDN_IN_A_KEY)  //nono 20020706   wu 20020920
  675.         else
  676.         {
  677. invalid_key();
  678. return;
  679.         }
  680. #endif
  681.     }
  682. #ifdef LR_AND_ECHOUPDN_IN_A_KEY //nono 20020706
  683. ircmd_echo_up();
  684. #elif defined(LRUPDW_AND_BACKWARD_FORWARD_PREV_NEXT_IN_A_KEY)   //wu 20020920
  685. ircmd_forward();
  686. #elif defined(FUSS_FEIYANG_2120_PANEL)   //wu 20020923
  687. ircmd_next();
  688. #elif defined(LR_AND_KEYUPDN_IN_A_KEY)  //nono 20020706
  689. ircmd_key_up();
  690. #elif defined(CF_GPIO_CONTROL_COLOR)
  691.    chang_vfd_back_color_up();
  692. //#elif defined(BRIGHTNESS_COLOR_KEY) // Kevin Sep 21,04 
  693. //   BriCol_value_up();  // Kevin Sep 21,04 
  694. #else
  695. invalid_key();
  696. #endif
  697. }
  698. //----------------------------------ending-------------------------------------------------------