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

📄 uopmap.c

📁 MTK 1389e版 MINI组合音响代码
💻 C
📖 第 1 页 / 共 2 页
字号:
    WriteDRAMTbl(0, 0, 0);
    // not used by NUI end

#ifdef SUPPORT_TRUECOLOR
    vSetWBTcMode(0);
  #ifdef ALL_WB_USE_TRUECOLOR
    vSetPal(0, 0, 0, 0);
  #endif
#endif

    vPasteMsgAddr(0, 0, 0);
    vChgColSetCol(0, 0, 0, 0);
    vOsdPosShowStr(0, 0);

#ifndef SS_FADE_INOUT
    vSetWBMixRatio(0, 0);
#endif

    // VFD
#ifndef VFD_SUPPORT
    bDummy = bVfdPubDumy();
#endif

    // audio control
#ifdef DOLBY_PROLOGIC
    vAdspPrologBal(0);
    vAdspPrologSurr(0);
#else
    wReadDspSharedWInfo(0);
#endif
#ifdef PLAYER_KARAOKE
    vAdspMicMix(0, 0);
#endif
#ifdef SIMPLE_SPDIF_CTRL
    vAdspSpdifManualSet(0, 0);
#endif

    vSetAuxIO(0, 0);

    fgCheckUopBlock(0);

    vSendPeriCmd(0, 0, 0);

#ifndef PLAYER_POWERDOWN
    vUIStop();
#endif

#ifdef DRS232_DEBUG
  #ifdef RS232_LOG_UI
    DBGLogS("");
    DBGLogB(1,2,3,4);
  #endif
#endif

  } /* if (bDummy) */
#endif /* __C51__ */
}

#ifdef IR_SUPPORT_SHIFT_KEY
// *********************************************************************
// Function : void vSetShiftKeyMode(BOOL fgEnable)
// Description :
// Parameter : None
// Return    : None
// *********************************************************************
void vSetShiftKeyMode(BOOL fgEnable) large
{
  if (fgEnable == TRUE)
  {
    if (_fgIRShiftKey != TRUE)
    {
      vSetKeyTblShift();
    }
    vOsdShowShiftMark(OSD_SHIFT_MARK_ALL, TRUE);
  }
  else if (fgEnable == FALSE)
  {
    if (_fgIRShiftKey != FALSE)
    {
      vSetKeyTblNormal();
    }
    vOsdShowShiftMark(OSD_SHIFT_MARK_ALL, FALSE);
  }
}
#endif /* IR_SUPPORT_SHIFT_KEY */
#if  defined(INTERNAL_KARA)
extern xdata BYTE  bVOL_Adjust_Mode ;
extern xdata BYTE bOld_VOL_Adjust_Mode;
extern xdata BYTE  bMICMenuON;
static  void vMicMenuStatic()  large
{
   if (bMICMenuON && _bIRKey != IR_LEFT && _bIRKey != IR_RIGHT &&
       _bIRKey != IR_UP && _bIRKey != IR_DOWN && _bIRKey != IR_POWER && _bIRKey != IR_EJECT)
       _bIRKey = IR_BBK_INTERNALKARA;
    else if (!bMICMenuON) 
        return;  
#ifdef DEBUG_UOP
DRS232LogS("M1\n");
DRS232LogB(bVOL_Adjust_Mode,_bIRKey,0,0);
#endif
   
    switch(bVOL_Adjust_Mode)   
    {
      	case  VOL_MIC_ON_MODE : 
      	                     if (_bIRKey == IR_LEFT)
      	                     {
      	                         bVOL_Adjust_Mode = VOL_RM_MODE;
      	                         _bIRKey = IR_INTERNAL_KARA ;  //show the selection
      	                         bOld_VOL_Adjust_Mode = VOL_MIC_ON_MODE;
      	                      }
      	                     if (_bIRKey == IR_RIGHT) 
      	                     {
      	                         bVOL_Adjust_Mode = VOL_TONE_MODE;
      	                         _bIRKey = IR_INTERNAL_KARA ;
      	                         bOld_VOL_Adjust_Mode = VOL_MIC_ON_MODE; 
      	                      }   
    	                     if (_bIRKey == IR_UP || _bIRKey == IR_DOWN)
    	                     	{
    	                     	
    	                     	    if(fgIsMute())    //  lxp-050506
    	                     		_bIRKey=IR_NONE;//leguo
    	                     	     else
    	                                    _bIRKey = IR_KARAOKE;      //转化为该按键执行
                                       #ifdef DEBUG_UOP
                                       DRS232LogS("M2\n");
                                       DRS232LogB(bVOL_Adjust_Mode,_bIRKey,0,0);
                                       #endif
   
    	                     	}
    	                      break;
    	case  VOL_TONE_MODE :
      	                     if (_bIRKey == IR_LEFT)
      	                     {
      	                         bVOL_Adjust_Mode = VOL_MIC_ON_MODE;
      	                         _bIRKey = IR_INTERNAL_KARA ;  //show the selection
      	                         bOld_VOL_Adjust_Mode = VOL_TONE_MODE;
      	                      }
      	                     if (_bIRKey == IR_RIGHT) 
      	                     {
      	                         bVOL_Adjust_Mode = VOL_MIC_MODE;
      	                         _bIRKey = IR_INTERNAL_KARA ; 
      	                         bOld_VOL_Adjust_Mode = VOL_TONE_MODE;
      	                      }     	 
    	                     if (_bIRKey == IR_UP)
    	                         _bIRKey = IR_AUD_KEY_PLUS;
    	                     if (_bIRKey == IR_DOWN)
    	                         _bIRKey =  IR_AUD_KEY_MINUS; 
    	                      break;
    	case  VOL_MIC_MODE  :
      	                     if (_bIRKey == IR_LEFT)
      	                     {
      	                         bVOL_Adjust_Mode = VOL_TONE_MODE;
      	                         _bIRKey = IR_INTERNAL_KARA ;  //show the selection
      	                         bOld_VOL_Adjust_Mode = VOL_MIC_MODE;
      	                      }
      	                     if (_bIRKey == IR_RIGHT) 
      	                     {
      	                         bVOL_Adjust_Mode = VOL_ECHO_MODE;
      	                         _bIRKey = IR_INTERNAL_KARA ; 
      	                         bOld_VOL_Adjust_Mode = VOL_MIC_MODE;
      	                      }    	
       	                     if (_bIRKey == IR_UP)
    	                         _bIRKey = IR_MIC_UP;
    	                     if (_bIRKey == IR_DOWN)
    	                         _bIRKey =  IR_MIC_DOWN; 
    	                      break;
    	case  VOL_LM_MODE  :
      	                     if (_bIRKey == IR_LEFT)
      	                     {
      	                         bVOL_Adjust_Mode = VOL_ECHO_MODE;
      	                         _bIRKey = IR_INTERNAL_KARA ;  //show the selection
      	                          bOld_VOL_Adjust_Mode = VOL_LM_MODE;
      	                      }
      	                     if (_bIRKey == IR_RIGHT) 
      	                     {
      	                         bVOL_Adjust_Mode = VOL_RM_MODE;
      	                         _bIRKey = IR_INTERNAL_KARA ;
      	                         bOld_VOL_Adjust_Mode = VOL_LM_MODE; 
      	                      }     	
       	                     if (_bIRKey == IR_UP)
    	                         _bIRKey = IR_SSN_UP;
    	                     if (_bIRKey == IR_DOWN)
    	                         _bIRKey =  IR_SSN_DOWN;     	
    	                      break; 
    	case  VOL_RM_MODE  :
      	                     if (_bIRKey == IR_LEFT)
      	                     {
      	                         bVOL_Adjust_Mode = VOL_LM_MODE;
      	                         _bIRKey = IR_INTERNAL_KARA ;  //show the selection
      	                         bOld_VOL_Adjust_Mode = VOL_RM_MODE;
      	                      }
      	                     if (_bIRKey == IR_RIGHT) 
      	                     {
      	                         bVOL_Adjust_Mode = VOL_MIC_ON_MODE;
      	                         _bIRKey = IR_INTERNAL_KARA ; 
      	                         bOld_VOL_Adjust_Mode = VOL_RM_MODE;
      	                      }     	
       	                     if (_bIRKey == IR_UP)
    	                         _bIRKey = IR_SSN_UP;
    	                     if (_bIRKey == IR_DOWN)
    	                         _bIRKey =  IR_SSN_DOWN;     	
    	                      break;     	                          	                          	                      
    	case  VOL_ECHO_MODE :
      	                     if (_bIRKey == IR_LEFT)
      	                     {
      	                         bVOL_Adjust_Mode = VOL_MIC_MODE;
      	                         _bIRKey = IR_INTERNAL_KARA ;  //show the selection
      	                         bOld_VOL_Adjust_Mode = VOL_ECHO_MODE;
      	                      }
      	                     if (_bIRKey == IR_RIGHT) 
      	                     {
      	                         bVOL_Adjust_Mode = VOL_LM_MODE;
      	                         _bIRKey = IR_INTERNAL_KARA ;
      	                         bOld_VOL_Adjust_Mode = VOL_ECHO_MODE; 
      	                      }      	
    	                     if (_bIRKey == IR_UP)
    	                         _bIRKey = IR_ECHO_PLUS;
    	                     if (_bIRKey == IR_DOWN)
    	                         _bIRKey =  IR_ECHO_MINUS; 
    	                      break;
                   
    }

}

#endif

// *********************************************************************
// Function : void vPlayerKeyProc(void)
// Description :
// Parameter : None
// Return    : None
// *********************************************************************
void vPlayerKeyProc(void) large
{
  BOOL fgRet = UOP_OK;
  
  // dummy
  Dummy();

  #ifdef BBK_LAST_MEMORY
  if(_bInputState == INPUT_STATE_LAST_MEMORY)
  {

  
    if(_bIRKey == IR_MEMORY)    //如果按了记忆键,则从已经记忆的点播放
    {

#if 0 //def  MEMORY_SCREENOFF
    if(fgIsCddaPlay())//&&(_bResetState ==PLAYER_SOFTWARE_RESET))  
	   vSendUopCmd(UOP_PLAY, 0, 0, 0);
    else
#endif
		
        vSendUopCmd(UOP_MEMORY_PLAY, 0, 0, 0);
	//    #ifdef RS232_LOG
	//  DRS232LogS("Memorying--\n");
	//  #endif
	
    }
    else                   //否则重头播放
    {
      vSendUopCmd(UOP_PLAY, 0, 0, 0);
    }
   vOsdPosClear(OSD_POS_LAYER2_LINE2);
    vOsdPosClear(OSD_POS_LAYER2_LINE3);
    _bInputState = INPUT_STATE_NONE;
    _bIRKey = IR_NONE;
    _bJYTimer = 0; //BillDen
  }
  #endif

  if (bKeyState() == KEY_SCRSAV)
  	{
  	  fgRet = fgSCRSAVKeyProc(); 
  	}

  #ifdef BBK_NEW_MENU
  if(_fgIsInBBKNewMenu == TRUE){
    if(fgBBKMenuState(_bIRKey)) {
    	if(_bIRKey != IR_GAME)
    	{
    	   _bIRKey = IR_NONE;
    		return;
    	}
    }
  }
  #endif
  /* before key process, update input state first */
  vUpdateInputState();
  
  //if (bKeyState() == KEY_SCRSAV)
  //  fgRet = fgSCRSAVKeyProc();
#ifdef PLAYER_GOTO    
  if (fgIsInGoto())
  {
    if (fgGotoState())
    {
      _bIRKey = IR_NONE;
    }
    vUpdateInputState();
  }
#endif   


  #ifdef BBK_NEW_MENU
  if(_bIRKey != IR_GAME) {
  #endif	
  if ( bKeyState() == KEY_SETUP )
  {
  
	if(fgSetupState())
    {
    
      _bIRKey = IR_NONE;
    }
    vUpdateInputState();    
  }  
#ifdef BBK_NEW_MENU
  }
#endif

  #if defined(INTERNAL_KARA)
  if (_bIRKey != IR_NONE)
  {
     vMicMenuStatic(); 		//转换MIC菜单打开时的按键处理
  }   
  #endif   

  if ( bKeyState() != KEY_SCRSAV )
  {
    fgRet = fgComKeyProc();       // do the common key proc between each state
  }  

  switch(bKeyState())
  {
    case KEY_INIT:
      fgRet = fgInitKeyProc();
      break;
    case KEY_ISO:
#ifdef SUPPORT_DATA_DISC
      if ((fgRet == UOP_OK) && (_bIRKey != IR_NONE))
      {
        fgRet = fgISOKeyProc();
      }
      vResendInputState();      
#endif
      break;
    case KEY_NONISO:    
      if ((fgRet == UOP_OK) && (_bIRKey != IR_NONE))
      {
        fgRet = fgNonISOKeyProc();
      }
      
      vResendInputState();      
      break;

    case KEY_SETUP:
    /*
      if(fgSetupState())
      {
        _bIRKey = IR_NONE;
      }
      vUpdateInputState();    
    */      
      break;
    case KEY_SCRSAV:
      fgRet = fgSCRSAVKeyProc();
      break;
    default:  
      _bKeyState = KEY_INIT;
      break;
  }

  /* check if the UOP return sync is set, if is set, don't do playback key */
  /* dispatch the key to the play module */
  if ((fgRet == UOP_OK) && (_bIRKey != IR_NONE))
  {
#if 0
    if (fgIsAinPlay())
    {
      fgRet = fgAINHandleCmd();
    }
#endif    
  }

  vResendInputState();

  /* Key process fail show error mark */
  if (fgRet == UOP_FAIL)
  {
    if (_bIRKey < IR_INTERNAL_KEY_START)
    {
      vOsdShowError(SV_ERR_INVALID_OPERATION, OSD_TIMEOUT_SHORT);
    }
  }

  /* reset _bIRKey here */
  _bIRKey = IR_NONE;
}

// *********************************************************************
// Function : void vPlayerShowLogo(BYTE bType, WORD wOption)
// Description :
// Parameter : None
// Return    : None
// *********************************************************************
void vPlayerShowLogo(BYTE bType, WORD wOption) large
{
  BYTE bTmp;
#ifndef MT1379_MANUFACTURE_TEST
  if (bType == SV_LOGO_KEEP)
  {
    return;
  }

#ifdef SUPPORT_CAPTURE_LOGO
  if (bType == SV_LOGO_SETUP)
  {
    bTmp = bEepromReadByte(LOGO_TYPE_POSITION);
    wOption = 0;

    switch (bTmp)
    {
      case EV_LOGO_JACKET:
        bType = SV_LOGO_JACKET;
        break;
      
      case EV_LOGO_BLUE:
        bType = SV_LOGO_COLOR;
        wOption = LOGO_BLUE;
        break;

      case EV_LOGO_CAPTURED:
        bType = SV_LOGO_CAPTURE;
        break;

      case EV_LOGO_DEFAULT:
      default:
        bType = SV_LOGO_FLASH;
        break;
    }
  } /* bType == SV_LOGO_SETUP */
#endif /* SUPPORT_CAPTURE_LOGO */

#if 0
  if (fgIsCddaPlay())
  {
    if ((bReadDEC(RW_RBCR1) & BWSEL_32) == 0) /* 16 bit DRAM */
    {
      bType = SV_LOGO_COLOR;
      wOption = LOGO_BLUE;
    }
  }
#endif

  if (bType == SV_LOGO_COLOR)
  {
    bTmp = (wOption & 0x000f) << 4;
    vSetSharedInfo(SI_LOGO_CLR_Y, bTmp);

    wOption >>= 4;
    bTmp = (wOption & 0x000f) << 4;
    vSetSharedInfo(SI_LOGO_CLR_CB, bTmp);

    wOption >>= 4;
    bTmp = (wOption & 0x000f) << 4;
    vSetSharedInfo(SI_LOGO_CLR_CR, bTmp);

    vSendUopCmd(UOP_SHOW_LOGO, SV_LOGO_COLOR, 0, 0);
  }
  else
  {
    vSendUopCmd(UOP_SHOW_LOGO, bType, wOption, 0);
  }
  #endif
}

⌨️ 快捷键说明

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