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

📄 winav.h

📁 ct952 source code use for Digital Frame Photo
💻 H
📖 第 1 页 / 共 4 页
字号:
// ******************************// User Operation Behavior// ******************************// Micky1.22a, if no FP_PGC, just play from TT/CC 1/1// define it, will play from TT/CC 1/1 when FP_PGC doesn't exist.// for DVD title only.// #define PLAY_TT1CC1_WHEN_NO_FPPGC// ** TCH2.74; define it, can support VCD control. The Default value should set in [SETUP.H]// If enable VCDControl, VCD-series can NOT play. Otherwise, same as original version.///#define SUPPORT_VCD_CONTROL// wyc.170a, define it when input number is bigger than end track, it will show invalid, else will go end track and play.// #define NUMBER_OUTRANGE_INVALID// DVD_161Micky, support MP3 resume can play from track begin// if define it, when resume, can play the last played track// #define SUPPORT_MP3_RESUME// if define it, it will only support NPF key while in stop mode// ie. it don't allow non-play playable macro command key in stop mode// #define SUPPORT_NPF_TRIGGER_ONLY// ** TCH1.72; if define it, it will assume NEXT key as KEY_PLAY (except MP3) while in stop mode// #define SUPPORT_NEXT_TRIGGER_FROM_STOP// Micky2.78b-2, add support for play chapter by number key.// define it, will accept input number as chapter number and play it.// only support the feature when 1) Title domain and 2)must have no selective buttons// #define SUPPORT_PLAY_CHAPTER_BY_NUMBER// define it,// means system will enetr NO-PBC mode when following keys are pressed in PBC stop mode// KEY_NUMBER, KEY_GOTOTIME, KEY_DIGEST. And will do the action// #define    AUTO_PBCOFF// define it, one stop -> will be treated as temporarily stop-> play will be treated as RESUME//          , 2 stop -> will be treated as real stop.// else stop, will always be treated as real stop.///#define     DOUBLE_STOP// define it, means the sequence of GoToTime is normal and "4" number force auto-gototime// else the sequence is from left to right and don't auto-gototime// #define    GOTOTIME_LEFTTORIGHT// define it, means the GoToTime number can't over 5// else the 1st number will be rounded off//#define GOTOTIME_NUMBER_NOROUND// define it, means N0 will be suppose as N10 or N20// else N0 will be assumes as "0"//#define     KEY_N0_SAME_NPLUS// define the value of KEY_NPLUS#define     KEY_NPLUS                   10      //***********// define it, means after number key input, user need press "SEL" to confirm// else the number will directly action//#define SUPPORT_NUMBER_CONFIRM_KEY// define it, means system will directly play [PROGRAM] Track;// else another mode play [PROGRAM] Track after play current Track///#define     PROGRAM_PLAY_DIRECT// DVD_101bMicky, rename the define// define it, means KEY_CLAER will clear current Program Item// else will clear PROGRAM mode// #define    ENABLE_CLEAR_CURRENTPROGRAMITEM// define it, means KEY_AUTOVOCAL will have two meanings// One is AUTOVOCAL (LL) mode, another is AUTOVOCAL (RR) mode// #define    ENABLE_2_AUTOVOCAL// hwtan 6.10 begin// define it, means KEY_AUTOVOCAL will have three meanings// Two are LL&RR mode, the other is channel 0 mode for some CVD&SVCD// #define    ENABLE_3_AUTOVOCAL      //ping add for strong request// hwtan 6.10 end// define it, means SCF/SCB will switch to Normal Play after SCF/SCB-2// else The keys of SCF/SCB only switch within SCAN mode/// #define     ROUND_SCAN// define it, means F/W will clear LOGO when push "PROGRAM" and "GOTOTIME"// #define     FORCE_CLEAR_LOGO// define it, means F/W will check __sbMICVocal PIN for AutoVocal// #define     ENABLE_AUTOVOCAL         // ** SVCD-TCH;// define it, means scart 16:9/4:3 setting only reference setup's setting. Won't reference bitstream format.// #define     SET_SCART_FROM_SETUP// ***** IR control// define it, means REPEAT_AB and RESUME key is ONE key, not separate// Please use KEY_RESUME to represent this key. (NOT KEY_REPEAT_AB)//#define     SAME_AB_RESUME// DVD051, define it, then repeat key will clear repeat a-b status//#define     REPEAT_CLEAR_REPEATAB// DVD_099bMicky, define it, KEY_AUDIO_LR and KEY_AST_CTL will be same key// for DVD/SVCD/CVD, it's KEY_AST_CTL// for VCD/MP3/CD-DA, it's KEY_AUDIO_LR///#define KEY_AUDIO_LR_SAME_KEY_AST_CTL// DVD_101bMicky, KEY_PLAY active as KEY_ACTIVE// define it, KEY_PLAY will act as KEY_ACTIVE// else it, KEY_PLAY will act as normal play only// Can be defined only when IR KEY_ACTIVE is not exist// #define SUPPORT_KEY_PLAY_AS_KEY_ACTIVE// DVD_099bMicky, define it, for VCD/SVCD/CVD/CD-DA, the GOTOTIME value will be absolute time// else it will depend on current show time mode(track relative mode)///#define ABSOLUTE_GOTOTIME// DVD_099bMicky, define it, it will auto switch to normal play when change track// else it will keep original play mode///#define FORCE_CHANGE_TRACK_NORMAL_PLAY// **** TCH0.99C-XQ, define it, it will auto switch to NON-PBC mode when push Randm or Repeat Disc.// else it will keep original play mode///#define FORCE_SWITCH_NONPBC// ** TCH1.01-1; define it, it will re-init AST/SPST and let's follow SETUP information.// else it will keep original play AST/ SPST///#define FORCE_DEFAULT_AST_SPST_AFTER_REAL_STOP// ** TCH1.03; define it, it will set repeat mode as REPEAT_NONE. (ESS/ ZORAN)// else it will keep original setting (Zoran)///#define FORCE_SET_REPEAT_MODE_AFTER_REAL_NEXTPREV// DVD_099bMicky, define it, will support a general backdoor mode// for non-setup mdoe///#define SUPPORT_GENERAL_BACKDOOR// DVD_099cMicky, define it, will dynamic showing loading status///#define SHOW_LOADING_STATUS// DVD_101Micky, can select to use KEY_PLAY/OPEN_CLOSE release power down/// define it, will allow KEY_PLAY to release power down mode/// #define RELEASE_POWERDOWN_BY_PLAY/// define it, will allow KEY_OPEN_CLOSE to release power down mode/// #define RELEASE_POWERDOWN_BY_OPEN/////////////////////////////////////////////////  ******  Subpicture Relative Zone  *****/////////////////////////////////////////////////// Audio Output Relative Zoon/////////////////////////////////////////////////// wyc.170, define it to support CDDA and LPCM de-emphasis in W6630 audio DAC.//#define SUPPORT_AUDIO_DEEMPHASYS// LLY.171, if define it, DSP will output 6 channel audio data for non-DVD title// while setting audio configure in 5.1 channel// Otherwise, it's only output 2 channel audio data// Notice: Must use 20011212 DSP code// #define SUPPORT_6CH_OUTPUT_FOR_NONDVD// LLY.171, if define it, DSP will do MPEG Up-Sample feature for MP3-LSF// Ex: 16->48, 22->44, 32->48// Otherwise, it will output original audio frequence #define SUPPORT_MPEG_AUDIO_UP_SAMPLE// CMH2.55, define it to support PCM audio up-sample feature while audio code is ready.// #define SUPPORT_PCM_AUDIO_UP_SAMPLE// Brian.274, if define it, MIC input will be always disabled. This only works for// DBB. For DAB, must replace DSP code to disable MIC input.// #define NO_MIC_INPUT// wyc1.00-909, add define to decide support FREEZE function or not.//#define SUPPORT_FREEZE_FUNCTION#define SUPPORT_JPG_PREVIEW// ******************************************// Video Output Configure Relative Zon// ******************************************// If define it, it will support CCIR656 video output// Notice: must enable this define @ "internal.h" since servo code will reference it.// #define SUPPORT_CCIR656// If define it, it will display better quality @ Digital TFT Panel// But it can't output on TV at the same time.//++CoCo2.76, default enable digital panel for CT956A.// LLY2.20, if define it, VCLK signal is not inverse//#define VCLK_NO_INVERSE// ******************************************// JPEG Decoding Relative Zone// ******************************************#ifdef CT909R_IC_SYSTEM	#define SUPPORT_JPEGDEC_ON_PROC2#endif   // #ifdef CT909R_IC_SYSTEM#if defined(CT909P_IC_SYSTEM) || defined(CT909G_IC_SYSTEM)// CMH2.55, define it to support motion jpeg playback (only valie after CT909P IC)#define SUPPORT_MOTION_JPEG#endif  // #if defined(CT909P_IC_SYSTEM) || defined(CT909G_IC_SYSTEM)#ifdef SUPPORT_TFT//#defien SUPPORT_COLOR_NORMALIZATOPN#endif// ******************************************// AVI Behavior Related Zone// ******************************************// LLY2.20, if define it, video will be output immediately while repeat A-B// Notice: the OSD time maybe incorrect @ position A//#define ENABLE_VIDEO_IMMEDIATELY_WHILE_AVI_REPEAT_AB////////////////////////////////////////////////// SERVO Relative Zone////////////////////////////////////////////////// TCC161, for checking DVD tray-out by outer forces///#define SUPPORT_LOADER_OPEN_BY_EXTRA_FORCE//kevin1.10, slower playback speed but pitch remains#define NORMAL_SLOW_MODE                    1#define LANGUAGE_STUDY_MODE                 2#define NORMAL_SLOW_PLUS_LANGUAGE_STUDY     3#define SLOW_MODE_CONFIG                    NORMAL_SLOW_PLUS_LANGUAGE_STUDY// define it, means CDROM driver can support how fast. Min. should be 2X. #define     SERVO_MAXSPEED     2// #define     SERVO_MAXSPEED     4       // AVID// ******************************// DSA-IF only// ******************************#define DSP_I2S                 0x01#define DSP_SONY                0x04//#define DSP_FORMAT  DSP_I2S#define DSP_FORMAT  DSP_SONY// The value that can distinguish CD-DA or VCD// For general normal (phillips and SONY) loader#define     DATA_TRACK                      0x40///////////////////////////////////////////////////////////// ****** CPU speed's Zone ******// !!!!!! Define the count for different CPU speed///////////////////////////////////////////////////////////// wyc1.07-909,#if (CPU==CPU_SPARC)// wyc2.22-909s, make all mode run same setting.#define SYSTEM_TICK                     (2)#define SLICE_TICK                      (1)#define COUNT_10_SEC                    (10000L/(SYSTEM_TICK*SLICE_TICK))#define COUNT_9_SEC                     (900L/(SYSTEM_TICK*SLICE_TICK))#define COUNT_8_SEC                     (8000L/(SYSTEM_TICK*SLICE_TICK))#define COUNT_7_SEC                     (7000L/(SYSTEM_TICK*SLICE_TICK))#define COUNT_6_SEC                     (6000L/(SYSTEM_TICK*SLICE_TICK))#define COUNT_5_SEC                     (5000L/(SYSTEM_TICK*SLICE_TICK))#define COUNT_4_SEC                     (4000L/(SYSTEM_TICK*SLICE_TICK))#define COUNT_3_SEC                     (3000L/(SYSTEM_TICK*SLICE_TICK))#define COUNT_2_SEC                     (2000L/(SYSTEM_TICK*SLICE_TICK))#define COUNT_1_SEC                     (1000L/(SYSTEM_TICK*SLICE_TICK))#define COUNT_500_MSEC                  (500L/(SYSTEM_TICK*SLICE_TICK))#define COUNT_400_MSEC                  (400L/(SYSTEM_TICK*SLICE_TICK))#define COUNT_300_MSEC                  (300L/(SYSTEM_TICK*SLICE_TICK))#define COUNT_250_MSEC                  (250L/(SYSTEM_TICK*SLICE_TICK))#define COUNT_200_MSEC                  (200L/(SYSTEM_TICK*SLICE_TICK))#define COUNT_150_MSEC                  (150L/(SYSTEM_TICK*SLICE_TICK))#define COUNT_100_MSEC                  (100L/(SYSTEM_TICK*SLICE_TICK))#define COUNT_50_MSEC                   (50L/(SYSTEM_TICK*SLICE_TICK))#define COUNT_25_MSEC                   (25L/(SYSTEM_TICK*SLICE_TICK))#define COUNT_10_MSEC                   (10L/(SYSTEM_TICK*SLICE_TICK))#define COUNT_PER_SEC                   COUNT_1_SEC#define COUNT_HALF_SEC                  COUNT_500_MSEC#endif  //#if (CPU==CPU_X86)#if (CPU==CPU_X86)// Chuan0.62, 1 ms = 1 tick#define COUNT_10_SEC                    182#define COUNT_5_SEC                     91#define COUNT_4_SEC                     73#define COUNT_3_SEC                     58#define COUNT_2_SEC                     37#define COUNT_1_SEC                     19#define COUNT_500_MSEC                  9#define COUNT_400_MSEC                  8#define COUNT_300_MSEC                  6#define COUNT_250_MSEC                  5#define COUNT_200_MSEC                  4#define COUNT_150_MSEC                  3#define COUNT_100_MSEC                  2#define COUNT_50_MSEC                   1#define COUNT_PER_SEC                   COUNT_1_SEC#define COUNT_HALF_SEC                  COUNT_500_MSEC#endif  //#if (CPU==CPU_X86)// ########################################################///////////////////////////////////////////////////////////// ****** Programmer/Developer's Zone ******// !!!!!! Can be modified by Programmer only !!!!!!///////////////////////////////////////////////////////////// DVD_102pMicky, add define for integrate TVMODE#define MPEG_VIDEO_MODE_PAL     0#define MPEG_VIDEO_MODE_NTSC    1// ***** Message and Error Range **************************#define MSG_INPUT_BASE      0x00#define MSG_PANEL_BASE      0x80#define MSG_OSD_BASE        0x00#define ERR_NOERR           TRUE#define ERR_ERROR           FALSE#define ERR_KERNEL          0x10#define ERR_UTL             0x40#define ERR_CDINFO          0x60#define ERR_SERVO           0x80#define ERR_OSD             0xA0#define ERR_PANEL           0xC0#define INPB(dest)                  ((BYTE) dest)#define OUTB(dest, val)             { dest = (BYTE) val ; }///////////////////////////////////////////////////////////// ******************************// ***** Simple types & common helper macros **************// ******************************// OSD&PANEL macro  //jeffsun 20050119#define OSD_OUTPUT_MACRO(mbMessage, mwParam, mbSec)\{\    OSD_PANEL_Output(mbMessage, mwParam, mbSec);\}#define OSD_TRIGGER_MACRO(mbType, mwTime)\{\    OSD_Trigger(mbType, mwTime);\    PANEL_Trigger(mwTime);\}#define OSD_INITIAL_MACRO()\{\    OSD_Initial();\    PANEL_Initial();\}// LLY.172r added, do the neceeary thing while exit applicationextern  void _ExitApp(void);//  #define     TEST//:Enable test functions, for cdinfo.c/cdinfo2.c information only// valid range of successive key//loger the Key10+ display time// 1) when input number is not confirmed after a period of time//    the input number will be cleared// 2) When 10+ is input a period of time, and no final digit is input//    will clear the input value or auto input 0 as final digit(by define)#define COUNT_NUMBER_GAP             COUNT_5_SEC// ** TCH0.99D; define the global show time for OSD display#define MSG_SHOWTIME_NORMAL          1#define MSG_SHOWTIME_LONG            3// define the count for retry reading TOC#define RETRY_READ_TOC  1//***********************************// LLY.051, define it, means F/W will display LOGO while playing MP3 title #define     SUPPORT_MP3_WITH_LOGO// define it, means [ISR] Module will do IFD counting and the mechanism will start All Rcovery Activility// define RELEASE_SETTING will define ERROR_CONCEAL also.//#define     ERROR_CONCEAL// DVD_099cMicky, define it, OSD will display only for IR pressed key#define SHOW_IR_KEY_OSD_ONLY// ** TCH1.72; define it, OSD will display each IR-Key value (Hex).// Even the Key is invalid....//#define   _SHOW_IR_MAP// ******************************// STRICT zone for control spec.// ******************************// define it, means System will follow DVD Video Navigator control.// Default is enable.#define     STRICT_UOP///////////////////////////////////////////////////////////////////* --CoCo2.37p#ifdef  NO_DVD#define SIMP_DVD#endif  // NO_DVD*/// follow are char EXT file supporting selection.#define PARSER_SPTXT_SRT    (0x00000001)#define PARSER_SPTXT_SSA    (0x00000002)#define PARSER_SPTXT_SUB    (0x00000004)#define PARSER_SPTXT_SMI    (0x00000008)#define PARSER_SPTXT_PSB    (0x00000010)#ifdef SUPPORT_CHAR_SUBPICTURE#if ((SELL_DESTINATION == CHINA) || (SELL_DESTINATION == TAIWAN) || (SELL_DESTINATION == HONGKONG) || (SELL_DESTINATION == JAPAN) || (SELL_DESTINATION == KOREA))#define NO_CHAR_SUBPICTURE_MENU#define CHAR_SUBPICTURE_ASCII_ONLY#else//#define NO_CHAR_SUBPICTURE_MENU//#define ISO_8859_15_FONT    // ISO 8859-15//#define ISO_8859_2_FONT     // ISO 8859-2//#define ISO_8859_7_FONT         // ISO 8859-7// Damon2.51, for Hebrew//#define ISO_8859_8_FONT         // ISO 8859-8//#define ISO_8859_9_FONT         // ISO 8859-9//#define CP_1250_FONT            // CP 1250//#define CP_1251_FONT            // CP 1251#endif//#define CUSTOMER_ASCII    // Use the custerm's ascii font instead of Cheertek//#define SUPPORT_UTF8#define SUPPORT_EX_SUBTITLE_FORMAT (PARSER_SPTXT_SRT | PARSER_SPTXT_SSA | PARSER_SPTXT_SUB | PARSER_SPTXT_SMI | PARSER_SPTXT_PSB)// LLY1.20, If define it, it will parsing internal SP and char base SPST together// Otherwise, it will skip char base SPST if exist internal SPST (ie. internal SPST is high priority)//#define SUPPORT_INTERNAL_AND_CHAR_BASE_SUBPICTURE_TOGETHER#endif#ifdef  SUPPORT_POWER_SAVING// LLY1.20, if define it, it will disable PROM when power saving mode.//#define SUPPORT_PROM_DISABLE#endif  // #ifdef SUPPORT_POWER_SAVING

⌨️ 快捷键说明

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