⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 play_com.lst

📁 #include "REG51.H" #include <intrins.h> #include "Common.h" //#include "Remote.h" #def
💻 LST
📖 第 1 页 / 共 5 页
字号:
C51 COMPILER V7.06   PLAY_COM                                                              06/13/2005 09:51:40 PAGE 6   

 294          
 295          #ifdef IR_SUPPORT_SHIFT_KEY
                /* force use shift key table */
                vSetShiftKeyMode(TRUE);
              #endif
 299          
 300            _rOsdStateCtx.fgSetupShow = TRUE;
 301          //  _bKeyOldState = _bKeyState;
 302            vSetKeyState(KEY_SETUP);         
 303          }
 304          
 305          // *********************************************************************
 306          // Function : void vSetupMenuExit(void)
 307          // Description :
 308          // Parameter : None
 309          // Return    : None
 310          // *********************************************************************
 311          void vSetupMenuExit(void) large
 312          {
 313            BYTE bInitState = bSharedInfo(SI_INIT_STATE);
 314            BYTE bPbcState = bSharedInfo(SI_PBC_STATE);
 315          
 316          #ifndef PLAYER_BASIC
 317            if (fgIsIsoPlay()||fgIsPcdPlay())
 318            {
 319              #if defined(VER_C) || defined(DV967_1M) || defined(SUPPORT_EMD) || defined(PORTABLEDVD)
                      _bFNLen = 0xf;
                  #endif  
 322              vISOFsMenuShow(FS_MENU_SHOW_REFRESH); /* recall FS menu */
 323                  
 324          // DRS232LogS("\nsetup");  //KKS/6/07/2005   ADD
 325          
 326          
 327            }
 328          #endif
 329          
 330          #ifdef IR_SUPPORT_SHIFT_KEY
                /* force use normal key table */
                vSetShiftKeyMode(FALSE);
              #endif
 334          
 335            _rOsdStateCtx.fgSetupShow = FALSE;
 336            vRestorKeyState();
 337          //  _bKeyState = _bKeyOldState;
 338          //    vPlayerShowLogo(ISO_STOP_LOGO, ISO_LOGO_COLOR);
 339          
 340          #ifdef SETUP_PAUSE_PLAY
                switch (bInitState)
                {
                  case SV_LOADING_DISC:
                    vSendUopCmd(UOP_PAUSE, 0, 0, SV_SETUP_EXIT);
                    return;
              
                  case SV_TRAY_CLOSING:
                  case SV_TRAY_OPENING:
                  case SV_TRAY_ERROR:
                  case SV_NO_DISC:
                  case SV_UNKNOWN_DISC:
                    return;
              
                  case SV_DISC_IDENTIFIED:
                  default:
C51 COMPILER V7.06   PLAY_COM                                                              06/13/2005 09:51:40 PAGE 7   

                    break; /* not determined */
              
                }
              
                /* PCD and Jpeg is handled by FSMENU */
                if (fgIsPcdPlay() ||
                    (fgIsIsoPlay() && fgIsIsoItemStill(bSharedInfo(SI_ISO_ITEM_TYPE)))
                   )
                {
                  return;
                }
              
                switch (bPbcState)
                {
                  case SV_STOP:
                  case SV_STOP_RESUME:
                    break;
              
                  case SV_PAUSE:
                  case SV_STEP:
                  case SV_STEP_BACK:
                    vSendUopCmd(UOP_PLAY, 0, 0, 0);
                    break;
              
                  case SV_SETUP_PAUSE:
                  case SV_PBC_INIT:
                    vSendUopCmd(UOP_PAUSE, 0, 0, SV_SETUP_EXIT);
                    break;
              
                  case SV_PTL_ERR:
                  case SV_REGION_ERR:
                  case SV_DISC_ERR:
                  case SV_SET_TMP_PTL:
                    break; /* allowed */
              
                  case SV_PLAY:
                    break;
              
                  case SV_FF:
                #ifdef TRICK_MODE_USE_PLAY
                    vSendUopCmd(UOP_PLAY, 0, 0, 0);
                #else
                    vSendUopCmd(UOP_FORWARD, SV_FAST, 0, 0);
                #endif
                    break;
              
                  case SV_SF:
                #ifdef TRICK_MODE_USE_PLAY
                    vSendUopCmd(UOP_PLAY, 0, 0, 0);
                #else
                    vSendUopCmd(UOP_FORWARD, SV_SLOW, 0, 0);
                #endif
                    break;
              
                  case SV_FR:
                #ifdef TRICK_MODE_USE_PLAY
                    vSendUopCmd(UOP_PLAY, 0, 0, 0);
                #else
                    vSendUopCmd(UOP_REVERSE, SV_FAST, 0, 0);
                #endif
                    break;
              
C51 COMPILER V7.06   PLAY_COM                                                              06/13/2005 09:51:40 PAGE 8   

                  case SV_SR:
                #ifdef TRICK_MODE_USE_PLAY
                    vSendUopCmd(UOP_PLAY, 0, 0, 0);
                #else
                    vSendUopCmd(UOP_REVERSE, SV_SLOW, 0, 0);
                #endif
                    break;
              
                  case SV_FREEZE:
                  case SV_DIGEST9:
                  case SV_DIGEST4:
                  case SV_DIGEST:
                  case SV_STILL:
                  default:
                    break;
                }
              #endif /* SETUP_PAUSE_PLAY */
 435          }
 436          
 437          #ifdef EN_DISC_ID_CHK
              // *********************************************************************
              // For disc ID check password
              // *********************************************************************
              void vNONDLockPwdInit(BYTE fgInit) large
              {
                vNumInInitState(NUM_IN_TYPE_2, PASSWORD_LEN);
              
                //show disc lock information here
                vOsdShowPassword(0, PASSWORD_LEN, 0);
              
                /* no input timeout */
                vIrSetTimeOut(IR_TIMER_VOID);
              }
              
              BOOL fgNONDLockPwdState(void) large
              {
                BOOL fgRetVal = TRUE;
              
                if (fgIsPlayEnterKey(_bIRKey))
                {
                  if (_rNumInStateCtx.rState.fgComplete)
                  {
                    vOsdShowPassword(OSD_PASSWORD_CLEAR, PASSWORD_LEN, 0);
                    vOsdPosClear(OSD_POS_PLAY_INFO);
              
                    if (_rNumInStateCtx.rState.fgCancel == FALSE)
                    {
                      if (fgDVDComparePwd(_rNumInStateCtx.bDig) == TRUE)
                      {
                        /* password check OK */
                        vSetDiscInitFlag(DISC_INIT_PWD_OK);
                      }
                      else /* password check error */
                      {
                        /* pass IR_PASSWORD to main state to
                           ask user input password again */
                        _bIRKey = IR_PASSWORD;
                        fgRetVal = FALSE;
                      }
                    }
                    else /* ? */
                    {
C51 COMPILER V7.06   PLAY_COM                                                              06/13/2005 09:51:40 PAGE 9   

                      vOsdPosShow(OSD_POS_NORMAL, OSD_MSG_PWD_ERR, OSD_TIMEOUT);
                      /* pass STOP to main state */
                      _bIRKey = IR_STOP;
                      fgRetVal = FALSE;
                    }
              
                    vSetExitInputState();
                  } /* fgComplete */
                }
                else if ((_bIRKey < IR_ADD10) || (_bIRKey == IR_CLEAR))
                {
                  if ((_rNumInStateCtx.rState.fgComplete == FALSE) || (_bIRKey == IR_CLEAR))
                  {
                    fgNumInState();
              
                    vOsdShowPassword(_rNumInStateCtx.rState.bDigNum, PASSWORD_LEN, _rNumInStateCtx.bDig);
                  }
                }
                else /* if (_bIRKey >= IR_ADD10) */
                {
                  if (_bIRKey < IR_INTERNAL_KEY_START)
                  {
                    /* don't pass the key */
                    fgRetVal = TRUE;
                  }
                  else
                  {
                    /* pass the key */
                    fgRetVal = FALSE;
                  }
                }
              
                return (fgRetVal);
              }
              #endif /* EN_DISC_ID_CHK */
 515          
 516          // *********************************************************************
 517          // From combine.c
 518          // *********************************************************************
 519          // *********************************************************************
 520          // Handle system UOP return
 521          // *********************************************************************
 522          BYTE bCOMHandleUopRet(BYTE bUopId, BYTE bUopRet) large
 523          {
 524            BYTE bRet = UOP_UPDATE;
 525            BYTE bTmp1, bTmp2;
 526          
 527            if (bUopRet != SV_NO_ERROR)
 528            {
 529              bRet = UOP_FAIL; /* show error */
 530            }
 531            else
 532            {
 533              bRet = UOP_UPDATE;
 534            }
 535          
 536            switch (bUopId)
 537            {
 538              case UOP_ZOOM_IN:
 539              {
 540          #ifdef DDISC_FTYPE_JPEG_SUPPORT
                    if (bUopRet != SV_NO_ERROR)
C51 COMPILER V7.06   PLAY_COM                                                              06/13/2005 09:51:40 PAGE 10  

                    {
                #ifdef PLAYER_ZOOMIN_INDICATOR
                      vDisableWB(WB_ZOOM_BR);
                #endif
              
                      bTmp1 = bSharedInfo(SI_ZOOM_SWITCH);
                      bTmp2 = bSharedInfo(SI_ISO_ITEM_TYPE);
              
                      if (fgIsPcdPlay() ||
                          (fgIsIsoPlay() && (bTmp2 == SV_ISO_JPG)))
                      {
                        vOsdShowZoomPct(bTmp1);
              
                        if ((bTmp1 == 0) && fgIsInputStateValid(INPUT_STATE_PCD_ZOOM))
                        {
                          /* need to escape zoom control mode */
                          fgSetPlayPostKey(IR_ZOOM_IN);
                        }
                      }
                    }
              #endif /* DDISC_FTYPE_JPEG_SUPPORT */
 563                break;
 564              }
 565          
 566              /* case UOP_ZOOM_OUT: */
 567              /* case UOP_SHOW_LOGO: */
 568          #ifdef SUPPORT_CAPTURE_LOGO
                  case UOP_CAPTURE:
                    if (fgIsInputStateValid(INPUT_STATE_LOGO_CAPTURE) == TRUE)
                    {
                      if (bUopRet == SV_NO_ERROR)
                      {
                        fgSetPlayPostKey(IR_CAPTURE);
                      }
                      else
                      {
                        fgSetPlayPostKey(IR_TIME_OUT);
                      }
                    }
              #endif /* SUPPORT_CAPTURE_LOGO */
 582                break;
 583          
 584              /* case UOP_AUDIO_CLIP: */
 585              /* case UOP_VOCAL_ASSIST: */
 586          
 587              case UOP_POWER:
 588                break;
 589          
 590              case UOP_OPEN_CLOSE:
 591              {
 592                if (bUopRet == SV_NO_ERROR)
 593                {
 594          #if 0
                      bTmp1 = bSharedInfo(SI_INIT_STATE);
              
                      if (bTmp1 == SV_TRAY_OPENING)
                      {
                        vOsdPosShow(OSD_POS_PLAY_STATUS, OSD_MSG_OPEN, OSD_NO_DISAPPEAR);
                      }
                      else if(bTmp1 == SV_TRAY_CLOSING)
                      {
                        vOsdPosShow(OSD_POS_PLAY_STATUS, OSD_MSG_CLOSE, OSD_NO_DISAPPEAR);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -