home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / genie-commodore-file-library / C128CPM / SGTOOL15.ARC / PCX.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-01  |  807 b   |  44 lines

  1. /*
  2. SG C Tools 1.5
  3.  
  4. (C) 1993 Steve Goldsmith
  5. All Rights Reserved
  6.  
  7. Compiled with HI-TECH C 3.09 (CP/M-80).
  8. */
  9.  
  10. #define pcxErrNone    0
  11. #define pcxErrFile    1
  12. #define pcxErrHeader  2
  13. #define pcxErrNotPCX  3
  14. #define pcxErrNot2Bit 4
  15.  
  16. typedef struct
  17. {
  18.   uchar Manufacturer;
  19.   uchar Version;
  20.   uchar Encoding;
  21.   uchar BitsPerPixel;
  22.   short XMin;
  23.   short YMin;
  24.   short XMax;
  25.   short YMax;
  26.   short HRes;
  27.   short VRes;
  28.   uchar Palette[48];
  29.   uchar Reserved;
  30.   uchar ColorPlanes;
  31.   short BytesPerLine;
  32.   short PaletteType;
  33.   uchar Filler[58];
  34. } pcxHead;
  35.  
  36. short initpcx(char *FileName);
  37. void donepcx(void);
  38.  
  39. void decodelinepcx(ushort X, ushort Y);
  40. void decodefilepcx(ushort X, ushort Y);
  41.  
  42. void decodelineintpcx(ushort X, ushort Y);
  43. void decodefileintpcx(ushort X, ushort Y);
  44.