File: jquant2.h

package info (click to toggle)
videolink 1.2.5-1
  • links: PTS
  • area: contrib
  • in suites: lenny
  • size: 392 kB
  • ctags: 526
  • sloc: cpp: 3,316; ansic: 884; makefile: 127
file content (28 lines) | stat: -rw-r--r-- 588 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef INC_JQUANT2_H
#define INC_JQUANT2_H

#ifdef __cplusplus
extern "C" {
#endif

typedef enum {
	JDITHER_NONE,		/* no dithering */
	JDITHER_FS		/* Floyd-Steinberg error diffusion dither */
} J_DITHER_MODE;

typedef unsigned char JSAMPLE;
typedef JSAMPLE * JSAMPROW;
typedef JSAMPROW * JSAMPARRAY;

void quantize (JSAMPARRAY input_buf,
	       JSAMPARRAY output_buf,
	       int width, int height,
	       J_DITHER_MODE dither_mode,
	       int desired_number_of_colors,
	       unsigned int * output_colors);

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /* !INC_JQUANT2_H */