home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: OtherApp / OtherApp.zip / wincam.zip / winc_src.zip / color.h < prev    next >
C/C++ Source or Header  |  1997-02-28  |  1KB  |  45 lines

  1.  
  2. /* this struct defines the interface to the color processing code in
  3.  * color.c.  please go there for documentation.
  4.  *    (c) Copyright 1996 StarDot Technologies
  5.  *    (c) 1996 by daniel lawton
  6.  */
  7.  
  8. struct colordata {
  9.     int linenum;
  10.     int mode;
  11. #define COLOR_NONINTERLACED_24    0
  12. #define COLOR_INTERLACED_24 1
  13. #define GREY_NONINTERLACED_8    2
  14. #define GREY_INTERLACED_8   3
  15. #define GREY_NONINTERLACED_24    4
  16. #define GREY_INTERLACED_24  5
  17. #define RESET_LINESTATS 0x80
  18. #define GET_LINESTAT_FOR_LINE 0x81
  19.  
  20.     int bufwidth;
  21.     int bufheight;
  22.     int redlev;
  23.     int greenlev;
  24.     int bluelev;
  25.     int intensity;
  26.     int pixlimits[2];
  27.     int hazelevel;
  28.     int diflimit;
  29.     int options;
  30. #define OPT_COLOR_AVG        0x01
  31. #define OPT_COLOR_CROP        0x02
  32. #define OPT_VIGNETTE_CORRECTION 0x04
  33. #define OPT_SIMPLE_SUBTRACTION    0x08
  34. #define OPT_HORIZ_STRETCH   0x10
  35. #define OPT_COLOR_TRACING   0x20
  36. #define OPT_EDGE_CORRECTION 0x40
  37.  
  38.     byte    blacklevs[2];
  39.     byte    *input_off;
  40.     byte    *temp_off;
  41.     byte    *result_off;
  42. };
  43.  
  44. extern void sharpcolor(struct colordata *);
  45.