]> granicus.if.org Git - imagemagick/commitdiff
Some major warnings about C data structures.
authoranthony <anthony@git.imagemagick.org>
Fri, 10 Sep 2010 02:23:33 +0000 (02:23 +0000)
committeranthony <anthony@git.imagemagick.org>
Fri, 10 Sep 2010 02:23:33 +0000 (02:23 +0000)
magick/resample.h
magick/resize.c

index 064734c0cda5445fe7d2321614e667eb919b3f1a..cd8b6e62ea5f1b7c6e27411b4d53b1f4bbcc8e2b 100644 (file)
@@ -24,6 +24,12 @@ extern "C" {
 
 #include <magick/cache-view.h>
 
+/*
+  WARNING:  The order of this table must also match the order
+  of a table located in AcquireResizeFilter() or "resize.c"
+  Otherwise the users filter will not match the actual filter
+  that is setup.
+*/
 typedef enum
 {
   UndefinedFilter,
index 05353db4ca342c831b774c7c623e5965ae280683..bcc8b0d1fb9a952402875619df4fe0bdcbe37979 100644 (file)
@@ -591,6 +591,10 @@ MagickExport ResizeFilter *AcquireResizeFilter(const Image *image,
     filter function (must be windowed) could be upgraded to a 'Bessel' filter
     if a "cylindrical" filter is requested, unless a "Sinc" filter specifically
     request.
+
+    WARNING: The order of this tabel must match the order of the FilterTypes
+    enumeration specified in "resample.h", or the filter names will not match
+    the filter being setup.
   */
   static struct
   {