Commits

Author Commit Message Labels Comments Date
Chris Reuter
Merged libgd/gd-libgd into master
Chris Reuter
Added another Makefile. This change adds a Makefile and bash script for building and testing libgd on Windows with MinGW and MSYS. This was written after I concluded that it was easier and faster to just write a new Makefile from scratch than to get autotools or CMake to play nicely with my Windows installation.
Chris Reuter
Bug fix: tests didn't (always) return a valid status. gdImageAALine_thickness.c didn't explicitly return 0 on success. gdimageline_bug5.c was not an actual test at all. It now confirms that the tested operation (a line draw) alters the image it draws on. (Not ideal but better than what it did before.)
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…
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.
Branches
version-api
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.
Branches
version-api
Chris Reuter
Test case for new version code. This adds a simple test case that compares the version API results against the values in src/version.h.
Branches
version-api
Chris Reuter
Moved version number to src/version.h 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 gives the wrong version when the DLL is updated without recompiling the client. This change adds several functions to the API to return the version inf…
Branches
version-api
Chris Reuter
Merged libgd/gd-libgd into master
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…
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
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.
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.
Chris Reuter
Merged libgd/gd-libgd into master
Pierre Joye
Merged in suetanvil/gd-libgd/suetanvil (pull request #12) Fixed memory overrun bug in gdImageScaleTwoPass
  1. Prev
  2. Next