diff --git a/ANNOUNCE b/ANNOUNCE index 65f1e4699..01923f32e 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -1,5 +1,5 @@ -Libpng 1.7.0beta67 - October 3, 2015 +Libpng 1.7.0beta67 - October 10, 2015 This is not intended to be a public release. It will be replaced within a few weeks by a public version or by another test version. @@ -944,12 +944,13 @@ Version 1.7.0beta66 [October 2, 2015] extended sBIT handling to the colormap code in the simplified API which is separately implemented in pngread.c (John Bowler). -Version 1.7.0beta67 [October 3, 2015] +Version 1.7.0beta67 [October 10, 2015] Fixed 'pow' macros in pngvalid.c. It is legal for 'pow' to be a macro, therefore the argument list cannot contain preprocessing directives. Make sure pow is a function where this happens. This is a minimal safe fix, the issue only arises in non-performance-critical code (bug report by Curtis Leach, fix by John Bowler). + Added sPLT chunk support to pngtest.c Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/CHANGES b/CHANGES index 1bd1d3754..ee43ab2f9 100644 --- a/CHANGES +++ b/CHANGES @@ -5243,12 +5243,13 @@ Version 1.7.0beta66 [October 2, 2015] extended sBIT handling to the colormap code in the simplified API which is separately implemented in pngread.c (John Bowler). -Version 1.7.0beta67 [October 3, 2015] +Version 1.7.0beta67 [October 10, 2015] Fixed 'pow' macros in pngvalid.c. It is legal for 'pow' to be a macro, therefore the argument list cannot contain preprocessing directives. Make sure pow is a function where this happens. This is a minimal safe fix, the issue only arises in non-performance-critical code (bug report by Curtis Leach, fix by John Bowler). + Added sPLT chunk support to pngtest.c Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/pngtest.c b/pngtest.c index 926cfbcb0..0bd7adfd7 100644 --- a/pngtest.c +++ b/pngtest.c @@ -1,7 +1,7 @@ /* pngtest.c - a simple test program to test libpng * - * Last changed in libpng 1.6.18 [(PENDING RELEASE)] + * Last changed in libpng 1.7.0 [(PENDING RELEASE)] * Copyright (c) 1998-2015 Glenn Randers-Pehrson * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) @@ -61,6 +61,7 @@ defined PNG_READ_sBIT_SUPPORTED &&\ defined PNG_READ_sCAL_SUPPORTED &&\ defined PNG_READ_sRGB_SUPPORTED &&\ + defined PNG_READ_sPLT_SUPPORTED &&\ defined PNG_READ_tEXt_SUPPORTED &&\ defined PNG_READ_tIME_SUPPORTED &&\ defined PNG_READ_zTXt_SUPPORTED &&\ @@ -1244,6 +1245,19 @@ test_one_file(PNG_CONST char *inname, PNG_CONST char *outname) #endif #endif #endif + +#ifdef PNG_sPLT_SUPPORTED + { + png_sPLT_tp entries; + + int num_entries = (int) png_get_sPLT(read_ptr, read_info_ptr, &entries); + if (num_entries) + { + png_set_sPLT(write_ptr, write_info_ptr, entries, num_entries); + } + } +#endif + #ifdef PNG_TEXT_SUPPORTED { png_textp text_ptr;