home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0040 - 0049 / ibm0040-0049 / ibm0040.tar / ibm0040 / IMGPROC.ZIP / C4.ZIP / DIGITIZE.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-06  |  1.8 KB  |  54 lines

  1. /*  
  2. Copyright 1990 by John Wiley & Sons, Inc.
  3.           All Rights Reserved.
  4. */
  5. /****************************************/
  6. /*        Digitizer Header File         */
  7. /*    for inclusion into C programs     */
  8. /*       written in Turbo C 2.0         */
  9. /*                by                    */
  10. /*         Craig A. Lindley             */
  11. /*                                      */
  12. /*   Vers: 1.0  Last Update: 12/07/89   */
  13. /****************************************/
  14.  
  15. #ifndef __BYTE                         /* user defined type */
  16. #define __BYTE
  17. typedef unsigned char BYTE;
  18. #endif
  19.  
  20. #define TRUE  1
  21. #define FALSE 0
  22.  
  23. #define VIDEO 0x10
  24. #define LPT1  0x3BC          /* LPT1 base address */
  25.  
  26. typedef enum {BW,Color}                                    CMode;
  27. typedef enum {GCAL,CGAH,EGAL,EGAH,VGAL,VGAM,VGAH}          Display;
  28. typedef enum {PC477,AT6,AT8,PS210,PS216,PS220,PS225,PS233} Computer;
  29. typedef enum {LowRes,HighRes}                              HorizMode;
  30. typedef enum {NonInterlace,Interlace}                      VertMode;
  31.  
  32. /* Image Request Structure passed between C and AL to control digitizer */
  33.  
  34. struct ImageReq
  35. {
  36.    enum Computer  ComputerType;
  37.    unsigned       PrtBase;
  38.    enum HorizMode HMode;
  39.    enum VertMode  VMode;
  40.    unsigned       NumberOfPasses;
  41.    unsigned long  Flags;
  42.    char huge     *PictBuf;
  43.    unsigned       FirstLine;
  44.    unsigned       FirstPixel;
  45.    unsigned       LastLine;
  46.    unsigned       LastPixel;
  47. };
  48.  
  49. /* function declarations */
  50. unsigned InitializeDigitizer (struct ImageReq *);
  51. void     SetPixelCount (unsigned short);
  52. unsigned short SyncsPerField (void);
  53. unsigned GetPicture (void);
  54.