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

DVD

开发平台:

Others

  1. /****************************************************************************************
  2.  *  Copyright (c) 2002 ZORAN Corporation, All Rights Reserved
  3.  *  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
  4.  *
  5.  *  File: $Workfile: NVGAPROT.H $             
  6.  *
  7.  * Description: 
  8.  * ============
  9.  * 
  10.  * 
  11.  * Log:
  12.  * ====
  13.  * $Revision: 6 $
  14.  * Last Modified by $Author: Leonh $ at $Modtime: 12/30/03 11:17a $ 
  15.  ****************************************************************************************
  16.  * Updates:
  17.  ****************************************************************************************
  18.  * $Log: /I76/I76_Common/I76_Reference/Playcore/Nav_DVD/Header/NVGAPROT.H $
  19.  * 
  20.  * 6     12/30/03 11:28a Leonh
  21.  * Angieh:Change for DVD AUDIO navigator header.
  22.  * 
  23.  * 1     03-04-28 11:15 Fwang
  24.  * Initial for DVDA
  25.  * 
  26.  * 3     4/26/02 12:47p Leslie
  27.  * Change definition of np_info_push and np_info_pop
  28.  * 
  29.  * 2     23/04/02 9:34 Nirm
  30.  * - Added dependency in "Config.h".
  31.  * 
  32.  * 1     2/17/02 12:12 Rinata
  33.  * 
  34.  * 2     9/01/02 16:40 Nirm
  35.  * Corrected Include-Paths.
  36.  ****************************************************************************************/
  37. #include "Config.h" // Global Configuration - do not remove!
  38. #ifndef _NVGAPROT_H
  39. #define _NVGAPROT_H
  40. /************ C_SPRM class translation - code *****************/
  41. void sprm_SPRM( void );
  42. WORD sprm_Get( WORD );
  43. void sprm_GetAll( WORD *); /* C_SPRM::Get(WORD *) */
  44. BOOL sprm_Set( int, WORD );
  45. void sprm_Init( void );
  46. //BOOL sprm_OneSecondTick( void );
  47. //LX: use sprm_200msTick instead of sprm_OneSecondTick
  48. void sprm_200msTick(void);
  49. /************ C_GPRM class translation - code *****************/
  50. void gprm_Init( void );
  51. void gprm_OneSecondTick( void );
  52. WORD gprm_Get( int );
  53. BOOL gprm_IsCounter( int );
  54. void gprm_SetCounter( int );
  55. void gprm_SetRegister( int );
  56. void gprm_Set( int ,  WORD  );
  57. #ifdef NO_SCPAD
  58. void gprm_SetAll( WORD *);
  59. void gprm_GetAll( WORD *);
  60. #else
  61. void gprm_SetAll( WORD );
  62. void gprm_GetAll( WORD );
  63. #endif
  64. /*********** C_DSI_PKT class translation - code ************/
  65. void dsipkt_Get_GI(S_DSI_GI *buffer);
  66. void dsipkt_SEARCH_Fwd(int n, S_VOBU_SRI *buffer);
  67. void dsipkt_SEARCH_Bwd(int n, S_VOBU_SRI *buffer);
  68. void dsipkt_SML_Get_PBI(S_SML_PBI *buffer);
  69. DWORD dsipkt_SYNC_Get_SP_PKA( int stream );
  70. DWORD dsipkt_SML_Get_AGL_Destination_LBN(int AGL_C );
  71. WORD dsipkt_SML_Get_AGL_Destination_Size_LBN(int AGL_C );
  72. #ifdef LANGUAGE_LEARNING_SUPPORT
  73. BOOL dsi_Get_Grammer_Cmd(void);
  74. BOOL dsi_SC_Get_Grammer_Cmd(BYTE index, BYTE * cmdbuf);
  75. #endif
  76. DWORD pcipkt_Get_NSML_AGL_Destination_LBN(int AGL_C );
  77. /*********** C_PCI_PKT class translation - code ************/
  78. #ifdef NO_SCPAD
  79. void pcipkt_Get_GI( BYTE *pPCI_SA, S_PCI_GI *buffer);
  80. #else
  81. void pcipkt_Get_GI( WORD sc_handle, S_PCI_GI *buffer);
  82. #endif
  83. void pcipkt_Get_HL_GI(S_HL_GI *buffer);
  84. BOOL pcipkt_SetDisplayMode( WORD mode );
  85. void pcipkt_Get_Button_Color(int set, int info_type, S_COLI *buffer);
  86. BOOL pcipkt_Get_Button_Position(int button, S_POSI *buffer);
  87. BOOL pcipkt_Get_Button_Links(int button, S_AJBTN *buffer);
  88. BOOL pcipkt_Get_Button_CMD(int button, BYTE *buffer);
  89.  
  90. /*********** C_DSI class translation - code ***************/
  91. void dsi_C_DSI( void );
  92. void dsi_SetE_STD( BOOL mode );
  93. void dsi_ReceiveContainer( void );
  94. DWORD dsi_GetScanDestination( void );
  95. DWORD dsi_GetAngleDestination( void );
  96. DWORD dsi_GetAngleScanVobu(DWORD dwAngle);//LX0703
  97. BOOL dsi_SetCell( S_C_PBI* c_pbi, DWORD VOBUaddress );
  98. BOOL dsi_GetCellPiece( S_CP *cp );
  99. BOOL dsi_GetVOBU( S_CP *cp );
  100. BOOL dsi_PositionUpdate( S_CP *vb, S_CP *cp );
  101. void dsi_Reset( void ) ;
  102. long dsi_EmptyStreamPump( void ); 
  103. /************* misc function library *****************/
  104. DWORD fn_TIME_DECOD(char hTime,char mTime,char sTime,char fTime);
  105. DWORD fn_DWORD_SWAP( void* data);
  106. WORD fn_WORD_SWAP( void* data);
  107. BOOL np_info_push( DWORD npi_stc_offset, DWORD npi_resume_lbn );//LX042602
  108. BOOL np_info_pop( DWORD *p_npi_stc_offset, DWORD *p_npi_resume_lbn );//LX042602
  109. void np_info_flush( void );
  110. #endif //_NVGAPROT_H