imager.git
8 years agoJPEG: fix some format string/argument type mismatches
Tony Cook [Mon, 1 Apr 2013 02:51:02 +0000 (13:51 +1100)]
JPEG: fix some format string/argument type mismatches

8 years agoFT2: fix some format string/argument type mismatches
Tony Cook [Mon, 1 Apr 2013 02:50:41 +0000 (13:50 +1100)]
FT2: fix some format string/argument type mismatches

8 years agopre-5.10 perlio doesn't report read errors properly, skip tests
Tony Cook [Mon, 1 Apr 2013 02:50:07 +0000 (13:50 +1100)]
pre-5.10 perlio doesn't report read errors properly, skip tests

8 years agoreport the version of Inline used during testing
Tony Cook [Mon, 1 Apr 2013 02:49:23 +0000 (13:49 +1100)]
report the version of Inline used during testing

8 years ago0.94_01 release v0.94_01
Tony Cook [Sat, 2 Mar 2013 08:30:41 +0000 (19:30 +1100)]
0.94_01 release

8 years agoallocate the correct number of stack entries for glyph_names()
Tony Cook [Fri, 1 Mar 2013 12:08:01 +0000 (23:08 +1100)]
allocate the correct number of stack entries for glyph_names()

Each of the drivers allocated count entries then attempted to use entry
"count".  Allocate count+1 entries instead

8 years agomissing variable initialization for glyph_names for FT2
Tony Cook [Fri, 1 Mar 2013 12:07:06 +0000 (23:07 +1100)]
missing variable initialization for glyph_names for FT2

8 years ago[rt #83454] document that font errors are in Imager->errstr
Tony Cook [Fri, 1 Mar 2013 11:22:53 +0000 (22:22 +1100)]
[rt #83454] document that font errors are in Imager->errstr

(mostly)

8 years agomore Changes updates
Tony Cook [Thu, 28 Feb 2013 05:33:49 +0000 (16:33 +1100)]
more Changes updates

8 years agoproperly test UTF8 handling for FT1, and fix it
Tony Cook [Mon, 25 Feb 2013 12:20:17 +0000 (23:20 +1100)]
properly test UTF8 handling for FT1, and fix it

8 years agoimplement standard font tests for Imager::Font::W32
Tony Cook [Mon, 25 Feb 2013 11:34:32 +0000 (22:34 +1100)]
implement standard font tests for Imager::Font::W32

8 years agosome Changes updates
Tony Cook [Sat, 23 Feb 2013 10:25:55 +0000 (21:25 +1100)]
some Changes updates

8 years agofix T1 test sample output
Tony Cook [Sat, 23 Feb 2013 10:25:32 +0000 (21:25 +1100)]
fix T1 test sample output

8 years agodocument can_glyph_names()
Tony Cook [Sat, 23 Feb 2013 03:30:21 +0000 (14:30 +1100)]
document can_glyph_names()

8 years agouse the standard font tests for Freetype 1.x (TT) too
Tony Cook [Sat, 23 Feb 2013 03:30:08 +0000 (14:30 +1100)]
use the standard font tests for Freetype 1.x (TT) too

and fix the code to pass them

8 years agouse the standard font tests for FT2 too
Tony Cook [Sat, 23 Feb 2013 03:29:18 +0000 (14:29 +1100)]
use the standard font tests for FT2 too

8 years agotest that sub-module MANIFESTs include all the files the main MANIFEST does
Tony Cook [Sat, 23 Feb 2013 03:28:15 +0000 (14:28 +1100)]
test that sub-module MANIFESTs include all the files the main MANIFEST does

and fix the sub-module MANIFESTs

8 years agopull some basic tests all fonts should pass into Imager::Test
Tony Cook [Sat, 23 Feb 2013 03:26:55 +0000 (14:26 +1100)]
pull some basic tests all fonts should pass into Imager::Test

and make sure T1 passes them

8 years agoprefer static first
Tony Cook [Sat, 23 Feb 2013 03:08:36 +0000 (14:08 +1100)]
prefer static first

8 years agofix channel output for FT2
Tony Cook [Fri, 22 Feb 2013 12:06:13 +0000 (23:06 +1100)]
fix channel output for FT2

8 years agofix error handling for invalid utf8 for T1
Tony Cook [Fri, 22 Feb 2013 04:13:19 +0000 (15:13 +1100)]
fix error handling for invalid utf8 for T1

8 years agofix error handling in the bounding_box() wrapper method
Tony Cook [Fri, 22 Feb 2013 00:29:07 +0000 (11:29 +1100)]
fix error handling in the bounding_box() wrapper method

8 years agotests and fixes for corrrect handling of magic in T1
Tony Cook [Thu, 21 Feb 2013 09:46:08 +0000 (20:46 +1100)]
tests and fixes for corrrect handling of magic in T1

8 years agotests and fixes for correct handling of get magic in FT2
Tony Cook [Thu, 21 Feb 2013 05:40:03 +0000 (16:40 +1100)]
tests and fixes for correct handling of get magic in FT2

8 years agofix some internal FT2 documentation
Tony Cook [Thu, 21 Feb 2013 05:06:55 +0000 (16:06 +1100)]
fix some internal FT2 documentation

8 years agoremove an unused variable declaration
Tony Cook [Thu, 21 Feb 2013 03:38:20 +0000 (14:38 +1100)]
remove an unused variable declaration

8 years agofix some compiler warnings
Tony Cook [Thu, 21 Feb 2013 03:37:59 +0000 (14:37 +1100)]
fix some compiler warnings

8 years agoavoid undefined behaviour adding integers
Tony Cook [Thu, 21 Feb 2013 03:37:20 +0000 (14:37 +1100)]
avoid undefined behaviour adding integers

8 years agomark mm_log() for the API with the right gcc -Wformat magic
Tony Cook [Thu, 21 Feb 2013 03:31:18 +0000 (14:31 +1100)]
mark mm_log() for the API with the right gcc -Wformat magic

and fix the format strings vs arguments errors revealed

8 years agoupdate Changes with recent fixes
Tony Cook [Tue, 19 Feb 2013 06:36:56 +0000 (17:36 +1100)]
update Changes with recent fixes

8 years ago[rt #83434] fix a POD list mixing named and bulleted items
Tony Cook [Tue, 19 Feb 2013 06:26:58 +0000 (17:26 +1100)]
[rt #83434] fix a POD list mixing named and bulleted items

8 years agoavoid a probably unwarranted compiler warning
Tony Cook [Mon, 18 Feb 2013 12:31:35 +0000 (23:31 +1100)]
avoid a probably unwarranted compiler warning

8 years agochange note for the rotate change
Tony Cook [Mon, 18 Feb 2013 12:31:18 +0000 (23:31 +1100)]
change note for the rotate change

8 years ago[rt #83212] avoid a possible bad optimizer on centos 5.9
Tony Cook [Mon, 18 Feb 2013 12:21:45 +0000 (23:21 +1100)]
[rt #83212] avoid a possible bad optimizer on centos 5.9

rotate(degrees => 270) was producing glitches near the horizontal and
vertical centrelines only on 5.9 with the default (perl config
specified) optimizations.  These disappeared when Imager was built with
-O1 instead.

Re-arranged some code to avoid duplicate floor() and double -> long
conversions which seems to have avoided the optimization problem.

8 years agohandle older perls for the new perlio integration
Tony Cook [Mon, 18 Feb 2013 08:59:10 +0000 (19:59 +1100)]
handle older perls for the new perlio integration

8 years agoskip t/x30podlinkcheck.t if Pod::Parser 1.50 not available
Tony Cook [Mon, 18 Feb 2013 08:58:22 +0000 (19:58 +1100)]
skip t/x30podlinkcheck.t if Pod::Parser 1.50 not available

8 years agoupdate sub-module READMEs
Tony Cook [Mon, 18 Feb 2013 04:48:51 +0000 (15:48 +1100)]
update sub-module READMEs

- they point at the -dev or -devel package

- they point at Imager::Install

- other minor changes

8 years agochange note for the JPEG version reporting change
Tony Cook [Mon, 18 Feb 2013 03:20:35 +0000 (14:20 +1100)]
change note for the JPEG version reporting change

8 years agotest code now reports the (compile-time) library version
Tony Cook [Mon, 18 Feb 2013 03:19:25 +0000 (14:19 +1100)]
test code now reports the (compile-time) library version

8 years agomake errep.pl's report more verbose
Tony Cook [Fri, 15 Feb 2013 09:56:15 +0000 (20:56 +1100)]
make errep.pl's report more verbose

8 years agoPNG supports more sample sizes now
Tony Cook [Fri, 15 Feb 2013 09:55:47 +0000 (20:55 +1100)]
PNG supports more sample sizes now

8 years agochange note for README to Imager::Install move
Tony Cook [Fri, 15 Feb 2013 06:01:13 +0000 (17:01 +1100)]
change note for README to Imager::Install move

8 years agomove most of README to lib/Imager/Install.pod
Tony Cook [Fri, 15 Feb 2013 05:43:11 +0000 (16:43 +1100)]
move most of README to lib/Imager/Install.pod

8 years ago[rt #82743] fix the Graphics::Magick link
Tony Cook [Mon, 21 Jan 2013 10:31:22 +0000 (21:31 +1100)]
[rt #82743] fix the Graphics::Magick link

8 years agotest Imager::IO::new_fh() itself with a perlio handle
Tony Cook [Mon, 21 Jan 2013 10:10:30 +0000 (21:10 +1100)]
test Imager::IO::new_fh() itself with a perlio handle

8 years agoSupport tied/layered fh parameters for read()/write()
Tony Cook [Sat, 12 Jan 2013 04:28:54 +0000 (15:28 +1100)]
Support tied/layered fh parameters for read()/write()

8 years agochange note for the file handle changes
Tony Cook [Sat, 12 Jan 2013 04:28:22 +0000 (15:28 +1100)]
change note for the file handle changes

8 years agosupport tied file handles
Tony Cook [Sat, 12 Jan 2013 03:20:18 +0000 (14:20 +1100)]
support tied file handles

8 years agosupport for perl 5.6
Tony Cook [Fri, 11 Jan 2013 23:35:25 +0000 (10:35 +1100)]
support for perl 5.6

8 years agouse PerlIO_* calls to read/write if supplied a fh
Tony Cook [Fri, 11 Jan 2013 12:27:39 +0000 (23:27 +1100)]
use PerlIO_* calls to read/write if supplied a fh

8 years agocorrect the version for improved threads support
Tony Cook [Sat, 15 Dec 2012 00:07:32 +0000 (11:07 +1100)]
correct the version for improved threads support

8 years agorelease Imager 0.94 v0.94
Tony Cook [Fri, 14 Dec 2012 23:03:16 +0000 (10:03 +1100)]
release Imager 0.94

8 years agobump FT2 version to differentiate from Imager 0.93_02
Tony Cook [Fri, 14 Dec 2012 22:38:28 +0000 (09:38 +1100)]
bump FT2 version to differentiate from Imager 0.93_02

8 years agoimproved support for threads
Tony Cook [Fri, 14 Dec 2012 09:44:16 +0000 (20:44 +1100)]
improved support for threads

8 years agoupdate skip messages to match Imager's new threads support
Tony Cook [Fri, 14 Dec 2012 09:43:39 +0000 (20:43 +1100)]
update skip messages to match Imager's new threads support

8 years agonote ABI compatibility restoration
Tony Cook [Fri, 23 Nov 2012 10:23:10 +0000 (21:23 +1100)]
note ABI compatibility restoration

8 years agorestore ABI level 5 compatibility
Tony Cook [Mon, 19 Nov 2012 08:33:51 +0000 (19:33 +1100)]
restore ABI level 5 compatibility

8 years agoconsistently use _valid_image() internally to ensure image validity
Tony Cook [Mon, 12 Nov 2012 10:09:46 +0000 (21:09 +1100)]
consistently use _valid_image() internally to ensure image validity

and test for it.

8 years agocheck for the remnant from thread creation in _valid_image
Tony Cook [Mon, 12 Nov 2012 10:09:09 +0000 (21:09 +1100)]
check for the remnant from thread creation in _valid_image

CLONE_SKIP simply unblesses the thingy on thread creation, so for the
image to be valid the IMG entry needs to be blessed (as well as true)

8 years agoallow supplying make options to imcover.perl and abort on make failure
Tony Cook [Mon, 12 Nov 2012 10:02:47 +0000 (21:02 +1100)]
allow supplying make options to imcover.perl and abort on make failure

8 years agoconvert t68map.t to Test::More
Tony Cook [Fri, 9 Nov 2012 10:57:45 +0000 (21:57 +1100)]
convert t68map.t to Test::More

8 years agotest image file limits are thread localized
Tony Cook [Mon, 29 Oct 2012 10:44:40 +0000 (21:44 +1100)]
test image file limits are thread localized

8 years agodocument when the slot destructor is called
Tony Cook [Mon, 29 Oct 2012 10:03:51 +0000 (21:03 +1100)]
document when the slot destructor is called

8 years agoavoid some possible race conditions for context slots
Tony Cook [Mon, 29 Oct 2012 10:03:35 +0000 (21:03 +1100)]
avoid some possible race conditions for context slots

8 years agoproperly initialize slot_alloc for new contexts
Tony Cook [Mon, 29 Oct 2012 10:01:49 +0000 (21:01 +1100)]
properly initialize slot_alloc for new contexts

8 years agohandle the race between writing the head and tail of an entry between threads
Tony Cook [Sat, 27 Oct 2012 02:18:10 +0000 (13:18 +1100)]
handle the race between writing the head and tail of an entry between threads

in some cases the head and tails from different threads would interleave

8 years agoclean up some old junk in log.c
Tony Cook [Sat, 27 Oct 2012 02:16:52 +0000 (13:16 +1100)]
clean up some old junk in log.c

8 years agotests for context handling of the error stack
Tony Cook [Sat, 27 Oct 2012 01:21:58 +0000 (12:21 +1100)]
tests for context handling of the error stack

8 years agodon't clone the error stack
Tony Cook [Sat, 27 Oct 2012 01:18:13 +0000 (12:18 +1100)]
don't clone the error stack

8 years agotest thread context handling for logging
Tony Cook [Thu, 25 Oct 2012 13:12:10 +0000 (00:12 +1100)]
test thread context handling for logging

8 years agoabort under automated testing if we can't find threads support code
Tony Cook [Thu, 25 Oct 2012 04:01:06 +0000 (15:01 +1100)]
abort under automated testing if we can't find threads support code

8 years agoonly define im_assert_fail() when assertions are enabled.
Tony Cook [Thu, 25 Oct 2012 03:43:29 +0000 (14:43 +1100)]
only define im_assert_fail() when assertions are enabled.

8 years agoavoid trying to gcov unincluded files
Tony Cook [Thu, 25 Oct 2012 03:42:59 +0000 (14:42 +1100)]
avoid trying to gcov unincluded files

some C files included with Imager are not included in every build
avoid the noise of trying to gcov them when they aren't

8 years agopass extra imcover.perl command-line options through to Makefile.PL
Tony Cook [Thu, 25 Oct 2012 03:41:50 +0000 (14:41 +1100)]
pass extra imcover.perl command-line options through to Makefile.PL

8 years agoallow coverage testing to test only .c code coverage
Tony Cook [Thu, 25 Oct 2012 03:39:06 +0000 (14:39 +1100)]
allow coverage testing to test only .c code coverage

this allows me to test coverage of code only tested by threading,
since Devel::Cover and ithreads don't (or didn't) get along well.

8 years agohopefully fix the seg fault on darwin
Tony Cook [Mon, 22 Oct 2012 11:18:57 +0000 (22:18 +1100)]
hopefully fix the seg fault on darwin

also fixes a leak where the old fh wasn't closed when init_log was called

8 years agonote the ft1 change in Changes
Tony Cook [Sat, 20 Oct 2012 00:17:39 +0000 (11:17 +1100)]
note the ft1 change in Changes

8 years agosupport threading with Imager's Freetype 1.x driver
Tony Cook [Mon, 10 Sep 2012 12:33:56 +0000 (22:33 +1000)]
support threading with Imager's Freetype 1.x driver

This creates a new engine for each perl thread, which is meant to be
enough to be thread safe.

8 years agorename font.c to fontft1.c, since it only does FT1 now
Tony Cook [Mon, 10 Sep 2012 10:18:43 +0000 (20:18 +1000)]
rename font.c to fontft1.c, since it only does FT1 now

8 years agoupdate Changes for FT2 thread safety
Tony Cook [Sat, 20 Oct 2012 00:14:40 +0000 (11:14 +1100)]
update Changes for FT2 thread safety

8 years agomore thread docs
Tony Cook [Mon, 15 Oct 2012 13:15:51 +0000 (00:15 +1100)]
more thread docs

8 years agothread safety for the FT2 driver
Tony Cook [Mon, 15 Oct 2012 13:12:29 +0000 (00:12 +1100)]
thread safety for the FT2 driver

8 years agoprovide better control over AA, and improve error handling
Tony Cook [Sun, 9 Sep 2012 04:21:58 +0000 (14:21 +1000)]
provide better control over AA, and improve error handling

8 years agothread-safe T1lib interface
Tony Cook [Sun, 9 Sep 2012 01:43:11 +0000 (11:43 +1000)]
thread-safe T1lib interface

T1lib itself doesn't provide a thread-safe API, so we control access
to it via a mutex.

8 years agomore TODOs
Tony Cook [Sun, 26 Aug 2012 05:18:45 +0000 (15:18 +1000)]
more TODOs

8 years agoadd the context slot APIs
Tony Cook [Sun, 26 Aug 2012 05:18:27 +0000 (15:18 +1000)]
add the context slot APIs

8 years agouse stdc malloc instead of mymalloc()
Tony Cook [Mon, 15 Oct 2012 12:26:11 +0000 (23:26 +1100)]
use stdc malloc instead of mymalloc()

8 years agodocument threads support
Tony Cook [Sat, 18 Aug 2012 00:20:44 +0000 (10:20 +1000)]
document threads support

8 years agoavoid re-entrancy into giflib using the mutex API
Tony Cook [Mon, 15 Oct 2012 12:23:22 +0000 (23:23 +1100)]
avoid re-entrancy into giflib using the mutex API

8 years agoavoid re-entrancy into libtiff using the mutex api
Tony Cook [Sat, 25 Aug 2012 03:00:08 +0000 (13:00 +1000)]
avoid re-entrancy into libtiff using the mutex api

8 years agoadd mutex functions to the API
Tony Cook [Mon, 22 Oct 2012 10:01:41 +0000 (21:01 +1100)]
add mutex functions to the API

8 years agoupdate MANIFEST for missing files
Tony Cook [Mon, 15 Oct 2012 11:32:05 +0000 (22:32 +1100)]
update MANIFEST for missing files

8 years agostart a change note
Tony Cook [Thu, 16 Aug 2012 09:54:41 +0000 (19:54 +1000)]
start a change note

8 years agotest for uncommitted changes too
Tony Cook [Thu, 16 Aug 2012 09:50:20 +0000 (19:50 +1000)]
test for uncommitted changes too

8 years agofill out documentation
Tony Cook [Mon, 13 Aug 2012 12:17:22 +0000 (22:17 +1000)]
fill out documentation

8 years agoeliminate some unused code
Tony Cook [Tue, 14 Aug 2012 05:09:53 +0000 (15:09 +1000)]
eliminate some unused code

8 years agopick up im_ prefix functions too
Tony Cook [Mon, 13 Aug 2012 08:09:52 +0000 (18:09 +1000)]
pick up im_ prefix functions too

8 years agoavoid i_push_errorf() and i_fatal() in a few more places
Tony Cook [Mon, 13 Aug 2012 08:12:07 +0000 (18:12 +1000)]
avoid i_push_errorf() and i_fatal() in a few more places

8 years agoadd i_errors()/im_errors() to the API
Tony Cook [Mon, 13 Aug 2012 08:17:07 +0000 (18:17 +1000)]
add i_errors()/im_errors() to the API

8 years agomore i_fatal
Tony Cook [Mon, 13 Aug 2012 08:18:17 +0000 (18:18 +1000)]
more i_fatal