Name Date Size #Lines LOC

..--

.github/workflows/H25-Apr-2025-2825

arm/H25-Apr-2025-757490

ci/H25-Apr-2025-1,8581,235

contrib/H25-Apr-2025-48,89832,419

intel/H25-Apr-2025-445243

loongarch/H25-Apr-2025-488385

mips/H25-Apr-2025-1,5491,254

powerpc/H25-Apr-2025-905645

projects/H25-Apr-2025-5,4505,322

scripts/H25-Apr-2025-16,51113,336

tests/H25-Apr-2025-256134

.appveyor.ymlH A D25-Apr-20253.2 KiB8273

.editorconfigH A D25-Apr-2025692 4434

.gitignoreH A D25-Apr-2025794 8069

.travis.ymlH A D25-Apr-2025711 2923

.yamllint.ymlH A D25-Apr-2025129 87

ANNOUNCEH A D25-Apr-20251.9 KiB5742

AUTHORSH A D25-Apr-20251.4 KiB6257

Android.bpH A D25-Apr-20254.2 KiB174156

CHANGESH A D25-Apr-2025302.9 KiB6,2255,378

CMakeLists.txtH A D25-Apr-202545.6 KiB1,1631,051

CleanSpec.mkH A D25-Apr-20252.2 KiB500

INSTALLH A D25-Apr-202518.8 KiB465358

LICENSEH A D25-Apr-20255.2 KiB135106

METADATAH A D25-Apr-2025579 2321

MODULE_LICENSE_BSD_LIKEHD25-Apr-20250

Makefile.amH A D25-Apr-202514.5 KiB427276

Makefile.inH A D25-Apr-2025103 KiB2,5422,248

OWNERSH A D25-Apr-202546 21

READMEH A D25-Apr-20259.2 KiB185162

README.androidH A D25-Apr-2025413 1613

TEST_MAPPINGH A D25-Apr-202574 87

TODOH A D25-Apr-20251 KiB2422

TRADEMARKH A D25-Apr-2025343 97

aclocal.m4H A D25-Apr-202550.1 KiB1,3691,249

autogen.shH A D25-Apr-20257.8 KiB227156

compileH A D25-Apr-20257.4 KiB352262

config.guessH A D25-Apr-202549.5 KiB1,8131,586

config.h.inH A D25-Apr-20253.8 KiB13695

config.subH A D25-Apr-202536 KiB1,9721,765

configureH A D25-Apr-2025503.2 KiB17,31614,441

configure.acH A D25-Apr-202523.9 KiB672601

depcompH A D25-Apr-202523.1 KiB793503

example.cH A D25-Apr-202539.4 KiB1,042397

install-shH A D25-Apr-202515.1 KiB542352

libpng-config.inH A D25-Apr-20252.3 KiB12892

libpng-manual.txtH A D25-Apr-2025223 KiB5,4014,180

libpng.3H A D25-Apr-2025259.8 KiB6,0344,546

libpng.pc.inH A D25-Apr-2025316 1311

libpngpf.3H A D25-Apr-2025805 2519

ltmain.shH A D25-Apr-2025325.2 KiB11,4378,214

missingH A D25-Apr-20257.5 KiB237162

png.5H A D25-Apr-20251.8 KiB6054

png.cH A D25-Apr-2025151.8 KiB4,5672,755

png.hH A D25-Apr-2025139.7 KiB3,2511,337

pngbar.jpgHD25-Apr-20252.4 KiB

pngbar.pngHD25-Apr-20252.3 KiB

pngconf.hH A D25-Apr-202522.2 KiB624312

pngdebug.hH A D25-Apr-20255.2 KiB154115

pngerror.cH A D25-Apr-202528.4 KiB959658

pngget.cH A D25-Apr-202533.4 KiB1,2681,018

pnginfo.hH A D25-Apr-202512.2 KiB26897

pnglibconf.hH A D25-Apr-20257.6 KiB225193

pngmem.cH A D25-Apr-20258.1 KiB285167

pngnow.pngHD25-Apr-20252 KiB

pngpread.cH A D25-Apr-202531.2 KiB1,105811

pngpriv.hH A D25-Apr-202588.6 KiB2,1811,200

pngread.cH A D25-Apr-2025139 KiB4,2292,684

pngrio.cH A D25-Apr-20253.8 KiB12152

pngrtran.cH A D25-Apr-2025163.2 KiB5,0413,627

pngrutil.cH A D25-Apr-2025144 KiB4,6813,123

pngset.cH A D25-Apr-202550.5 KiB1,8041,253

pngstruct.hH A D25-Apr-202519.4 KiB480311

pngtest.cH A D25-Apr-202561 KiB2,1081,577

pngtest.pngHD25-Apr-20258.6 KiB

pngtrans.cH A D25-Apr-202524.7 KiB869645

pngusr.dfaH A D25-Apr-2025497 1514

pngusr.hH A D25-Apr-2025153 54

pngwio.cH A D25-Apr-20255.5 KiB16980

pngwrite.cH A D25-Apr-202575.3 KiB2,4191,658

pngwtran.cH A D25-Apr-202515 KiB576428

pngwutil.cH A D25-Apr-202578.5 KiB2,7821,881

test-driverH A D25-Apr-20255.1 KiB16195

README

1README for libpng version 1.6.44
2================================
3
4See the note about version numbers near the top of `png.h`.
5See `INSTALL` for instructions on how to install libpng.
6
7Libpng comes in several distribution formats.  Get `libpng-*.tar.gz`
8or `libpng-*.tar.xz` if you want UNIX-style line endings in the text
9files, or `lpng*.7z` or `lpng*.zip` if you want DOS-style line endings.
10
11For a detailed description on using libpng, read `libpng-manual.txt`.
12For examples of libpng in a program, see `example.c` and `pngtest.c`.
13For usage information and restrictions (what little they are) on libpng,
14see `png.h`.  For a description on using zlib (the compression library
15used by libpng) and zlib's restrictions, see `zlib.h`.
16
17You should use zlib 1.0.4 or later to run this, but it _may_ work with
18versions as old as zlib 0.95.  Even so, there are bugs in older zlib
19versions which can cause the output of invalid compression streams for
20some images.
21
22You should also note that zlib is a compression library that is useful
23for more things than just PNG files.  You can use zlib as a drop-in
24replacement for `fread()` and `fwrite()`, if you are so inclined.
25
26zlib should be available at the same place that libpng is, or at
27https://zlib.net .
28
29You may also want a copy of the PNG specification.  It is available
30as an RFC, a W3C Recommendation, and an ISO/IEC Standard.  You can find
31these at http://www.libpng.org/pub/png/pngdocs.html .
32
33This code is currently being archived at https://libpng.sourceforge.io
34in the download area, and at http://libpng.download/src .
35
36This release, based in a large way on Glenn's, Guy's and Andreas'
37earlier work, was created and will be supported by myself and the PNG
38development group.
39
40Send comments, corrections and commendations to `png-mng-implement`
41at `lists.sourceforge.net`.  (Subscription is required; visit
42https://lists.sourceforge.net/lists/listinfo/png-mng-implement
43to subscribe.)
44
45Send general questions about the PNG specification to `png-mng-misc`
46at `lists.sourceforge.net`.  (Subscription is required; visit
47https://lists.sourceforge.net/lists/listinfo/png-mng-misc
48to subscribe.)
49
50Historical notes
51----------------
52
53The libpng library has been in extensive use and testing since mid-1995.
54Version 0.89, published a year later, was the first official release.
55By late 1997, it had finally gotten to the stage where there hadn't
56been significant changes to the API in some time, and people have a bad
57feeling about libraries with versions below 1.0.  Version 1.0.0 was
58released in March 1998.
59
60Note that some of the changes to the `png_info` structure render this
61version of the library binary incompatible with libpng-0.89 or
62earlier versions if you are using a shared library.  The type of the
63`filler` parameter for `png_set_filler()` has changed from `png_byte`
64to `png_uint_32`, which will affect shared-library applications that
65use this function.
66
67To avoid problems with changes to the internals of the `info_struct`,
68new APIs have been made available in 0.95 to avoid direct application
69access to `info_ptr`.  These functions are the `png_set_<chunk>` and
70`png_get_<chunk>` functions.  These functions should be used when
71accessing/storing the `info_struct` data, rather than manipulating it
72directly, to avoid such problems in the future.
73
74It is important to note that the APIs did not make current programs
75that access the info struct directly incompatible with the new
76library, through libpng-1.2.x.  In libpng-1.4.x, which was meant to
77be a transitional release, members of the `png_struct` and the
78`info_struct` can still be accessed, but the compiler will issue a
79warning about deprecated usage.  Since libpng-1.5.0, direct access
80to these structs is not allowed, and the definitions of the structs
81reside in private `pngstruct.h` and `pnginfo.h` header files that are
82not accessible to applications.  It is strongly suggested that new
83programs use the new APIs (as shown in `example.c` and `pngtest.c`),
84and older programs be converted to the new format, to facilitate
85upgrades in the future.
86
87The additions since 0.89 include the ability to read from a PNG stream
88which has had some (or all) of the signature bytes read by the calling
89application.  This also allows the reading of embedded PNG streams that
90do not have the PNG file signature.  As well, it is now possible to set
91the library action on the detection of chunk CRC errors.  It is possible
92to set different actions based on whether the CRC error occurred in a
93critical or an ancillary chunk.
94
95The additions since 0.90 include the ability to compile libpng as a
96Windows DLL, and new APIs for accessing data in the `info_struct`.
97Experimental functions included the ability to set weighting and cost
98factors for row filter selection, direct reads of integers from buffers
99on big-endian processors that support misaligned data access, faster
100methods of doing alpha composition, and more accurate 16-to-8 bit color
101conversion.  Some of these experimental functions, such as the weighted
102filter heuristics, have since been removed.
103
104Files included in this distribution
105-----------------------------------
106
107    ANNOUNCE      =>  Announcement of this version, with recent changes
108    AUTHORS       =>  List of contributing authors
109    CHANGES       =>  Description of changes between libpng versions
110    INSTALL       =>  Instructions to install libpng
111    LICENSE       =>  License to use and redistribute libpng
112    README        =>  This file
113    TODO          =>  Things not implemented in the current library
114    TRADEMARK     =>  Trademark information
115    example.c     =>  Example code for using libpng functions
116    libpng.3      =>  Manual page for libpng (includes libpng-manual.txt)
117    libpng-manual.txt  =>  Description of libpng and its functions
118    libpngpf.3    =>  Manual page for libpng's private functions (deprecated)
119    png.5         =>  Manual page for the PNG format
120    png.c         =>  Basic interface functions common to library
121    png.h         =>  Library function and interface declarations (public)
122    pngpriv.h     =>  Library function and interface declarations (private)
123    pngconf.h     =>  System specific library configuration (public)
124    pngstruct.h   =>  png_struct declaration (private)
125    pnginfo.h     =>  png_info struct declaration (private)
126    pngdebug.h    =>  debugging macros (private)
127    pngerror.c    =>  Error/warning message I/O functions
128    pngget.c      =>  Functions for retrieving info from struct
129    pngmem.c      =>  Memory handling functions
130    pngbar.png    =>  PNG logo, 88x31
131    pngnow.png    =>  PNG logo, 98x31
132    pngpread.c    =>  Progressive reading functions
133    pngread.c     =>  Read data/helper high-level functions
134    pngrio.c      =>  Lowest-level data read I/O functions
135    pngrtran.c    =>  Read data transformation functions
136    pngrutil.c    =>  Read data utility functions
137    pngset.c      =>  Functions for storing data into the info_struct
138    pngtest.c     =>  Library test program
139    pngtest.png   =>  Library test sample image
140    pngtrans.c    =>  Common data transformation functions
141    pngwio.c      =>  Lowest-level write I/O functions
142    pngwrite.c    =>  High-level write functions
143    pngwtran.c    =>  Write data transformations
144    pngwutil.c    =>  Write utility functions
145    arm/          =>  Optimized code for ARM Neon
146    intel/        =>  Optimized code for INTEL SSE2
147    loongarch/    =>  Optimized code for LoongArch LSX
148    mips/         =>  Optimized code for MIPS MSA and MIPS MMI
149    powerpc/      =>  Optimized code for PowerPC VSX
150    ci/           =>  Scripts for continuous integration
151    contrib/      =>  External contributions
152        arm-neon/     =>  Optimized code for the ARM-NEON platform
153        mips-msa/     =>  Optimized code for the MIPS-MSA platform
154        powerpc-vsx/  =>  Optimized code for the POWERPC-VSX platform
155        examples/     =>  Examples of libpng usage
156        gregbook/     =>  Source code for PNG reading and writing, from
157                          "PNG: The Definitive Guide" by Greg Roelofs,
158                          O'Reilly, 1999
159        libtests/     =>  Test programs
160        oss-fuzz/     =>  Files used by the OSS-Fuzz project for fuzz-testing
161                          libpng
162        pngexif/      =>  Program to inspect the EXIF information in PNG files
163        pngminim/     =>  Minimal decoder, encoder, and progressive decoder
164                          programs demonstrating the use of pngusr.dfa
165        pngminus/     =>  Simple pnm2png and png2pnm programs
166        pngsuite/     =>  Test images
167        testpngs/     =>  Test images
168        tools/        =>  Various tools
169        visupng/      =>  VisualPng, a Windows viewer for PNG images
170    projects/     =>  Project files and workspaces for various IDEs
171        owatcom/      =>  OpenWatcom project
172        visualc71/    =>  Microsoft Visual C++ 7.1 workspace
173        vstudio/      =>  Microsoft Visual Studio workspace
174    scripts/      =>  Scripts and makefiles for building libpng
175                      (see scripts/README.txt for the complete list)
176    tests/        =>  Test scripts
177
178Good luck, and happy coding!
179
180 * Cosmin Truta (current maintainer, since 2018)
181 * Glenn Randers-Pehrson (former maintainer, 1998-2018)
182 * Andreas Eric Dilger (former maintainer, 1996-1997)
183 * Guy Eric Schalnat (original author and former maintainer, 1995-1996)
184   (formerly of Group 42, Inc.)
185

README.android

1Any Android specific modifications to upstream libpng (the version
2specified in METADATA) should be listed here:
3
4(1) Android has added the following files.
5    pngusr.h
6    Android.bp
7    CleanSpec.mk
8    MODULE_LICENSE_BSD_LIKE
9    METADATA
10    OWNERS
11
12(2) pnglibconf.h
13    This is copied from scripts/pnglibconf.h.prebuilt.
14    Android has undefined PNG_WARNINGS_SUPPORTED and
15    PNG_READ_OPT_PLTE_SUPPORTED.
16