/*
- Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization
+ Copyright 1999-2015 ImageMagick Studio LLC, a non-profit organization
dedicated to making software imaging solutions freely available.
You may not use this file except in compliance with the License.
#ifndef _MAGICKCORE_QUANTIZE_H
#define _MAGICKCORE_QUANTIZE_H
+#include "MagickCore/colorspace.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/colorspace.h"
-
typedef enum
{
UndefinedDitherMethod,
typedef struct _QuantizeInfo
{
size_t
- number_colors;
+ number_colors; /* desired maximum number of colors */
size_t
tree_depth;
- MagickBooleanType
- dither;
-
ColorspaceType
colorspace;
+ DitherMethod
+ dither_method;
+
MagickBooleanType
measure_error;
size_t
signature;
-
- DitherMethod
- dither_method;
} QuantizeInfo;
extern MagickExport MagickBooleanType
CompressImageColormap(Image *,ExceptionInfo *),
GetImageQuantizeError(Image *,ExceptionInfo *),
- PosterizeImage(Image *,const size_t,const MagickBooleanType,ExceptionInfo *),
+ PosterizeImage(Image *,const size_t,const DitherMethod,ExceptionInfo *),
QuantizeImage(const QuantizeInfo *,Image *,ExceptionInfo *),
QuantizeImages(const QuantizeInfo *,Image *,ExceptionInfo *),
RemapImage(const QuantizeInfo *,Image *,const Image *,ExceptionInfo *),