- /***********************************************************************/
- /* File: */
- /* ===== */
- /* Descripton: */
- /* =========== */
- /* */
- /* Log: */
- /* ===== */
- /*
- $Name: $
- $Header: /I76/I76_Common/I76_Reference/Playcore/Nav_DVD/Header/NVDVGDEF.H 17 2/20/04 6:17p Glenl $
- $Log: /I76/I76_Common/I76_Reference/Playcore/Nav_DVD/Header/NVDVGDEF.H $
- *
- * 17 2/20/04 6:17p Glenl
- * Merged S1 code
- *
- * 16 04-02-16 20:16 Chaol
- * add karaoke
- *
- * 15 12/30/03 11:28a Leonh
- * Angieh:Change for DVD AUDIO navigator header.
- *
- * 13 11/28/03 3:39a Leonh
- * Anigeh:Put the Downmix Table updated flag in the gns.dvd.
- *
- * 12 11/12/03 12:55p Leonh
- * correct the code
- *
- * 11 11/12/03 12:48p Leonh
- * clean up the code
- *
- * 10 11/11/03 11:34a Leonh
- * Angieh:Add DVD Audio compile switch.
- *
- * 9 11/07/03 4:55a Leonh
- * clean up the code
- *
- * 8 10/09/03 9:02a Leslie
- * LeonH: make I76 DVDA project compile through
- *
- * 8 9/16/03 3:17p Leonh
- * Merge the latest change from ref
- *
- * 7 8/21/03 10:32a Leonh
- * Clean up some comments
- *
- * 6 8/20/03 2:56p Leonh
- * Merge dvd audio code with the latest nav_dvd code with reference
- *
- *
- * 1 03-04-28 11:15 Fwang
- * Initial for DVDA
- *
- * 13 03-04-28 17:13 Leslie
- * Add bIsUserGotoOperation
- *
- * 12 03-04-22 22:36 Leslie
- *
- * 7 9/05/02 21:47 Nirm
- * - Added pre-caching of CGMS information, in order to minimize
- * File-System accesses when possible.
- *
- * 6 9/05/02 16:14 Nirm
- * - Alternative implementation to CGMS support.
- *
- * 5 4/30/02 17:11 Rinata
- * CGMS/WSS support
- *
- * 4 4/23/02 10:16a Leslie
- * Add new S_DVD_GLOBALS memeber ucTimesearch
- *
- * 3 23/04/02 9:34 Nirm
- * - Added dependency in "Config.h".
- *
- * 2 2/22/02 11:25p Dingming
- * define pending type instead of pause/step_pending
- *
- * 1 2/17/02 12:12 Rinata
- *
- * 1 2/17/02 11:38 Rinata
- *
- * 2 8/01/02 16:24 Nirm
- * Corrected Include-Paths.
- Revision 1.25 2001/09/21 00:47:17Z stephaneh
- Merged code from Wang Fan for DVD Nav bugs for ZS5xx
- Revision 1.24 2001/05/10 04:52:54Z bhupeshv
- Fixed S2 bug A1 for Total title time(Elapsed time)
- Revision 1.23 2001/04/12 23:48:12 bhupeshv
- Added ome field "TitleTime in S_DVD_GLOBLES
- Revision 1.22 2001/01/09 20:40:08 tia
- Add VALID stream count and num variables.
- Revision 1.21 2000/12/30 02:25:40 tia
- add session_id
- Revision 1.20 2000/12/16 02:47:00 tia
- Add global variables to store language code for Audio and subtitle.
- Revision 1.19 2000/12/11 01:09:00 tia
- Revision 1.18 2000/12/11 01:05:23 tia
- Revision 1.17 2000/12/02 00:32:59 tia
- Revision 1.16 2000/10/18 21:29:15 eric
- change the chapter display method
- Revision 1.15 2000/09/22 18:45:25Z tia
- Revision 1.14 2000/09/05 20:56:08 tia
- Revision 1.13 2000/07/27 02:56:56 tia
- Revision 1.12 2000/07/14 05:55:54 tia
- Revision 1.11 2000/07/10 17:56:12 tia
- Revision 1.10 2000/06/14 02:46:23 tia
- Revision 1.9 2000/05/24 23:32:21 tia
- Revision 1.8 2000/05/20 03:59:01 tia
- Revision 1.7 2000/05/19 03:48:25 tia
- Revision 1.6 2000/05/17 02:41:37 tia
- Revision 1.5 2000/05/11 22:36:02 tia
- Revision 1.4 2000/05/05 02:36:16 tia
- Revision 1.3 2000/04/29 02:35:59 tia
- Revision 1.2 2000/04/27 02:47:17 tia
- Revision 1.1 2000/04/18 18:51:14 tia
- Initial revision
- */
- /***********************************************************************/
- #include "Config.h" // Global Configuration - do not remove!
- #ifndef _NVDVGDEF_H
- #define _NVDVGDEF_H
- #include "PlaycoreNav_DVDHeadernvgadefs.h"
- #include "PlaycoreNav_DVDHeadernav_pe.h"
- #include "PlaycoreNav_DVDHeaderdvda_amg.h"
- #include "PlaycoreNav_DVDHeaderdvda_asv.h"
- typedef struct tag_dvd_globals{
- /* Static variables used by Navigator core */
- S_SPRM sprm;
- S_GPRM gprm;
- S_DVD_NAVIGATION_C dvd;
- S_DSI dsi; /* LATEST DSI packet received */
- S_PCI pci; /* Current active PCI packet */
- S_VMG vmg; /* Current VMG, only one per disc */
- S_VTS vts; /* Current VTS, several per disc */
- #ifdef DVD_AUDIO_SUPPORT
- S_AMG amg; /* Current AMG */
- S_ATS ats;
- S_ASV asv;
- #endif
- S_RTPBINFO rtpb; /* Real Time Playback Info */
- S_PGC pgc; /* current PGC information */
- S_PGC_SRP ptab; /* PGC and PG data */
- S_NavigationManager nm;
- #ifdef NO_SCPAD
- S_NAV_PK_INFO_FIFO npfifo; /* FIFO for passing DSI info onto PCI because of delayed processing of PCI */
- #endif
- /* Static variables used by Navigator event handler and PE */
- PTM_EVENT_RECORD ptm_event[MAX_PTM_EVENT];
- UINT32 hCGMSInfoTable; // A Handle to the CGMS-Info Table on the Scratch-Pad
- UINT8 uCGMSTableOccupancy; // Holds the number of valid Entries in the Table
- UINT8 uCGMSPreCachedStart; // Indicates which VTS start the precached.
- UINT8 uCGMSPreCachedEnd; // Indicates which VTS end the precached.
- BYTE ucCurrCGMS_Mode; // Holds the current CGMS Mode
- DWORD dw_ifobase;
- DWORD dw_vmg_ifobase;
- DWORD dw_amg_ifobase;
- DWORD dw_sap_ifobase;
- DWORD tt_gr_time; //Total group time
- DWORD tt_gr_elapsed_time; // Elapsed group time
- LBN cur_vobs_base; /* Current vobs base depending on domain selection */
- PASSWORD_STATUS password_state;
- DWORD dwBookMarkATime;
- WORD program_mode_index;
- WORD pgc_playback_time; /* in seconds */
- WORD audio_lcd; /* audio language code */
- WORD subpic_lcd; /* subtitle language code */
- #ifdef COMPUTE_TITLE_TIME
- WORD TitleTime; //Total title time
- WORD TitleElapsedTime; //Title Elapsed Time
- #endif //COMPUTE_TITLE_TIME
- WORD wNavTimer; // LX: Navigation timer, minimal unt is 200ms
- CmdOpt dwNavErrorCode;
- BYTE session_id; /* ZORAN TC1229 : Add session ID to be appended to Nav Packs identifier */
- BYTE i_ptm_event_pending_cnt;
- BYTE i_dvd_type; /* indicate what possible type DVD this is */
- BYTE i_dvd_selected_type;
- BYTE audio_stream_count; /* indicate how many audio streams are currently available */
- BYTE subpic_stream_count; /* indicate how may sub picture streams are available */
- BYTE button_count; /* number of active HLI buttons */
- BYTE audio_stream_num;
- BYTE subpic_stream_num;
- BYTE audio_coding_mode;
- /* <<< ZORAN TC0108 : valid stream count with valid stream num */
- BYTE audio_valid_count;
- BYTE subpic_valid_count;
- BYTE audio_valid_num; /* start from 1 to audio_valid_count */
- BYTE subpic_valid_num; /* start from 1 to subpic_valid_count */
- /* ZORAN TC0108 >>> */
- BYTE audio_type;
- BYTE audio_app;
- BYTE audio_quant;
- BYTE audio_GR1_quant;
- BYTE audio_GR2_quant;
- BYTE audio_fs;
- BYTE audio_GR1_fs;
- BYTE audio_GR2_fs;
- BYTE audio_ch;
- BYTE audio_channelAssignment;
- BYTE audio_appi;
- BYTE pttn;
- BYTE pending_type;
- BYTE ucTimeSearch; //LX042202: 0: Invalid, 1:Time Search Allowed, 2: Time Search Prohibited
- BYTE GprmRegionCode;
- BYTE ucSubStreamIDBack;
- UINT spc_initialized:1; /* Indicate if space was initialized, spc_construct() */
- UINT b_request_title_validation:1;
- UINT b_clk_event_enable:1;
- UINT b_in_critical_ptm_isr:1;
- UINT b_first_seek_after_get_data:1;
- UINT b_need_initial_access:1;
- UINT b_in_vobu_still:1;
- UINT b_stop_on_error:1;
- UINT bFullStop:1;
- #ifdef EXINO2
- UINT bSceneAgainInRepeatSingle:1;
- #endif // EXINO2
- UINT bncSetSPSTN :1;
- #ifdef LANGUAGE_LEARNING_SUPPORT
- UINT bIsInGrammarPGC:1;
- UINT bIsInLanguageLearningSubPic:1;
- UINT bIsDSIRamCmdAvaiable:1;
- #endif
- UINT bRequestRecordErrCode:1;
- UINT bFileSystemReadDataError:1;
- UINT bFirstTimeFlushSubBuf;
- UINT bGotoBookmarkDone:1;
- UINT bCPPM_IsEncrypted:1;
- UINT waterMarkMute;
- UINT bIsUserGotoOperation:1;
- UINT bAtsDmUpdated:1;
- UINT bIsIPReverseWatchDog:1;//Leslie_0323_2005: Add Error handling for DVD IP Reverse
- } S_DVD_GLOBALS;
- #define DVD_TYPE_NO_DISC 0x00
- #define DVD_TYPE_VMG 0x01
- #define DVD_TYPE_AMG 0x02
- #define DVD_TYPE_SAP 0x04
- #define DVD_TYPE_DVD_ROM 0x08
- #ifdef DVD_VR_SUPPORT
- #define DVD_TYPE_VR_VMG 0x10
- #endif //DVD_VR_SUPPORT
- #define STOP_PENDING 0x01
- #define PAUSE_PENDING 0x02
- #define SKIP_NOTIFICATION_PENDING 0x04
- #ifdef D_ENABLE_FIRST_IFRAME_NOTIFICATION
- #define FIRST_IFRAME_NOTIFY_PENDING 0x08
- #endif // D_ENABLE_FIRST_IFRAME_NOTIFICATION
- #endif