CoreDefs.h
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:9k
源码类别:

DVD

开发平台:

Others

  1. /***********************************************************************/
  2. /* File:                                                               */
  3. /* =====                                                               */
  4. /* Descripton:                                                         */
  5. /* ===========                                                         */
  6. /*                                                                     */
  7. /* Log:                                                                */
  8. /* =====                                                                 */
  9. /*
  10.  $Name: $                                                             
  11.  $Header: /I76/I76_Common/I76_Reference/Playcore/Coremain/CoreDefs.h 14    04-04-01 14:44 Angieh $                                                           
  12.  $Log: /I76/I76_Common/I76_Reference/Playcore/Coremain/CoreDefs.h $                                                              
  13.  * 
  14.  * 14    04-04-01 14:44 Angieh
  15.  * Collect three COP events to one.
  16.  * 
  17.  * 13    04-03-31 22:06 Angieh
  18.  * Can't set to 32 bit for COP_**.Change later.
  19.  * 
  20.  * 12    04-03-31 20:14 Angieh
  21.  * Add some uop for support Index and Page search.
  22.  * 
  23.  * 11    04-03-09 23:39 Wesleyj
  24.  * add PANEL_SKIP_FAST_COMBINE for font panel key scan use 
  25.  * code clean
  26.  * 
  27.  * 10    03-05-15 9:45 Fwang
  28.  * Add Page Up/Down for DVD Audio
  29.  * 
  30.  * 9     03-02-19 17:28 Victorwu
  31.  * 
  32.  * 8     03-02-18 14:48 Victorwu
  33.  * Add enum for clips play mode
  34.  * 
  35.  * 6     5/21/02 12:36p Leslie
  36.  * Support 5 DVD Bookmarks
  37.  * 
  38.  * 5     23/04/02 9:28 Nirm
  39.  * - Added dependency in "Config.h".
  40.  * 
  41.  * 4     3/27/02 13:18 Ettim
  42.  * Replaced D_PICTURE_CD_ENABLED with CLIPS_JPEG_SUPPORT
  43.  * 
  44.  * 3     7/03/02 17:45 Nirm
  45.  * Removed EMERGENCY_EJECT_ENABLED -> replaced by the Exceptioning
  46.  * mechanism.
  47.  * 
  48.  * 2     8/01/02 16:24 Nirm
  49.  * Corrected Include-Paths.
  50.  Revision 1.19  2001/06/26 00:31:12Z  stephaneh                                                              
  51.  Added bEmergencyEject boolean for emergency eject procedure                                                              
  52.  Revision 1.18  2001/06/15 00:07:06  fwang                                                              
  53.  Add new cop mask.                                                              
  54.  Revision 1.17  2001/01/04 02:22:25  tia                                                              
  55.  Add COP_TITLE_PLAY.                                                              
  56.  Revision 1.16  2000/12/02 00:33:50  tia                                                              
  57.  Revision 1.15  2000/11/29 03:41:19  tia                                                              
  58.  Add Bookmarking info structure                                                              
  59.  Revision 1.14  2000/11/28 05:51:52  tia                                                              
  60.  Add screen saver boolean flag in core state variables.                                                              
  61.  Revision 1.13  2000/11/10 05:32:33  tia                                                              
  62.  Define Scan reverse cop_mask. Remove Full Stop cop mask.                                                              
  63.  Revision 1.12  2000/11/10 02:46:55  tia                                                              
  64.  Revision 1.11  2000/11/03 02:36:59  charlie                                                              
  65.  Revision 1.10  2000/11/03 02:08:59  charlie                                                              
  66.  Added SCREEN_SAVER_START, SCREEN_SAVER_STOP                                                              
  67.  Revision 1.9  2000/11/01 23:41:44  charlie                                                              
  68.  Added mLastError to CORE_STATE                                                              
  69.  Revision 1.8  2000/10/19 00:09:14  tia                                                              
  70.  Revision 1.7  2000/09/21 02:13:22  tia                                                              
  71.  Revision 1.6  2000/08/28 16:59:09  stephaneh                                                              
  72.  Revision 1.5  2000/08/24 23:19:34  stephaneh                                                              
  73.  Updated for zoom operation                                                              
  74.  Revision 1.4  2000/05/24 03:20:59  tia                                                              
  75.  Revision 1.3  2000/05/11 22:35:58  tia                                                              
  76.  Revision 1.2  2000/05/05 02:36:07  tia                                                              
  77.  Revision 1.1  2000/04/18 18:51:43  tia                                                              
  78.  Initial revision                                                              
  79.   */
  80. /***********************************************************************/
  81. #include "Config.h" // Global Configuration - do not remove!
  82. #ifndef _COREDEFS_H
  83. #define _COREDEFS_H
  84. #include "Includesysdefs.h"
  85. typedef enum
  86. {
  87. MST_POWER_OFF =0,
  88. MST_POWER_DOWN =1,
  89. MST_NO_DISC =2,
  90. MST_UNKNOWN_DISC =3,
  91. MST_TRAY_OPENING =4,
  92. MST_TRAY_CLOSING    =5,
  93. MST_TRAY_OPEN =6,
  94. MST_LOADING =7,
  95. MST_DISC_READY =8
  96. } MAIN_STATE;
  97. typedef enum
  98. {
  99. PST_STOP,
  100. PST_PLAY,
  101. PST_PAUSE,
  102. PST_SCAN,
  103. PST_SLOW,
  104. PST_REVERSE,
  105. PST_STILL,
  106. PST_WAIT_UI
  107. } PLAY_STATE;
  108. typedef enum {
  109. NO_ZOOM = 0, /* No zoom (by 1.0) */
  110. ZOOM_IN_1, /* Zoom by 1.33 */
  111. ZOOM_IN_2, /* Zoom by 1.5 */
  112. ZOOM_IN_3, /* Zoom by 2.0 */
  113. #ifdef D_FOUR_LEVEL_ZOOM_IN
  114. ZOOM_IN_4, /* Zoom by 3.0 */
  115. #ifdef D_FIVE_LEVEL_ZOOM_IN
  116. ZOOM_IN_5,
  117. #endif
  118. #endif
  119. ZOOM_IN_MAX, 
  120. #ifdef CLIPS_JPEG_SUPPORT
  121. ZOOM_OUT_1 = ZOOM_IN_MAX, /* Zoom by 0.5 */
  122. ZOOM_OUT_2, /* Zoom by 0.75 */
  123. #endif
  124. ZOOM_MAX,
  125. } ZOOM_FACTOR;
  126. typedef enum 
  127. {
  128. PANNING_STEP_UP = 0,
  129. PANNING_STEP_DOWN = 1,
  130. PANNING_STEP_LEFT = 2,
  131. PANNING_STEP_RIGHT = 3,
  132. PANNING_JUMP_UP = 4,
  133. PANNING_JUMP_DOWN = 5,
  134. PANNING_JUMP_LEFT = 6,
  135. PANNING_JUMP_RIGHT = 7
  136. } PANNING_MOVING_TYPE;
  137. // Values for IE_CORE_SCREEN_SAVER core event parameter
  138. #define SCREEN_SAVER_START ((void *) 1L)
  139. #define SCREEN_SAVER_STOP ((void *) 0L)
  140. typedef struct
  141. {
  142. MAIN_STATE mstate;
  143. PLAY_STATE pstate; /* only valid when mstate = MAIN_STATE_DISC_READY */
  144. unsigned long cop_mask;
  145. ZOOM_FACTOR mZoomLevel; /* Zoom Level : If != 0 mean currently zooming */
  146. unsigned long mLastError; /* Last error received by core_report_error */
  147. #ifdef SUPPORT_FIVE_DVD_BOOKMARKS
  148. WORD mBookmarkTime[5];
  149. #else
  150. WORD mBookmarkTime[3];
  151. #endif//SUPPORT_FIVE_DVD_BOOKMARKS
  152. BYTE mSlowReverseSpeed;
  153. INT     bScreenSaverOn:1;
  154. #ifdef CLIPS_JPEG_SUPPORT
  155. INT bKodaKPictureCD:1;
  156. #endif
  157. #ifdef EMERGENCY_EJECT_ENABLED
  158. INT bEmergencyEject:1;
  159. #endif
  160. BYTE password_state;
  161. } CORE_STATE;
  162. #ifdef PANEL_SKIP_FAST_COMBINE
  163. typedef struct 
  164. {
  165. UINT bKeyPressedLongTime:1;
  166. UINT mKeyPressed:3;
  167. UINT mKeyPad:12;
  168. } KEY_STATE;
  169. #endif
  170. #define COP_RESTART 1L /* restart disc playback in currently selected play mode */
  171. #define COP_SEAMLESS_MODE_CHANGE (1L<<1) /* change play mode but current play is kept unchange */
  172. #define COP_STOP (1L<<2) /* Stop current play, save play context for resume */
  173. #define COP_PLAY (1L<<3) /* Resume play from STOP or PAUSE */
  174. #define COP_SCAN_BACKWARD (1L<<4) /* Scan backward */
  175. #define COP_PAUSE (1L<<5) /* Pause playback, resume with only PLAY COP */
  176. #define COP_SCAN (1L<<6) /* Scan forward or backward, parameter specifies direction and speed */
  177. #define COP_SLOW (1L<<7) /* Slow motion forward or backward, parameter specifies direction and speed */
  178. #define COP_STEP (1L<<8) /* Step frame by frame fw or bw, parameter specifies direction */
  179. #define COP_NEXT_CHAPTER (1L<<9) /* Skip to next chapter */
  180. #define COP_PREVIOUS_CHAPTER (1L<<10) /* Skip to previous chapter */
  181. #define COP_EJECT (1L<<11) /* Open tray */
  182. #define COP_CLOSE (1L<<12) /* Close tray */
  183. #define COP_REVERSE_PLAY (1L<<13) /* Reverse play */
  184. #define COP_ZOOM (1L<<14) /* Zoom operation, parameter specifies zoom factor */
  185. #define COP_PANNING (1L<<15) /* Pan Zoom window */
  186. #define COP_POWER_OFF (1L<<16) /* Power off */
  187. #define COP_TITLE_MENU (1L<<17) /* Title menu DVD */
  188. #define COP_ROOT_MENU (1L<<18) /* Root menu DVD */
  189. #define COP_AUDIO_CHANGE (1L<<19) /* Audio stream change DVD */
  190. #define COP_SUBPIC_CHANGE (1L<<20) /* Subpicture stream change DVD */
  191. #define COP_ANGLE_CHANGE (1L<<21) /* Angle change DVD */
  192. #define COP_TIME_PLAY (1L<<22) /* Time play */
  193. #define COP_ENTRY_PLAY (1L<<23) /* Title or PTT play */
  194. #define COP_RETURN (1L<<24) /* VCD: RETURN, DVD: GOUP_PGC */
  195. #define COP_TITLE_PLAY (1L<<25) /* TITLE play in DVD */ /* ZORAN TC0103 */
  196. #define COP_ABREPEAT          (1L<<26)    /*AB repeat */   //FW0614
  197. #define COP_SETUP                               (1L <<27)       /* setup masked.*/  // kz 07082002.
  198. #define COP_DVDA_PAGE_SEARCH (1L<<28) /*Page Search Up and Down*/
  199. #define COP_DVDA_INDEX_SEARCH (1L<<29) /* Index up or down*/
  200. /*
  201. #define POWER_SEQUENCE_IN_OFF_STATE 0xAA
  202. #define POWER_SEQUENCE_IN_ON_STATE 0x55
  203. #define POWER_SEQUENCE_OFF_REQUESTED 0xBB
  204. #define POWER_SEQUENCE_ON_REQUESTED 0x66
  205. */
  206. #define EMPTY_BOOKMARK 0xFFFF
  207. #define DWORD_MAX          0xFFFFFFFF
  208. #endif /* _COREDEFS_H */