]> granicus.if.org Git - imagemagick/blobdiff - MagickCore/quantize.h
(no commit message)
[imagemagick] / MagickCore / quantize.h
index 479cb7d85db4ac84d5f344b4f6bfb5d038f94926..d1864b3bfcb156dc03460e4c685c5239c39e5432 100644 (file)
@@ -1,5 +1,5 @@
 /*
 /*
-  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.
   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
 
 #ifndef _MAGICKCORE_QUANTIZE_H
 #define _MAGICKCORE_QUANTIZE_H
 
+#include "MagickCore/colorspace.h"
+
 #if defined(__cplusplus) || defined(c_plusplus)
 extern "C" {
 #endif
 
 #if defined(__cplusplus) || defined(c_plusplus)
 extern "C" {
 #endif
 
-#include "MagickCore/colorspace.h"
-
 typedef enum
 {
   UndefinedDitherMethod,
 typedef enum
 {
   UndefinedDitherMethod,
@@ -40,26 +40,23 @@ typedef struct _QuantizeInfo
   size_t
     tree_depth;
 
   size_t
     tree_depth;
 
-  MagickBooleanType
-    dither;
-
   ColorspaceType
     colorspace;
 
   ColorspaceType
     colorspace;
 
+  DitherMethod
+    dither_method;
+
   MagickBooleanType
     measure_error;
 
   size_t
     signature;
   MagickBooleanType
     measure_error;
 
   size_t
     signature;
-
-  DitherMethod
-    dither_method;
 } QuantizeInfo;
 
 extern MagickExport MagickBooleanType
   CompressImageColormap(Image *,ExceptionInfo *),
   GetImageQuantizeError(Image *,ExceptionInfo *),
 } 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 *),
   QuantizeImage(const QuantizeInfo *,Image *,ExceptionInfo *),
   QuantizeImages(const QuantizeInfo *,Image *,ExceptionInfo *),
   RemapImage(const QuantizeInfo *,Image *,const Image *,ExceptionInfo *),