Commits

Show all
Author Commit Message Labels Comments Date
Chris Reuter
Merge branch 'master' of https://bitbucket.org/libgd/gd-libgd
Nathanael Jones
Merge remote-tracking branch 'refs/remotes/origin/master'
Nathanael Jones
bootstrap.sh now offers build tips on OS X and defaults to glibtoolize
Chris Reuter
Merge branch 'master' of https://bitbucket.org/suetanvil/gd-libgd. This pulls in the new version-number code.
Chris Reuter
Merged libgd/gd-libgd into master
Chris Reuter
Fixed a comment. getver.pl comment referred to file src/version.h. It should have been src/gd.h. This is now fixed.
Chris Reuter
Added new files to CMakeLists.txt. Added new sources and tests to the relevant CMakeLists.txt files. NOTE: This works for me but I am not a cmake expert.
Chris Reuter
Updated Netware makefile Makefile.netware (via an AWK script) used to pull the version numbers from configure.ac. Since they are no longer there, 'configure.ac' puts them into 'configure' for Makefile.netware to find. This change makes it look there. NOTE: This has not been tested on a Netware system.
Chris Reuter
Test case for new version code. This adds a simple test of the version API functions.
Chris Reuter
gd.h now holds the canonical version number. Up to now, the version numbers were defined in configure.ac and put into gd.h by generating it from gd.h.in, replacing the values of several C macros. This violates the DRY principle, won't work on a dumb build system, confuses some dev tools and is just a huge headache in general. This change makes gd.h (no longer generated) the home of the version number and provides a script (config/getver.pl…
Nathanael Jones
Keep automake from complaining "automake: but option 'subdir-objects' is disabled"
Chris Reuter
Merged libgd/gd-libgd into master
Chris Reuter
Merge branch 'master' of https://bitbucket.org/libgd/gd-libgd Pull from upstream.
Chris Reuter
Merged in suetanvil/gd-libgd/scale-palette-image-bug (pull request #16) Fix for #97
Chris Reuter
Merged in suetanvil/gd-libgd/interp-precision (pull request #15) Higher precision in scaling.
Chris Reuter
Fix for Issue #97: segfaults when scaling a non-truecolor image gdImageScaleTwoPass() now converts palette sources to truecolor before scaling. This is consistent with the behaviour of the other scale functions.
Chris Reuter
Added test case to exercise all of the gdImageScale() modes. Creates and shrinks a bunch of images using gdImageScale(), once per mode in both palette and truecolor. It does not use GD_DEFAULT (which is equivalent to one of the others) or GD_WEIGHTED4 (unsupported for scaling). Note that this test does not check if the resulting image looks anything like the source.
Chris Reuter
Merged libgd/gd-libgd into master
Chris Reuter
Higher precision in scaling. Scaling (i.e. _gdScaleOneAxis()) used to accumulate the weighted samples in unsigned char variables. This truncated the floating-point result toward zero, leading to a darker image and quantization of colour gradients. This change switches to keeping the values in doubles and only coverting the final sums to unsigned char. In addition to producing a better result, it is also about 10-15% faster…
Chris Reuter
Higher precision in scaling. Scaling (i.e. _gdScaleOneAxis()) accumulated the weighted samples in unsigned char variables. This truncated the floating-point result toward zero, leading to a darker image and quantization of colour gradients. Switching to round (via round() in math.h) led to overflows on very bright regions. This change switches to keeping the values in doubles and only coverting the final sums to unsigned c…
Chris Reuter
More dead code removal. Missed the typedef. This patch gets it.
Chris Reuter
Removed some dead code. Removed an unused enum type from gd_interpolation.c. This was the original version of gdInterpolationMethod in gd.h.
Pierre Joye
Merged in suetanvil/gd-libgd/suetanvil-scale-code-cleanup (pull request #14) Major cleanup of FP scaling code
Pierre Joye
Merged in suetanvil/gd-libgd/suetanvil-dead-code-removal (pull request #13) Removed some dead code
Chris Reuter
Merge branch 'private-scale-axis-merge-rebased'
Chris Reuter
Bug fix: #92: Bicubic scaling leaves the rightmost and bottom rows black This turns out to be a simple off-by-one error. Issue URL: https://bitbucket.org/libgd/gd-libgd/issue/92/bicubic-scaling-leaves-the-rightmost-and
Chris Reuter
Added a test case for gdImageScaleTwoPass(). This testcase does some basic resizing using bicubic interpolation and ensures the result is sane. It does not verify image quality, just that the functions return acceptible values.
Chris Reuter
Improved testing code Assertions in gdtest.c do nothing on failure except print a message. This change also makes them keep a count of failures which can be retrieved with the function 'gdNumFailures()', making it easy to return an error status if an assertion condition fails. Also added gdMaxPixelDiff(), a function to return the largest difference between two corresponding pixels. Used to detect pixels that are simi…
Chris Reuter
Cleaned up floating-point rescaling code. These changes improve readability without negatively affecting correctness or performance. 1) The code to do horizontal and vertical scaling were mostly identical. This change merges them. 2) The case where the original and result sizes were identical were handled inefficiently (and probably incorrectly) by copying the source to the destination with memcpy. This change makes a simple copy if b…
Chris Reuter
More dead code removal. Missed the typedef. This patch gets it.
  1. Prev
  2. Next