example.c


Log

Author Commit Date CI Message
Glenn Randers-Pehrson 9477ecdf 2013-01-01T07:45:42 [libpng16] Updated copyright year to 2013 in newly-changed files
John Bowler ed3ca0e3 2012-08-31T17:32:36 [libpng16] Fixed the simplified API example programs and improved the error message if the version field is not set.
Glenn Randers-Pehrson 432c174b 2012-08-09T20:14:48 [libpng16] Eliminated use of png_sizeof(); use sizeof() instead, and use. a consistent style for (sizeof type) and (sizeof (array))
Glenn Randers-Pehrson cad0150d 2012-08-08T21:11:55 [libpng16] Corrected handling of row_pointers in example.c and added some comments. It has apparently been wrong since libpng-1.0.1c (confusing use of a 1D and a 2D array for the image source).
Glenn Randers-Pehrson 42ed02ed 2012-03-16T23:17:27 [libpng16] Reverted png_set_itxt(); it would not compile without warnings.
Glenn Randers-Pehrson 31d66245 2012-03-16T13:53:25 [libpng16] Added png_set_itxt() (work in progress)
Glenn Randers-Pehrson f2715a55 2012-03-15T19:52:03 [libpng16] Revised example.c to put text strings in a temporary character array instead of directly assigning string constants to png_textp members. This avoids compiler warnings when -Wwrite-strings is enabled.
Glenn Randers-Pehrson 1531bd61 2012-01-01T14:45:04 [libpng16] Updated copyright year to 2012
John Bowler fcd301da 2011-12-28T21:34:27 [libpng16] Changed png_memcpy to C assignment where appropriate. Changed all those uses of png_memcpy that were doing a simple assignment to assignments (all those cases where the thing being copied is a non-array C L-value.) Added some error checking to png_set_*() routines and removed the reference to the non-exported function png_memcpy() from example.c. Fixed the Visual C 64-bit build - it requires jmp_buf to be aligned, but it had become misaligned.
John Bowler 5d56786e 2011-12-24T09:12:00 [libpng16] Implemented 'restrict' for png_info and png_struct. Added new "png_structrp" typedef. Because of the way libpng works both png_info and png_struct are always accessed via a single pointer. This means adding C99 'restrict' to the pointer gives the compiler some opportunity to optimize the code. This change allows that.
Glenn Randers-Pehrson 13831bc0 2011-12-21T08:28:28 [libpng16] Updated "last changed" dates
John Bowler 414769b4 2011-11-27T21:39:13 [libpng16] Add "free()" and "png_free_image()" calls to example code.
Glenn Randers-Pehrson 2ddb252d 2011-11-25T07:27:51 [libpng16] Updated license info in contrib/examples and example.c
Glenn Randers-Pehrson 7455cbf4 2011-11-24T14:40:36 [libpng16] Update internal version numbering and SO-numbers
Glenn Randers-Pehrson 55e85c24 2011-11-04T13:34:48 [libpng15] Imported from libpng-1.5.7beta01.tar
Glenn Randers-Pehrson 2b7d730e 2011-11-02T23:06:45 [libpng15] Bump version to libpng-1.5.7beta01
Glenn Randers-Pehrson bc6726bc 2011-11-02T22:43:00 [libpng15] Imported from libpng-1.5.6.tar
Glenn Randers-Pehrson 4daae301 2011-10-06T21:37:47 [libpng15] #ifdef out png_progressive_combine_row() when interlacing is not supported.
Glenn Randers-Pehrson d404b6d4 2011-07-07T06:24:57 [devel] Imported from libpng-1.5.4.tar
John Bowler 8d261262 2011-06-18T13:37:11 [devel] Fixed pngvalid, simplified macros, added checking for 0 in sCAL.
Glenn Randers-Pehrson ab63dd08 2011-06-17T20:04:17 [devel] Renamed png_set_chop_16() to png_set_strip_16().
Glenn Randers-Pehrson 857dbbe7 2011-06-16T09:39:40 [devel] Revised example.c to demonstrate png_set_chop_16().
John Bowler 550bab03 2011-06-14T06:17:26 [devel] Removed the ACCURATE and LEGACY options (they are no longer useable) Fixed some compiliation problems with scaling options.
Glenn Randers-Pehrson e1018a5b 2011-05-05T21:03:07 [devel] Imported from libpng-1.5.3beta05.tar
Glenn Randers-Pehrson dcc3505c 2011-03-31T11:23:49 [devel] Imported from libpng-1.5.2.tar
Glenn Randers-Pehrson f5ea1b70 2011-01-06T06:42:51 [devel] Imported from libpng-1.5.0.tar
Glenn Randers-Pehrson 64b863cd 2011-01-04T09:57:06 [devel] Update copyright year and bump to version libpng-1.5.0rc07
Glenn Randers-Pehrson f3abb2c3 2010-10-17T12:51:53 [devel] Rename libpng.txt to libpng-manual.txt
Glenn Randers-Pehrson f0eda4e8 2010-10-15T15:01:57 [devel] Imported from libpng-1.5.0beta51.tar
Glenn Randers-Pehrson 7e1fabe2 2010-10-14T07:29:03 [devel] Imported from libpng-1.5.0beta50.tar
Glenn Randers-Pehrson 1b49a71d 2010-10-07T20:59:06 [devel] Imported from libpng-1.5.0beta49.tar
Glenn Randers-Pehrson 83b4fc4a 2010-10-04T23:03:24 [devel] Imported from libpng-1.5.0beta48.tar
Glenn Randers-Pehrson b0876110 2010-10-04T17:24:36 [devel] Fixed problem with symbols creation in Makefile.am which was assuming that CCP writes to standard output by default (Martin Banky).
Glenn Randers-Pehrson bcb3aac3 2010-09-10T22:05:27 [devel] Fixed a number of problems with 64-bit compilation reported by Visual Studio 2010 (John Bowler).
Glenn Randers-Pehrson 39515c9e 2010-08-28T06:21:35 [devel] Imported from libpng-1.5.0beta46.tar
Glenn Randers-Pehrson a7119547 2010-08-26T07:07:37 [devel] Imported from libpng-1.5.0beta45.tar
Glenn Randers-Pehrson 9b362b1e 2010-08-24T09:03:56 [devel] Bump to version libpng-1.5.0beta45
Glenn Randers-Pehrson 363f96e7 2010-08-11T09:00:26 [devel] Imported from libpng-1.5.0beta41.tar
Glenn Randers-Pehrson 836fe66e 2010-08-06T06:52:34 [devel] Imported from libpng-1.5.0beta40.tar
Glenn Randers-Pehrson 2c700f97 2010-08-02T07:42:08 [devel] Imported from libpng-1.5.0beta39.tar
Glenn Randers-Pehrson bdabd8f7 2010-07-31T07:16:11 [devel] Bump to version libpng-1.5.0beta38
Glenn Randers-Pehrson 6c47e84d 2010-07-29T19:00:42 [devel] Bump to version libpng-1.5.0beta36
Glenn Randers-Pehrson 31aee0d0 2010-07-29T17:39:14 [devel] Fixed point APIs are now supported throughout (no missing APIs). Internal fixed point arithmetic support exists for all internal floating point operations. sCAL validates the floating point strings it is passed. Safe, albeit rudimentary, Watcom support is provided by PNG_API_RULE==2 Two new APIs exist to get the number of passes without turning on the PNG_INTERLACE transform and to get the number of rows in the current pass. A new test program, pngvalid.c, validates the gamma code. Errors in the 16 bit gamma correction (overflows) have been corrected. cHRM chunk testing is done consistently (previously the floating point API bypassed it, because the test really didn't work on FP, now the test is performed on the actual values to be stored in the PNG file so it works in the FP case too.) Most floating point APIs now simply call the fixed point APIs after converting the values to the fixed point form used in the PNG file. The standard headers no longer include zlib.h, which is currently only required for pngstruct.h and can therefore be internal. (Patches by John Bowler)
Glenn Randers-Pehrson 915bab5f 2010-07-24T08:22:59 [devel] Bump to version libpng-1.5.0beta35
Glenn Randers-Pehrson 39a8bb71 2010-07-12T06:43:50 [devel] Imported from libpng-1.5.0beta34.tar
Glenn Randers-Pehrson 8f9de7ac 2010-07-06T07:44:59 [devel] Bump back to version libpng-1.5.0beta34
Glenn Randers-Pehrson 289500ab 2010-06-28T20:14:31 [devel] Imported from libpng-1.5.0beta33.tar
Glenn Randers-Pehrson 4db34423 2010-06-25T20:13:41 [devel] Imported from libpng-1.5.0beta32.tar
Glenn Randers-Pehrson 821b7106 2010-06-24T16:16:32 [devel] Imported from libpng-1.5.0beta31.tar
Glenn Randers-Pehrson ef3831a1 2010-06-22T13:03:32 [devel] Imported from libpng-1.5.0beta30.tar
Glenn Randers-Pehrson 5feb87cd 2010-06-21T12:28:05 [devel] Imported from libpng-1.5.0beta29.tar
Glenn Randers-Pehrson 57d96179 2010-06-19T19:25:17 [devel] Imported from libpng-1.5.0beta28.tar
Glenn Randers-Pehrson 5b3d554e 2010-06-18T21:55:53 [devel] Imported from libpng-1.5.0beta26.tar
Glenn Randers-Pehrson 53c07f59 2010-06-18T18:55:55 [devel] Imported from libpng-1.5.0beta25.tar
Glenn Randers-Pehrson 537c1a57 2010-05-07T09:42:14 [devel] Imported from libpng-1.5.0beta24.tar
Glenn Randers-Pehrson f24daf23 2010-05-06T09:44:04 [devel] Added more blank lines for readability.
Glenn Randers-Pehrson aa3143cf 2010-04-29T10:53:48 [devel] Imported from libpng-1.5.0beta23.tar
Glenn Randers-Pehrson bb317fb0 2010-04-28T07:44:23 [devel] Bump to libpng-1.5.0beta22
Glenn Randers-Pehrson deec549d 2010-04-26T22:44:40 [devel] Imported from libpng-1.5.0beta21.tar
Glenn Randers-Pehrson 9c5beb56 2010-04-24T20:25:19 [devel] Bump back to version libpng-1.5.0beta21
Glenn Randers-Pehrson b56e0d06 2010-04-24T12:10:36 [devel] Imported from libpng-1.5.0beta19.tar
Glenn Randers-Pehrson 5623f781 2010-04-17T19:08:05 [devel] Imported from libpng-1.5.0beta18.tar
Glenn Randers-Pehrson 3cd7cffd 2010-04-16T19:27:08 [devel] Imported from libpng-1.5.0beta17.tar
Glenn Randers-Pehrson 60988072 2010-04-13T22:11:06 [devel] Document the fact that png_set_dither() is no longer supported.
Glenn Randers-Pehrson c2fa196d 2010-04-01T07:16:01 [devel] Imported from libpng-1.5.0beta16.tar
Glenn Randers-Pehrson dd78d526 2010-03-30T08:34:02 [devel] Make png_text_struct independent of PNG_iTXt_SUPPORTED
Glenn Randers-Pehrson b2eacd3e 2010-03-17T07:31:48 [devel] Imported from libpng-1.5.0beta15.tar
Glenn Randers-Pehrson 4a215541 2010-03-14T09:14:48 [devel] Imported from libpng-1.5.0beta14.tar
Glenn Randers-Pehrson c6fecfba 2010-03-09T22:27:26 [devel] Imported from libpng-1.5.0beta13.tar
Glenn Randers-Pehrson 86f88ddd 2010-03-08T21:28:21 [devel] Imported from libpng-1.5.0beta12.tar
Glenn Randers-Pehrson aaf377c8 2010-03-08T11:20:30 [devel] Bump to version libpng-1.5.0beta12
Glenn Randers-Pehrson e4c706af 2010-03-06T14:51:54 [devel] Imported from libpng-1.5.0beta11.tar
Glenn Randers-Pehrson 65a22379 2010-03-03T05:38:29 [devel] Bump to version libpng-1.5.0beta11
Glenn Randers-Pehrson 95ca51b6 2010-02-19T14:09:09 [devel] Imported from libpng-1.5.0beta09.tar
Glenn Randers-Pehrson 6a9e4805 2010-02-19T09:47:43 [devel] Imported from libpng-1.5.0beta07.tar
Glenn Randers-Pehrson 7a5be536 2010-02-14T07:16:19 [devel] Imported from libpng-1.5.0beta06.tar
Glenn Randers-Pehrson 6e283234 2010-02-12T21:19:23 [devel] Imported from libpng-1.5.0beta05.tar
Glenn Randers-Pehrson f9795318 2010-02-09T01:16:48 [devel] Changed PNG_INTERNAL to PNG_EXPOSE_INTERNAL_STRUCTURES and updated the "last change" comments to 1.5.0
Glenn Randers-Pehrson e3f3c4ea 2010-02-07T18:08:50 [devel] Imported from libpng-1.5.0beta01.tar
Glenn Randers-Pehrson 67a83db9 2010-01-01T18:26:18 [devel] Imported from libpng-1.4.0rc08.tar
Glenn Randers-Pehrson e69b55d9 2010-01-01T10:29:06 [devel] Update copyright year to 2010
Glenn Randers-Pehrson f81b50bf 2009-12-29T16:50:15 [devel] Imported from libpng-1.4.0rc06.tar
Glenn Randers-Pehrson dbcfb715 2009-12-25T14:24:18 [devel] Imported from libpng-1.4.0rc04.tar
Glenn Randers-Pehrson 5265c388 2009-12-22T09:09:34 [devel] Bump to version 1.4.0rc03
Glenn Randers-Pehrson 62ca98ef 2009-12-20T15:14:57 [devel] Imported from libpng-1.4.0rc02.tar
Glenn Randers-Pehrson addb84b1 2009-12-13T08:06:26 [devel] Imported from libpng-1.4.0beta109.tar
Glenn Randers-Pehrson 0452bbcf 2009-12-11T07:52:36 [devel] Imported from libpng-1.4.0beta108.tar
Glenn Randers-Pehrson 03f9b029 2009-12-04T08:40:41 [devel] Removed "-DPNG_CONFIGURE_LIBPNG" from the makefiles and projects. and added "#define PNG_NO_PEDANTIC_WARNINGS" in the libpng source files.
Glenn Randers-Pehrson e4b9fc28 2009-11-27T00:23:07 [devel] Imported from libpng-1.4.0beta106.tar
Glenn Randers-Pehrson 5a2015e1 2009-11-26T11:44:52 [devel] Bump to version 1.4.0beta106
Glenn Randers-Pehrson d23f2b28 2009-11-24T19:55:30 [devel] Imported from libpng-1.4.0beta105.tar
Glenn Randers-Pehrson bbd20f0a 2009-11-21T21:46:54 [devel] Imported from libpng-1.4.0beta104.tar
Glenn Randers-Pehrson 931400bd 2009-11-20T22:05:26 [devel] Imported from libpng-1.4.0beta103.tar
Glenn Randers-Pehrson 311c8476 2009-11-20T09:45:08 [devel] Bump to version 1.4.0beta103
Glenn Randers-Pehrson cd7d63a8 2009-10-21T10:23:12 [devel] Imported from libpng-1.4.0beta102.tar
Glenn Randers-Pehrson ac18f8a7 2009-11-14T21:50:39 [devel] Bump to version 1.4.0beta102
Glenn Randers-Pehrson b612eee9 2009-11-14T05:44:01 [devel] Imported from libpng-1.4.0beta99.tar
Glenn Randers-Pehrson fa557347 2009-11-12T18:07:00 [devel] Imported from libpng-1.4.0beta97.tar
Glenn Randers-Pehrson bdbade92 2009-11-12T06:22:16 [devel] Bump to version 1.4.0beta96
Glenn Randers-Pehrson fd10753f 2009-11-10T05:59:22 [devel] Imported from libpng-1.4.0beta95.tar