home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / delphi / imagelib / imglib30.h_ / imglib30.h
C/C++ Source or Header  |  1995-09-28  |  6KB  |  145 lines

  1. #ifndef IMAGELIB_H
  2. #define IMAGELIB_H
  3.  
  4. #if defined (JPG_DLL)
  5. #  define _JPGCLASS _export
  6. #else
  7. #  define _JPGCLASS
  8. #endif
  9.  
  10. #if defined __cplusplus
  11. # define _C "C"
  12. #else
  13. # define _C
  14. #endif
  15.  
  16. #include <windows.h>
  17. #include <windowsx.h>
  18.  
  19. extern _C int _JPGCLASS _pascal readjpgfile(const char *filename, int resolution,
  20.                                          int scale, int dither, int password,
  21.                                          unsigned int * hddb, unsigned int * hpal,
  22.                                          short (* pf)(int), short errormode);
  23.  
  24. extern _C int _JPGCLASS _pascal writejpegfile(const char *filename, int quality,
  25.                                                  int smooth, int password,
  26.                                                  unsigned int hddb, unsigned int hpal,
  27.                                                  short (* pf)(int), short errormode);
  28.  
  29. extern _C int _JPGCLASS _pascal readgiffile(const char *filename, int resolution,
  30.                                           int dither, int password, unsigned int * hddb,
  31.                                           unsigned int * hpal, short (* pf)(int),
  32.                                           short errormode);
  33.  
  34. extern _C int _JPGCLASS _pascal readpcxfile(const char *filename, int resolution,
  35.                                           int dither, int password, unsigned int * hddb,
  36.                                           unsigned int * hpal, short (* pf)(int),
  37.                                           short errormode);
  38.  
  39. extern _C int _JPGCLASS _pascal fileinfo(const char *filename, char * filetype,
  40.                                                   int *width, int *height, int *bitspixel,
  41.                                                   int *planes, int *numcolors,
  42.                                                   char * compression, short errormode);
  43.  
  44. extern _C int _JPGCLASS _pascal readjpgstream(void * inbuffer, long size,
  45.                     int resolution, int scale, int dither, int password,
  46.                     unsigned int * hddb, unsigned int * hpal, short (* pf)(int),
  47.                     short errormode);
  48.  
  49. extern _C int _JPGCLASS _pascal readpcxstream(void * inbuffer, long size,
  50.                                     int resolution, int dither,
  51.                                                 int password, unsigned int * hddb,
  52.                                                 unsigned int * hpal, short (* pf)(int),
  53.                                                 short errormode);
  54.  
  55. extern _C int _JPGCLASS _pascal readgifstream(void * inbuffer, long size,
  56.                                                 int resolution, int dither,
  57.                                                 int password, unsigned int * hddb,
  58.                                                 unsigned int * hpal, short (* pf)(int),
  59.                                                 short errormode);
  60.  
  61. extern _C int _JPGCLASS _pascal writejpegstream(void * inbuffer, long * size,
  62.                                                  int quality, int smooth, int password,
  63.                                                  unsigned int hddb, unsigned int hpal,
  64.                                                  short (* pf)(int), short errormode);
  65.  
  66. extern _C int _JPGCLASS _pascal streaminfo(void * inbuffer, long size,  char * filetype,
  67.                                                      int *width, int *height, int *bitspixel,
  68.                                                      int *planes, int *numcolors,
  69.                                                      char * compression, short errormode);
  70.  
  71.  
  72. extern _C int _JPGCLASS _pascal readbmpstream(void * inbuffer, long size,
  73.                                           int resolution, int dither, int password,
  74.                                           unsigned int * hddb, unsigned int * hpal,
  75.                                           short (* pf)(int), short errormode);
  76.  
  77. extern _C int _JPGCLASS _pascal writebmpstream(void * inbuffer, long * size,
  78.                                               int resolution, int password, unsigned int hddb,
  79.                                               unsigned int hpal, short (* pf)(int),
  80.                                               short errormode);
  81.  
  82. extern _C int _JPGCLASS _pascal readbmpfile(const char * filename, int resolution,
  83.                                                       int dither, int password,
  84.                                                       unsigned int * hddb,
  85.                                                       unsigned int * hpal, short (* pf)(int),
  86.                                                       short errormode);
  87.  
  88. extern _C int _JPGCLASS _pascal writebmpfile(const char * filename, int resolution,
  89.                                                         int password, unsigned int hddb,
  90.                                                         unsigned int hpal, short (* pf)(int),
  91.                                                         short errormode);
  92.  
  93. extern _C int _JPGCLASS _pascal readpngfile(const char * filename,
  94.                                                       int resolution, int dither,
  95.                                                       int password, unsigned int * hddb,
  96.                                                       unsigned int * hpal, short (* pf)(int),
  97.                                                       short errormode);
  98.  
  99. extern _C int _JPGCLASS _pascal readpngstream(void * inbuffer, long size,
  100.                                                       int resolution, int dither,
  101.                                                       int password, unsigned int * hddb,
  102.                                                       unsigned int * hpal, short (* pf)(int),
  103.                                                       short errormode);
  104.  
  105. extern _C int _JPGCLASS _pascal writepngfile(const char *filename, int resolution,
  106.                                                  int interlaced, int password,
  107.                                                  unsigned int hddb, unsigned int hpal,
  108.                                                  short (* pf)(int), short errormode);
  109.  
  110. extern _C int _JPGCLASS _pascal writepngstream(void *inbuffer, long *size,
  111.                                                  int resolution, int interlaced, int password,
  112.                                                  unsigned int hddb, unsigned int hpal,
  113.                                                  short (* pf)(int), short errormode);
  114.  
  115. extern _C int _JPGCLASS _pascal writegiffile(const char *filename, int resolution,
  116.                                                  int password,
  117.                                                  unsigned int hddb, unsigned int hpal,
  118.                                                  short (* pf)(int), short errormode);
  119.  
  120. extern _C int _JPGCLASS _pascal writegifstream(void * inbuffer, long * size,
  121.                                           int resolution, int password,
  122.                                           unsigned int hddb, unsigned int hpal,
  123.                                           short (* pf)(int), short errormode);
  124.  
  125. extern _C int _JPGCLASS _pascal writepcxfile(const char * filename, int resolution,
  126.                                                         int password, unsigned int hddb,
  127.                                                         unsigned int hpal, short (* pf)(int),
  128.                                                         short errormode);
  129.  
  130. extern _C int _JPGCLASS _pascal writepcxstream(void * inbuffer, long * size,
  131.                                               int resolution, int password, unsigned int hddb,
  132.                                               unsigned int hpal, short (* pf)(int),
  133.                                               short errormode);
  134.  
  135. extern _C int _JPGCLASS _pascal ReduceDib(void * &, int, int, int ,
  136.                                             short (*)(int));
  137.  
  138. extern _C int _JPGCLASS _pascal DibtoDdb(void *, unsigned int *, unsigned int *);
  139.  
  140. extern _C int _JPGCLASS _pascal DdbtoDib(unsigned int, unsigned int, int, int,
  141.                                     void *&, short, short (*)(int));
  142.  
  143.  
  144. #endif
  145.