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

📄 cc.h

📁 车载电子影音系统dvd播放系统原程序代码
💻 H
📖 第 1 页 / 共 2 页
字号:
extern  DWORD               __dwTimeBegin;
extern  DWORD               __dwTimeEnd;
extern  DWORD               __dwPreGetTime;     // ** TCH0.31;
extern  DWORD data          __dwTimeNow;
extern  BYTE  data          __bKey;
extern  BYTE                __bScan;

extern  DWORD           __dwTimeRef;            // It's a time for reference
extern  DWORD           __dwTimeDiscBegin;
extern  DWORD           __dwTimeDiscEnd;
extern  DWORD           __dwTimeTorelence;
extern  DWORD           __dwVUBuffer;
extern  DWORD           __dwVOBuffer;
// Micky0.86, add audio buffer threshold value
extern  DWORD           __dwAUBuffer;
extern  DWORD           __dwAOBuffer;
extern  DWORD           __dwTimeA, __dwTimeB;          // ** TCH1.61a; record the times for repeatAB


extern  WORD            __wPlayItem;            //
// DVD_274pMicky, remove the __bSurround declaration.
//extern  WORD            __wVolAudio;         // HIBYTE is right channel, LOBYTE is left channel
extern  WORD            __wStatus;                // record VCD 2.0 List type

//Alex1.21,20031210 support bookmark
#ifdef SUPPORT_BOOKMARK
extern BYTE             __bBookMark_Title[BOOKMARK_NO+ 1];        // record BookMark Title
#endif //#ifdef SUPPORT_BOOKMARK
extern  WORD            __wBookMark [BOOKMARK_NO+ 1];             // record BookMark Time
extern  BIT             __btBookMark;             // BookMark ON/OFF (PBC OFF)
void        _CC_ProcessBookMark (void);

//Kevin0.86, comment
///extern  WORD            __wProgramData [PROGRAM_TRACK];       // Max program is

extern  BYTE            __bModeCmd;         // Current macro command mode
extern  WORD            __wTrackBegin;
extern  WORD            __wTrackEnd;
extern  BYTE            __bRepeat;             // record repeat mode
extern  BYTE            __bError;
extern  BYTE            __bModeChannel;         // record channel information
extern  BYTE            __bAudioType;         // record Audio Type information    // ** TCH0.25;
// DVD_275b+, SUPPORT_VIRTUAL_DTS
#if 1//def  SUPPORT_VIRTUAL_DTS
extern  BYTE            __bSelectAudioType;
#endif  //#ifdef  SUPPORT_VIRTUAL_DTS

// DVD_274pMicky, remove the __cKeyShift declaration.
//extern  char            __cKeyShift;            // Key adjustment; Up/Down
// DVD_102pMicky, integrate __bTVMode with SetupInfo.bTVSystem
// remove __bTVMode
// extern  BYTE            __bTVMode;              // record TV mode MTSC/PAL/AUTO
extern  BYTE            __bRepeatAB;            // REPEAT_NONE/ REPEAT_A/ REPEAT_AB (PBC OFF)
extern  BYTE            __bShowTimeType;        // Output Module use. ref to osd.h

extern  BIT             __btPlaying;    // means playing (NPF/FF/...)
extern  BIT             __btPlayEnd;    // Check if it's into Play-End mode
extern  BIT             __btPause;      // if it's into Pause mode
extern  BIT             __btPBC;        // means VDC2.0 PBC
extern  BIT             __btDriveOpen;  // means drive is in close mode when Power-ON
extern  BYTE            __bFirstPlay;   // Does it play first time ?

extern  BIT             __btMute;               // Mute information
extern  BIT             __btCheckBitStream;     // Disable/Enable to check bitstream information
extern  BIT             __btJumping;            // Disable/Enable Jumping Now
extern  BIT             __btRandom;              // in random mode (PBC off)
extern  BIT             __btProgram;             // Program Mode ON/OFF (PBC OFF)

//alex1.23,20040218 combine gototime , search
//remove __btGotoTime declare
/*
extern  BIT             __btGoToTime;             // GoToTime ON/OFF (PBC OFF)
*/

// LLY.036, Search mode usage
extern  BYTE    __bSearchMode;    // Search mode on/off
extern  BYTE    __bSearchCursor;  // indicate the search cursor positon
extern  BYTE    __bSearchTitle;   // the title number for search mode
extern  WORD    __wSearchChapter;  // the chapter number for search mode
extern  WORD    __wSearchChapter_Ns_Title;  // the total chapter number for search

//extern  BIT             __btHighColorTrunc;
// DVD_104Micky, extend the vocal mode define.
// DVD_274pMicky, remove the __bSurround declaration.
//extern  BYTE            __bVocal;              // In Vocal Cancel mode
extern  BYTE            __bAutoVocal;          // Enable Auto-Sing
extern  BIT             __btAutoStop;
extern  BYTE            __bDisplay;

extern  BIT             __btOpenPlay;            // The CLOSE command is caused by "PLAY" key or NOT
extern  BIT             __btPowerDown;           // PowerDown Mode ON/OFF

// temporarily usage, Please free these variables when you leave one API
// Don't use it in parameter of functions
extern  DWORD IDATA     __dwTemp;
extern  WORD  IDATA     __wTemp;
extern  BYTE  IDATA     __bTemp;
extern  BIT             __btTemp;

extern  BIT             __btDIGEST;             // means Digest Mode

extern  BIT     __btActiveFrame; // LLY.274p-1
//LJY1.23, LJY1.11d, for antishock
#ifdef SUPPORT_ANTISHOCK
extern DWORD __dwPrevTime;
extern BIT     __btResetBuffer;
extern DWORD __dwTimeRecover;
#endif

//LJY2.30a, for checking AO in ISR
extern BYTE __bAudioOverflow;

#ifdef  TEST
// Testing usage
extern  BYTE            __bTestMethod;
extern  BYTE            __bTest;
extern  BYTE            __bTestBlock;
extern  BYTE            __bBegin;
extern  BYTE            __bEnd;
extern  WORD            __wTest;
extern  WORD            __wTest1;
#endif  // TEST

// ** TCH0.26; begin...
extern  BYTE            __bASTN;   // Audio Stream Number
extern  BYTE            __bASTNO;    // Index of Audio Stream Number, from "0"-"__bASTNs-1".     // ** TCH0.451;
extern  BYTE            __bASTNs;    // Max. Audio Stream Number, from "0".
extern  BYTE            __bASTID;       // The Real sub_stream_id. DVD may be different than __bASTN.

extern  BYTE            __bSP_Disp_OFF;  // ** TCH0.402;  SP Display is disabled?
extern  BYTE            __bSPSTN;
extern  BYTE            __bSPSTNO;    // Index of Audio Stream Number, from "0"-"__bSPSTNs-1".   // ** TCH0.451;
extern  BYTE            __bSPSTNs;   // Max. SP/OGT Stream Number, from "0".
extern  BYTE            __bSPSTID;      // The Real sub_stream_id. DVD may be different than __bSPSTN.
// ** TCH0.26; end...

// ** TCH0.27; begin...
extern BYTE            __bAGLN;    // Angle Number. from "1".
extern BYTE            __bAGL_Ns;  // Number of Angles.
// ** TCH0.27; end...
//DVD_039-1SCF
extern  BYTE    __bScanLevel;

// Micky2.80, review global variables init.
extern  DWORD IDATA     __dwTimeKey;
extern  WORD            __wNumberPrevious;
extern  DWORD           __dwResumeTime;
extern  BIT             __btNewTime;
extern  DWORD                   _dwTimeCheckTray;

// DVD_099cMicky, support show OSD only when IR key is pressed
extern  BYTE    __bKeyMessage;

// Micky1.07, adding DEBUG info variable declaration
extern  BIT     __btDumpFlag;
extern  BYTE    __bDumpType;
#define INFO_BASIC          0x1L
#define INFO_TITLE_REL      0x2L
#define INFO_SERVO_REL      0x4L
#define INFO_AVSYNC_REL     0x8L
#define INFO_ERR_CONCEAL    0x10L
#define INFO_MISC           0x20L

#define     KEY_DISALLOW    0//REJECT  0
#define     KEY_ACCEPT  1
#define     KEY_IGNORE      2//CANCEL  2

// LLY.040-1 begin, for screen saver usage
#ifndef NO_SCREEN_SAVER
extern      BYTE    __bScreenSaver;
extern      DWORD   __dwTimeCheckNOData;
#define     NONE_SCREEN_SAVER               0
#define     PREPARE_SCREEN_SAVER            1
#define     ENTER_SCREEN_SAVER              2
#define     TRIGGER_SCREEN_SAVER            3
#define     DISABLE_SCREEN_SAVER            4
#endif  // #ifndef NO_SCREEN_SAVER

// DVD_161Micky, support Loading-> Setup-> Exit, will continue loading action
extern BYTE __bFlowState;
#define FLOW_NORMAL                     0x00
// DVD_172Micky, FLOW_CONTROL begin
/*
#define FLOW_SUSPEND_STABLE             0x80    // wait stable is interrupt
#define FLOW_SUSPEND_DETECTION          0x40    // title detection is interrupt
#define FLOW_SUSPEND_PLAY               0x20    // play is interrupt
// FLOW_SETUP will be removed.
#define FLOW_SETUP                      0x10    // in setup mode
*/
// DVD_172Micky, FLOW_CONTROL end

#define FLOW_RELEASE_STABLE             0x08    // allow continue wait stable
#define FLOW_RELEASE_DETECTION          0x04    // allow continue title detect
#define FLOW_RELEASE_PLAY               0x02    // allow continue to play
// DVD_172Micky, FLOW_CONTROL begin
///#define SUPPORT_RESUME_AFTER_POWERON
#define FLOW_OPEN                       0x10
#define FLOW_KEEP_RESUME                0x01
#define FLOW_TRIGGER    (FLOW_RELEASE_STABLE| FLOW_RELEASE_DETECTION| FLOW_RELEASE_PLAY)
// DVD_172Micky, FLOW_CONTROL end

///////////////////////////////////////////
BYTE        CC_DoKeyAction ( BYTE bKey );
BYTE        CC_KeyCommand ( BYTE bKey );        // it'll be used by extra module

//////////////////////////////////////////////
// protected functions
WORD        _Check_CDROMStatus (void);

void        _Get_PlayRange (void);
void        _CC_Process_KeyNumber ( WORD wValue );

BYTE        _CC_PreProcessKey (void);

void        _CC_QChannelTorelence(void);

BYTE        _CC_ImmediateKey(void);

BIT     _InvalidAccess(DWORD dwMode);
extern BIT  __btIntroMode;
extern DWORD    __dwIntroPlayTime;

#define CC_MODE_PBC     0x00000001L
#define CC_MODE_PLAY    0x00000002L
#define CC_MODE_STOP    0x00000004L
#define CC_MODE_INTRO   0x00000008L
#define CC_MODE_LINEAR  0x00000010L
#define CC_MODE_DIGEST  0x00000020L
#define  CC_MODE_PROGRAM 0x00000040L
#define CC_MODE_GOTIME  0x00000080L


BYTE    _KeyGroupTest(BYTE bKey);
BYTE    _KeyGroupAudio(BYTE bKey);
BYTE    _KeyGroupPlay(BYTE bKey);
BYTE    _KeyGroupMode(BYTE bKey);
BYTE    _KeyGroupMultiDisc(BYTE bKey);
BYTE    _KeyGroupVideo(BYTE bKey);
BYTE    _KeyGroupNumber(BYTE bKey);
BYTE    _KeyGroupSetUP (BYTE bKey);     // ** TCH0.27;
BYTE    _KeyGroupDVD   (BYTE bKey);     // ** TCH0.27;
BYTE    _KeyGroupOthers(BYTE bKey);
BYTE    _CC_ProcessSearchAction(BYTE bKey, WORD wParam); // ** LLY.036
//DVD_049MickyPowerDown
// support auto power down
extern DWORD __dwTimeWaitPowerDown;
extern DWORD __dwProgressCount;  // LLY.276-5
// Micky2.79-2, support FullScreen function
// init. value 0 will be assigned within INITIAL_Variables.
// 1: means full screen video on, 0: means full screen video off.
extern  BYTE    __bFullScreen;
// Micky1.24, make sure that servo send correct dvdinfo data
extern BYTE __bDataRequest;

#ifdef  SUPPORT_DVD_T
extern BYTE __bReduceSTBtoDVDtime;   //Kevin1.24aDVD_T
#endif

//DVD_043-2
// check region code match or not
BYTE    _IdentifyRegionCode(void);
// Micky2.81, Provide an API for access __bMessageMap
void _CC_MapKeyMessage(BYTE bKey);
// Micky0.90, use new buffer control.
// Monitor audio overflow for audio buffer 1 only
// Minitor audio underflow for audio buffer1+2
// if disabled, MONITOR.c need check???
#define NEW_AUDIO_BUFFER_CONTROL

// Micky1.05, add auto test for IC sorting by CoCo
#ifdef AUTO_TEST
void _CC_AutoTest(void);
void  CC_AutoTestInitial(void);
#endif

// ** TCH1.21-1; begin... 
void _CC_Variables_PowerON (void);
// Micky1.23, support DVD_T
#define CC_ACTION_NONE          0
#define CC_ACTION_DVD_OFF       1
#define CC_ACTION_SAVE_RESUME   2

// LLY2.37p, add function prototype for _CC_AssignActionKey()
void _CC_AssignActionKey(void);

// LLY2.37p, add function prototype and parameter ID for _CC_GoTimeAction
BYTE _CC_GoTimeAction(BYTE bAction);
#define GOTIME_EXECUTE      0       //  Execute GoTime action
#define GOTIME_CALCULATE    1       // Calculate GoTime value


#ifdef __cplusplus
        }
#endif
#endif  // __CC_H__

⌨️ 快捷键说明

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