Commit Graph

13 Commits (6013c7bcf6eb795dba584f92d3824ebd3ae60202)

Author SHA1 Message Date
Mike Frysinger 93bd6d5428 tests: bug00067: revert test code back to pre-merge of 0b9fe91679 2016-06-15 12:18:13 -04:00
Christoph M. Becker 2f79735f3c Fix broken gdimagerotate/bug00067.c test
Sorry, I skrewed up when merging (commit 0b9fe91).
2016-06-15 18:12:59 +02:00
Christoph M. Becker 0b9fe91679 Merge branch 'GD-2.2'
# resolved conflicts:
#	tests/gdimagerotate/bug00067.c
2016-06-15 17:55:38 +02:00
Mike Frysinger d01056211e tests: add helpers for accessing test data
A lot of tests want to read images/fonts that exist in tests/ for reading.
Rather than construct these paths by hand in every single test file, add a
few helper functions to quickly access them.

The helper functions are slightly slower (due to the repeated calls to the
strcat func), but they aren't terribly slow, especially relative to image
loading that these tests perform.  They also make writing/maintaining the
tests a lot easier which is more important here.

Fixes #231.
2016-06-15 10:01:20 -04:00
Pierre Joye ec26bba81d fix bad merge 2016-06-15 10:33:08 +07:00
Pierre Joye e22448e6dd 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
2016-06-15 09:53:28 +07:00
Pierre Joye bd6d2e101f 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 2016-06-15 09:38:22 +07:00
Pierre Joye a0ab07761e Merge branch 'GD-2.2'
* GD-2.2:
  fix #224 and fix #225 and overal quality are significantly improved, code much simpler as well
2016-06-12 13:41:17 +07:00
Pierre Joye 6267414dc2 fix #224 and fix #225 and overal quality are significantly improved, code much simpler as well 2016-06-12 13:40:15 +07:00
Mike Frysinger d6c50766ee tests: add helpers for accessing test data
A lot of tests want to read images/fonts that exist in tests/ for reading.
Rather than construct these paths by hand in every single test file, add a
few helper functions to quickly access them.

The helper functions are slightly slower (due to the repeated calls to the
strcat func), but they aren't terribly slow, especially relative to image
loading that these tests perform.  They also make writing/maintaining the
tests a lot easier which is more important here.
2016-06-03 20:31:02 -04:00
Pierre Joye 3cc4314804 fix test, keep ANSI C pls 2013-06-10 08:36:49 +02:00
Pierre Joye 1e09060f05 add gdImageClone, use gdImageClone for 0 degree rotation, fix expected images for bug00067 test 2013-06-06 08:27:32 +02:00
Ondřej Surý b47e37d8ae Add another test for correct angle for gdImageRotateInterpolated 2013-05-28 11:10:14 +02:00