Pillow/src/libImaging/QuantTypes.h

33 lines
509 B
C
Raw Normal View History

2010-07-31 06:52:47 +04:00
/*
* 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 __TYPES_H__
#define __TYPES_H__
2013-04-08 02:52:15 +04:00
#ifdef _MSC_VER
typedef unsigned __int32 uint32_t;
2013-09-28 02:03:27 +04:00
typedef unsigned __int64 uint64_t;
2013-04-08 02:52:15 +04:00
#else
#include <stdint.h>
#endif
2010-07-31 06:52:47 +04:00
2013-04-08 02:52:15 +04:00
typedef union {
struct {
unsigned char r,g,b,a;
} c;
struct {
unsigned char v[4];
} a;
uint32_t v;
} Pixel;
2010-07-31 06:52:47 +04:00
#endif