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

DVD

开发平台:

Others

  1. /***********************************************************************/
  2. /* File:                                                               */
  3. /* =====                                                               */
  4. /* Descripton:                                                         */
  5. /* ===========                                                         */
  6. /*                                                                     */
  7. /* Log:                                                                */
  8. /* =====                                                                 */
  9. /*
  10.  $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 $                                                             
  11.  $Header: /I76/I76_Common/I76_Reference/Playcore/Nav_DVD/Header/STREAM.H 2     12/30/03 11:29a Leonh $                                                           
  12.  $Log: /I76/I76_Common/I76_Reference/Playcore/Nav_DVD/Header/STREAM.H $                                                              
  13.  * 
  14.  * 2     12/30/03 11:29a Leonh
  15.  * Angieh:Change for DVD AUDIO navigator header.
  16.  * 
  17.  * 2     10/16/03 10:52a Leslie
  18.  * add protoype define
  19.  * 
  20.  * 1     03-04-28 11:15 Fwang
  21.  * Initial for DVDA
  22.  * 
  23.  * 2     23/04/02 9:34 Nirm
  24.  * - Added dependency in "Config.h".
  25.  * 
  26.  * 1     2/17/02 12:12 Rinata
  27.  * 
  28.  * 1     2/17/02 11:38 Rinata
  29.  * 
  30.  * 2     8/01/02 16:25 Nirm
  31.  * Corrected Include-Paths.
  32.  Revision 1.6  2001/01/20 05:16:52Z  tia                                                              
  33.  Fix for Bonus Disc Toy Story.                                                              
  34.  Revision 1.5  2000/06/14 02:46:38  tia                                                              
  35.  Revision 1.4  2000/05/17 02:41:50  tia                                                              
  36.  Revision 1.3  2000/05/16 03:12:26  tia                                                              
  37.  Revision 1.2  2000/05/13 02:20:52  tia                                                              
  38.  Revision 1.1  2000/04/14 02:02:19  tia                                                              
  39.  Initial revision                                                              
  40.  */
  41. /***********************************************************************/
  42. #include "Config.h" // Global Configuration - do not remove!
  43. #ifndef __STREAM_H
  44. #define __STREAM_H
  45. #include "Includesysdefs.h"
  46. DWORD DWORD_SWAP( void* data );
  47. WORD  WORD_SWAP ( void* data );
  48. DWORD TIME_DECOD( char hTime, char mTime, char sTime, char fTime );
  49. typedef struct{
  50. BYTE* buffer;
  51. WORD size;
  52. }S_STORAGE;
  53. typedef struct{
  54. WORD sc_handle;
  55. WORD size;
  56. }S_SC_STORAGE;
  57. #define buff2dword( buff, offs ) DWORD_SWAP( buff + offs )
  58. #define buff2word( buff, offs ) WORD_SWAP( buff + offs)
  59. BOOL fs_GetData( S_FPOS *from, long bytes, PBYTE buffer );
  60. void fs_AllocMem( S_SC_STORAGE *st, int size );
  61. void fs_FreeMem( S_SC_STORAGE *st );
  62. BOOL fs_CopyFromDisc( S_FPOS *from, int size, WORD sc_handle );
  63. BYTE fs_GetByte( S_SC_STORAGE *st, int offset );
  64. WORD fs_GetWord( S_SC_STORAGE *st, int offset );
  65. DWORD fs_GetDword( S_SC_STORAGE *st, int offset );
  66. BYTE fs_scGetByte( WORD sc_handle, int offset );
  67. WORD fs_scGetWord( WORD sc_handle, int offset );
  68. DWORD fs_scGetDword( WORD sc_handle, int offset );
  69. /* <<< ZORAN TC0116 : Add new methods */
  70. BYTE fs_ReadByte( S_FPOS *from );
  71. WORD fs_ReadWord( S_FPOS *from );
  72. DWORD fs_ReadDword( S_FPOS *from );
  73. /* ZORAN TC0116 >>> */
  74. #ifdef DISC_CACHE_ENABLE
  75. BOOL fs_PreCacheData(  S_FPOS *from, long bytes );
  76. #endif
  77. #endif