John Bowler
7875d534cb
[libpng15] Simplified read/write API initial version; basic read/write tested
...
on a variety of images, limited documentation (in the header file.)
2011-11-07 22:33:49 -06:00
Glenn Randers-Pehrson
d58251b47e
[libpng15] Reverted previous change; removed png_get_compression_buffer() API.
...
It is too risky. Exactly how png_ptr->zbuf is used is under control of the
individual chunk implementation and there could easily be significant changes
within a major release.
2011-10-13 20:30:02 -05:00
Glenn Randers-Pehrson
d3dcb463d6
[libpng15] Added png_get_compression_buffer() API.
2011-10-13 17:51:31 -05:00
John Bowler
751561218f
[libpng15] Constant changes for 64-bit compatibility (removal of L suffixes).
...
The 16-bit cases still use "L" as we don't have a 16-bit test system.
2011-09-09 17:21:44 -05:00
Glenn Randers-Pehrson
d404b6d488
[devel] Imported from libpng-1.5.4.tar
2011-07-07 06:26:30 -05:00
John Bowler
8d261262d9
[devel] Fixed pngvalid, simplified macros, added checking for 0 in sCAL.
2011-06-18 13:37:11 -05:00
Glenn Randers-Pehrson
66b942ce16
[devel] Changed a dependence in scripts/pnglibconf.dfa
2011-06-17 21:17:16 -05:00
Glenn Randers-Pehrson
fb29e51dbd
[devel] Imported from libpng-1.5.4beta05.tar
2011-06-17 20:42:19 -05:00
Glenn Randers-Pehrson
5f0b9276ec
[devel] Made PNG_READ_16_TO_8_ACCURATE_SCALE configurable again.
...
If this is not enabled, png_set_strip_16() and png_do_scale_16_to_8()
aren't built.
2011-06-16 09:05:40 -05:00
Glenn Randers-Pehrson
2232baa41b
[devel] Made png_set_chop_16() API removeable
...
by disabling PNG_CHOP_16_TO_8_SUPPORTED
2011-06-14 06:59:46 -05:00
Glenn Randers-Pehrson
413138a5ca
[devel] Added png_set_chop_16() API.
2011-06-13 22:07:37 -05:00
Glenn Randers-Pehrson
97039baa88
[devel] Imported from libpng-1.5.4beta01.tar
2011-06-13 20:09:22 -05:00
John Bowler
b2bee3374c
[devel] Make the 16-to-8 scaling accurate. Dividing by 256 with no rounding is
...
wrong (high by one) 25% of the time. Dividing by 257 with rounding is
wrong in 128 out of 65536 cases. Getting the right answer all the time
without division is easy.
2011-06-10 23:24:58 -05:00
John Bowler
d273ad2d0f
[devel] Implementation of premultiplied alpha support: png_set_alpha_mode
...
(libpng-manual.txt still to be updated, see png.h for documentation.)
2011-05-07 21:00:28 -05:00
Glenn Randers-Pehrson
af855e415d
[devel] Remove some trailing blanks.
2011-05-07 10:54:28 -05:00
John Bowler
c5bef946b1
[devel] IDAT compression failed if preceded by a compressed text chunk
...
This was because the attempt to reset the zlib stream in png_write_IDAT
happened after the first IDAT chunk had been deflated - much too late.
In this change internal functions are added to claim/release the z_stream
and, hopefully, make the code more robust. Also deflateEnd checking is
added - previously libpng would ignore an error at the end of the stream.
2011-05-05 17:35:39 -05:00
Glenn Randers-Pehrson
c559bb58ed
[devel] Added PNG_WRITE_OPTIMIZE_CMF_SUPPORTED macro to make zlib "CMF"
...
optimization configureable.
2011-05-05 16:55:20 -05:00
John Bowler
88b77cc6f3
[devel] Remove png_snprintf, add formatted warning messages.
...
This change adds internal APIs to allow png_warning messages to have parameters
without requiring the host OS to implelment snprintf. As a side effect the
dependency of the RFC1132 code on stdio is removed and PNG_NO_WARNINGS does
actually work now.
2011-05-05 06:49:55 -05:00
John Bowler
4a12f4a22a
[devel] Cleanup of conditional compilation code and of background/gamma
...
handling. Internal changes only except for a new option to avoid compiling
in the png_build_grayscale_palette API (which is not used at all internally.)
The main change is to move the transform tests (READ_TRANSFORMS,
WRITE_TRANSFORMS) up one level to the caller of the APIs.
2011-04-17 18:34:22 -05:00
Glenn Randers-Pehrson
bdb0130aea
[devel] Remove "sPLT" from list of chunks that require compressed text
2011-04-01 14:55:01 -05:00
Glenn Randers-Pehrson
5975f31ff0
[devel] Added PNG_READ_COMPRESSED_TEXT_SUPPORTED macro.
2011-04-01 13:15:36 -05:00
Glenn Randers-Pehrson
1ecd786d95
[devel] Enable API for setting zlib non-IDAT parameters.
2011-03-31 20:53:47 -05:00
John Bowler
4d56296443
[devel] Implement expansion to 16 bits
2011-02-12 09:01:20 -06:00
John Bowler
0a5c9c02fa
[devel] Corrected const_png_ in png.h to png_const_ to avoid polluting
...
the namespace. Added png_get_current_row_number and
png_get_current_pass_number for the
benefit of the user transform callback.
Added png_process_data_pause and png_process_data_skip for the benefit of
progressive readers that need to stop data processing or want to optimize
skipping of unread data (e.g. if the reader marks a chunk to be skipped.)
2011-01-22 17:36:34 -06:00
Glenn Randers-Pehrson
5c5db5a55f
[devel] Imported from libpng-1.5.1beta07.tar
2011-01-21 23:32:11 -06:00
Glenn Randers-Pehrson
f5ea1b7095
[devel] Imported from libpng-1.5.0.tar
2011-01-06 06:45:07 -06:00
Glenn Randers-Pehrson
5f59c87604
[devel] Fixed some incorrect "=" macro names in pnglibconf.dfa
2010-12-06 18:45:59 -06:00
Glenn Randers-Pehrson
e5900f1bc9
[devel] Removed "betaNN" from pnglibconf.dfa and pnglibconf.h.prebuilt
2010-10-15 20:05:41 -05:00
Glenn Randers-Pehrson
85497d7a4b
[devel] Changed embedded dates in some scripts to "(PENDING RELEASE)"
2010-10-15 19:58:56 -05:00
Glenn Randers-Pehrson
5393915bf6
[devel] Bump to version libpng-1.5.0beta53
2010-10-15 19:28:31 -05:00
Glenn Randers-Pehrson
f197d6d0f6
[devel] Imported from libpng-1.5.0beta52.tar
2010-10-15 19:28:22 -05:00
Glenn Randers-Pehrson
4fa1816cf6
[devel] Restored some of the embedded dates
2010-10-15 19:14:36 -05:00
Glenn Randers-Pehrson
1c91ab2586
[devel] Bump to version libpng-1.5.0beta52
2010-10-15 15:13:31 -05:00
Glenn Randers-Pehrson
f0eda4e8d7
[devel] Imported from libpng-1.5.0beta51.tar
2010-10-15 15:08:42 -05:00
Glenn Randers-Pehrson
a0de64f3c3
[devel] Bump to version 1.5.0beta51
2010-10-14 07:35:54 -05:00
Glenn Randers-Pehrson
7e1fabe2f7
[devel] Imported from libpng-1.5.0beta50.tar
2010-10-14 07:35:45 -05:00
Glenn Randers-Pehrson
94b582e45e
[devel] Bump to version 1.5.0beta50
2010-10-07 22:34:33 -05:00
Glenn Randers-Pehrson
1b49a71df4
[devel] Imported from libpng-1.5.0beta49.tar
2010-10-07 21:01:17 -05:00
Glenn Randers-Pehrson
209eee579a
[devel] Bump to version libpng-1.5.0beta49
2010-10-04 23:06:17 -05:00
Glenn Randers-Pehrson
83b4fc4af4
[devel] Imported from libpng-1.5.0beta48.tar
2010-10-04 23:06:09 -05:00
Glenn Randers-Pehrson
b0876110ca
[devel] Fixed problem with symbols creation in Makefile.am which was assuming
...
that CCP writes to standard output by default (Martin Banky).
2010-10-04 22:24:14 -05:00
Glenn Randers-Pehrson
4f8e7e5f41
[devel] Bump to version libpng-1.5.0beta48
2010-09-10 22:16:59 -05:00
Glenn Randers-Pehrson
e197cded79
[devel] Imported from libpng-1.5.0beta47.tar
2010-09-10 22:16:51 -05:00
Glenn Randers-Pehrson
9a5c1c180f
[devel] Bump to version libpng-1.5.0beta47
2010-08-28 06:25:37 -05:00
Glenn Randers-Pehrson
39515c9ee0
[devel] Imported from libpng-1.5.0beta46.tar
2010-08-28 06:25:21 -05:00
Glenn Randers-Pehrson
8ca1700976
[devel] Expanded commentary in scripts/pnglibconf.dfa
2010-08-27 14:31:19 -05:00
Glenn Randers-Pehrson
fded04fbf6
[devel] Revised pngvalid.c 16-to-8-big conversion tests
2010-08-27 14:21:21 -05:00
Glenn Randers-Pehrson
0c57414490
[devel] Added "option READ_16_TO_8 on" to contrib/pngminim/decoder/pnglibconf.dfa
...
and contrib/pngminim/preader/pnglibconf.dfa
2010-08-27 09:37:06 -05:00
Glenn Randers-Pehrson
55f71781d8
[devel] Made PNG_READ_16_TO_8 depend on PNG_NO_16BIT in scripts/pnglibconf.dfa
2010-08-26 22:47:59 -05:00
Glenn Randers-Pehrson
7d3e6732fb
[devel] Added PNG_WRITE_16BIT_SUPPORTED option.
2010-08-26 17:14:07 -05:00