CoreDefs.h
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:9k
- /***********************************************************************/
- /* File: */
- /* ===== */
- /* Descripton: */
- /* =========== */
- /* */
- /* Log: */
- /* ===== */
- /*
- $Name: $
- $Header: /I76/I76_Common/I76_Reference/Playcore/Coremain/CoreDefs.h 14 04-04-01 14:44 Angieh $
- $Log: /I76/I76_Common/I76_Reference/Playcore/Coremain/CoreDefs.h $
- *
- * 14 04-04-01 14:44 Angieh
- * Collect three COP events to one.
- *
- * 13 04-03-31 22:06 Angieh
- * Can't set to 32 bit for COP_**.Change later.
- *
- * 12 04-03-31 20:14 Angieh
- * Add some uop for support Index and Page search.
- *
- * 11 04-03-09 23:39 Wesleyj
- * add PANEL_SKIP_FAST_COMBINE for font panel key scan use
- * code clean
- *
- * 10 03-05-15 9:45 Fwang
- * Add Page Up/Down for DVD Audio
- *
- * 9 03-02-19 17:28 Victorwu
- *
- * 8 03-02-18 14:48 Victorwu
- * Add enum for clips play mode
- *
- * 6 5/21/02 12:36p Leslie
- * Support 5 DVD Bookmarks
- *
- * 5 23/04/02 9:28 Nirm
- * - Added dependency in "Config.h".
- *
- * 4 3/27/02 13:18 Ettim
- * Replaced D_PICTURE_CD_ENABLED with CLIPS_JPEG_SUPPORT
- *
- * 3 7/03/02 17:45 Nirm
- * Removed EMERGENCY_EJECT_ENABLED -> replaced by the Exceptioning
- * mechanism.
- *
- * 2 8/01/02 16:24 Nirm
- * Corrected Include-Paths.
- Revision 1.19 2001/06/26 00:31:12Z stephaneh
- Added bEmergencyEject boolean for emergency eject procedure
- Revision 1.18 2001/06/15 00:07:06 fwang
- Add new cop mask.
- Revision 1.17 2001/01/04 02:22:25 tia
- Add COP_TITLE_PLAY.
- Revision 1.16 2000/12/02 00:33:50 tia
- Revision 1.15 2000/11/29 03:41:19 tia
- Add Bookmarking info structure
- Revision 1.14 2000/11/28 05:51:52 tia
- Add screen saver boolean flag in core state variables.
- Revision 1.13 2000/11/10 05:32:33 tia
- Define Scan reverse cop_mask. Remove Full Stop cop mask.
- Revision 1.12 2000/11/10 02:46:55 tia
- Revision 1.11 2000/11/03 02:36:59 charlie
- Revision 1.10 2000/11/03 02:08:59 charlie
- Added SCREEN_SAVER_START, SCREEN_SAVER_STOP
- Revision 1.9 2000/11/01 23:41:44 charlie
- Added mLastError to CORE_STATE
- Revision 1.8 2000/10/19 00:09:14 tia
- Revision 1.7 2000/09/21 02:13:22 tia
- Revision 1.6 2000/08/28 16:59:09 stephaneh
- Revision 1.5 2000/08/24 23:19:34 stephaneh
- Updated for zoom operation
- Revision 1.4 2000/05/24 03:20:59 tia
- Revision 1.3 2000/05/11 22:35:58 tia
- Revision 1.2 2000/05/05 02:36:07 tia
- Revision 1.1 2000/04/18 18:51:43 tia
- Initial revision
- */
- /***********************************************************************/
- #include "Config.h" // Global Configuration - do not remove!
- #ifndef _COREDEFS_H
- #define _COREDEFS_H
- #include "Includesysdefs.h"
- typedef enum
- {
- MST_POWER_OFF =0,
- MST_POWER_DOWN =1,
- MST_NO_DISC =2,
- MST_UNKNOWN_DISC =3,
- MST_TRAY_OPENING =4,
- MST_TRAY_CLOSING =5,
- MST_TRAY_OPEN =6,
- MST_LOADING =7,
- MST_DISC_READY =8
- } MAIN_STATE;
- typedef enum
- {
- PST_STOP,
- PST_PLAY,
- PST_PAUSE,
- PST_SCAN,
- PST_SLOW,
- PST_REVERSE,
- PST_STILL,
- PST_WAIT_UI
- } PLAY_STATE;
- typedef enum {
-
- NO_ZOOM = 0, /* No zoom (by 1.0) */
- ZOOM_IN_1, /* Zoom by 1.33 */
- ZOOM_IN_2, /* Zoom by 1.5 */
- ZOOM_IN_3, /* Zoom by 2.0 */
- #ifdef D_FOUR_LEVEL_ZOOM_IN
- ZOOM_IN_4, /* Zoom by 3.0 */
- #ifdef D_FIVE_LEVEL_ZOOM_IN
- ZOOM_IN_5,
- #endif
- #endif
- ZOOM_IN_MAX,
- #ifdef CLIPS_JPEG_SUPPORT
- ZOOM_OUT_1 = ZOOM_IN_MAX, /* Zoom by 0.5 */
- ZOOM_OUT_2, /* Zoom by 0.75 */
- #endif
- ZOOM_MAX,
-
- } ZOOM_FACTOR;
- typedef enum
- {
- PANNING_STEP_UP = 0,
- PANNING_STEP_DOWN = 1,
- PANNING_STEP_LEFT = 2,
- PANNING_STEP_RIGHT = 3,
- PANNING_JUMP_UP = 4,
- PANNING_JUMP_DOWN = 5,
- PANNING_JUMP_LEFT = 6,
- PANNING_JUMP_RIGHT = 7
- } PANNING_MOVING_TYPE;
- // Values for IE_CORE_SCREEN_SAVER core event parameter
- #define SCREEN_SAVER_START ((void *) 1L)
- #define SCREEN_SAVER_STOP ((void *) 0L)
- typedef struct
- {
- MAIN_STATE mstate;
- PLAY_STATE pstate; /* only valid when mstate = MAIN_STATE_DISC_READY */
- unsigned long cop_mask;
- ZOOM_FACTOR mZoomLevel; /* Zoom Level : If != 0 mean currently zooming */
- unsigned long mLastError; /* Last error received by core_report_error */
- #ifdef SUPPORT_FIVE_DVD_BOOKMARKS
- WORD mBookmarkTime[5];
- #else
- WORD mBookmarkTime[3];
- #endif//SUPPORT_FIVE_DVD_BOOKMARKS
- BYTE mSlowReverseSpeed;
- INT bScreenSaverOn:1;
- #ifdef CLIPS_JPEG_SUPPORT
- INT bKodaKPictureCD:1;
- #endif
- #ifdef EMERGENCY_EJECT_ENABLED
- INT bEmergencyEject:1;
- #endif
- BYTE password_state;
- } CORE_STATE;
- #ifdef PANEL_SKIP_FAST_COMBINE
- typedef struct
- {
- UINT bKeyPressedLongTime:1;
- UINT mKeyPressed:3;
- UINT mKeyPad:12;
- } KEY_STATE;
- #endif
- #define COP_RESTART 1L /* restart disc playback in currently selected play mode */
- #define COP_SEAMLESS_MODE_CHANGE (1L<<1) /* change play mode but current play is kept unchange */
- #define COP_STOP (1L<<2) /* Stop current play, save play context for resume */
- #define COP_PLAY (1L<<3) /* Resume play from STOP or PAUSE */
- #define COP_SCAN_BACKWARD (1L<<4) /* Scan backward */
- #define COP_PAUSE (1L<<5) /* Pause playback, resume with only PLAY COP */
- #define COP_SCAN (1L<<6) /* Scan forward or backward, parameter specifies direction and speed */
- #define COP_SLOW (1L<<7) /* Slow motion forward or backward, parameter specifies direction and speed */
- #define COP_STEP (1L<<8) /* Step frame by frame fw or bw, parameter specifies direction */
- #define COP_NEXT_CHAPTER (1L<<9) /* Skip to next chapter */
- #define COP_PREVIOUS_CHAPTER (1L<<10) /* Skip to previous chapter */
- #define COP_EJECT (1L<<11) /* Open tray */
- #define COP_CLOSE (1L<<12) /* Close tray */
- #define COP_REVERSE_PLAY (1L<<13) /* Reverse play */
- #define COP_ZOOM (1L<<14) /* Zoom operation, parameter specifies zoom factor */
- #define COP_PANNING (1L<<15) /* Pan Zoom window */
- #define COP_POWER_OFF (1L<<16) /* Power off */
- #define COP_TITLE_MENU (1L<<17) /* Title menu DVD */
- #define COP_ROOT_MENU (1L<<18) /* Root menu DVD */
- #define COP_AUDIO_CHANGE (1L<<19) /* Audio stream change DVD */
- #define COP_SUBPIC_CHANGE (1L<<20) /* Subpicture stream change DVD */
- #define COP_ANGLE_CHANGE (1L<<21) /* Angle change DVD */
- #define COP_TIME_PLAY (1L<<22) /* Time play */
- #define COP_ENTRY_PLAY (1L<<23) /* Title or PTT play */
- #define COP_RETURN (1L<<24) /* VCD: RETURN, DVD: GOUP_PGC */
- #define COP_TITLE_PLAY (1L<<25) /* TITLE play in DVD */ /* ZORAN TC0103 */
- #define COP_ABREPEAT (1L<<26) /*AB repeat */ //FW0614
- #define COP_SETUP (1L <<27) /* setup masked.*/ // kz 07082002.
- #define COP_DVDA_PAGE_SEARCH (1L<<28) /*Page Search Up and Down*/
- #define COP_DVDA_INDEX_SEARCH (1L<<29) /* Index up or down*/
- /*
- #define POWER_SEQUENCE_IN_OFF_STATE 0xAA
- #define POWER_SEQUENCE_IN_ON_STATE 0x55
- #define POWER_SEQUENCE_OFF_REQUESTED 0xBB
- #define POWER_SEQUENCE_ON_REQUESTED 0x66
- */
- #define EMPTY_BOOKMARK 0xFFFF
- #define DWORD_MAX 0xFFFFFFFF
- #endif /* _COREDEFS_H */