## Using Your DDK

[prev][next][parent][TOC]

### MPEG Video Playback Physical Device Driver Sample

Driver Description:

The MPEG Video Playback Physical Device Driver (PDD) Sample provides an example you can use to create PDDs for other video playback devices. The driver model is written mainly in C Language. This driver is based on the Zoran chip for Visual Circuit's Reel-Time MPEG Playback Board.

The code in this sample is derived from a working driver, which is the Visual Circuit Reel-Time MPEG Playback driver. Source code in the file ZMPEG2.C includes video driver code and program flow information which provides detailed descriptions of the device driver routines.

Compilers/Assemblers Required:

         Microsoft MASM 6.0
         Microsoft C 6.0
         Watcom C/C++ 10.5a or 10.6

Build Instructions:

1.Set the environment variables so the correct tools are picked up during the build.

    e.g., SET PATH=<drive>:\DDK\TOOLS;<drive>\DDK\BASE\TOOLS;%PATH%

Where <drive> represents your DDK installed drive and DDK represents the DDK installed directory.

2.Before the FIRST build is attempted, run (only once) the COPYC60.CMD and the COPYASM6.CMD REXX command files in the DDK\TOOLS directory. These commands copy the set of files needed from your copy of the Microsoft C 6.0 compiler and Microsoft MASM 6.0 assembler to the proper directories under the DDK base directory.

    e.g., COPYC60<MSCdrive>:\"MSC60"<drive>:\DDK
          COPYASM6<MASMdrive>:\"MASM60"<drive>:\DDK

Where <MSCdrive> represents the Microsoft C 6.0 installed drive and "MSC60" represents the installed compiler directory, <MASMdrive> represents the Microsoft MASM 6.0 installed drive and <MASM60> represents the installed assembler directory. The <drive> represents your DDK installed drive and DDK represents the DDK installed directory.

3.Make sure the Watcom C/C++ compiler is installed and the environment variables are correctly set.

    e.g.,
      SET WATCOM=<watcomdrive>:\"watcom"
      SET PATH=<watcomdrive>:\"watcom"\BINP;<watcomdrive>:\"watcom"\BINW;%PATH%

Where <watcomdrive> represents the Watcom C installed drive and "watcom" represents the Watcom C installed directory.

4.Change the directory to DDK\BASE\SRC\DEV\MME\MPEGPDD\PDD.

5.Invoke COMPILE.CMD to run NMAKE on all the makefiles in the subdirectory .

Files Created By Successful Build:

         Directory:  \DDK\BASE\SRC\DEV\MME\MPEGPDD\PDD

         o  ZMPEG2.SYS