Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: fb47c498ef
Fetching contributors…

Cannot retrieve contributors at this time

file 40 lines (36 sloc) 0.758 kb
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
Something went wrong with that request. Please try again.