]> git.decadent.org.uk Git - videolink.git/blob - jquant2.h
Imported version 0.1
[videolink.git] / jquant2.h
1 #ifndef INC_JQUANT2_H
2 #define INC_JQUANT2_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 typedef enum {
9         JDITHER_NONE,           /* no dithering */
10         JDITHER_FS              /* Floyd-Steinberg error diffusion dither */
11 } J_DITHER_MODE;
12
13 typedef unsigned char JSAMPLE;
14 typedef JSAMPLE * JSAMPROW;
15 typedef JSAMPROW * JSAMPARRAY;
16
17 void quantize (JSAMPARRAY input_buf,
18                JSAMPARRAY output_buf,
19                int width, int height,
20                J_DITHER_MODE dither_mode,
21                int desired_number_of_colors,
22                unsigned int * output_colors);
23
24 #ifdef __cplusplus
25 } /* extern "C" */
26 #endif
27
28 #endif /* !INC_JQUANT2_H */