File: jquant2.h

package info (click to toggle)
videolink 1.0-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 368 kB
  • ctags: 502
  • sloc: cpp: 3,210; ansic: 880; makefile: 121
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 */