home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Multimed / Multimed.zip / divempeg.zip / DIMPSRC.ZIP / PVGDITH.H < prev    next >
C/C++ Source or Header  |  1995-05-14  |  1KB  |  50 lines

  1. /* PVG: public interface to dither.c */
  2.  
  3. #ifndef PVGDITH_H
  4. #define PVGDITH_H
  5. #include <os2.h>
  6.  
  7. /* Possible dithering methods */
  8.  
  9. #define HYBRID_DITHER 0
  10. #define HYBRID2_DITHER 1
  11. #define FS4_DITHER 2
  12. #define FS2_DITHER 3
  13. #define FS2FAST_DITHER 4
  14.  
  15. /* PVG: not implemented */
  16. #define Twox2_DITHER 5
  17.  
  18. #define GRAY_DITHER 6
  19.  
  20. /* PVG: not implemented */
  21. #define FULL_COLOR_DITHER 7
  22.  
  23. #define NO_DITHER 8
  24. #define ORDERED_DITHER 9
  25.  
  26. /* PVG: not implemented */
  27. #define MONO_DITHER 10
  28. #define MONO_THRESHOLD 11
  29.  
  30. #define ORDERED2_DITHER 12
  31. #define MBORDERED_DITHER 13
  32.  
  33. /* Call this routine before the first time you dither or when you change the
  34.    type of dither */
  35. /* declared EXPENTRY because exported function from DLL */
  36.  
  37. VOID EXPENTRY InitDither(int type, int lum_range, int cr_range, int cb_range, PBYTE
  38.                 * pPalette, PBYTE *pPal2);
  39.  
  40. /* Call this routine to free the allocated resources in InitDither */
  41. VOID EXPENTRY TerminateDither (PBYTE pPalette, PBYTE pPal2);
  42.  
  43. /* Call this routine to dither the three channels l (luminance), Cr and Cb in
  44.    disp an image of weidth w and hight h */
  45.  
  46. VOID EXPENTRY DoDitherImage(unsigned char *l, unsigned char *Cr, unsigned char *Cb,
  47. unsigned char *disp, int w, int h, char * f);
  48.  
  49. #endif
  50.