File: Quant.h

package info (click to toggle)
python-imaging 1.1.7-2%2Bdeb6u2
  • links: PTS
  • area: main
  • in suites: squeeze-lts
  • size: 2,424 kB
  • ctags: 3,401
  • sloc: ansic: 19,470; python: 11,002; makefile: 111
file content (40 lines) | stat: -rw-r--r-- 758 bytes parent folder | download | duplicates (4)
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
29
30
31
32
33
34
35
36
37
38
39
40
/*
 * The Python Imaging Library
 * $Id$
 *
 * image quantizer
 *
 * Written by Toby J Sargeant <tjs@longford.cs.monash.edu.au>.
 *
 * See the README file for information on usage and redistribution.
 */

#ifndef __QUANT_H__
#define __QUANT_H__

typedef union {
   struct {
      unsigned char r,g,b,a;
   } c;
   struct {
      unsigned char v[4];
   } a;
   unsigned long v;
} Pixel;

int quantize(Pixel *,
             unsigned long,
             unsigned long,
             Pixel **,
             unsigned long *,
             unsigned long **,
             int);

int quantize2(Pixel *,
             unsigned long,
             unsigned long,
             Pixel **,
             unsigned long *,
             unsigned long **,
             int);
#endif