NAV_PE.H
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:7k
- /***********************************************************************/
- /* File: */
- /* ===== */
- /* Descripton: */
- /* =========== */
- /* */
- /* Log: */
- /* ===== */
- /*
- $Name: V_1_11 V_1_10 V_1_08 V_1_06 V_1_05 V_1_04 V_1_03 V_1_02 V_1_01 V_1_00 B_0_90.1 B_0_90 B_0_87 B_0_86 B_0_84 B_0_82 B_0_81 B_0_8 $
- $Header: /I76/I76_Common/I76_Reference/Playcore/Nav_DVD/Header/NAV_PE.H 5 04-03-04 19:48 Angieh $
- $Log: /I76/I76_Common/I76_Reference/Playcore/Nav_DVD/Header/NAV_PE.H $
- *
- * 5 04-03-04 19:48 Angieh
- * Add PE_GetCurrentStartEndSector() prototype.
- *
- * 4 2/20/04 6:16p Glenl
- * Merged S1 code
- *
- * 3 12/30/03 11:28a Leonh
- * Angieh:Change for DVD AUDIO navigator header.
- *
- * 14 11/27/03 5:29a Leonh
- * Angieh:Add the function calculate Bit-Rate.
- *
- * 13 11/20/03 1:21p Leonh
- * Angieh:New API for setting DVP Playback Range
- *
- * 12 11/20/03 1:08p Leonh
- * Angieh:New API for setting DVP Playback Range, instead of calling the
- * low level directrly from Navigator
- *
- * 11 11/12/03 12:46p Leonh
- * support two way for current secotr
- *
- * 10 11/06/03 8:34a Leslie
- * clean up the code
- *
- * 9 10/28/03 9:21a Leslie
- * adjust dvda search mode
- *
- * 8 10/28/03 8:55a Leslie
- * add the prototype of PE_GetDvdaBitrate
- *
- * 7 10/16/03 10:51a Leslie
- * change the way to get the nav pointer after cache
- *
- * 6 10/14/03 11:20a Leslie
- * add dvd audio support
- *
- * 5 10/09/03 9:02a Leslie
- * LeonH: make I76 DVDA project compile through
- *
- * 4 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
- *
- * 5 9/05/02 15:01 Nirm
- * - Added definition of CGMS_FILE_ENTRY.
- *
- * 4 5/01/02 14:35 Rinata
- * get category code and copy bit
- *
- * 3 4/30/02 17:11 Rinata
- * CGMS/WSS support
- *
- * 2 23/04/02 9:34 Nirm
- * - Added dependency in "Config.h".
- *
- * 1 2/17/02 12:12 Rinata
- *
- * 1 2/17/02 11:38 Rinata
- *
- * 2 8/01/02 16:25 Nirm
- * Corrected Include-Paths.
- Revision 1.14 2000/11/09 06:27:11Z tia
- Fixe HLI and Parental problem.
- Revision 1.13 2000/06/14 02:46:20 tia
- Revision 1.12 2000/06/06 20:59:43 tia
- Revision 1.11 2000/06/02 02:45:30 tia
- Revision 1.10 2000/05/22 23:31:24 tia
- Revision 1.9 2000/05/17 02:41:34 tia
- Revision 1.8 2000/05/13 02:20:59 tia
- Revision 1.7 2000/05/05 02:36:14 tia
- Revision 1.6 2000/05/03 21:58:15 tia
- Revision 1.5 2000/05/02 23:31:27 tia
- Revision 1.4 2000/04/29 02:35:58 tia
- Revision 1.3 2000/04/27 02:47:14 tia
- Revision 1.2 2000/04/18 18:54:41 tia
- Revision 1.1 2000/04/14 02:02:08 tia
- Initial revision
- */
- /***********************************************************************/
- #include "Config.h" // Global Configuration - do not remove!
- #ifndef __PE_H
- #define __PE_H
- #include "Includesysdefs.h"
- #include "PlaycoreNav_DVDHeaderhli_defs.h"
- #include "PlaycoreNav_DVDHeadernvgadefs.h"
- #define MAX_PTM_EVENT 5
- #define PTM_FIFO_SIZE 3
- typedef struct {
- void *client;
- }PTM_EVENT_RECORD;
- /****************************************/
- /* Interface for DVD Navigator use only */
- /****************************************/
- BOOL PE_GetData( DWORD dw_lbn, DWORD dw_offset, WORD count, BYTE *buffer );
- BOOL PE_CacheData( DWORD lbn, DWORD offset, WORD bytes , WORD sc_handle );
- void PE_Step( void );
- void PE_Play( int nMode );
- void PE_Pause( void );
- void PE_Stop( int stop_mode );
- void PE_Resume( void );
- BOOL PE_IsPlaybackFinished(void);
- BOOL PE_Video_SetMode( int mode, DWORD VideoAttributes );
- void PE_SetAudioStream( unsigned char stream_id );
- void PE_SetSPStream( unsigned char stream_id );
- int PE_Audio_SetMode( int mode );
- int PE_SP_SetPalette( S_PAL_ENTRY *palette );
- int PE_HLI_Set( S_POSI *area, S_COLI *colors, int mode );
- BOOL PE_ValidateDVDDisk( void );
- int PE_ValidateDVDTitle( int TitleNumber );
- int PE_ValidateDVDAnalogOutput(int i_APSTB, BYTE CGMSmode, int displayMode, int V_ATR);
- long PE_NotificationRequest( int event, void *client );
- #ifdef NO_SCPAD
- void PE_ReadPCIpack( int buffer_num, int read_count, void *dest_address );
- void PE_ReadDSIpack( int buffer_num, int read_count, void *dest_address );
- #else
- void PE_ReadPCIpack( BYTE buffer_num, int read_count, WORD sc_handle );
- void PE_ReadDSIpack( BYTE buffer_num, int read_count, WORD sc_handle);
- #endif
- int PE_Seek( unsigned long address, unsigned long blocks, int mode );
- void PE_SP_Enable( BOOL enable );
- void PE_ValidateDVDDigitalOutput(BYTE CGMSmode);
- BYTE PE_GetCopyBit(void);
- BYTE PE_GetCategoryCode(void);
- #ifdef EXINO2
- BYTE PE_GetGenerationBit(void);
- #endif // EXINO2
- void PE_SetAudioStreamWOUcodeDownload(unsigned char stream_id);
- void PE_SetDVDStartEndSector(UINT32 start, UINT32 numBlocks, UINT16 mode);
- void PE_GetCurrentStartEndSector(UINT32* startpsn,UINT32* endpsn);
- #ifdef DVD_AUDIO_SUPPORT //Remove until finished
- void PE_CacheASVU(DWORD address, WORD blocks);
- void PE_UNCacheASVU();
- BOOL PE_DisplayASV( BYTE asvn );
- void PE_ASV2AudioPlay(void);
- UINT32 PE_GetDvdaBitrate( void );
- #ifdef GET_CURRENT_SECTOR_FROM_REGISTER
- DWORD PE_GetCurrentSectorID(void);
- #endif
- void PE_SetDVDAudioSearchMode(int iSearchSpeed);
- void PE_DVDA_SetScan(int iAction, int iScanSpeed);
- #ifdef DVD_AUDIO_SIMILATE_TEST
- void PE_ComCosumeRate(void);
- #endif
- #endif
- //Leslie_0521_2004_A
- void PE_Set_Audio_Buffer_Level(DVD_AUDIO_STREAM_TYPE enAudioType);
- //Angiehe_0701_2004_A:
- void PE_Get_Disc_Data_Zone(DWORD * startDataArea, DWORD * endDataArea, DWORD * endLayer0);
- /****************************************/
- /* END of Interface for DVD Navigator use only */
- /****************************************/
- /* additionnal callbacks that needs to be implemented */
- void ptm_event_check_from_isr( unsigned long scr ); /* callback for PTM event housekeeping, could be called from decoder VSYNC interrupt */
- #endif