📄 cc.h
字号:
//extern char __cKeyShift; // Key adjustment; Up/Down// DVD_102pMicky, integrate __bTVMode with SetupInfo.bTVSystem// remove __bTVMode// extern BYTE __bTVMode; // record TV mode MTSC/PAL/AUTOextern BYTE __bRepeatAB; // REPEAT_NONE/ REPEAT_A/ REPEAT_AB (PBC OFF)extern BYTE __bShowTimeType; // Output Module use. ref to osd.hextern BIT __btPlaying; // means playing (NPF/FF/...)extern BIT __btPlayEnd; // Check if it's into Play-End modeextern BIT __btPause; // if it's into Pause modeextern BIT __btPBC; // means VDC2.0 PBCextern BIT __btDriveOpen; // means drive is in close mode when Power-ONextern BYTE __bFirstPlay; // Does it play first time ?extern BIT __btMute; // Mute informationextern BIT __btCheckBitStream; // Disable/Enable to check bitstream informationextern BIT __btJumping; // Disable/Enable Jumping Nowextern 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 usageextern BYTE __bSearchMode; // Search mode on/offextern BYTE __bSearchCursor; // indicate the search cursor positonextern BYTE __bSearchTitle; // the title number for search modeextern WORD __wSearchChapter; // the chapter number for search modeextern 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 modeextern BYTE __bAutoVocal; // Enable Auto-Singextern BIT __btAutoStop;extern BIT __btOpenPlay; // The CLOSE command is caused by "PLAY" key or NOTextern BIT __btPowerDown; // PowerDown Mode ON/OFF// temporarily usage, Please free these variables when you leave one API// Don't use it in parameter of functionsextern DWORD __dwTemp;extern WORD __wTemp;extern BYTE __bTemp;extern BIT __btTemp;extern BIT __btDIGEST; // means Digest Modeextern BYTE __bMMAtiveFrame; // LLY.274p-1#ifdef TEST// Testing usageextern 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 Numberextern 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.// Micky0.90aextern BYTE __bSP2_Disp_OFF; // ** TCH0.402; SP Display is disabled?extern BYTE __bSP_Disp_OFF; // ** TCH0.402; SP Display is disabled?extern BYTE __bSPSTN;extern BYTE __bSPST2N; // Aron1.01 SP Stream Number for SP2, from "0".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.extern BYTE __bSPST2NO; // Chuan0.75, Index of Subpicture Stream Number 2, from "0"-"__bSPSTNs-1"extern BYTE __bSPST2ID; // Chuan0.75, The Real sub_stream_id 2. 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-1SCFextern BYTE __bScanLevel;extern DWORD __dwTimeKey;// Micky0.72, change number to DWORD to avoid overflow.extern DWORD __dwNumberPrevious;extern DWORD __dwResumeTime;extern BIT __btNewTime;extern DWORD _dwTimeCheckTray;// wyc1.02-909, add extern variable.extern DWORD __dwGoToTime;// wyc2.05-909S, porting fish's code for MP3 resume.// LLY2.05, porting Wing/ YC code to support MP3 disc resumeextern DWORD __dwResumeItem;extern DWORD __dwGoTimeFrameCnt;// LLY2.36, create a new variable to keep the desired STC value for GoTime action// To avoid the inaccuracy from STC/90K = sec unit, then * 90K again to get PTSextern DWORD __dwGoTimeSTC;// LLY2.61, create a new variable to keep time A STC value for Repeat A-Bextern DWORD __dwTimeA_STC;// wyc2.37-909sextern BYTE __bACHN; // Record current Audio Channel Number. From "1"..extern WORD __wChapter_Ns_Title; // Record the Total Chapters/ current Title (PTT)extern WORD __wV_ATR; // Record Video Attribute (current)extern WORD __wSP_LCD; // SP Languageextern WORD __wA_LCD; // Audio Languageextern DWORD __dw1stSCR; // Keep 1st SCR valueextern BOOL __bSmartPB_ABLE;extern BYTE __bMaxPBT_TT; // the Title with max playback time in current DVD disc// DVD_099cMicky, support show OSD only when IR key is pressedextern BYTE __bKeyMessage;// Micky1.07, adding DEBUG info variable declarationextern 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_SAVERextern BYTE __bScreenSaver;#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 actionextern 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 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//////////////////////////////////////////////void _Get_PlayRange (void);// Micky0.62-909, removed// [CT909 Removed]//void _CC_Process_KeyNumber ( WORD wValue );BYTE _CC_PreProcessKey (void);void _CC_QChannelTorelence(void);BYTE _CC_ImmediateKey(void);// wyc1.05-909, add extern function.VOID CC_ResetState(BYTE bState);// wyc2.22-909s, extern variables.BYTE CC_ForceStop(DWORD dwMode);void CC_ForceResumeRePlay(DWORD dwMode);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 0x00000080LBYTE _KeyGroupTest(BYTE bKey);BYTE _KeyGroupAudio(BYTE bKey);BYTE _KeyGroupPlay(BYTE bKey);BYTE _KeyGroupMode(BYTE bKey);// ** TCH0.60; 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.036extern void PANEL_Initial(void);extern void PANEL_Output(BYTE bMessage, WORD wParam);//DVD_049MickyPowerDown// support auto power downextern DWORD __dwTimeWaitPowerDown;// wyc1.01-909, remove it because of not use it.//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 dataextern BYTE __bDataRequest;//DVD_043-2// check region code match or not// wyc2.37-909s#ifndef NO_DISC_MODE //CoCo2.37pBYTE _IdentifyRegionCode(void);#endif //#ifndef NO_DISC_MODE //CoCo2.37p// Micky2.81, Provide an API for access __bMessageMapvoid _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_TESTvoid _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// ** TCH0.60; begin...// Internal Function protypevoid _CC_Trigger_AutoPowerDown(void); // ** TCH0.60;void _CC_Trigger_NumberTimeOut(void); // ** TCH0.60;// Micky0.62-909, removed// [909 Removed]//void _ConfirmAction(WORD wValue);// LLY0.62, add function prototype for _CC_AssignActionKey()void _CC_AssignActionKey(void);// LLY0.62, add function prototype and parameter ID for _CC_GoTimeActionBYTE _CC_GoTimeAction(BYTE bAction);#define GOTIME_EXECUTE 0 // Execute GoTime action#define GOTIME_CALCULATE 1 // Calculate GoTime valueextern DWORD __dwW99AV_DestDRAM;extern DWORD __dwW99AV_SrcDRAM;void Thread_CTKDVD (DWORD index);extern DWORD __dwOpenTime; // ** TCH0.60;// ** TCH0.60; end...// Micky0.62-909// Micky0.80, remove parameter bKey.BYTE _CC_NumberProcessKey( void);//BYTE bKey );//BYTE _CC_DVD_PreProcessKey(void);#ifndef NO_DISC_MODE //CoCo2.37pBYTE CC_DVD_ProcessKey(void);//BYTE bKey);#endif //#ifndef NO_DISC_MODE //CoCo2.37p// wyc2.37-909s#ifndef NO_DISC_MODE //++CoCo2.37pBYTE CC_VCD_ProcessKey(void);//BYTE bKey);#endif //#ifndef NO_DISC_MODE //++CoCo2.37p// wyc2.38a-909s,BYTE CC_CompareAPFile(BYTE bMode, DWORD *dwFileLoc, DWORD *dwFileLength);// Micky0.51-909, process number key, then convert as KEY_NUMBER#define MAX_DIGITS_NUMBER 10000 // the value can't exceet 0xFFFF(65535)#define MAX_DIGITS 5#define NUMBER_CLEAR 1#define NUMBER_SHIFT 2#define NUMBER_DIGITS 3#define NUMBER_SET_INPUT 4#define NUMBER_SET_TIMEOUT 5#define NUMBER_CLEAR_TIMEOUT 6// Micky0.72, update number queue#define NUMBER_QUEUE 7BYTE CC_NumberUtility(BYTE bAction);BYTE CC_MainProcessKey(void);BYTE _CC_CheckValidKey(void);// Micky0.68, merge SP change into an API for navigator and key switch share use.// parameter 1 means by KEY_SPST_CTL, 0 means by friendly navigatorBYTE CC_SPST_Change(BYTE bSwitch);// Micky0.76BYTE CC_Angle_Change(BYTE bSwitch);// Micky0.80, add switch IDBYTE CC_Audio_Change(BYTE bSwitch);#define CC_SWITCH_QUERY 0x00// Micky0.90-2, add query for SP2#define CC_SWITCH_QUERY_SP1 CC_SWITCH_QUERY#define CC_SWITCH_QUERY_SP2 0x80#define CC_TOGGLE 0x10#define CC_TOGGLE_SP1 0x11#define CC_TOGGLE_SP2 0x12#define CC_TOGGLE_ANGLE 0x11#define CC_TOGGLE_AUDIO 0x11#define CC_SWITCH_SP1 0x01#define CC_SWITCH_SP2 0x02#define CC_SWITCH_ANGLE 0x01#define CC_SWITCH_AUDIO 0x01// wyc0.91, Brian's updated code.// Brian0.91extern DWORD __dwVersionMPEG; // MPEG decoder module versionextern DWORD __dwVersionJPEG; // JPEG decoder module versionextern DWORD __dwVersionDisplay; // Display module versionextern DWORD __dwVersionDivX; // DivX module versionextern DWORD __dwVersionNavigate; // Navigate module versionextern DWORD __dwVersionParser; // Parser module version// wyc1.20-909extern DWORD __dwVersionUSB; // USB module version.// wyc1.50-909, new protected module group.extern DWORD __dwVersionINFO; // INFO module version.extern DWORD __dwVersionServo; // Servo module versionextern DWORD __dwVersionServoBM; // Servo BM versionextern DWORD __dwVersionCard; // Card module versionextern DWORD __dwVersionServoUCode; // Servo uCode versionextern DWORD __dwVersionRelease; // F/W release versionextern DWORD __dwVersionFAE; // FAE versionextern DWORD __dwVersionTFT; // VD versionextern const BYTE __csVersionCustomer[]; // the customer version string#ifdef SUPPORT_AV_INextern BIT _btAVIN; //Jeff 20060705 Add for AV inextern BIT _btTFT_PowerDown;#endif#ifdef SUPPORT_POWER_SWITCHextern BYTE __bPowerSw;extern BYTE __bPowerSw_StandBy;#endif //SUPPORT_POWER_SWITCH#ifdef __cplusplus }#endif#endif // __CC_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -