summaryrefslogtreecommitdiff
path: root/src/gd.h
diff options
context:
space:
mode:
authorPierre Joye <pierre.php@gmail.com>2016-06-15 09:53:28 +0700
committerPierre Joye <pierre.php@gmail.com>2016-06-15 09:53:28 +0700
commite22448e6dd97da95c3ef9a45fa97995d95a5d776 (patch)
tree0f0143e7d29e0cccd139314505eb113b4850913d /src/gd.h
parentc90ab16521092c58eab3163ca363469895a2163e (diff)
parent910984af15f5e468e69f0f2c3bcbf3c835e689a7 (diff)
downloadlibgd-e22448e6dd97da95c3ef9a45fa97995d95a5d776.tar.gz
Merge branch 'GD-2.2'
* GD-2.2: fix #227 drop usage of GD_BILINEAR_FIXED and GD_BICUBIC_FIXED for gdImageRotateInterpolated, the quality does not match expectation. It is also trickier to maintain for little gain. The generic method is used and will be optimized for 2.3 to match fixed pt performance, if necessary. Also use png for comparison to avoid jpeg artifact, making impossible to exactly compare results fix #227 drop usage of GD_BILINEAR_FIXED and GD_BICUBIC_FIXED for gdImageRotateInterpolated, the quality does not match expectation. It is also trickier to maintain for little gain. The generic method is used and will be optimized for 2.3 to match fixed pt performance, if necessary. Also use png for comparison to avoid jpeg artifact, making impossible to exactly compare results fix #227 drop usage of GD_BILINEAR_FIXED and GD_BICUBIC_FIXED for gdImageRotateInterpolated, the quality does not match expectation. It is also trickier to maintain for little gain. The generic method is used and will be optimized for 2.3 to match fixed pt performance, if necessary. Also use png for comparison to avoid jpeg artifact, making impossible to exactly compare results WS #230 fix crash on fail gdTestAssert should not accept any message. Also crashes if assert failed Conflicts: tests/gdimagerotate/bug00067.c tests/gdtest/gdtest.c
Diffstat (limited to 'src/gd.h')
-rw-r--r--src/gd.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gd.h b/src/gd.h
index da254ee..4498392 100644
--- a/src/gd.h
+++ b/src/gd.h
@@ -208,6 +208,7 @@ enum gdPaletteQuantizationMethod {
* GD_SINC - Sinc
* GD_TRIANGLE - Triangle
* GD_WEIGHTED4 - 4 pixels weighted bilinear interpolation
+ * GD_LINEAR - bilinear interpolation
*
* See also:
* <gdSetInterpolationMethod>
@@ -235,7 +236,8 @@ typedef enum {
GD_SINC,
GD_TRIANGLE,
GD_WEIGHTED4,
- GD_METHOD_COUNT = 21
+ GD_LINEAR,
+ GD_METHOD_COUNT = 23
} gdInterpolationMethod;
/* define struct with name and func ptr and add it to gdImageStruct gdInterpolationMethod interpolation; */