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

📄 show_pcd.c

📁 MTK 1389E SOURCE CODE
💻 C
字号:
/**********************************************************************/
/***************    MTK CONFIDENTIAL & COPYRIGHTED     ****************/
/***************                                       ****************/
/***************  $Modtime:: 04/08/27 9:40a    $       ****************/
/***************  $Revision:: 1                $       ****************/
/***************                                       ****************/
/***************   Description :                       ****************/
/***************                                       ****************/
/***************       Company : MediaTek Inc.         ****************/
/***************    Programmer :                       ****************/
/**********************************************************************/

#define _SHOW_PCD_C_

#pragma NOAREGS
#include "general.h"

#if 0//(defined(DDISC_FTYPE_JPEG_SUPPORT) && defined(SUPPORT_DATA_DISC))
// *********************************************************************
// Initial OSD state for PCD
// *********************************************************************
void vPCDShowInit(void) large
{
  _rOsdStateCtx.fgTimeShow = FALSE;
  _rOsdStateCtx.bTimeType = OSD_SHOW_DISABLE;
  _rOsdStateCtx.fgRemainMsgShow = FALSE;
  _rOsdStateCtx.fgPlayInfoShow = TRUE;
  _rOsdStateCtx.bPlayInfoType = OSD_INFO_DISABLE;
  _rOsdStateCtx.fgPlayShow = TRUE;
  _rOsdStateCtx.bPlayType = OSD_SHOW_PLAY;
  _rOsdStateCtx.fgRepeatShow = FALSE;
  _rOsdStateCtx.fgABShow = FALSE;
  _rOsdStateCtx.fgUsrCtrlShow = TRUE;
  _rOsdStateCtx.fgZoomShow = TRUE;
  _rOsdStateCtx.fgTimePos = OSD_SHOW_TIME_LEFT;

    VfdClearMsg();
#ifdef VFDMSG_p_cd
    VfdMsg(VFDMSG_p_cd);
#endif
}

// *********************************************************************
// Function : void vPCDShowPlayInfo(BYTE bItem)
// Description :
// Parameter : None
// Return    : None
// *********************************************************************
void vPCDShowPlayInfo(BYTE bItem) large
{
  WORD wFileNo = wIsoFileNo();
  WORD wFileNs = wIsoFileNs();
  BYTE bState = bSharedInfo(SI_PBC_STATE);

  /* for OSD */
  switch (bItem)
  {
    case bSIItemIndex(SI_FILE_NS_HI):
    case bSIItemIndex(SI_FILE_NS_LO):
      vOsdShowFile(OSD_FILE_TOTAL, wFileNo, wFileNs, OSD_TIMEOUT);
      /* show VFD stop message here? */
      break;
    
    case bSIItemIndex(SI_FILE_NO_HI):
    case bSIItemIndex(SI_FILE_NO_LO):
      if (fgIsDiscPlay(bState)
#ifdef JPEG_DGST_SHOW_NO
          || fgIsInDigest(bState)
#endif
         )
      {
        wFileNo = wWRDToBCD(wFileNo + 1); /* from 1 ~ Ns */
        VfdShowPlayInfo(VFD_INFO_NUMBER, bHiByte(wFileNo), bLoByte(wFileNo));
    
        /* check item type and show VFD message here? */
      }
      break;

    default:
      break;
  } /* switch (bItme) */
}

// *********************************************************************
// Function : void vPCDShowStopState(void) large
// Description :
// Parameter : None
// Return    : None
// *********************************************************************
void vPCDShowStopState(void) large
{
  vOsdShowPbcState(SV_STOP, 0, OSD_TIMEOUT_SHORT);
}
#endif  // #if (defined(DDISC_FTYPE_JPEG_SUPPORT) && defined(SUPPORT_DATA_DISC))

⌨️ 快捷键说明

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