Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/libpng16
File: png.h
[0] Fix | Delete
/* png.h - header file for PNG reference library
[1] Fix | Delete
*
[2] Fix | Delete
* libpng version 1.6.34, September 29, 2017
[3] Fix | Delete
*
[4] Fix | Delete
* Copyright (c) 1998-2002,2004,2006-2017 Glenn Randers-Pehrson
[5] Fix | Delete
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
[6] Fix | Delete
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
[7] Fix | Delete
*
[8] Fix | Delete
* This code is released under the libpng license (See LICENSE, below)
[9] Fix | Delete
*
[10] Fix | Delete
* Authors and maintainers:
[11] Fix | Delete
* libpng versions 0.71, May 1995, through 0.88, January 1996: Guy Schalnat
[12] Fix | Delete
* libpng versions 0.89, June 1996, through 0.96, May 1997: Andreas Dilger
[13] Fix | Delete
* libpng versions 0.97, January 1998, through 1.6.34, September 29, 2017:
[14] Fix | Delete
* Glenn Randers-Pehrson.
[15] Fix | Delete
* See also "Contributing Authors", below.
[16] Fix | Delete
*/
[17] Fix | Delete
[18] Fix | Delete
/*
[19] Fix | Delete
* COPYRIGHT NOTICE, DISCLAIMER, and LICENSE:
[20] Fix | Delete
*
[21] Fix | Delete
* If you modify libpng you may insert additional notices immediately following
[22] Fix | Delete
* this sentence.
[23] Fix | Delete
*
[24] Fix | Delete
* This code is released under the libpng license.
[25] Fix | Delete
*
[26] Fix | Delete
* libpng versions 1.0.7, July 1, 2000 through 1.6.34, September 29, 2017 are
[27] Fix | Delete
* Copyright (c) 2000-2002, 2004, 2006-2017 Glenn Randers-Pehrson, are
[28] Fix | Delete
* derived from libpng-1.0.6, and are distributed according to the same
[29] Fix | Delete
* disclaimer and license as libpng-1.0.6 with the following individuals
[30] Fix | Delete
* added to the list of Contributing Authors:
[31] Fix | Delete
*
[32] Fix | Delete
* Simon-Pierre Cadieux
[33] Fix | Delete
* Eric S. Raymond
[34] Fix | Delete
* Mans Rullgard
[35] Fix | Delete
* Cosmin Truta
[36] Fix | Delete
* Gilles Vollant
[37] Fix | Delete
* James Yu
[38] Fix | Delete
* Mandar Sahastrabuddhe
[39] Fix | Delete
* Google Inc.
[40] Fix | Delete
* Vadim Barkov
[41] Fix | Delete
*
[42] Fix | Delete
* and with the following additions to the disclaimer:
[43] Fix | Delete
*
[44] Fix | Delete
* There is no warranty against interference with your enjoyment of the
[45] Fix | Delete
* library or against infringement. There is no warranty that our
[46] Fix | Delete
* efforts or the library will fulfill any of your particular purposes
[47] Fix | Delete
* or needs. This library is provided with all faults, and the entire
[48] Fix | Delete
* risk of satisfactory quality, performance, accuracy, and effort is with
[49] Fix | Delete
* the user.
[50] Fix | Delete
*
[51] Fix | Delete
* Some files in the "contrib" directory and some configure-generated
[52] Fix | Delete
* files that are distributed with libpng have other copyright owners and
[53] Fix | Delete
* are released under other open source licenses.
[54] Fix | Delete
*
[55] Fix | Delete
* libpng versions 0.97, January 1998, through 1.0.6, March 20, 2000, are
[56] Fix | Delete
* Copyright (c) 1998-2000 Glenn Randers-Pehrson, are derived from
[57] Fix | Delete
* libpng-0.96, and are distributed according to the same disclaimer and
[58] Fix | Delete
* license as libpng-0.96, with the following individuals added to the list
[59] Fix | Delete
* of Contributing Authors:
[60] Fix | Delete
*
[61] Fix | Delete
* Tom Lane
[62] Fix | Delete
* Glenn Randers-Pehrson
[63] Fix | Delete
* Willem van Schaik
[64] Fix | Delete
*
[65] Fix | Delete
* libpng versions 0.89, June 1996, through 0.96, May 1997, are
[66] Fix | Delete
* Copyright (c) 1996-1997 Andreas Dilger, are derived from libpng-0.88,
[67] Fix | Delete
* and are distributed according to the same disclaimer and license as
[68] Fix | Delete
* libpng-0.88, with the following individuals added to the list of
[69] Fix | Delete
* Contributing Authors:
[70] Fix | Delete
*
[71] Fix | Delete
* John Bowler
[72] Fix | Delete
* Kevin Bracey
[73] Fix | Delete
* Sam Bushell
[74] Fix | Delete
* Magnus Holmgren
[75] Fix | Delete
* Greg Roelofs
[76] Fix | Delete
* Tom Tanner
[77] Fix | Delete
*
[78] Fix | Delete
* Some files in the "scripts" directory have other copyright owners
[79] Fix | Delete
* but are released under this license.
[80] Fix | Delete
*
[81] Fix | Delete
* libpng versions 0.5, May 1995, through 0.88, January 1996, are
[82] Fix | Delete
* Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
[83] Fix | Delete
*
[84] Fix | Delete
* For the purposes of this copyright and license, "Contributing Authors"
[85] Fix | Delete
* is defined as the following set of individuals:
[86] Fix | Delete
*
[87] Fix | Delete
* Andreas Dilger
[88] Fix | Delete
* Dave Martindale
[89] Fix | Delete
* Guy Eric Schalnat
[90] Fix | Delete
* Paul Schmidt
[91] Fix | Delete
* Tim Wegner
[92] Fix | Delete
*
[93] Fix | Delete
* The PNG Reference Library is supplied "AS IS". The Contributing Authors
[94] Fix | Delete
* and Group 42, Inc. disclaim all warranties, expressed or implied,
[95] Fix | Delete
* including, without limitation, the warranties of merchantability and of
[96] Fix | Delete
* fitness for any purpose. The Contributing Authors and Group 42, Inc.
[97] Fix | Delete
* assume no liability for direct, indirect, incidental, special, exemplary,
[98] Fix | Delete
* or consequential damages, which may result from the use of the PNG
[99] Fix | Delete
* Reference Library, even if advised of the possibility of such damage.
[100] Fix | Delete
*
[101] Fix | Delete
* Permission is hereby granted to use, copy, modify, and distribute this
[102] Fix | Delete
* source code, or portions hereof, for any purpose, without fee, subject
[103] Fix | Delete
* to the following restrictions:
[104] Fix | Delete
*
[105] Fix | Delete
* 1. The origin of this source code must not be misrepresented.
[106] Fix | Delete
*
[107] Fix | Delete
* 2. Altered versions must be plainly marked as such and must not
[108] Fix | Delete
* be misrepresented as being the original source.
[109] Fix | Delete
*
[110] Fix | Delete
* 3. This Copyright notice may not be removed or altered from any
[111] Fix | Delete
* source or altered source distribution.
[112] Fix | Delete
*
[113] Fix | Delete
* The Contributing Authors and Group 42, Inc. specifically permit, without
[114] Fix | Delete
* fee, and encourage the use of this source code as a component to
[115] Fix | Delete
* supporting the PNG file format in commercial products. If you use this
[116] Fix | Delete
* source code in a product, acknowledgment is not required but would be
[117] Fix | Delete
* appreciated.
[118] Fix | Delete
*
[119] Fix | Delete
* END OF COPYRIGHT NOTICE, DISCLAIMER, and LICENSE.
[120] Fix | Delete
*
[121] Fix | Delete
* TRADEMARK:
[122] Fix | Delete
*
[123] Fix | Delete
* The name "libpng" has not been registered by the Copyright owner
[124] Fix | Delete
* as a trademark in any jurisdiction. However, because libpng has
[125] Fix | Delete
* been distributed and maintained world-wide, continually since 1995,
[126] Fix | Delete
* the Copyright owner claims "common-law trademark protection" in any
[127] Fix | Delete
* jurisdiction where common-law trademark is recognized.
[128] Fix | Delete
*
[129] Fix | Delete
* OSI CERTIFICATION:
[130] Fix | Delete
*
[131] Fix | Delete
* Libpng is OSI Certified Open Source Software. OSI Certified Open Source is
[132] Fix | Delete
* a certification mark of the Open Source Initiative. OSI has not addressed
[133] Fix | Delete
* the additional disclaimers inserted at version 1.0.7.
[134] Fix | Delete
*
[135] Fix | Delete
* EXPORT CONTROL:
[136] Fix | Delete
*
[137] Fix | Delete
* The Copyright owner believes that the Export Control Classification
[138] Fix | Delete
* Number (ECCN) for libpng is EAR99, which means not subject to export
[139] Fix | Delete
* controls or International Traffic in Arms Regulations (ITAR) because
[140] Fix | Delete
* it is open source, publicly available software, that does not contain
[141] Fix | Delete
* any encryption software. See the EAR, paragraphs 734.3(b)(3) and
[142] Fix | Delete
* 734.7(b).
[143] Fix | Delete
*/
[144] Fix | Delete
[145] Fix | Delete
/*
[146] Fix | Delete
* A "png_get_copyright" function is available, for convenient use in "about"
[147] Fix | Delete
* boxes and the like:
[148] Fix | Delete
*
[149] Fix | Delete
* printf("%s", png_get_copyright(NULL));
[150] Fix | Delete
*
[151] Fix | Delete
* Also, the PNG logo (in PNG format, of course) is supplied in the
[152] Fix | Delete
* files "pngbar.png" and "pngbar.jpg (88x31) and "pngnow.png" (98x31).
[153] Fix | Delete
*/
[154] Fix | Delete
[155] Fix | Delete
/*
[156] Fix | Delete
* The contributing authors would like to thank all those who helped
[157] Fix | Delete
* with testing, bug fixes, and patience. This wouldn't have been
[158] Fix | Delete
* possible without all of you.
[159] Fix | Delete
*
[160] Fix | Delete
* Thanks to Frank J. T. Wojcik for helping with the documentation.
[161] Fix | Delete
*/
[162] Fix | Delete
[163] Fix | Delete
/* Note about libpng version numbers:
[164] Fix | Delete
*
[165] Fix | Delete
* Due to various miscommunications, unforeseen code incompatibilities
[166] Fix | Delete
* and occasional factors outside the authors' control, version numbering
[167] Fix | Delete
* on the library has not always been consistent and straightforward.
[168] Fix | Delete
* The following table summarizes matters since version 0.89c, which was
[169] Fix | Delete
* the first widely used release:
[170] Fix | Delete
*
[171] Fix | Delete
* source png.h png.h shared-lib
[172] Fix | Delete
* version string int version
[173] Fix | Delete
* ------- ------ ----- ----------
[174] Fix | Delete
* 0.89c "1.0 beta 3" 0.89 89 1.0.89
[175] Fix | Delete
* 0.90 "1.0 beta 4" 0.90 90 0.90 [should have been 2.0.90]
[176] Fix | Delete
* 0.95 "1.0 beta 5" 0.95 95 0.95 [should have been 2.0.95]
[177] Fix | Delete
* 0.96 "1.0 beta 6" 0.96 96 0.96 [should have been 2.0.96]
[178] Fix | Delete
* 0.97b "1.00.97 beta 7" 1.00.97 97 1.0.1 [should have been 2.0.97]
[179] Fix | Delete
* 0.97c 0.97 97 2.0.97
[180] Fix | Delete
* 0.98 0.98 98 2.0.98
[181] Fix | Delete
* 0.99 0.99 98 2.0.99
[182] Fix | Delete
* 0.99a-m 0.99 99 2.0.99
[183] Fix | Delete
* 1.00 1.00 100 2.1.0 [100 should be 10000]
[184] Fix | Delete
* 1.0.0 (from here on, the 100 2.1.0 [100 should be 10000]
[185] Fix | Delete
* 1.0.1 png.h string is 10001 2.1.0
[186] Fix | Delete
* 1.0.1a-e identical to the 10002 from here on, the shared library
[187] Fix | Delete
* 1.0.2 source version) 10002 is 2.V where V is the source code
[188] Fix | Delete
* 1.0.2a-b 10003 version, except as noted.
[189] Fix | Delete
* 1.0.3 10003
[190] Fix | Delete
* 1.0.3a-d 10004
[191] Fix | Delete
* 1.0.4 10004
[192] Fix | Delete
* 1.0.4a-f 10005
[193] Fix | Delete
* 1.0.5 (+ 2 patches) 10005
[194] Fix | Delete
* 1.0.5a-d 10006
[195] Fix | Delete
* 1.0.5e-r 10100 (not source compatible)
[196] Fix | Delete
* 1.0.5s-v 10006 (not binary compatible)
[197] Fix | Delete
* 1.0.6 (+ 3 patches) 10006 (still binary incompatible)
[198] Fix | Delete
* 1.0.6d-f 10007 (still binary incompatible)
[199] Fix | Delete
* 1.0.6g 10007
[200] Fix | Delete
* 1.0.6h 10007 10.6h (testing xy.z so-numbering)
[201] Fix | Delete
* 1.0.6i 10007 10.6i
[202] Fix | Delete
* 1.0.6j 10007 2.1.0.6j (incompatible with 1.0.0)
[203] Fix | Delete
* 1.0.7beta11-14 DLLNUM 10007 2.1.0.7beta11-14 (binary compatible)
[204] Fix | Delete
* 1.0.7beta15-18 1 10007 2.1.0.7beta15-18 (binary compatible)
[205] Fix | Delete
* 1.0.7rc1-2 1 10007 2.1.0.7rc1-2 (binary compatible)
[206] Fix | Delete
* 1.0.7 1 10007 (still compatible)
[207] Fix | Delete
* ...
[208] Fix | Delete
* 1.0.19 10 10019 10.so.0.19[.0]
[209] Fix | Delete
* ...
[210] Fix | Delete
* 1.2.59 13 10257 12.so.0.59[.0]
[211] Fix | Delete
* ...
[212] Fix | Delete
* 1.5.30 15 10527 15.so.15.30[.0]
[213] Fix | Delete
* ...
[214] Fix | Delete
* 1.6.34 16 10633 16.so.16.34[.0]
[215] Fix | Delete
*
[216] Fix | Delete
* Henceforth the source version will match the shared-library major
[217] Fix | Delete
* and minor numbers; the shared-library major version number will be
[218] Fix | Delete
* used for changes in backward compatibility, as it is intended. The
[219] Fix | Delete
* PNG_LIBPNG_VER macro, which is not used within libpng but is available
[220] Fix | Delete
* for applications, is an unsigned integer of the form xyyzz corresponding
[221] Fix | Delete
* to the source version x.y.z (leading zeros in y and z). Beta versions
[222] Fix | Delete
* were given the previous public release number plus a letter, until
[223] Fix | Delete
* version 1.0.6j; from then on they were given the upcoming public
[224] Fix | Delete
* release number plus "betaNN" or "rcNN".
[225] Fix | Delete
*
[226] Fix | Delete
* Binary incompatibility exists only when applications make direct access
[227] Fix | Delete
* to the info_ptr or png_ptr members through png.h, and the compiled
[228] Fix | Delete
* application is loaded with a different version of the library.
[229] Fix | Delete
*
[230] Fix | Delete
* DLLNUM will change each time there are forward or backward changes
[231] Fix | Delete
* in binary compatibility (e.g., when a new feature is added).
[232] Fix | Delete
*
[233] Fix | Delete
* See libpng.txt or libpng.3 for more information. The PNG specification
[234] Fix | Delete
* is available as a W3C Recommendation and as an ISO Specification,
[235] Fix | Delete
* <https://www.w3.org/TR/2003/REC-PNG-20031110/
[236] Fix | Delete
*/
[237] Fix | Delete
[238] Fix | Delete
/*
[239] Fix | Delete
* Y2K compliance in libpng:
[240] Fix | Delete
* =========================
[241] Fix | Delete
*
[242] Fix | Delete
* September 29, 2017
[243] Fix | Delete
*
[244] Fix | Delete
* Since the PNG Development group is an ad-hoc body, we can't make
[245] Fix | Delete
* an official declaration.
[246] Fix | Delete
*
[247] Fix | Delete
* This is your unofficial assurance that libpng from version 0.71 and
[248] Fix | Delete
* upward through 1.6.34 are Y2K compliant. It is my belief that
[249] Fix | Delete
* earlier versions were also Y2K compliant.
[250] Fix | Delete
*
[251] Fix | Delete
* Libpng only has two year fields. One is a 2-byte unsigned integer
[252] Fix | Delete
* that will hold years up to 65535. The other, which is deprecated,
[253] Fix | Delete
* holds the date in text format, and will hold years up to 9999.
[254] Fix | Delete
*
[255] Fix | Delete
* The integer is
[256] Fix | Delete
* "png_uint_16 year" in png_time_struct.
[257] Fix | Delete
*
[258] Fix | Delete
* The string is
[259] Fix | Delete
* "char time_buffer[29]" in png_struct. This is no longer used
[260] Fix | Delete
* in libpng-1.6.x and will be removed from libpng-1.7.0.
[261] Fix | Delete
*
[262] Fix | Delete
* There are seven time-related functions:
[263] Fix | Delete
* png.c: png_convert_to_rfc_1123_buffer() in png.c
[264] Fix | Delete
* (formerly png_convert_to_rfc_1123() prior to libpng-1.5.x and
[265] Fix | Delete
* png_convert_to_rfc_1152() in error prior to libpng-0.98)
[266] Fix | Delete
* png_convert_from_struct_tm() in pngwrite.c, called in pngwrite.c
[267] Fix | Delete
* png_convert_from_time_t() in pngwrite.c
[268] Fix | Delete
* png_get_tIME() in pngget.c
[269] Fix | Delete
* png_handle_tIME() in pngrutil.c, called in pngread.c
[270] Fix | Delete
* png_set_tIME() in pngset.c
[271] Fix | Delete
* png_write_tIME() in pngwutil.c, called in pngwrite.c
[272] Fix | Delete
*
[273] Fix | Delete
* All handle dates properly in a Y2K environment. The
[274] Fix | Delete
* png_convert_from_time_t() function calls gmtime() to convert from system
[275] Fix | Delete
* clock time, which returns (year - 1900), which we properly convert to
[276] Fix | Delete
* the full 4-digit year. There is a possibility that libpng applications
[277] Fix | Delete
* are not passing 4-digit years into the png_convert_to_rfc_1123_buffer()
[278] Fix | Delete
* function, or that they are incorrectly passing only a 2-digit year
[279] Fix | Delete
* instead of "year - 1900" into the png_convert_from_struct_tm() function,
[280] Fix | Delete
* but this is not under our control. The libpng documentation has always
[281] Fix | Delete
* stated that it works with 4-digit years, and the APIs have been
[282] Fix | Delete
* documented as such.
[283] Fix | Delete
*
[284] Fix | Delete
* The tIME chunk itself is also Y2K compliant. It uses a 2-byte unsigned
[285] Fix | Delete
* integer to hold the year, and can hold years as large as 65535.
[286] Fix | Delete
*
[287] Fix | Delete
* zlib, upon which libpng depends, is also Y2K compliant. It contains
[288] Fix | Delete
* no date-related code.
[289] Fix | Delete
*
[290] Fix | Delete
* Glenn Randers-Pehrson
[291] Fix | Delete
* libpng maintainer
[292] Fix | Delete
* PNG Development Group
[293] Fix | Delete
*/
[294] Fix | Delete
[295] Fix | Delete
#ifndef PNG_H
[296] Fix | Delete
#define PNG_H
[297] Fix | Delete
[298] Fix | Delete
/* This is not the place to learn how to use libpng. The file libpng-manual.txt
[299] Fix | Delete
* describes how to use libpng, and the file example.c summarizes it
[300] Fix | Delete
* with some code on which to build. This file is useful for looking
[301] Fix | Delete
* at the actual function definitions and structure components. If that
[302] Fix | Delete
* file has been stripped from your copy of libpng, you can find it at
[303] Fix | Delete
* <http://www.libpng.org/pub/png/libpng-manual.txt>
[304] Fix | Delete
*
[305] Fix | Delete
* If you just need to read a PNG file and don't want to read the documentation
[306] Fix | Delete
* skip to the end of this file and read the section entitled 'simplified API'.
[307] Fix | Delete
*/
[308] Fix | Delete
[309] Fix | Delete
/* Version information for png.h - this should match the version in png.c */
[310] Fix | Delete
#define PNG_LIBPNG_VER_STRING "1.6.34"
[311] Fix | Delete
#define PNG_HEADER_VERSION_STRING " libpng version 1.6.34 - September 29, 2017\n"
[312] Fix | Delete
[313] Fix | Delete
#define PNG_LIBPNG_VER_SONUM 16
[314] Fix | Delete
#define PNG_LIBPNG_VER_DLLNUM 16
[315] Fix | Delete
[316] Fix | Delete
/* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */
[317] Fix | Delete
#define PNG_LIBPNG_VER_MAJOR 1
[318] Fix | Delete
#define PNG_LIBPNG_VER_MINOR 6
[319] Fix | Delete
#define PNG_LIBPNG_VER_RELEASE 34
[320] Fix | Delete
[321] Fix | Delete
/* This should match the numeric part of the final component of
[322] Fix | Delete
* PNG_LIBPNG_VER_STRING, omitting any leading zero:
[323] Fix | Delete
*/
[324] Fix | Delete
[325] Fix | Delete
#define PNG_LIBPNG_VER_BUILD 0
[326] Fix | Delete
[327] Fix | Delete
/* Release Status */
[328] Fix | Delete
#define PNG_LIBPNG_BUILD_ALPHA 1
[329] Fix | Delete
#define PNG_LIBPNG_BUILD_BETA 2
[330] Fix | Delete
#define PNG_LIBPNG_BUILD_RC 3
[331] Fix | Delete
#define PNG_LIBPNG_BUILD_STABLE 4
[332] Fix | Delete
#define PNG_LIBPNG_BUILD_RELEASE_STATUS_MASK 7
[333] Fix | Delete
[334] Fix | Delete
/* Release-Specific Flags */
[335] Fix | Delete
#define PNG_LIBPNG_BUILD_PATCH 8 /* Can be OR'ed with
[336] Fix | Delete
PNG_LIBPNG_BUILD_STABLE only */
[337] Fix | Delete
#define PNG_LIBPNG_BUILD_PRIVATE 16 /* Cannot be OR'ed with
[338] Fix | Delete
PNG_LIBPNG_BUILD_SPECIAL */
[339] Fix | Delete
#define PNG_LIBPNG_BUILD_SPECIAL 32 /* Cannot be OR'ed with
[340] Fix | Delete
PNG_LIBPNG_BUILD_PRIVATE */
[341] Fix | Delete
[342] Fix | Delete
#define PNG_LIBPNG_BUILD_BASE_TYPE PNG_LIBPNG_BUILD_STABLE
[343] Fix | Delete
[344] Fix | Delete
/* Careful here. At one time, Guy wanted to use 082, but that would be octal.
[345] Fix | Delete
* We must not include leading zeros.
[346] Fix | Delete
* Versions 0.7 through 1.0.0 were in the range 0 to 100 here (only
[347] Fix | Delete
* version 1.0.0 was mis-numbered 100 instead of 10000). From
[348] Fix | Delete
* version 1.0.1 it's xxyyzz, where x=major, y=minor, z=release
[349] Fix | Delete
*/
[350] Fix | Delete
#define PNG_LIBPNG_VER 10634 /* 1.6.34 */
[351] Fix | Delete
[352] Fix | Delete
/* Library configuration: these options cannot be changed after
[353] Fix | Delete
* the library has been built.
[354] Fix | Delete
*/
[355] Fix | Delete
#ifndef PNGLCONF_H
[356] Fix | Delete
/* If pnglibconf.h is missing, you can
[357] Fix | Delete
* copy scripts/pnglibconf.h.prebuilt to pnglibconf.h
[358] Fix | Delete
*/
[359] Fix | Delete
# include "pnglibconf.h"
[360] Fix | Delete
#endif
[361] Fix | Delete
[362] Fix | Delete
#ifndef PNG_VERSION_INFO_ONLY
[363] Fix | Delete
/* Machine specific configuration. */
[364] Fix | Delete
# include "pngconf.h"
[365] Fix | Delete
#endif
[366] Fix | Delete
[367] Fix | Delete
/*
[368] Fix | Delete
* Added at libpng-1.2.8
[369] Fix | Delete
*
[370] Fix | Delete
* Ref MSDN: Private as priority over Special
[371] Fix | Delete
* VS_FF_PRIVATEBUILD File *was not* built using standard release
[372] Fix | Delete
* procedures. If this value is given, the StringFileInfo block must
[373] Fix | Delete
* contain a PrivateBuild string.
[374] Fix | Delete
*
[375] Fix | Delete
* VS_FF_SPECIALBUILD File *was* built by the original company using
[376] Fix | Delete
* standard release procedures but is a variation of the standard
[377] Fix | Delete
* file of the same version number. If this value is given, the
[378] Fix | Delete
* StringFileInfo block must contain a SpecialBuild string.
[379] Fix | Delete
*/
[380] Fix | Delete
[381] Fix | Delete
#ifdef PNG_USER_PRIVATEBUILD /* From pnglibconf.h */
[382] Fix | Delete
# define PNG_LIBPNG_BUILD_TYPE \
[383] Fix | Delete
(PNG_LIBPNG_BUILD_BASE_TYPE | PNG_LIBPNG_BUILD_PRIVATE)
[384] Fix | Delete
#else
[385] Fix | Delete
# ifdef PNG_LIBPNG_SPECIALBUILD
[386] Fix | Delete
# define PNG_LIBPNG_BUILD_TYPE \
[387] Fix | Delete
(PNG_LIBPNG_BUILD_BASE_TYPE | PNG_LIBPNG_BUILD_SPECIAL)
[388] Fix | Delete
# else
[389] Fix | Delete
# define PNG_LIBPNG_BUILD_TYPE (PNG_LIBPNG_BUILD_BASE_TYPE)
[390] Fix | Delete
# endif
[391] Fix | Delete
#endif
[392] Fix | Delete
[393] Fix | Delete
#ifndef PNG_VERSION_INFO_ONLY
[394] Fix | Delete
[395] Fix | Delete
/* Inhibit C++ name-mangling for libpng functions but not for system calls. */
[396] Fix | Delete
#ifdef __cplusplus
[397] Fix | Delete
extern "C" {
[398] Fix | Delete
#endif /* __cplusplus */
[399] Fix | Delete
[400] Fix | Delete
/* Version information for C files, stored in png.c. This had better match
[401] Fix | Delete
* the version above.
[402] Fix | Delete
*/
[403] Fix | Delete
#define png_libpng_ver png_get_header_ver(NULL)
[404] Fix | Delete
[405] Fix | Delete
/* This file is arranged in several sections:
[406] Fix | Delete
*
[407] Fix | Delete
* 1. [omitted]
[408] Fix | Delete
* 2. Any configuration options that can be specified by for the application
[409] Fix | Delete
* code when it is built. (Build time configuration is in pnglibconf.h)
[410] Fix | Delete
* 3. Type definitions (base types are defined in pngconf.h), structure
[411] Fix | Delete
* definitions.
[412] Fix | Delete
* 4. Exported library functions.
[413] Fix | Delete
* 5. Simplified API.
[414] Fix | Delete
* 6. Implementation options.
[415] Fix | Delete
*
[416] Fix | Delete
* The library source code has additional files (principally pngpriv.h) that
[417] Fix | Delete
* allow configuration of the library.
[418] Fix | Delete
*/
[419] Fix | Delete
[420] Fix | Delete
/* Section 1: [omitted] */
[421] Fix | Delete
[422] Fix | Delete
/* Section 2: run time configuration
[423] Fix | Delete
* See pnglibconf.h for build time configuration
[424] Fix | Delete
*
[425] Fix | Delete
* Run time configuration allows the application to choose between
[426] Fix | Delete
* implementations of certain arithmetic APIs. The default is set
[427] Fix | Delete
* at build time and recorded in pnglibconf.h, but it is safe to
[428] Fix | Delete
* override these (and only these) settings. Note that this won't
[429] Fix | Delete
* change what the library does, only application code, and the
[430] Fix | Delete
* settings can (and probably should) be made on a per-file basis
[431] Fix | Delete
* by setting the #defines before including png.h
[432] Fix | Delete
*
[433] Fix | Delete
* Use macros to read integers from PNG data or use the exported
[434] Fix | Delete
* functions?
[435] Fix | Delete
* PNG_USE_READ_MACROS: use the macros (see below) Note that
[436] Fix | Delete
* the macros evaluate their argument multiple times.
[437] Fix | Delete
* PNG_NO_USE_READ_MACROS: call the relevant library function.
[438] Fix | Delete
*
[439] Fix | Delete
* Use the alternative algorithm for compositing alpha samples that
[440] Fix | Delete
* does not use division?
[441] Fix | Delete
* PNG_READ_COMPOSITE_NODIV_SUPPORTED: use the 'no division'
[442] Fix | Delete
* algorithm.
[443] Fix | Delete
* PNG_NO_READ_COMPOSITE_NODIV: use the 'division' algorithm.
[444] Fix | Delete
*
[445] Fix | Delete
* How to handle benign errors if PNG_ALLOW_BENIGN_ERRORS is
[446] Fix | Delete
* false?
[447] Fix | Delete
* PNG_ALLOW_BENIGN_ERRORS: map calls to the benign error
[448] Fix | Delete
* APIs to png_warning.
[449] Fix | Delete
* Otherwise the calls are mapped to png_error.
[450] Fix | Delete
*/
[451] Fix | Delete
[452] Fix | Delete
/* Section 3: type definitions, including structures and compile time
[453] Fix | Delete
* constants.
[454] Fix | Delete
* See pngconf.h for base types that vary by machine/system
[455] Fix | Delete
*/
[456] Fix | Delete
[457] Fix | Delete
/* This triggers a compiler error in png.c, if png.c and png.h
[458] Fix | Delete
* do not agree upon the version number.
[459] Fix | Delete
*/
[460] Fix | Delete
typedef char* png_libpng_version_1_6_34;
[461] Fix | Delete
[462] Fix | Delete
/* Basic control structions. Read libpng-manual.txt or libpng.3 for more info.
[463] Fix | Delete
*
[464] Fix | Delete
* png_struct is the cache of information used while reading or writing a single
[465] Fix | Delete
* PNG file. One of these is always required, although the simplified API
[466] Fix | Delete
* (below) hides the creation and destruction of it.
[467] Fix | Delete
*/
[468] Fix | Delete
typedef struct png_struct_def png_struct;
[469] Fix | Delete
typedef const png_struct * png_const_structp;
[470] Fix | Delete
typedef png_struct * png_structp;
[471] Fix | Delete
typedef png_struct * * png_structpp;
[472] Fix | Delete
[473] Fix | Delete
/* png_info contains information read from or to be written to a PNG file. One
[474] Fix | Delete
* or more of these must exist while reading or creating a PNG file. The
[475] Fix | Delete
* information is not used by libpng during read but is used to control what
[476] Fix | Delete
* gets written when a PNG file is created. "png_get_" function calls read
[477] Fix | Delete
* information during read and "png_set_" functions calls write information
[478] Fix | Delete
* when creating a PNG.
[479] Fix | Delete
* been moved into a separate header file that is not accessible to
[480] Fix | Delete
* applications. Read libpng-manual.txt or libpng.3 for more info.
[481] Fix | Delete
*/
[482] Fix | Delete
typedef struct png_info_def png_info;
[483] Fix | Delete
typedef png_info * png_infop;
[484] Fix | Delete
typedef const png_info * png_const_infop;
[485] Fix | Delete
typedef png_info * * png_infopp;
[486] Fix | Delete
[487] Fix | Delete
/* Types with names ending 'p' are pointer types. The corresponding types with
[488] Fix | Delete
* names ending 'rp' are identical pointer types except that the pointer is
[489] Fix | Delete
* marked 'restrict', which means that it is the only pointer to the object
[490] Fix | Delete
* passed to the function. Applications should not use the 'restrict' types;
[491] Fix | Delete
* it is always valid to pass 'p' to a pointer with a function argument of the
[492] Fix | Delete
* corresponding 'rp' type. Different compilers have different rules with
[493] Fix | Delete
* regard to type matching in the presence of 'restrict'. For backward
[494] Fix | Delete
* compatibility libpng callbacks never have 'restrict' in their parameters and,
[495] Fix | Delete
* consequentially, writing portable application code is extremely difficult if
[496] Fix | Delete
* an attempt is made to use 'restrict'.
[497] Fix | Delete
*/
[498] Fix | Delete
typedef png_struct * PNG_RESTRICT png_structrp;
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function