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

📄 nvdvgdef.h

📁 Zoran V966 DVD 解码 Soc芯片的源程序
💻 H
字号:

/****************************************************************************************
 *  Copyright (c) 2002 ZORAN Corporation, All Rights Reserved
 *  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
 *
 *  File: $Workfile: $
 *
 * Description: 
 * ============
 * 
 ****************************************************************************************/

#include "Config.h"		// Global Configuration - do not remove!

#ifndef _NVDVGDEF_H
#define _NVDVGDEF_H

#include "Playcore\Nav_DVD\Header\nvgadefs.h"
#include "Playcore\Nav_DVD\Header\nav_pe.h"

/* Static variables used by Navigator core */
typedef struct tag_dvd_globals
{
	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
	S_RTPBINFO			rtpb;		// Real Time Playback Info
	S_PGC				pgc;		// current PGC information
	S_PGC_SRP			ptab;		// PGC and PG data
	S_NavigationManager	nm; 

	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				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				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;
	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
	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;		// 0: Invalid, 1:Time Search Allowed, 2: Time Search Prohibited
	BYTE				GprmRegionCode;
	BYTE				ucSubStreamIDBack;
	INT					spc_initialized:1;	// Indicate if space was initialized, spc_construct()
	INT					b_request_title_validation:1;
	INT					b_clk_event_enable:1;
	INT					b_in_critical_ptm_isr:1;
	INT					b_first_seek_after_get_data:1;
	INT					b_need_initial_access:1;
	INT					b_in_vobu_still:1;
	INT					b_stop_on_error:1;
	INT             	bFullStop:1;      
	INT					bncSetSPSTN :1;
#ifdef LANGUAGE_LEARNING_SUPPORT
	INT					bIsInGrammarPGC:1;
	INT					bIsInLanguageLearningSubPic:1;
	INT					bIsDSIRamCmdAvaiable:1;
#endif
	INT					bRequestRecordErrCode:1;
	INT					bFileSystemReadDataError:1;
	INT					bFirstTimeFlushSubBuf:1;
	INT            		bCPPM_IsEncrypted:1;
	INT					waterMarkMute:1;
	INT					bIsUserGotoOperation:1;
	INT					bAtsDmUpdated:1;
	INT					bAudioChange:1;
	INT					bSubPChange:1;
	UINT				bDiscResume:1;//AngieHe_1109_2005: Restore the Audio/Subtitle setting when disc resume.
	PTM_EVENT_RECORD	ptm_event[MAX_PTM_EVENT];	
	BYTE				i_ptm_event_pending_cnt;
	BYTE				session_id;		// session ID to be appended to Nav Packs identifier
} S_DVD_GLOBALS;

extern S_DVD_GLOBALS* g_pDVDNav;

#define  DVD_TYPE_NO_DISC		0x00
#define  DVD_TYPE_VMG			0x01
#define  DVD_TYPE_DVD_ROM		0x08

#ifdef DVD_VR_SUPPORT
#define  DVD_TYPE_VR_VMG		0x10
#endif

#define DVD_TYPE_UNSUPPORT		0x20
#define DVD_TYPE_BAD_DISC		0x40

#define  STOP_PENDING					0x01
#define  SKIP_NOTIFICATION_PENDING      0x04

#ifdef D_ENABLE_FIRST_IFRAME_NOTIFICATION
#define  FIRST_IFRAME_NOTIFY_PENDING	0x08
#endif // D_ENABLE_FIRST_IFRAME_NOTIFICATION

#endif

⌨️ 快捷键说明

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