home *** CD-ROM | disk | FTP | other *** search
/ Software One-Stop 3 / BOOTCDROM.iso / install / mpegblue / mpeg.h_ / mpeg.bin
Encoding:
Text File  |  1995-02-16  |  4.2 KB  |  132 lines

  1. #ifdef DOSLIB
  2.    typedef unsigned char  BYTE;
  3.    typedef unsigned int   UINT;
  4.    typedef unsigned short WORD;
  5.    typedef unsigned long  DWORD;
  6.    typedef long           LONG;
  7.    typedef BYTE huge *    HANDLE;
  8.    typedef int            BOOL;
  9.    typedef char far *     LPSTR;
  10.    typedef char *         LPCSTR;
  11.  
  12.    #define FAR
  13.    #define PASCAL
  14.    #define TRUE       1
  15.    #define FALSE      0
  16. #endif
  17.  
  18.  
  19. // Define error code
  20. #define EVIGAMPEG        -1 // MPEG Board not ready
  21. #define EMSCDEX          -2 // MSCDEX not installed
  22. #define EDRIVE           -3 // CD-ROM not attached
  23. #define EMPEGFile        -4 // Open MPEG file error
  24. #define EBitStream       -5 // Read Bitstream error
  25. #define EVXD             -6 // VxD error
  26. #define EVolumeSize      -7 // Get Volume Size error
  27. #define EInitCDROM       -8 // Init CD ROM error
  28. #define ESeekTop         -9 // Seek to Top track error
  29. #define EInitVideo      -10 // Init Video error
  30. #define EInitAudio      -11 // Init Audio error
  31. #define EMEM            -12 // Memory error
  32. #define EReadCD         -13 // Read CD-ROM error
  33. #define EDecodeAudio    -14 // Decode Audio error
  34. #define EResetCD        -15 // Reset CD-ROM error
  35. #define EWINENH         -16 // Windows not under Enhanced mode
  36. #define EDMA            -17 // Initial DMA error
  37. #define ESectorSize     -18 // Read CD sector size error
  38. #define EGetStartSector -19 // Get start sector error
  39. #define EGetLastSector  -20 // Get last sector error
  40. #define ESeek           -21 // Seek error
  41. #define EInited         -22 // Initialized but not exit yet (WMpegExit)
  42. #define ECDReady        -23 // CD-ROM not ready
  43. #define EBoardID        -24 // Invalid Board ID
  44.  
  45.  
  46. // Define board type
  47. #define MASTER95  1
  48. #define MASTERJR  2
  49.  
  50.  
  51. // Define Video Source Type
  52. #define NTSC      (UINT)1
  53. #define PAL       (UINT)2
  54.  
  55. // Define mode to adjust display screen
  56. #define SCREEN_UP 1
  57. #define SCREEN_DN 2
  58. #define SCREEN_LF 3
  59. #define SCREEN_RT 4
  60.  
  61. // Define Disc type
  62. #define ALL             1
  63. #define KARAOKE         2
  64. #define CDIFMV          3
  65.  
  66. // Define bitstream type
  67. #define MPEGAV          1    // video+audio bitstream
  68. #define MPEGVideo       2    // video bitstream only
  69. #define MPEGAudio       3    // audio bitstream only
  70.  
  71. // Define operation mode
  72. #define NPF        0x01      // normal play forward
  73. #define SFF        0x02      // single frame forward
  74. #define FMF        0x04      // fast motion forward
  75. #define SMF        0x08      // slow motion forward
  76. #define PAU        0x10      // pause
  77. #define STP        0x20      // stop,idle
  78.  
  79. // Video/VGA output switcher
  80. #define VGA          0
  81. #define VIDEO        1
  82.  
  83. // Define struct for current configuration
  84. #ifndef MPEGCONFIG
  85.    typedef struct _MpegConfig{
  86.       UINT IOBaseA;     // audio base IO
  87.       UINT IOBaseV;     // video base IO
  88.       UINT VideoSource; // NTSC,  PAL
  89.       UINT DMA;         // DMA channel
  90.       UINT IRQ;         // IRQ number  (1 interrupt version only)
  91.    }MpegConfig;
  92.    typedef MpegConfig far *   LPMPEGCONFIG;
  93.  
  94.    typedef struct _MSFTime{
  95.       BYTE min;
  96.       BYTE sec;
  97.       BYTE frm;
  98.       int  track_no;
  99.    }MSFTime;
  100.    typedef MSFTime far *   LPMSFTime;
  101.  
  102.    #define MPEGCONFIG
  103. #endif
  104.  
  105.  
  106. int  FAR PASCAL WMpegInit (UINT);
  107. void FAR PASCAL WMpegCommand (int);
  108. int  FAR PASCAL WMpegLoad(int ,char far *,WORD,int);
  109. int  FAR PASCAL WMpegPlayEnable (LPMSFTime);
  110. int  FAR PASCAL WMpegTransfer (void);
  111. void FAR PASCAL WMpegAdjustScreen (int);
  112. int  FAR PASCAL WMpegInitCD (int,LPSTR);
  113. int  FAR PASCAL WMpegGetCDSongs (int);
  114. int  FAR PASCAL WMpegGetCDDriveID (void);
  115. void FAR PASCAL WMpegExit (void);
  116. void FAR PASCAL WMpegAudioEnable (BOOL);
  117. int  FAR PASCAL WMpegSwitcher (int);
  118. void FAR PASCAL WMpegGetConfig (LPMPEGCONFIG);
  119. UINT FAR PASCAL WMpegGetTrackTime (int,int,LPSTR);
  120. UINT FAR PASCAL WMpegGetCurrentPTS (void);
  121. void FAR PASCAL WMpegGetDisplayPos (int far *,int far *);
  122. int  FAR PASCAL WMpegGetBitstreamType (void);
  123. BOOL FAR PASCAL WMpegNoDisc (int);
  124. void FAR PASCAL WMpegCDEject (int);
  125. void FAR PASCAL WMpegCDClose (int);
  126. BOOL FAR PASCAL WMpegExist (void);
  127. int  FAR PASCAL WMpegModel (void);
  128.  
  129. #ifdef DOSLIB
  130. int GetPrivateProfileString(LPCSTR,LPCSTR,LPCSTR,LPSTR,int,LPCSTR);
  131. #endif
  132.