home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Graphics / graphics-16000.iso / msdos / mpeg / pv_mpeg1 / makempeg.txt < prev    next >
Text File  |  1993-06-15  |  2KB  |  76 lines

  1. Hi All you Eager MPEG Makers, here is how to port the PVRG MPEG
  2. encoder/decoder to DOS/PC (386).
  3.  
  4. Tools required:
  5.     Well the ones that I used.
  6.  
  7.         GNU C version 2.2.2
  8.         An uncompress util for UNIX .Z files
  9.         An untar util for UNIX tar files
  10.         Text Editor (sorry some code needs tweaked)
  11.         Note: Diff from the GNU File utilities, could be used instead
  12. Source required:
  13.         /pub/mpeg/MPEGv1.2.alpha.tar.Z
  14.             from havefun.stanford.edu
  15.  
  16.         /pub/mpeg/MPEGDOCv1.1.tar.Z
  17.             from havefun.stanford.edu
  18.             documentation still to be updated.
  19.  
  20. Step 1
  21.     Decompress the .Z files
  22.  
  23. Step 2 
  24.     Untar the resulting tar files.
  25.     Note that 2 of the file names won't fit in the DOS 8 and 3 name format:
  26.         transform.c truncates to transfor.c
  27.         prototype.h truncates to prototyp.h
  28.  
  29. Step 3
  30.     Apply patch1 to mem.c
  31.     Apply patch2 to stream.c
  32.     Apply patch3 to mpeg.c
  33.  
  34.     All that is happening here is that the fopen mode is be changed to
  35.     ensure that files are opened in binary mode, as DOS compilers default
  36.     to text mode in general.
  37.  
  38.     If you are editing these files simply search for 'fopen' and alter the 
  39.     "w" to "wb", "r" to"rb" and "w" to "wb+"
  40.  
  41. Step 4
  42.     Compile all 12 files to object files using the following example 
  43.     command line. 
  44.  
  45.         GCC -O -c chendct.c
  46.  
  47.     Ignore the warnings from the compiler about implicit definitions etc.
  48.  
  49. Step 5
  50.     Link all the files together to form PVRGMPEG
  51.  
  52.     gcc lexer.o mpeg.o huffman.o transfor.o codec.o io.o marker.o
  53.          me.o mem.o stat.o stream.o chendct.o  -lgcc -lm -o pvrgmpeg
  54.     
  55.     Note all one line 
  56.  
  57. Step 6 
  58.     Create PVRGMPEG.EXE
  59.  
  60.     copy /b \gcc\bin\go32.exe+pvrgmpeg pvrgmpeg.exe
  61.  
  62.          ^^^^^ alter path to suit!
  63.  
  64.  
  65. Step 8
  66.     Use and enjoy.
  67.  
  68.  
  69. Graham Logan
  70. June 15th 1993
  71. mitgml@dct.ac.uk
  72.  
  73. "You can't fool me there ain't no Sanity Clause", Chico Marx
  74.  
  75.  
  76.