├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .gitmodules ├── Cargo.toml ├── LICENSE ├── README.md ├── build.rs ├── libpng ├── .appveyor.yml ├── .editorconfig ├── .github │ └── workflows │ │ └── lint.yml ├── .gitignore ├── .travis.yml ├── .yamllint.yml ├── ANNOUNCE ├── AUTHORS ├── CHANGES ├── CMakeLists.txt ├── INSTALL ├── LICENSE ├── Makefile.am ├── Makefile.in ├── README ├── TODO ├── TRADEMARK ├── aclocal.m4 ├── arm │ ├── arm_init.c │ ├── filter_neon.S │ ├── filter_neon_intrinsics.c │ └── palette_neon_intrinsics.c ├── autogen.sh ├── ci │ ├── .shellcheckrc │ ├── LICENSE_MIT.txt │ ├── ci_lint.sh │ ├── ci_shellify.sh │ ├── ci_verify_cmake.sh │ ├── ci_verify_configure.sh │ ├── ci_verify_makefiles.sh │ ├── ci_verify_version.sh │ ├── lib │ │ └── ci.lib.sh │ └── targets │ │ ├── android │ │ ├── ci_env.aarch64-linux-android.sh │ │ ├── ci_env.armv7a-linux-androideabi.sh │ │ ├── ci_env.i686-linux-android.sh │ │ └── ci_env.x86_64-linux-android.sh │ │ ├── cygwin │ │ ├── ci_env.i686-pc-cygwin.sh │ │ └── ci_env.x86_64-pc-cygwin.sh │ │ ├── darwin │ │ ├── ci_env.arm64-apple-darwin.sh │ │ └── ci_env.x86_64-apple-darwin.sh │ │ ├── freebsd │ │ ├── ci_env.aarch64-unknown-freebsd.sh │ │ ├── ci_env.i686-unknown-freebsd.sh │ │ ├── ci_env.riscv64-unknown-freebsd.sh │ │ └── ci_env.x86_64-unknown-freebsd.sh │ │ ├── linux │ │ ├── ci_env.aarch64-linux-gnu.sh │ │ ├── ci_env.arm-linux-gnueabi.sh │ │ ├── ci_env.arm-linux-gnueabihf.sh │ │ ├── ci_env.i686-linux-gnu.sh │ │ ├── ci_env.mips-linux-gnu.sh │ │ ├── ci_env.mips64-linux-gnuabi64.sh │ │ ├── ci_env.mips64el-linux-gnuabi64.sh │ │ ├── ci_env.mipsel-linux-gnu.sh │ │ ├── ci_env.mipsisa32r6-linux-gnu.sh │ │ ├── ci_env.mipsisa32r6el-linux-gnu.sh │ │ ├── ci_env.mipsisa64r6-linux-gnuabi64.sh │ │ ├── ci_env.mipsisa64r6el-linux-gnuabi64.sh │ │ ├── ci_env.powerpc-linux-gnu.sh │ │ ├── ci_env.powerpc64-linux-gnu.sh │ │ ├── ci_env.powerpc64le-linux-gnu.sh │ │ ├── ci_env.riscv64-linux-gnu.sh │ │ └── ci_env.x86_64-linux-gnu.sh │ │ ├── msdos │ │ ├── ci_env.i386-pc-msdoswatcom.sh │ │ ├── ci_env.i586-pc-msdosdjgpp.sh │ │ └── ci_env.i86-pc-msdoswatcom.sh │ │ └── windows │ │ ├── ci_env.aarch64-windows-llvm.sh │ │ ├── ci_env.i686-w64-mingw32.sh │ │ ├── ci_env.i686-windows-llvm.sh │ │ ├── ci_env.x86_64-w64-mingw32.sh │ │ └── ci_env.x86_64-windows-llvm.sh ├── compile ├── config.guess ├── config.h.in ├── config.sub ├── configure ├── configure.ac ├── contrib │ ├── .editorconfig │ ├── README.txt │ ├── arm-neon │ │ ├── README │ │ ├── android-ndk.c │ │ ├── linux-auxv.c │ │ └── linux.c │ ├── conftest │ │ ├── README │ │ ├── basic.dfa │ │ ├── pngcp.dfa │ │ ├── read.dfa │ │ ├── s_read.dfa │ │ ├── s_write.dfa │ │ ├── simple.dfa │ │ └── write.dfa │ ├── examples │ │ ├── README.txt │ │ ├── iccfrompng.c │ │ ├── pngpixel.c │ │ ├── pngtopng.c │ │ └── simpleover.c │ ├── gregbook │ │ ├── COPYING │ │ ├── LICENSE │ │ ├── Makefile.mingw32 │ │ ├── Makefile.sgi │ │ ├── Makefile.unx │ │ ├── Makefile.w32 │ │ ├── README │ │ ├── makevms.com │ │ ├── readpng.c │ │ ├── readpng.h │ │ ├── readpng2.c │ │ ├── readpng2.h │ │ ├── readppm.c │ │ ├── rpng-win.c │ │ ├── rpng-x.c │ │ ├── rpng2-win.c │ │ ├── rpng2-x.c │ │ ├── toucan.png │ │ ├── wpng.c │ │ ├── writepng.c │ │ └── writepng.h │ ├── libtests │ │ ├── fakepng.c │ │ ├── gentests.sh │ │ ├── makepng.c │ │ ├── pngimage.c │ │ ├── pngstest-errors.h │ │ ├── pngstest.c │ │ ├── pngunknown.c │ │ ├── pngvalid.c │ │ ├── readpng.c │ │ ├── tarith.c │ │ └── timepng.c │ ├── mips-mmi │ │ └── linux.c │ ├── mips-msa │ │ ├── README │ │ └── linux.c │ ├── oss-fuzz │ │ ├── Dockerfile │ │ ├── README.txt │ │ ├── build.sh │ │ ├── libpng_read_fuzzer.cc │ │ ├── libpng_read_fuzzer.options │ │ └── png.dict │ ├── pngexif │ │ ├── .editorconfig │ │ ├── .gitignore │ │ ├── .pylintrc │ │ ├── LICENSE_MIT.txt │ │ ├── README.md │ │ ├── bytepack.py │ │ ├── exifinfo.py │ │ ├── pngexifinfo │ │ ├── pngexifinfo.bat │ │ └── pngexifinfo.py │ ├── pngminim │ │ ├── README │ │ ├── decoder │ │ │ ├── README │ │ │ ├── makefile │ │ │ ├── pngusr.dfa │ │ │ └── pngusr.h │ │ ├── encoder │ │ │ ├── README │ │ │ ├── makefile │ │ │ ├── pngusr.dfa │ │ │ └── pngusr.h │ │ └── preader │ │ │ ├── README │ │ │ ├── makefile │ │ │ ├── pngusr.dfa │ │ │ └── pngusr.h │ ├── pngminus │ │ ├── .gitignore │ │ ├── CHANGES.txt │ │ ├── CMakeLists.txt │ │ ├── LICENSE.txt │ │ ├── Makefile │ │ ├── README.txt │ │ ├── makevms.com │ │ ├── png2pnm.c │ │ ├── pnm2png.c │ │ ├── test_png2pnm.bat │ │ ├── test_png2pnm.sh │ │ ├── test_pngminus.bat │ │ ├── test_pngminus.sh │ │ ├── test_pnm2png.bat │ │ └── test_pnm2png.sh │ ├── pngsuite │ │ ├── README │ │ ├── bad_interlace_conversions.txt │ │ ├── basn0g01.png │ │ ├── basn0g02.png │ │ ├── basn0g04.png │ │ ├── basn0g08.png │ │ ├── basn0g16.png │ │ ├── basn2c08.png │ │ ├── basn2c16.png │ │ ├── basn3p01.png │ │ ├── basn3p02.png │ │ ├── basn3p04.png │ │ ├── basn3p08.png │ │ ├── basn4a08.png │ │ ├── basn4a16.png │ │ ├── basn6a08.png │ │ ├── basn6a16.png │ │ ├── ftbbn0g01.png │ │ ├── ftbbn0g02.png │ │ ├── ftbbn0g04.png │ │ ├── ftbbn2c16.png │ │ ├── ftbbn3p08.png │ │ ├── ftbgn2c16.png │ │ ├── ftbgn3p08.png │ │ ├── ftbrn2c08.png │ │ ├── ftbwn0g16.png │ │ ├── ftbwn3p08.png │ │ ├── ftbyn3p08.png │ │ ├── ftp0n0g08.png │ │ ├── ftp0n2c08.png │ │ ├── ftp0n3p08.png │ │ ├── ftp1n3p08.png │ │ ├── ibasn0g08.png │ │ ├── ibasn0g16.png │ │ ├── ibasn2c08.png │ │ ├── ibasn2c16.png │ │ ├── ibasn3p08.png │ │ ├── ibasn4a08.png │ │ ├── ibasn4a16.png │ │ ├── ibasn6a08.png │ │ ├── ibasn6a16.png │ │ ├── iftbbn2c16.png │ │ ├── iftbbn3p08.png │ │ ├── iftbgn2c16.png │ │ ├── iftbgn3p08.png │ │ ├── iftbrn2c08.png │ │ ├── iftbwn0g16.png │ │ ├── iftbwn3p08.png │ │ ├── iftbyn3p08.png │ │ ├── iftp0n0g08.png │ │ ├── iftp0n2c08.png │ │ ├── iftp0n3p08.png │ │ ├── iftp1n3p08.png │ │ └── interlaced │ │ │ ├── README │ │ │ ├── ibasn0g01.png │ │ │ ├── ibasn0g02.png │ │ │ ├── ibasn0g04.png │ │ │ ├── ibasn3p01.png │ │ │ ├── ibasn3p02.png │ │ │ ├── ibasn3p04.png │ │ │ ├── iftbbn0g01.png │ │ │ ├── iftbbn0g02.png │ │ │ └── iftbbn0g04.png │ ├── powerpc-vsx │ │ ├── README │ │ ├── linux.c │ │ └── linux_aux.c │ ├── testpngs │ │ ├── badpal │ │ │ ├── regression-palette-8.png │ │ │ ├── small-palette-1.png │ │ │ ├── small-palette-2.png │ │ │ ├── small-palette-4.png │ │ │ ├── small-palette-8.png │ │ │ ├── test-palette-1.png │ │ │ ├── test-palette-2.png │ │ │ ├── test-palette-4.png │ │ │ └── test-palette-8.png │ │ ├── crashers │ │ │ ├── bad_iCCP.png │ │ │ ├── badadler.png │ │ │ ├── badcrc.png │ │ │ ├── empty_ancillary_chunks.png │ │ │ ├── huge_IDAT.png │ │ │ ├── huge_bKGD_chunk.png │ │ │ ├── huge_cHRM_chunk.png │ │ │ ├── huge_eXIf_chunk.png │ │ │ ├── huge_gAMA_chunk.png │ │ │ ├── huge_hIST_chunk.png │ │ │ ├── huge_iCCP_chunk.png │ │ │ ├── huge_iTXt_chunk.png │ │ │ ├── huge_juNK_unsafe_to_copy.png │ │ │ ├── huge_juNk_safe_to_copy.png │ │ │ ├── huge_pCAL_chunk.png │ │ │ ├── huge_pHYs_chunk.png │ │ │ ├── huge_sCAL_chunk.png │ │ │ ├── huge_sPLT_chunk.png │ │ │ ├── huge_sRGB_chunk.png │ │ │ ├── huge_sTER_chunk.png │ │ │ ├── huge_tEXt_chunk.png │ │ │ ├── huge_tIME_chunk.png │ │ │ └── huge_zTXt_chunk.png │ │ ├── gray-1-1.8-tRNS.png │ │ ├── gray-1-1.8.png │ │ ├── gray-1-linear-tRNS.png │ │ ├── gray-1-linear.png │ │ ├── gray-1-sRGB-tRNS.png │ │ ├── gray-1-sRGB.png │ │ ├── gray-1-tRNS.png │ │ ├── gray-1.png │ │ ├── gray-16-1.8-tRNS.png │ │ ├── gray-16-1.8.png │ │ ├── gray-16-linear-tRNS.png │ │ ├── gray-16-linear.png │ │ ├── gray-16-sRGB-tRNS.png │ │ ├── gray-16-sRGB.png │ │ ├── gray-16-tRNS.png │ │ ├── gray-16.png │ │ ├── gray-2-1.8-tRNS.png │ │ ├── gray-2-1.8.png │ │ ├── gray-2-linear-tRNS.png │ │ ├── gray-2-linear.png │ │ ├── gray-2-sRGB-tRNS.png │ │ ├── gray-2-sRGB.png │ │ ├── gray-2-tRNS.png │ │ ├── gray-2.png │ │ ├── gray-4-1.8-tRNS.png │ │ ├── gray-4-1.8.png │ │ ├── gray-4-linear-tRNS.png │ │ ├── gray-4-linear.png │ │ ├── gray-4-sRGB-tRNS.png │ │ ├── gray-4-sRGB.png │ │ ├── gray-4-tRNS.png │ │ ├── gray-4.png │ │ ├── gray-8-1.8-tRNS.png │ │ ├── gray-8-1.8.png │ │ ├── gray-8-linear-tRNS.png │ │ ├── gray-8-linear.png │ │ ├── gray-8-sRGB-tRNS.png │ │ ├── gray-8-sRGB.png │ │ ├── gray-8-tRNS.png │ │ ├── gray-8.png │ │ ├── gray-alpha-16-1.8.png │ │ ├── gray-alpha-16-linear.png │ │ ├── gray-alpha-16-sRGB.png │ │ ├── gray-alpha-16.png │ │ ├── gray-alpha-8-1.8.png │ │ ├── gray-alpha-8-linear.png │ │ ├── gray-alpha-8-sRGB.png │ │ ├── gray-alpha-8.png │ │ ├── makepngs.sh │ │ ├── palette-1-1.8-tRNS.png │ │ ├── palette-1-1.8.png │ │ ├── palette-1-linear-tRNS.png │ │ ├── palette-1-linear.png │ │ ├── palette-1-sRGB-tRNS.png │ │ ├── palette-1-sRGB.png │ │ ├── palette-1-tRNS.png │ │ ├── palette-1.png │ │ ├── palette-2-1.8-tRNS.png │ │ ├── palette-2-1.8.png │ │ ├── palette-2-linear-tRNS.png │ │ ├── palette-2-linear.png │ │ ├── palette-2-sRGB-tRNS.png │ │ ├── palette-2-sRGB.png │ │ ├── palette-2-tRNS.png │ │ ├── palette-2.png │ │ ├── palette-4-1.8-tRNS.png │ │ ├── palette-4-1.8.png │ │ ├── palette-4-linear-tRNS.png │ │ ├── palette-4-linear.png │ │ ├── palette-4-sRGB-tRNS.png │ │ ├── palette-4-sRGB.png │ │ ├── palette-4-tRNS.png │ │ ├── palette-4.png │ │ ├── palette-8-1.8-tRNS.png │ │ ├── palette-8-1.8.png │ │ ├── palette-8-linear-tRNS.png │ │ ├── palette-8-linear.png │ │ ├── palette-8-sRGB-tRNS.png │ │ ├── palette-8-sRGB.png │ │ ├── palette-8-tRNS.png │ │ ├── palette-8.png │ │ ├── rgb-16-1.8-tRNS.png │ │ ├── rgb-16-1.8.png │ │ ├── rgb-16-linear-tRNS.png │ │ ├── rgb-16-linear.png │ │ ├── rgb-16-sRGB-tRNS.png │ │ ├── rgb-16-sRGB.png │ │ ├── rgb-16-tRNS.png │ │ ├── rgb-16.png │ │ ├── rgb-8-1.8-tRNS.png │ │ ├── rgb-8-1.8.png │ │ ├── rgb-8-linear-tRNS.png │ │ ├── rgb-8-linear.png │ │ ├── rgb-8-sRGB-tRNS.png │ │ ├── rgb-8-sRGB.png │ │ ├── rgb-8-tRNS.png │ │ ├── rgb-8.png │ │ ├── rgb-alpha-16-1.8.png │ │ ├── rgb-alpha-16-linear.png │ │ ├── rgb-alpha-16-sRGB.png │ │ ├── rgb-alpha-16.png │ │ ├── rgb-alpha-8-1.8.png │ │ ├── rgb-alpha-8-linear.png │ │ ├── rgb-alpha-8-sRGB.png │ │ └── rgb-alpha-8.png │ ├── tools │ │ ├── README.txt │ │ ├── checksum-icc.c │ │ ├── cvtcolor.c │ │ ├── genpng.c │ │ ├── intgamma.sh │ │ ├── makesRGB.c │ │ ├── png-fix-itxt.c │ │ ├── pngcp.c │ │ ├── pngfix.c │ │ └── sRGB.h │ └── visupng │ │ ├── .editorconfig │ │ ├── PngFile.c │ │ ├── PngFile.h │ │ ├── README.txt │ │ ├── VisualPng.c │ │ ├── VisualPng.dsp │ │ ├── VisualPng.dsw │ │ ├── VisualPng.ico │ │ ├── VisualPng.png │ │ ├── VisualPng.rc │ │ ├── cexcept.h │ │ └── resource.h ├── depcomp ├── example.c ├── install-sh ├── intel │ ├── filter_sse2_intrinsics.c │ └── intel_init.c ├── libpng-config.in ├── libpng-manual.txt ├── libpng.3 ├── libpng.pc.in ├── libpngpf.3 ├── loongarch │ ├── .editorconfig │ ├── filter_lsx_intrinsics.c │ └── loongarch_lsx_init.c ├── ltmain.sh ├── mips │ ├── .editorconfig │ ├── filter_mmi_inline_assembly.c │ ├── filter_msa_intrinsics.c │ └── mips_init.c ├── missing ├── png.5 ├── png.c ├── png.h ├── pngbar.jpg ├── pngbar.png ├── pngconf.h ├── pngdebug.h ├── pngerror.c ├── pngget.c ├── pnginfo.h ├── pngmem.c ├── pngnow.png ├── pngpread.c ├── pngpriv.h ├── pngread.c ├── pngrio.c ├── pngrtran.c ├── pngrutil.c ├── pngset.c ├── pngstruct.h ├── pngtest.c ├── pngtest.png ├── pngtrans.c ├── pngusr.dfa ├── pngwio.c ├── pngwrite.c ├── pngwtran.c ├── pngwutil.c ├── powerpc │ ├── .editorconfig │ ├── filter_vsx_intrinsics.c │ └── powerpc_init.c ├── projects │ ├── .editorconfig │ ├── owatcom │ │ ├── libpng.tgt │ │ ├── libpng.wpj │ │ ├── pngconfig.mak │ │ ├── pngstest.tgt │ │ ├── pngtest.tgt │ │ └── pngvalid.tgt │ ├── visualc71 │ │ ├── PRJ0041.mak │ │ ├── README.txt │ │ ├── README_zlib.txt │ │ ├── libpng.sln │ │ ├── libpng.vcproj │ │ ├── pngtest.vcproj │ │ └── zlib.vcproj │ └── vstudio │ │ ├── README.txt │ │ ├── libpng │ │ └── libpng.vcxproj │ │ ├── pnglibconf │ │ └── pnglibconf.vcxproj │ │ ├── vstudio.sln │ │ ├── zlib.props │ │ └── zlib │ │ └── zlib.vcxproj ├── scripts │ ├── README.txt │ ├── SCOPTIONS.ppc │ ├── autoconf │ │ ├── README.md │ │ ├── libtool.m4 │ │ ├── ltoptions.m4 │ │ ├── ltsugar.m4 │ │ ├── ltversion.m4 │ │ └── lt~obsolete.m4 │ ├── checksym.awk │ ├── cmake │ │ ├── AUTHORS.md │ │ ├── PNGConfig.cmake │ │ ├── README.md │ │ ├── genchk.cmake.in │ │ ├── genout.cmake.in │ │ ├── gensrc.cmake.in │ │ └── test.cmake.in │ ├── descrip.mms │ ├── dfn.awk │ ├── intprefix.c │ ├── libpng-config-body.in │ ├── libpng-config-head.in │ ├── libpng.pc.in │ ├── macro.lst │ ├── makefile.32sunu │ ├── makefile.64sunu │ ├── makefile.aix │ ├── makefile.amiga │ ├── makefile.atari │ ├── makefile.bc32 │ ├── makefile.beos │ ├── makefile.clang │ ├── makefile.darwin │ ├── makefile.dec │ ├── makefile.dj2 │ ├── makefile.emcc │ ├── makefile.freebsd │ ├── makefile.gcc │ ├── makefile.hp64 │ ├── makefile.hpgcc │ ├── makefile.hpux │ ├── makefile.ibmc │ ├── makefile.intel │ ├── makefile.linux │ ├── makefile.mips │ ├── makefile.msys │ ├── makefile.netbsd │ ├── makefile.openbsd │ ├── makefile.riscos │ ├── makefile.sco │ ├── makefile.sggcc │ ├── makefile.sgi │ ├── makefile.so9 │ ├── makefile.solaris │ ├── makefile.std │ ├── makefile.sunos │ ├── makefile.vcwin-arm64 │ ├── makefile.vcwin32 │ ├── makevms.com │ ├── options.awk │ ├── pnglibconf.dfa │ ├── pnglibconf.h.prebuilt │ ├── pnglibconf.mak │ ├── pngwin.rc │ ├── prefix.c │ ├── smakefile.ppc │ ├── sym.c │ ├── symbols.c │ ├── symbols.def │ └── vers.c ├── test-driver └── tests │ ├── pngimage-full │ ├── pngimage-quick │ ├── pngstest-1.8 │ ├── pngstest-1.8-alpha │ ├── pngstest-linear │ ├── pngstest-linear-alpha │ ├── pngstest-none │ ├── pngstest-none-alpha │ ├── pngstest-sRGB │ ├── pngstest-sRGB-alpha │ ├── pngtest-all │ ├── pngunknown-IDAT │ ├── pngunknown-discard │ ├── pngunknown-if-safe │ ├── pngunknown-sAPI │ ├── pngunknown-sTER │ ├── pngunknown-save │ ├── pngunknown-vpAg │ ├── pngvalid-gamma-16-to-8 │ ├── pngvalid-gamma-alpha-mode │ ├── pngvalid-gamma-background │ ├── pngvalid-gamma-expand16-alpha-mode │ ├── pngvalid-gamma-expand16-background │ ├── pngvalid-gamma-expand16-transform │ ├── pngvalid-gamma-sbit │ ├── pngvalid-gamma-threshold │ ├── pngvalid-gamma-transform │ ├── pngvalid-progressive-interlace-standard │ ├── pngvalid-progressive-size │ ├── pngvalid-progressive-standard │ ├── pngvalid-standard │ └── pngvalid-transform └── src ├── lib.rs └── tt_tables.rs /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | 3 | on: 4 | pull_request: 5 | push: 6 | merge_group: 7 | 8 | jobs: 9 | rustfmt: 10 | runs-on: ubuntu-latest 11 | name: cargo fmt 12 | steps: 13 | - uses: actions/checkout@v4 14 | 15 | - name: install stable toolchain 16 | uses: dtolnay/rust-toolchain@master 17 | with: 18 | toolchain: stable 19 | components: rustfmt 20 | 21 | - name: cargo fmt 22 | run: cargo fmt --all --check 23 | 24 | test-stable: 25 | runs-on: ${{ matrix.os }} 26 | strategy: 27 | matrix: 28 | os: [windows-latest, macos-latest, ubuntu-latest] 29 | name: cargo clippy + test 30 | steps: 31 | - uses: actions/checkout@v4 32 | with: 33 | submodules: true 34 | 35 | - name: install stable toolchain 36 | uses: dtolnay/rust-toolchain@master 37 | with: 38 | toolchain: stable 39 | components: clippy 40 | 41 | - name: cargo clippy (bundled) 42 | run: cargo clippy --features bundled -- -D warnings 43 | 44 | - name: cargo test (bundled) 45 | run: cargo test --features bundled 46 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | *~ 3 | *# 4 | *.o 5 | *.so 6 | *.swp 7 | *.old 8 | *.bak 9 | *.kate-swp 10 | *.dylib 11 | *.dSYM 12 | *.dll 13 | *.rlib 14 | *.dummy 15 | *.exe 16 | *-test 17 | /bin/main 18 | /bin/test-internal 19 | /bin/test-external 20 | /doc/ 21 | /target/ 22 | /build/ 23 | /.rust/ 24 | rusti.sh 25 | watch.sh 26 | /examples/**/target 27 | 28 | Cargo.lock 29 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "freetype2"] 2 | path = freetype2 3 | url = https://gitlab.freedesktop.org/freetype/freetype.git 4 | [submodule "libz-sys"] 5 | path = libz-sys 6 | url = https://github.com/rust-lang/libz-sys.git 7 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | 3 | name = "freetype-sys" 4 | version = "0.23.0" 5 | authors = ["Coeuvre "] 6 | links = "freetype" 7 | build = "build.rs" 8 | keywords = ["freetype", "ffi"] 9 | description = "Low level binding for FreeType font library" 10 | license = "MIT" 11 | readme = "README.md" 12 | repository = "https://github.com/PistonDevelopers/freetype-sys.git" 13 | homepage = "https://github.com/PistonDevelopers/freetype-sys" 14 | edition = "2018" 15 | 16 | [features] 17 | bundled = [] 18 | 19 | [dependencies] 20 | libz-sys = "1.1.20" 21 | 22 | [build-dependencies] 23 | cc = "1" 24 | pkg-config = "0.3.11" 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 PistonDevelopers 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | freetype-sys [![Build Status](https://github.com/PistonDevelopers/freetype-sys/actions/workflows/ci.yml/badge.svg)](https://github.com/PistonDevelopers/freetype-sys/actions/workflows/ci.yml) 2 | ============ 3 | 4 | Low level bindings for the FreeType font library. 5 | 6 | # Statically linking against FreeType 7 | 8 | If the `bundled` feature is enabled, `freetype-sys` will build and link a static copy of FreeType. This requires a C compiler. The included version of FreeType is 2.13.2. 9 | 10 | ``` 11 | [dependencies] 12 | freetype-sys = { version = "0.21", features = ["bundled"] } 13 | ``` 14 | 15 | ## For Windows users 16 | 17 | ### -pc-windows-gnu 18 | In order to easily setup FreeType just get MSYS2 and install either the `mingw-w64-x86_64-freetype` or `mingw-w64-i686-freetype` package and then use Rust from within the correct MinGW shell of MSYS2. 19 | 20 | More information on setting up MSYS2 for Rust can be found in [the Rust installing from source document](https://github.com/rust-lang/rust/blob/master/INSTALL.md#building-on-windows). 21 | 22 | ### -pc-windows-msvc 23 | Prebuilt libraries for FreeType are available [here](https://github.com/PistonDevelopers/binaries). 24 | 25 | Then in the root of your project, in one of the parent directories, or in your home directory, create a .cargo directory. This directory should contain a `config` file that contains the following snippet: 26 | 27 | ```toml 28 | [target.i686-pc-windows-msvc.freetype] 29 | rustc-link-search = ["C:\\Path\\To\\binaries\\i686"] 30 | rustc-link-lib = ["freetype"] 31 | 32 | [target.x86_64-pc-windows-msvc.freetype] 33 | rustc-link-search = ["C:\\Path\\To\\binaries\\x86_64"] 34 | rustc-link-lib = ["freetype"] 35 | ``` 36 | 37 | For more information, check [the official Cargo documentation](https://doc.rust-lang.org/cargo/reference/build-scripts.html#overriding-build-scripts). 38 | -------------------------------------------------------------------------------- /libpng/.editorconfig: -------------------------------------------------------------------------------- 1 | # https://editorconfig.org 2 | 3 | root = true 4 | 5 | [*] 6 | charset = utf-8 7 | insert_final_newline = true 8 | trim_trailing_whitespace = true 9 | 10 | [*.txt] 11 | indent_style = space 12 | 13 | [*.[chS]] 14 | indent_style = space 15 | max_doc_length = 80 16 | max_line_length = 80 17 | 18 | [*.dfa] 19 | indent_style = space 20 | max_doc_length = 80 21 | max_line_length = 80 22 | 23 | [*.{awk,cmake}] 24 | indent_style = space 25 | max_doc_length = 80 26 | max_line_length = 100 27 | 28 | [*.{in,sh}] 29 | indent_style = space 30 | max_doc_length = 100 31 | max_line_length = 100 32 | 33 | [{Makefile.in,ltmain.sh}] 34 | indent_style = unset 35 | insert_final_newline = unset 36 | max_doc_length = unset 37 | max_line_length = unset 38 | trim_trailing_whitespace = unset 39 | 40 | [COMMIT_EDITMSG] 41 | indent_style = space 42 | max_doc_length = unset 43 | max_line_length = 72 44 | -------------------------------------------------------------------------------- /libpng/.github/workflows/lint.yml: -------------------------------------------------------------------------------- 1 | name: Linting libpng 2 | 3 | on: 4 | push: 5 | branches: 6 | - libpng16 7 | pull_request: 8 | branches: 9 | - libpng16 10 | 11 | jobs: 12 | lint: 13 | runs-on: ubuntu-latest 14 | timeout-minutes: 5 15 | steps: 16 | - name: Set up the cache 17 | uses: actions/cache@v4 18 | with: 19 | path: ~/.cache/pip 20 | key: ${{ runner.os }}-pip-${{ hashFiles('**/pip.txt') }} 21 | restore-keys: ${{ runner.os }}-pip- 22 | - name: Install yamllint 23 | run: pip install yamllint 24 | - name: Check out the code 25 | uses: actions/checkout@v4 26 | - name: Run the linting script 27 | run: bash ./ci/ci_lint.sh 28 | -------------------------------------------------------------------------------- /libpng/.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Precompiled headers 5 | *.gch 6 | *.pch 7 | 8 | # Object files 9 | *.slo 10 | *.lo 11 | *.o 12 | *.obj 13 | 14 | # Linker output files 15 | *.exp 16 | *.ilk 17 | *.map 18 | 19 | # Compiled dynamic libraries 20 | *.dll 21 | *.dylib 22 | *.so 23 | *.so.* 24 | 25 | # Compiled static libraries 26 | *.a 27 | *.la 28 | *.lai 29 | *.lib 30 | 31 | # Compiled executables 32 | *.app/ 33 | *.exe 34 | 35 | # Debug files 36 | *.dSYM/ 37 | *.idb 38 | *.pdb 39 | *.su 40 | 41 | # Libpng configuration and build artifacts 42 | *.out 43 | .deps/ 44 | .dirstamp 45 | /Makefile 46 | /autom4te.cache/ 47 | /config.guess~ 48 | /config.h.in~ 49 | /config.log 50 | /config.status 51 | /config.sub~ 52 | /configure~ 53 | /install-sh~ 54 | /libpng-config 55 | /libpng.pc 56 | /libpng.vers 57 | /libpng16-config 58 | /libpng16.pc 59 | /libtool 60 | /stamp-h1 61 | pnglibconf.[ch] 62 | pnglibconf.dfn 63 | pnglibconf.pre 64 | pngprefix.h 65 | 66 | # Libpng test artifacts 67 | png-fix-itxt 68 | pngcp 69 | pngfix 70 | pngimage 71 | pngstest 72 | pngtest 73 | pngunknown 74 | pngvalid 75 | timepng 76 | pngout.png 77 | 78 | # Libpng CI artifacts 79 | out/ 80 | -------------------------------------------------------------------------------- /libpng/.travis.yml: -------------------------------------------------------------------------------- 1 | branches: 2 | except: 3 | - /libpng[0-1][0-7]/ 4 | - /v[0-1][.][0-7][.][0-9]+/ 5 | 6 | language: c 7 | 8 | os: 9 | - freebsd 10 | - linux 11 | - osx 12 | 13 | env: 14 | - AUTOMATION=cmake 15 | - AUTOMATION=configure 16 | - AUTOMATION=makefiles 17 | 18 | before_script: 19 | - 'if test "$TRAVIS_OS_NAME" = "linux"; then export CI_CC="gcc"; else export CI_CC="clang"; fi' 20 | - 'if test "$TRAVIS_OS_NAME" = "osx"; then export CI_CMAKE_GENERATOR="Xcode"; fi' 21 | - 'if test "$TRAVIS_OS_NAME" != "osx"; then export CI_SANITIZERS="address,undefined"; fi' 22 | - 'export CI_MAKEFILES="scripts/makefile.$CI_CC scripts/makefile.std"' 23 | - 'export CI_MAKE_FLAGS=-j2' 24 | - 'export CI_CMAKE_BUILD_FLAGS=-j2' 25 | - 'export CI_CTEST_FLAGS=-j2' 26 | 27 | script: 28 | - './ci/ci_verify_$AUTOMATION.sh' 29 | -------------------------------------------------------------------------------- /libpng/.yamllint.yml: -------------------------------------------------------------------------------- 1 | extends: default 2 | rules: 3 | document-start: disable 4 | document-end: disable 5 | line-length: disable 6 | truthy: 7 | check-keys: false 8 | -------------------------------------------------------------------------------- /libpng/ANNOUNCE: -------------------------------------------------------------------------------- 1 | libpng 1.6.44 - September 12, 2024 2 | ================================== 3 | 4 | This is a public release of libpng, intended for use in production code. 5 | 6 | 7 | Files available for download 8 | ---------------------------- 9 | 10 | Source files with LF line endings (for Unix/Linux): 11 | 12 | * libpng-1.6.44.tar.xz (LZMA-compressed, recommended) 13 | * libpng-1.6.44.tar.gz (deflate-compressed) 14 | 15 | Source files with CRLF line endings (for Windows): 16 | 17 | * lpng1644.7z (LZMA-compressed, recommended) 18 | * lpng1644.zip (deflate-compressed) 19 | 20 | Other information: 21 | 22 | * README.md 23 | * LICENSE.md 24 | * AUTHORS.md 25 | * TRADEMARK.md 26 | 27 | 28 | Changes from version 1.6.43 to version 1.6.44 29 | --------------------------------------------- 30 | 31 | * Hardened calculations in chroma handling to prevent overflows, and 32 | relaxed a constraint in cHRM validation to accomodate the standard 33 | ACES AP1 set of color primaries. 34 | (Contributed by John Bowler) 35 | * Removed the ASM implementation of ARM Neon optimizations and updated 36 | the build accordingly. Only the remaining C implementation shall be 37 | used from now on, thus ensuring the support of the PAC/BTI security 38 | features on ARM64. 39 | (Contributed by Ross Burton and John Bowler) 40 | * Fixed the pickup of the PNG_HARDWARE_OPTIMIZATIONS option in the 41 | CMake build on FreeBSD/amd64. This is an important performance fix 42 | on this platform. 43 | * Applied various fixes and improvements to the CMake build. 44 | (Contributed by Eric Riff, Benjamin Buch and Erik Scholz) 45 | * Added fuzzing targets for the simplified read API. 46 | (Contributed by Mikhail Khachayants) 47 | * Fixed a build error involving pngtest.c under a custom config. 48 | This was a regression introduced in a code cleanup in libpng-1.6.43. 49 | (Contributed by Ben Wagner) 50 | * Fixed and improved the config files for AppVeyor CI and Travis CI. 51 | 52 | 53 | Send comments/corrections/commendations to png-mng-implement at lists.sf.net. 54 | Subscription is required; visit 55 | https://lists.sourceforge.net/lists/listinfo/png-mng-implement 56 | to subscribe. 57 | -------------------------------------------------------------------------------- /libpng/AUTHORS: -------------------------------------------------------------------------------- 1 | PNG REFERENCE LIBRARY AUTHORS 2 | ============================= 3 | 4 | This is the list of PNG Reference Library ("libpng") Contributing 5 | Authors, for copyright and licensing purposes. 6 | 7 | * Adam Richter 8 | * Andreas Dilger 9 | * Chris Blume 10 | * Cosmin Truta 11 | * Dave Martindale 12 | * Eric S. Raymond 13 | * Gilles Vollant 14 | * Glenn Randers-Pehrson 15 | * Greg Roelofs 16 | * Guy Eric Schalnat 17 | * James Yu 18 | * John Bowler 19 | * Kevin Bracey 20 | * Magnus Holmgren 21 | * Mandar Sahastrabuddhe 22 | * Mans Rullgard 23 | * Matt Sarett 24 | * Mike Klein 25 | * Pascal Massimino 26 | * Paul Schmidt 27 | * Philippe Antoine 28 | * Qiang Zhou 29 | * Sam Bushell 30 | * Samuel Williams 31 | * Simon-Pierre Cadieux 32 | * Tim Wegner 33 | * Tom Lane 34 | * Tom Tanner 35 | * Vadim Barkov 36 | * Willem van Schaik 37 | * Zhijie Liang 38 | * Apple Inc. 39 | - Zixu Wang (王子旭) 40 | * Arm Holdings 41 | - Richard Townsend 42 | * Google Inc. 43 | - Dan Field 44 | - Leon Scroggins III 45 | - Matt Sarett 46 | - Mike Klein 47 | - Sami Boukortt 48 | - Wan-Teh Chang 49 | * Loongson Technology Corporation Ltd. 50 | - GuXiWei (顾希伟) 51 | - JinBo (金波) 52 | - ZhangLixia (张利霞) 53 | 54 | The build projects, the build scripts, the test scripts, and other 55 | files in the "projects", "scripts" and "tests" directories, have 56 | other copyright owners, but are released under the libpng license. 57 | 58 | Some files in the "ci" and "contrib" directories, as well as some 59 | of the tools-generated files that are distributed with libpng, have 60 | other copyright owners, and are released under other open source 61 | licenses. 62 | -------------------------------------------------------------------------------- /libpng/TODO: -------------------------------------------------------------------------------- 1 | TODO - list of things to do for libpng: 2 | 3 | * Fix all defects (duh!) 4 | * Better C++ wrapper / full C++ implementation (?) 5 | * Fix the problems with C++ and 'extern "C"'. 6 | * cHRM transformation. 7 | * Palette creation. 8 | * "grayscale->palette" transformation and "palette->grayscale" detection. 9 | * Improved dithering. 10 | * Multi-lingual error and warning message support. 11 | * Complete sRGB transformation. (Currently it simply uses gamma=0.45455.) 12 | * Man pages for function calls. 13 | * Better documentation. 14 | * Better filter selection 15 | (e.g., counting huffman bits/precompression; filter inertia; filter costs). 16 | * Histogram creation. 17 | * Text conversion between different code pages (e.g., Latin-1 -> Mac). 18 | * Avoid building gamma tables whenever possible. 19 | * Greater precision in changing to linear gamma for compositing against 20 | background, and in doing rgb-to-gray transformations. 21 | * Investigate pre-incremented loop counters and other loop constructions. 22 | * Interpolated method of handling interlacing. 23 | * More validations for libpng transformations. 24 | -------------------------------------------------------------------------------- /libpng/TRADEMARK: -------------------------------------------------------------------------------- 1 | TRADEMARK 2 | ========= 3 | 4 | The name "libpng" has not been registered by the Copyright owners 5 | as a trademark in any jurisdiction. However, because libpng has 6 | been distributed and maintained world-wide, continually since 1995, 7 | the Copyright owners claim "common-law trademark protection" in any 8 | jurisdiction where common-law trademark is recognized. 9 | -------------------------------------------------------------------------------- /libpng/ci/.shellcheckrc: -------------------------------------------------------------------------------- 1 | # Disable the "expressions don't expand in single quotes, use double quotes" 2 | # advice. We need the regular expressions to remain uninterpolated. 3 | disable=SC2016 4 | 5 | # Disable the "variable appears unused" warning caused by the use of getopts 6 | # with an obligatory (but unused) variable name in the main function. 7 | disable=SC2034 8 | 9 | # Disable all the "quote to prevent globbing or word splitting" advice. 10 | # We need word splitting for well-known variables like MAKEFLAGS and CFLAGS. 11 | disable=SC2086,SC2206 12 | -------------------------------------------------------------------------------- /libpng/ci/LICENSE_MIT.txt: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19 | SOFTWARE. 20 | -------------------------------------------------------------------------------- /libpng/ci/targets/android/ci_env.aarch64-linux-android.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=aarch64 9 | export CI_TARGET_ARCHVER=aarch64 10 | export CI_TARGET_SYSTEM=linux 11 | export CI_TARGET_ABI=android 12 | export CI_TARGET_ABIVER=android29 13 | 14 | export CI_CC="$CI_TARGET_ARCHVER-$CI_TARGET_SYSTEM-$CI_TARGET_ABIVER-clang" 15 | export CI_AR="llvm-ar" 16 | export CI_RANLIB="llvm-ranlib" 17 | -------------------------------------------------------------------------------- /libpng/ci/targets/android/ci_env.armv7a-linux-androideabi.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=arm 9 | export CI_TARGET_ARCHVER=armv7a 10 | export CI_TARGET_SYSTEM=linux 11 | export CI_TARGET_ABI=androideabi 12 | export CI_TARGET_ABIVER=androideabi29 13 | 14 | export CI_CC="$CI_TARGET_ARCHVER-$CI_TARGET_SYSTEM-$CI_TARGET_ABIVER-clang" 15 | export CI_AR="llvm-ar" 16 | export CI_RANLIB="llvm-ranlib" 17 | -------------------------------------------------------------------------------- /libpng/ci/targets/android/ci_env.i686-linux-android.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=i686 9 | export CI_TARGET_ARCHVER=i686 10 | export CI_TARGET_SYSTEM=linux 11 | export CI_TARGET_ABI=android 12 | export CI_TARGET_ABIVER=android29 13 | 14 | export CI_CC="$CI_TARGET_ARCHVER-$CI_TARGET_SYSTEM-$CI_TARGET_ABIVER-clang" 15 | export CI_AR="llvm-ar" 16 | export CI_RANLIB="llvm-ranlib" 17 | -------------------------------------------------------------------------------- /libpng/ci/targets/android/ci_env.x86_64-linux-android.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=x86_64 9 | export CI_TARGET_ARCHVER=x86_64 10 | export CI_TARGET_SYSTEM=linux 11 | export CI_TARGET_ABI=android 12 | export CI_TARGET_ABIVER=android29 13 | 14 | export CI_CC="$CI_TARGET_ARCHVER-$CI_TARGET_SYSTEM-$CI_TARGET_ABIVER-clang" 15 | export CI_AR="llvm-ar" 16 | export CI_RANLIB="llvm-ranlib" 17 | -------------------------------------------------------------------------------- /libpng/ci/targets/cygwin/ci_env.i686-pc-cygwin.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=i686 9 | export CI_TARGET_SYSTEM=cygwin 10 | 11 | export CI_CC="$CI_TARGET_ARCH-pc-$CI_TARGET_SYSTEM-gcc" 12 | export CI_AR="$CI_CC-ar" 13 | export CI_RANLIB="$CI_CC-ranlib" 14 | 15 | export CI_CMAKE_VARS=" 16 | -DCMAKE_SYSTEM_NAME=CYGWIN 17 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 18 | " 19 | -------------------------------------------------------------------------------- /libpng/ci/targets/cygwin/ci_env.x86_64-pc-cygwin.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=x86_64 9 | export CI_TARGET_SYSTEM=cygwin 10 | 11 | export CI_CC="$CI_TARGET_ARCH-pc-$CI_TARGET_SYSTEM-gcc" 12 | export CI_AR="$CI_CC-ar" 13 | export CI_RANLIB="$CI_CC-ranlib" 14 | 15 | export CI_CMAKE_VARS=" 16 | -DCMAKE_SYSTEM_NAME=CYGWIN 17 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 18 | " 19 | -------------------------------------------------------------------------------- /libpng/ci/targets/darwin/ci_env.arm64-apple-darwin.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=arm64 9 | export CI_TARGET_SYSTEM=darwin 10 | 11 | export CI_CMAKE_VARS=" 12 | -DCMAKE_SYSTEM_NAME=Darwin 13 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 14 | -DCMAKE_OSX_ARCHITECTURES=$CI_TARGET_ARCH 15 | " 16 | -------------------------------------------------------------------------------- /libpng/ci/targets/darwin/ci_env.x86_64-apple-darwin.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=x86_64 9 | export CI_TARGET_SYSTEM=darwin 10 | 11 | export CI_CMAKE_VARS=" 12 | -DCMAKE_SYSTEM_NAME=Darwin 13 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 14 | -DCMAKE_OSX_ARCHITECTURES=$CI_TARGET_ARCH 15 | " 16 | -------------------------------------------------------------------------------- /libpng/ci/targets/freebsd/ci_env.aarch64-unknown-freebsd.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=aarch64 9 | export CI_TARGET_SYSTEM=freebsd 10 | 11 | export CI_CMAKE_VARS=" 12 | -DCMAKE_SYSTEM_NAME=FreeBSD 13 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 14 | " 15 | -------------------------------------------------------------------------------- /libpng/ci/targets/freebsd/ci_env.i686-unknown-freebsd.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=i686 9 | export CI_TARGET_SYSTEM=freebsd 10 | 11 | export CI_CMAKE_VARS=" 12 | -DCMAKE_SYSTEM_NAME=FreeBSD 13 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 14 | " 15 | -------------------------------------------------------------------------------- /libpng/ci/targets/freebsd/ci_env.riscv64-unknown-freebsd.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=riscv64 9 | export CI_TARGET_SYSTEM=freebsd 10 | 11 | export CI_CMAKE_VARS=" 12 | -DCMAKE_SYSTEM_NAME=FreeBSD 13 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 14 | " 15 | -------------------------------------------------------------------------------- /libpng/ci/targets/freebsd/ci_env.x86_64-unknown-freebsd.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=x86_64 9 | export CI_TARGET_SYSTEM=freebsd 10 | 11 | export CI_CMAKE_VARS=" 12 | -DCMAKE_SYSTEM_NAME=FreeBSD 13 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 14 | " 15 | -------------------------------------------------------------------------------- /libpng/ci/targets/linux/ci_env.aarch64-linux-gnu.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=aarch64 9 | export CI_TARGET_SYSTEM=linux 10 | export CI_TARGET_ABI=gnu 11 | 12 | export CI_GCC="${CI_GCC-gcc}" 13 | 14 | export CI_CC="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-$CI_GCC" 15 | export CI_AR="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ar" 16 | export CI_RANLIB="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ranlib" 17 | 18 | export CI_CMAKE_VARS=" 19 | -DCMAKE_SYSTEM_NAME=Linux 20 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 21 | " 22 | -------------------------------------------------------------------------------- /libpng/ci/targets/linux/ci_env.arm-linux-gnueabi.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=arm 9 | export CI_TARGET_SYSTEM=linux 10 | export CI_TARGET_ABI=gnueabi 11 | 12 | export CI_GCC="${CI_GCC-gcc}" 13 | 14 | export CI_CC="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-$CI_GCC" 15 | export CI_AR="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ar" 16 | export CI_RANLIB="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ranlib" 17 | 18 | export CI_CMAKE_VARS=" 19 | -DCMAKE_SYSTEM_NAME=Linux 20 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 21 | " 22 | -------------------------------------------------------------------------------- /libpng/ci/targets/linux/ci_env.arm-linux-gnueabihf.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=arm 9 | export CI_TARGET_SYSTEM=linux 10 | export CI_TARGET_ABI=gnueabihf 11 | 12 | export CI_GCC="${CI_GCC-gcc}" 13 | 14 | export CI_CC="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-$CI_GCC" 15 | export CI_AR="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ar" 16 | export CI_RANLIB="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ranlib" 17 | 18 | export CI_CMAKE_VARS=" 19 | -DCMAKE_SYSTEM_NAME=Linux 20 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 21 | " 22 | -------------------------------------------------------------------------------- /libpng/ci/targets/linux/ci_env.i686-linux-gnu.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=i686 9 | export CI_TARGET_SYSTEM=linux 10 | export CI_TARGET_ABI=gnu 11 | 12 | export CI_GCC="${CI_GCC-gcc}" 13 | 14 | export CI_CC="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-$CI_GCC" 15 | export CI_AR="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ar" 16 | export CI_RANLIB="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ranlib" 17 | 18 | export CI_CMAKE_VARS=" 19 | -DCMAKE_SYSTEM_NAME=Linux 20 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 21 | " 22 | -------------------------------------------------------------------------------- /libpng/ci/targets/linux/ci_env.mips-linux-gnu.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=mips 9 | export CI_TARGET_SYSTEM=linux 10 | export CI_TARGET_ABI=gnu 11 | 12 | export CI_GCC="${CI_GCC-gcc}" 13 | 14 | export CI_CC="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-$CI_GCC" 15 | export CI_AR="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ar" 16 | export CI_RANLIB="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ranlib" 17 | 18 | export CI_CMAKE_VARS=" 19 | -DCMAKE_SYSTEM_NAME=Linux 20 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 21 | " 22 | -------------------------------------------------------------------------------- /libpng/ci/targets/linux/ci_env.mips64-linux-gnuabi64.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=mips64 9 | export CI_TARGET_SYSTEM=linux 10 | export CI_TARGET_ABI=gnuabi64 11 | 12 | export CI_GCC="${CI_GCC-gcc}" 13 | 14 | export CI_CC="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-$CI_GCC" 15 | export CI_AR="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ar" 16 | export CI_RANLIB="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ranlib" 17 | 18 | export CI_CMAKE_VARS=" 19 | -DCMAKE_SYSTEM_NAME=Linux 20 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 21 | " 22 | -------------------------------------------------------------------------------- /libpng/ci/targets/linux/ci_env.mips64el-linux-gnuabi64.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=mips64el 9 | export CI_TARGET_SYSTEM=linux 10 | export CI_TARGET_ABI=gnuabi64 11 | 12 | export CI_GCC="${CI_GCC-gcc}" 13 | 14 | export CI_CC="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-$CI_GCC" 15 | export CI_AR="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ar" 16 | export CI_RANLIB="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ranlib" 17 | 18 | export CI_CMAKE_VARS=" 19 | -DCMAKE_SYSTEM_NAME=Linux 20 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 21 | " 22 | -------------------------------------------------------------------------------- /libpng/ci/targets/linux/ci_env.mipsel-linux-gnu.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=mipsel 9 | export CI_TARGET_SYSTEM=linux 10 | export CI_TARGET_ABI=gnu 11 | 12 | export CI_GCC="${CI_GCC-gcc}" 13 | 14 | export CI_CC="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-$CI_GCC" 15 | export CI_AR="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ar" 16 | export CI_RANLIB="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ranlib" 17 | 18 | export CI_CMAKE_VARS=" 19 | -DCMAKE_SYSTEM_NAME=Linux 20 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 21 | " 22 | -------------------------------------------------------------------------------- /libpng/ci/targets/linux/ci_env.mipsisa32r6-linux-gnu.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=mipsisa32r6 9 | export CI_TARGET_SYSTEM=linux 10 | export CI_TARGET_ABI=gnu 11 | 12 | export CI_GCC="${CI_GCC-gcc}" 13 | 14 | export CI_CC="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-$CI_GCC" 15 | export CI_AR="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ar" 16 | export CI_RANLIB="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ranlib" 17 | 18 | export CI_CMAKE_VARS=" 19 | -DCMAKE_SYSTEM_NAME=Linux 20 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 21 | " 22 | -------------------------------------------------------------------------------- /libpng/ci/targets/linux/ci_env.mipsisa32r6el-linux-gnu.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=mipsisa32r6el 9 | export CI_TARGET_SYSTEM=linux 10 | export CI_TARGET_ABI=gnu 11 | 12 | export CI_GCC="${CI_GCC-gcc}" 13 | 14 | export CI_CC="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-$CI_GCC" 15 | export CI_AR="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ar" 16 | export CI_RANLIB="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ranlib" 17 | 18 | export CI_CMAKE_VARS=" 19 | -DCMAKE_SYSTEM_NAME=Linux 20 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 21 | " 22 | -------------------------------------------------------------------------------- /libpng/ci/targets/linux/ci_env.mipsisa64r6-linux-gnuabi64.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=mipsisa64r6 9 | export CI_TARGET_SYSTEM=linux 10 | export CI_TARGET_ABI=gnuabi64 11 | 12 | export CI_GCC="${CI_GCC-gcc}" 13 | 14 | export CI_CC="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-$CI_GCC" 15 | export CI_AR="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ar" 16 | export CI_RANLIB="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ranlib" 17 | 18 | export CI_CMAKE_VARS=" 19 | -DCMAKE_SYSTEM_NAME=Linux 20 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 21 | " 22 | -------------------------------------------------------------------------------- /libpng/ci/targets/linux/ci_env.mipsisa64r6el-linux-gnuabi64.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=mipsisa64r6el 9 | export CI_TARGET_SYSTEM=linux 10 | export CI_TARGET_ABI=gnuabi64 11 | 12 | export CI_GCC="${CI_GCC-gcc}" 13 | 14 | export CI_CC="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-$CI_GCC" 15 | export CI_AR="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ar" 16 | export CI_RANLIB="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ranlib" 17 | 18 | export CI_CMAKE_VARS=" 19 | -DCMAKE_SYSTEM_NAME=Linux 20 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 21 | " 22 | -------------------------------------------------------------------------------- /libpng/ci/targets/linux/ci_env.powerpc-linux-gnu.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=powerpc 9 | export CI_TARGET_SYSTEM=linux 10 | export CI_TARGET_ABI=gnu 11 | 12 | export CI_GCC="${CI_GCC-gcc}" 13 | 14 | export CI_CC="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-$CI_GCC" 15 | export CI_AR="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ar" 16 | export CI_RANLIB="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ranlib" 17 | 18 | export CI_CMAKE_VARS=" 19 | -DCMAKE_SYSTEM_NAME=Linux 20 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 21 | " 22 | -------------------------------------------------------------------------------- /libpng/ci/targets/linux/ci_env.powerpc64-linux-gnu.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=powerpc64 9 | export CI_TARGET_SYSTEM=linux 10 | export CI_TARGET_ABI=gnu 11 | 12 | export CI_GCC="${CI_GCC-gcc}" 13 | 14 | export CI_CC="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-$CI_GCC" 15 | export CI_AR="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ar" 16 | export CI_RANLIB="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ranlib" 17 | 18 | export CI_CMAKE_VARS=" 19 | -DCMAKE_SYSTEM_NAME=Linux 20 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 21 | " 22 | -------------------------------------------------------------------------------- /libpng/ci/targets/linux/ci_env.powerpc64le-linux-gnu.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=powerpc64le 9 | export CI_TARGET_SYSTEM=linux 10 | export CI_TARGET_ABI=gnu 11 | 12 | export CI_GCC="${CI_GCC-gcc}" 13 | 14 | export CI_CC="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-$CI_GCC" 15 | export CI_AR="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ar" 16 | export CI_RANLIB="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ranlib" 17 | 18 | export CI_CMAKE_VARS=" 19 | -DCMAKE_SYSTEM_NAME=Linux 20 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 21 | " 22 | -------------------------------------------------------------------------------- /libpng/ci/targets/linux/ci_env.riscv64-linux-gnu.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=riscv64 9 | export CI_TARGET_SYSTEM=linux 10 | export CI_TARGET_ABI=gnu 11 | 12 | export CI_GCC="${CI_GCC-gcc}" 13 | 14 | export CI_CC="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-$CI_GCC" 15 | export CI_AR="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ar" 16 | export CI_RANLIB="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ranlib" 17 | 18 | export CI_CMAKE_VARS=" 19 | -DCMAKE_SYSTEM_NAME=Linux 20 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 21 | " 22 | -------------------------------------------------------------------------------- /libpng/ci/targets/linux/ci_env.x86_64-linux-gnu.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=x86_64 9 | export CI_TARGET_SYSTEM=linux 10 | export CI_TARGET_ABI=gnu 11 | 12 | export CI_GCC="${CI_GCC-gcc}" 13 | 14 | export CI_CC="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-$CI_GCC" 15 | export CI_AR="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ar" 16 | export CI_RANLIB="$CI_TARGET_ARCH-$CI_TARGET_SYSTEM-$CI_TARGET_ABI-ranlib" 17 | 18 | export CI_CMAKE_VARS=" 19 | -DCMAKE_SYSTEM_NAME=Linux 20 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 21 | " 22 | -------------------------------------------------------------------------------- /libpng/ci/targets/msdos/ci_env.i386-pc-msdoswatcom.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=i386 9 | export CI_TARGET_SYSTEM=msdoswatcom 10 | 11 | export CI_CC="wcl386" 12 | 13 | # Open Watcom V2 CMake build 14 | # https://github.com/open-watcom/open-watcom-v2/discussions/716 15 | export CI_CMAKE_GENERATOR="Watcom WMake" 16 | export CI_CMAKE_VARS=" 17 | -DCMAKE_SYSTEM_NAME=DOS 18 | " 19 | -------------------------------------------------------------------------------- /libpng/ci/targets/msdos/ci_env.i586-pc-msdosdjgpp.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=i586 9 | export CI_TARGET_SYSTEM=msdosdjgpp 10 | 11 | export CI_CC="$CI_TARGET_ARCH-pc-$CI_TARGET_SYSTEM-gcc" 12 | export CI_AR="$CI_CC-ar" 13 | export CI_RANLIB="$CI_CC-ranlib" 14 | 15 | export CI_CMAKE_VARS=" 16 | -DCMAKE_SYSTEM_NAME=Generic 17 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 18 | " 19 | -------------------------------------------------------------------------------- /libpng/ci/targets/msdos/ci_env.i86-pc-msdoswatcom.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=i86 9 | export CI_TARGET_SYSTEM=msdoswatcom 10 | 11 | export CI_CC="wcl" 12 | 13 | # Open Watcom V2 CMake build 14 | # https://github.com/open-watcom/open-watcom-v2/discussions/716 15 | export CI_CMAKE_GENERATOR="Watcom WMake" 16 | export CI_CMAKE_VARS=" 17 | -DCMAKE_SYSTEM_NAME=DOS 18 | -DCMAKE_SYSTEM_PROCESSOR=I86 19 | " 20 | -------------------------------------------------------------------------------- /libpng/ci/targets/windows/ci_env.aarch64-windows-llvm.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=aarch64 9 | export CI_TARGET_SYSTEM=windows 10 | 11 | export CI_CC="clang" 12 | export CI_AR="llvm-ar" 13 | export CI_RANLIB="llvm-ranlib" 14 | 15 | export CI_CMAKE_VARS=" 16 | -DCMAKE_SYSTEM_NAME=Windows 17 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 18 | " 19 | -------------------------------------------------------------------------------- /libpng/ci/targets/windows/ci_env.i686-w64-mingw32.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=i686 9 | export CI_TARGET_SYSTEM=mingw32 10 | 11 | # The output of `uname -s` on MSYS2 is understandable, and so is 12 | # CI_TARGET_SYSTEM above, in simplified form. (See also Cygwin.) 13 | # But aside from that, the Mingw-w64 nomenclature is rather messy. 14 | export CI_CC="$CI_TARGET_ARCH-w64-mingw32-gcc" 15 | export CI_AR="$CI_CC-ar" 16 | export CI_RANLIB="$CI_CC-ranlib" 17 | 18 | export CI_CMAKE_VARS=" 19 | -DCMAKE_SYSTEM_NAME=Windows 20 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 21 | " 22 | -------------------------------------------------------------------------------- /libpng/ci/targets/windows/ci_env.i686-windows-llvm.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=i686 9 | export CI_TARGET_SYSTEM=windows 10 | 11 | export CI_CC="clang" 12 | export CI_AR="llvm-ar" 13 | export CI_RANLIB="llvm-ranlib" 14 | 15 | export CI_CMAKE_VARS=" 16 | -DCMAKE_SYSTEM_NAME=Windows 17 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 18 | " 19 | -------------------------------------------------------------------------------- /libpng/ci/targets/windows/ci_env.x86_64-w64-mingw32.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=x86_64 9 | export CI_TARGET_SYSTEM=mingw64 10 | 11 | # The output of `uname -s` on MSYS2 is understandable, and so is 12 | # CI_TARGET_SYSTEM above, in simplified form. (See also Cygwin.) 13 | # But aside from that, the Mingw-w64 nomenclature is rather messy. 14 | export CI_CC="$CI_TARGET_ARCH-w64-mingw32-gcc" 15 | export CI_AR="$CI_CC-ar" 16 | export CI_RANLIB="$CI_CC-ranlib" 17 | 18 | export CI_CMAKE_VARS=" 19 | -DCMAKE_SYSTEM_NAME=Windows 20 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 21 | " 22 | -------------------------------------------------------------------------------- /libpng/ci/targets/windows/ci_env.x86_64-windows-llvm.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2023-2024 Cosmin Truta. 2 | # 3 | # Use, modification and distribution are subject to the MIT License. 4 | # Please see the accompanying file LICENSE_MIT.txt 5 | # 6 | # SPDX-License-Identifier: MIT 7 | 8 | export CI_TARGET_ARCH=x86_64 9 | export CI_TARGET_SYSTEM=windows 10 | 11 | export CI_CC="clang" 12 | export CI_AR="llvm-ar" 13 | export CI_RANLIB="llvm-ranlib" 14 | 15 | export CI_CMAKE_VARS=" 16 | -DCMAKE_SYSTEM_NAME=Windows 17 | -DCMAKE_SYSTEM_PROCESSOR=$CI_TARGET_ARCH 18 | " 19 | -------------------------------------------------------------------------------- /libpng/contrib/.editorconfig: -------------------------------------------------------------------------------- 1 | # https://editorconfig.org 2 | 3 | root = false 4 | 5 | [*.[ch]] 6 | max_doc_length = unset 7 | max_line_length = unset 8 | -------------------------------------------------------------------------------- /libpng/contrib/README.txt: -------------------------------------------------------------------------------- 1 | 2 | This "contrib" directory contains contributions which are not necessarily under 3 | the libpng license, although all are open source. They are not part of 4 | libpng proper and are not used for building the library, although some are used 5 | for testing the library via "make check". 6 | -------------------------------------------------------------------------------- /libpng/contrib/arm-neon/android-ndk.c: -------------------------------------------------------------------------------- 1 | /* contrib/arm-neon/android-ndk.c 2 | * 3 | * Copyright (c) 2014 Glenn Randers-Pehrson 4 | * Written by John Bowler, 2014. 5 | * 6 | * This code is released under the libpng license. 7 | * For conditions of distribution and use, see the disclaimer 8 | * and license in png.h 9 | * 10 | * SEE contrib/arm-neon/README before reporting bugs 11 | * 12 | * STATUS: COMPILED, UNTESTED 13 | * BUG REPORTS: png-mng-implement@sourceforge.net 14 | * 15 | * png_have_neon implemented for the Android NDK, see: 16 | * 17 | * Documentation: 18 | * http://www.kandroid.org/ndk/docs/CPU-ARM-NEON.html 19 | * https://code.google.com/p/android/issues/detail?id=49065 20 | * 21 | * NOTE: this requires that libpng is built against the Android NDK and linked 22 | * with an implementation of the Android ARM 'cpu-features' library. The code 23 | * has been compiled only, not linked: no version of the library has been found, 24 | * only the header files exist in the NDK. 25 | */ 26 | 27 | #include 28 | 29 | static int 30 | png_have_neon(png_structp png_ptr) 31 | { 32 | /* This is a whole lot easier than the linux code, however it is probably 33 | * implemented as below, therefore it is better to cache the result (these 34 | * function calls may be slow!) 35 | */ 36 | PNG_UNUSED(png_ptr) 37 | return android_getCpuFamily() == ANDROID_CPU_FAMILY_ARM && 38 | (android_getCpuFeatures() & ANDROID_CPU_ARM_FEATURE_NEON) != 0; 39 | } 40 | -------------------------------------------------------------------------------- /libpng/contrib/conftest/README: -------------------------------------------------------------------------------- 1 | This directory contains test configuration files, currently always '.dfa' files 2 | intended to be used in the build by setting the make macro DFA_XTRA to the name 3 | of the file. 4 | 5 | These files are used in release validation of the 'configure' builds of libpng 6 | by building 'make check', or 'make all-am' for cross-builds, with each .dfa 7 | file. 8 | 9 | The files in this directory may change between minor releases, however 10 | contributions describing specific builds of libpng are welcomed. There is no 11 | guarantee that libpng will continue to build with such configurations; support 12 | for given configurations can be, and has been, dropped between successive minor 13 | releases. However if a .dfa file describing a configuration is not in this 14 | directory it is very unlikely that it will be tested before a minor release! 15 | 16 | You can use these .dfa files as the basis of new configurations. Files in this 17 | directory should not have any use restrictions or restrictive licenses. 18 | 19 | This directory is not included in the .zip and .7z distributions, which do 20 | not contain 'configure' scripts. 21 | 22 | DOCUMENTATION 23 | ============= 24 | 25 | Examples: 26 | ${srcdir}/pngusr.dfa 27 | ${srcdir}/contrib/pngminim/*/pngusr.dfa 28 | 29 | Documentation of the options: 30 | ${srcdir}/scripts/pnglibconf.dfa 31 | 32 | Documentation of the file format: 33 | ${srcdir}/scripts/options.awk 34 | 35 | FILE NAMING 36 | =========== 37 | 38 | File names in this directory may NOT contain any of the five characters: 39 | 40 | - , + * ? 41 | 42 | Neither may they contain any space character. 43 | 44 | While other characters may be used it is strongly suggested that file names be 45 | limited to lower case Latiin alphabetic characters (a-z), digits (0-9) and, if 46 | necessary the underscore (_) character. File names should be about 8 characters 47 | long (excluding the .dfa extension). Submitted .dfa files should have names 48 | between 7 and 16 characters long, shorter names (6 characters or less) are 49 | reserved for standard tests. 50 | -------------------------------------------------------------------------------- /libpng/contrib/conftest/pngcp.dfa: -------------------------------------------------------------------------------- 1 | # pngcp.dfa 2 | # Build time configuration of libpng 3 | # 4 | # Author: John Bowler 5 | # Copyright: (c) John Bowler, 2016 6 | # Usage rights: 7 | # To the extent possible under law, the author has waived all copyright and 8 | # related or neighboring rights to this work. This work is published from: 9 | # United States. 10 | # 11 | # Build libpng with support for pngcp. This means just png_read_png, 12 | # png_write_png and small number of configuration settings. 13 | # 14 | everything = off 15 | 16 | # This option is specific to this configuration; it adds a #define to the 17 | # generated pnglibconf.h which turns on the (not portable) timing option for 18 | # pngcp. Note that any option is automatically preceded by PNG_; there is no 19 | # way round this and this is deliberate. 20 | option PNGCP_TIMING 21 | 22 | # Because of the everything off above the option must also be turned on. This 23 | # may not be done in one step because it is safer and avoids mis-spelled options 24 | # in user .dfa files to error out if an unrecognized option is turned on. 25 | option PNGCP_TIMING on 26 | 27 | # Options to turn on png_read_png and png_write_png: 28 | option INFO_IMAGE on 29 | option SEQUENTIAL_READ on 30 | option EASY_ACCESS on 31 | option WRITE on 32 | option WRITE_16BIT on 33 | option WRITE_FILTER on 34 | 35 | # pngcp needs this to preserve unknown chunks, switching all these on means that 36 | # pngcp can work without explicit known chunk reading support 37 | option UNKNOWN_CHUNKS on 38 | option SET_UNKNOWN_CHUNKS on 39 | option HANDLE_AS_UNKNOWN on 40 | option SAVE_UNKNOWN_CHUNKS on 41 | option WRITE_UNKNOWN_CHUNKS on 42 | 43 | # pngcp needs this to handle palette files with invalid indices: 44 | option CHECK_FOR_INVALID_INDEX on 45 | option GET_PALETTE_MAX on 46 | 47 | # Pre-libpng 1.7 pngcp has to stash text chunks manually, post 1.7 without this 48 | # text chunks should be handled as unknown ok. 49 | option TEXT on 50 | 51 | # this is used to turn off limits: 52 | option USER_LIMITS on 53 | option SET_USER_LIMITS on 54 | 55 | # these are just required for specific customizations 56 | option WRITE_CUSTOMIZE_ZTXT_COMPRESSION on 57 | option WRITE_CUSTOMIZE_COMPRESSION on 58 | -------------------------------------------------------------------------------- /libpng/contrib/conftest/s_read.dfa: -------------------------------------------------------------------------------- 1 | # s_read.dfa 2 | # Build time configuration of libpng 3 | # 4 | # Author: John Bowler 5 | # Copyright: (c) John Bowler, 2013 6 | # Usage rights: 7 | # To the extent possible under law, the author has waived all copyright and 8 | # related or neighboring rights to this work. This work is published from: 9 | # United States. 10 | # 11 | # Build libpng with simplified read support (only). This builds a minimal 12 | # libpng able to read all PNG formats and convert them into a small number of 13 | # well understood memory formats. 14 | # 15 | 16 | everything = off 17 | 18 | option SIMPLIFIED_READ on 19 | 20 | # It isn't necessary to chose fixed or floating point for the APIs because the 21 | # simplified API doesn't need fixed or floating point numbers. It is necessary 22 | # to chose an internal math implementation. The default (because of 'everything 23 | # = off') is fixed point - turn the floating point implementation on if you have 24 | # hardware floating point or prefer your software floating point implementation. 25 | option FLOATING_ARITHMETIC on 26 | 27 | # This is not strictly necessary, but without it the message strings in the API 28 | # will not be filled in 29 | option ERROR_TEXT on 30 | 31 | # Switching these options on enables the 'AFIRST' and 'BGR' formats - you don't 32 | # need this if you don't use them, they just allow the in-memory layout to be 33 | # changed to match common hardware formats. 34 | option SIMPLIFIED_READ_AFIRST on 35 | option SIMPLIFIED_READ_BGR on 36 | -------------------------------------------------------------------------------- /libpng/contrib/conftest/s_write.dfa: -------------------------------------------------------------------------------- 1 | # s_write.dfa 2 | # Build time configuration of libpng 3 | # 4 | # Author: John Bowler 5 | # Copyright: (c) John Bowler, 2013 6 | # Usage rights: 7 | # To the extent possible under law, the author has waived all copyright and 8 | # related or neighboring rights to this work. This work is published from: 9 | # United States. 10 | # 11 | # Build libpng with (just) simplified write support 12 | # 13 | 14 | everything = off 15 | 16 | option SIMPLIFIED_WRITE on 17 | 18 | # It isn't necessary to chose fixed or floating point for the APIs because the 19 | # simplified API doesn't need fixed or floating point numbers. It is necessary 20 | # to chose an internal math implementation. The default (because of 'everything 21 | # = off') is fixed point - turn the floating point implementation on if you have 22 | # hardware floating point or prefer your software floating point implementation. 23 | option FLOATING_ARITHMETIC on 24 | 25 | # This is not strictly necessary, but without it the message strings in the API 26 | # will not be filled in 27 | option ERROR_TEXT on 28 | 29 | # Switching these options on enables the 'AFIRST' and 'BGR' formats - you don't 30 | # need this if you don't use them, they just allow the in-memory layout to be 31 | # changed to match common hardware formats. 32 | option SIMPLIFIED_WRITE_AFIRST on 33 | option SIMPLIFIED_WRITE_BGR on 34 | -------------------------------------------------------------------------------- /libpng/contrib/conftest/simple.dfa: -------------------------------------------------------------------------------- 1 | # simple.dfa 2 | # Build time configuration of libpng 3 | # 4 | # Author: John Bowler 5 | # Copyright: (c) John Bowler, 2013 6 | # Usage rights: 7 | # To the extent possible under law, the author has waived all copyright and 8 | # related or neighboring rights to this work. This work is published from: 9 | # United States. 10 | # 11 | # Build libpng with just the simplified APIs (read and write). 12 | # 13 | 14 | everything = off 15 | 16 | option SIMPLIFIED_WRITE on 17 | option SIMPLIFIED_READ on 18 | 19 | # It isn't necessary to chose fixed or floating point for the APIs because the 20 | # simplified API doesn't need fixed or floating point numbers. It is necessary 21 | # to chose an internal math implementation. The default (because of 'everything 22 | # = off') is fixed point - turn the floating point implementation on if you have 23 | # hardware floating point or prefer your software floating point implementation. 24 | option FLOATING_ARITHMETIC on 25 | 26 | # This is not strictly necessary, but without it the message strings in the API 27 | # will not be filled in 28 | option ERROR_TEXT on 29 | 30 | # Switching these options on enables the 'AFIRST' and 'BGR' formats - you don't 31 | # need this if you don't use them, they just allow the in-memory layout to be 32 | # changed to match common hardware formats. 33 | option SIMPLIFIED_READ_AFIRST on 34 | option SIMPLIFIED_READ_BGR on 35 | option SIMPLIFIED_WRITE_AFIRST on 36 | option SIMPLIFIED_WRITE_BGR on 37 | -------------------------------------------------------------------------------- /libpng/contrib/conftest/write.dfa: -------------------------------------------------------------------------------- 1 | # write.dfa 2 | # Build time configuration of libpng 3 | # 4 | # Author: John Bowler 5 | # Copyright: (c) John Bowler, 2013 6 | # Usage rights: 7 | # To the extent possible under law, the author has waived all copyright and 8 | # related or neighboring rights to this work. This work is published from: 9 | # United States. 10 | # 11 | # Build libpng with no read support and minimal write support. 12 | # 13 | 14 | everything = off 15 | 16 | # Switch on the write code - this makes a minimalist encoder 17 | 18 | option WRITE on 19 | 20 | # Choose fixed or floating point APIs and arithmetic. The choices are 21 | # independent but normally they will match. It is typically better to use the 22 | # floating point if you have floating point hardware. If you don't know, or 23 | # (perhaps) to make libpng smaller used fixed point throughout. 24 | 25 | #Fixed point: 26 | #option FIXED_POINT on 27 | #option FLOATING_ARITHMETIC off 28 | 29 | #Floating point: 30 | option FLOATING_POINT on 31 | option FLOATING_ARITHMETIC on 32 | 33 | # Basic error handling, IO and user memory support. The latter allows the 34 | # application program to provide its own implementations of 'malloc' and 'free'. 35 | option SETJMP on 36 | option STDIO on 37 | option USER_MEM on 38 | 39 | # Everything else is optional. Unlike the read code in libpng the write code 40 | # does not need to deal with arbitrary formats, so only add support for things 41 | # you really do write! For example you might only write sRGB images, sometimes 42 | # with transparency and never write 16 bit images, so: 43 | option WRITE_sRGB on 44 | option WRITE_tRNS on 45 | #option WRITE_16BIT off (this is the default with 'everything = off') 46 | -------------------------------------------------------------------------------- /libpng/contrib/examples/README.txt: -------------------------------------------------------------------------------- 1 | 2 | This directory (contrib/examples) contains examples of libpng usage. 3 | 4 | NO COPYRIGHT RIGHTS ARE CLAIMED TO ANY OF THE FILES IN THIS DIRECTORY. 5 | 6 | To the extent possible under law, the authors have waived all copyright and 7 | related or neighboring rights to this work. This work is published from: 8 | United States. 9 | 10 | The files may be used freely in any way. The intention is that appropriate 11 | parts of the files be used in other libpng-using programs without any need for 12 | the authors of the using code to seek copyright or license from the original 13 | authors. 14 | 15 | The source code and comments in this directory are the original work of the 16 | people named below. No other person or organization has made contributions to 17 | the work in this directory. 18 | 19 | ORIGINAL AUTHORS 20 | The following people have contributed to the code in this directory. None 21 | of the people below claim any rights with regard to the contents of this 22 | directory. 23 | 24 | John Bowler 25 | -------------------------------------------------------------------------------- /libpng/contrib/gregbook/toucan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/gregbook/toucan.png -------------------------------------------------------------------------------- /libpng/contrib/libtests/fakepng.c: -------------------------------------------------------------------------------- 1 | /* Fake a PNG - just write it out directly. 2 | * 3 | * COPYRIGHT: Written by John Cunningham Bowler, 2014. 4 | * To the extent possible under law, the author has waived all copyright and 5 | * related or neighboring rights to this work. This work is published from: 6 | * United States. 7 | * 8 | */ 9 | 10 | #include 11 | #include /* for crc32 */ 12 | 13 | void 14 | put_uLong(uLong val) 15 | { 16 | putchar(val >> 24); 17 | putchar(val >> 16); 18 | putchar(val >> 8); 19 | putchar(val >> 0); 20 | } 21 | 22 | void 23 | put_chunk(const unsigned char *chunk, uInt length) 24 | { 25 | uLong crc; 26 | 27 | put_uLong(length-4); /* Exclude the tag */ 28 | 29 | fwrite(chunk, length, 1, stdout); 30 | 31 | crc = crc32(0, Z_NULL, 0); 32 | put_uLong(crc32(crc, chunk, length)); 33 | } 34 | 35 | const unsigned char signature[] = 36 | { 37 | 137, 80, 78, 71, 13, 10, 26, 10 38 | }; 39 | 40 | const unsigned char IHDR[] = 41 | { 42 | 73, 72, 68, 82, /* IHDR */ 43 | 0, 0, 0, 1, /* width */ 44 | 0, 0, 0, 1, /* height */ 45 | 1, /* bit depth */ 46 | 0, /* color type: greyscale */ 47 | 0, /* compression method */ 48 | 0, /* filter method */ 49 | 0 /* interlace method: none */ 50 | }; 51 | 52 | const unsigned char unknown[] = 53 | { 54 | 'u', 'n', 'K', 'n' /* "unKn" - private safe to copy */ 55 | }; 56 | 57 | int 58 | main(void) 59 | { 60 | fwrite(signature, sizeof signature, 1, stdout); 61 | put_chunk(IHDR, sizeof IHDR); 62 | 63 | for (;;) 64 | put_chunk(unknown, sizeof unknown); 65 | } 66 | -------------------------------------------------------------------------------- /libpng/contrib/mips-msa/linux.c: -------------------------------------------------------------------------------- 1 | 2 | /* contrib/mips-msa/linux.c 3 | * 4 | * Copyright (c) 2020-2023 Cosmin Truta 5 | * Copyright (c) 2016 Glenn Randers-Pehrson 6 | * Written by Mandar Sahastrabuddhe, 2016. 7 | * Updated by Sui Jingfeng, 2021. 8 | * 9 | * This code is released under the libpng license. 10 | * For conditions of distribution and use, see the disclaimer 11 | * and license in png.h 12 | * 13 | * On Linux, png_have_msa is implemented by reading the pseudo-file 14 | * "/proc/self/auxv". 15 | * 16 | * See contrib/mips-msa/README before reporting bugs. 17 | * 18 | * STATUS: SUPPORTED 19 | * BUG REPORTS: png-mng-implement@sourceforge.net 20 | */ 21 | 22 | #include 23 | #include 24 | #include 25 | #include 26 | 27 | static int 28 | png_have_msa(png_structp png_ptr) 29 | { 30 | Elf64_auxv_t aux; 31 | int fd; 32 | int has_msa = 0; 33 | 34 | fd = open("/proc/self/auxv", O_RDONLY); 35 | if (fd >= 0) 36 | { 37 | while (read(fd, &aux, sizeof(Elf64_auxv_t)) == sizeof(Elf64_auxv_t)) 38 | { 39 | if (aux.a_type == AT_HWCAP) 40 | { 41 | uint64_t hwcap = aux.a_un.a_val; 42 | 43 | has_msa = (hwcap >> 1) & 1; 44 | break; 45 | } 46 | } 47 | close(fd); 48 | } 49 | #ifdef PNG_WARNINGS_SUPPORTED 50 | else 51 | png_warning(png_ptr, "/proc/self/auxv open failed"); 52 | #endif 53 | 54 | return has_msa; 55 | } 56 | -------------------------------------------------------------------------------- /libpng/contrib/oss-fuzz/Dockerfile: -------------------------------------------------------------------------------- 1 | # Copyright 2024 Cosmin Truta 2 | # Copyright 2017 Glenn Randers-Pehrson 3 | # Copyright 2016 Google Inc. 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | ################################################################################ 18 | 19 | FROM gcr.io/oss-fuzz-base/base-builder 20 | 21 | RUN apt-get update && \ 22 | apt-get install -y make autoconf automake libtool zlib1g-dev 23 | 24 | RUN git clone --depth=1 https://github.com/pnggroup/libpng.git && \ 25 | git clone --depth=1 https://github.com/madler/zlib.git && \ 26 | cp libpng/contrib/oss-fuzz/build.sh $SRC 27 | 28 | WORKDIR /home/libpng 29 | -------------------------------------------------------------------------------- /libpng/contrib/oss-fuzz/README.txt: -------------------------------------------------------------------------------- 1 | libpng additions to oss-fuzz 2 | ============================ 3 | 4 | Copyright (c) 2024 Cosmin Truta 5 | Copyright (c) 2017 Glenn Randers-Pehrson 6 | 7 | This code is released under the libpng license. 8 | For conditions of distribution and use, see the disclaimer 9 | and license in png.h 10 | 11 | Files in this directory are used by the oss-fuzz project 12 | (https://github.com/google/oss-fuzz/tree/master/projects/libpng). 13 | for "fuzzing" libpng. 14 | 15 | They were licensed by Google Inc, using the BSD-like Chromium license, 16 | which may be found at https://cs.chromium.org/chromium/src/LICENSE, or, if 17 | noted in the source, under the Apache-2.0 license, which may 18 | be found at http://www.apache.org/licenses/LICENSE-2.0 . 19 | If they have been modified, the derivatives are copyright Glenn Randers-Pehrson 20 | and are released under the same licenses as the originals. Several of 21 | the original files (libpng_read_fuzzer.options, png.dict, project.yaml) 22 | had no licensing information; we assumed that these were under the Chromium 23 | license. Any new files are released under the libpng license (see png.h). 24 | 25 | The files are 26 | Original 27 | Filename or derived Copyright License 28 | ========================= ========== ================ ========== 29 | Dockerfile* derived 2017, Glenn R-P Apache 2.0 30 | build.sh derived 2017, Glenn R-P Apache 2.0 31 | libpng_read_fuzzer.cc derived 2017, Glenn R-P Chromium 32 | libpng_read_fuzzer.options original 2015, Chrome Devs Chromium 33 | png.dict original 2015, Chrome Devs Chromium 34 | README.txt (this file) original 2017, Glenn R-P libpng 35 | 36 | * Dockerfile is a copy of the file used by oss-fuzz. build.sh, 37 | png.dict and libpng_read_fuzzer.* are the actual files used by oss-fuzz, 38 | which retrieves them from the libpng repository at Github. 39 | 40 | To do: exercise the progressive reader and the png encoder. 41 | -------------------------------------------------------------------------------- /libpng/contrib/oss-fuzz/build.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -eu 3 | 4 | # Copyright 2024 Cosmin Truta 5 | # Copyright 2017 Glenn Randers-Pehrson 6 | # Copyright 2016 Google Inc. 7 | # 8 | # Licensed under the Apache License, Version 2.0 (the "License"); 9 | # you may not use this file except in compliance with the License. 10 | # You may obtain a copy of the License at 11 | # 12 | # http://www.apache.org/licenses/LICENSE-2.0 13 | # 14 | # Unless required by applicable law or agreed to in writing, software 15 | # distributed under the License is distributed on an "AS IS" BASIS, 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | # See the License for the specific language governing permissions and 18 | # limitations under the License. 19 | # 20 | ################################################################################ 21 | 22 | # Disable logging via library build configuration control. 23 | sed -e "s/option STDIO/option STDIO disabled/" \ 24 | -e "s/option WARNING /option WARNING disabled/" \ 25 | -e "s/option WRITE enables WRITE_INT_FUNCTIONS/option WRITE disabled/" \ 26 | scripts/pnglibconf.dfa >scripts/pnglibconf.dfa.tmp 27 | mv -f scripts/pnglibconf.dfa.tmp scripts/pnglibconf.dfa 28 | 29 | # Build the libpng library ("libpng16.la"), excluding the auxiliary tools. 30 | autoreconf -f -i 31 | ./configure --with-libpng-prefix=OSS_FUZZ_ 32 | make -j$(nproc) clean 33 | make -j$(nproc) libpng16.la 34 | 35 | # Build libpng_read_fuzzer. 36 | $CXX $CXXFLAGS -std=c++11 -I. \ 37 | $SRC/libpng/contrib/oss-fuzz/libpng_read_fuzzer.cc \ 38 | -o $OUT/libpng_read_fuzzer \ 39 | -lFuzzingEngine .libs/libpng16.a -lz 40 | 41 | # Add seed corpus. 42 | find $SRC/libpng -name "*.png" | grep -v crashers | \ 43 | xargs zip $OUT/libpng_read_fuzzer_seed_corpus.zip 44 | 45 | cp $SRC/libpng/contrib/oss-fuzz/*.dict \ 46 | $SRC/libpng/contrib/oss-fuzz/*.options \ 47 | $OUT/ 48 | -------------------------------------------------------------------------------- /libpng/contrib/oss-fuzz/libpng_read_fuzzer.options: -------------------------------------------------------------------------------- 1 | [libfuzzer] 2 | dict = png.dict 3 | -------------------------------------------------------------------------------- /libpng/contrib/oss-fuzz/png.dict: -------------------------------------------------------------------------------- 1 | # 2 | # AFL dictionary for PNG images 3 | # ----------------------------- 4 | # 5 | # Just the basic, standard-originating sections; does not include vendor 6 | # extensions. 7 | # 8 | # Created by Michal Zalewski 9 | # 10 | 11 | header_png="\x89PNG\x0d\x0a\x1a\x0a" 12 | 13 | section_IDAT="IDAT" 14 | section_IEND="IEND" 15 | section_IHDR="IHDR" 16 | section_PLTE="PLTE" 17 | section_bKGD="bKGD" 18 | section_cHRM="cHRM" 19 | section_eXIf="eXIf" 20 | section_fRAc="fRAc" 21 | section_gAMA="gAMA" 22 | section_gIFg="gIFg" 23 | section_gIFt="gIFt" 24 | section_gIFx="gIFx" 25 | section_hIST="hIST" 26 | section_iCCP="iCCP" 27 | section_iTXt="iTXt" 28 | section_oFFs="oFFs" 29 | section_pCAL="pCAL" 30 | section_pHYs="pHYs" 31 | section_sBIT="sBIT" 32 | section_sCAL="sCAL" 33 | section_sPLT="sPLT" 34 | section_sRGB="sRGB" 35 | section_sTER="sTER" 36 | section_tEXt="tEXt" 37 | section_tIME="tIME" 38 | section_tRNS="tRNS" 39 | section_zTXt="zTXt" 40 | -------------------------------------------------------------------------------- /libpng/contrib/pngexif/.editorconfig: -------------------------------------------------------------------------------- 1 | # https://editorconfig.org 2 | 3 | root = true 4 | 5 | [*] 6 | charset = utf-8 7 | indent_style = space 8 | insert_final_newline = true 9 | max_doc_length = 79 10 | max_line_length = 79 11 | trim_trailing_whitespace = true 12 | -------------------------------------------------------------------------------- /libpng/contrib/pngexif/.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__ 2 | *.py[co] 3 | *$py.class 4 | -------------------------------------------------------------------------------- /libpng/contrib/pngexif/.pylintrc: -------------------------------------------------------------------------------- 1 | [COMPATIBILITY] 2 | disable=consider-using-f-string 3 | 4 | [COMPLEXITY] 5 | disable=too-many-branches,too-many-instance-attributes 6 | 7 | [STYLE] 8 | disable=consider-using-in 9 | -------------------------------------------------------------------------------- /libpng/contrib/pngexif/LICENSE_MIT.txt: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19 | SOFTWARE. 20 | -------------------------------------------------------------------------------- /libpng/contrib/pngexif/README.md: -------------------------------------------------------------------------------- 1 | pngexifinfo 2 | =========== 3 | 4 | Show the EXIF information embedded in a PNG file. 5 | 6 | 7 | Sample usage 8 | ------------ 9 | 10 | Show the EXIF info inside a PNG file: 11 | 12 | pngexifinfo /path/to/file.png 13 | 14 | Show the EXIF info inside a raw `.exif` file, using base 16 for the EXIF tags: 15 | 16 | pngexifinfo --hex /path/to/file.exif 17 | 18 | Show the help text: 19 | 20 | pngexifinfo --help 21 | -------------------------------------------------------------------------------- /libpng/contrib/pngexif/bytepack.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | """ 4 | Byte packing and unpacking utilities. 5 | 6 | Copyright (C) 2017-2020 Cosmin Truta. 7 | 8 | Use, modification and distribution are subject to the MIT License. 9 | Please see the accompanying file LICENSE_MIT.txt 10 | """ 11 | 12 | from __future__ import absolute_import, division, print_function 13 | 14 | import struct 15 | 16 | 17 | def unpack_uint32be(buffer, offset=0): 18 | """Unpack an unsigned int from its 32-bit big-endian representation.""" 19 | return struct.unpack(">I", buffer[offset:offset + 4])[0] 20 | 21 | 22 | def unpack_uint32le(buffer, offset=0): 23 | """Unpack an unsigned int from its 32-bit little-endian representation.""" 24 | return struct.unpack("H", buffer[offset:offset + 2])[0] 30 | 31 | 32 | def unpack_uint16le(buffer, offset=0): 33 | """Unpack an unsigned int from its 16-bit little-endian representation.""" 34 | return struct.unpack("&2 "error: program not found: Python interpreter" 6 | exit 127 7 | } 8 | my_python_flags="-BES" 9 | 10 | exec "$my_python" "$my_python_flags" "$(dirname "$0")/pngexifinfo.py" "$@" 11 | -------------------------------------------------------------------------------- /libpng/contrib/pngexif/pngexifinfo.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | @setlocal enableextensions 3 | 4 | python.exe -BES %~dp0.\pngexifinfo.py %* 5 | -------------------------------------------------------------------------------- /libpng/contrib/pngminim/README: -------------------------------------------------------------------------------- 1 | 2 | This demonstrates the use of PNG_USER_CONFIG, pngusr.h and pngusr.dfa 3 | to build minimal decoder, encoder, and progressive reader applications. 4 | 5 | See the individual README and pngusr.dfa files for more explanation. 6 | -------------------------------------------------------------------------------- /libpng/contrib/pngminim/decoder/README: -------------------------------------------------------------------------------- 1 | This demonstrates the use of PNG_USER_CONFIG, pngusr.h and pngusr.dfa 2 | 3 | The makefile builds a minimal read-only decoder with embedded libpng 4 | and zlib. 5 | 6 | Specify the location of the zlib source (1.2.1 or later) as ZLIBSRC 7 | on the make command line. 8 | 9 | If you prefer to use the shared libraries, go to contrib/pngminus 10 | and build the png2pnm application there. 11 | -------------------------------------------------------------------------------- /libpng/contrib/pngminim/decoder/pngusr.dfa: -------------------------------------------------------------------------------- 1 | # pngminim/decoder/pngusr.dfa 2 | # 3 | # Copyright (c) 2010-2013 Glenn Randers-Pehrson 4 | # 5 | # This code is released under the libpng license. 6 | # For conditions of distribution and use, see the disclaimer 7 | # and license in png.h 8 | 9 | # First all the build options off: 10 | 11 | everything = off 12 | 13 | # All that is required is some read code. This example switches 14 | # on the sequential read code (see ../preader for a progressive 15 | # read example). 16 | 17 | option SEQUENTIAL_READ on 18 | 19 | # You must choose fixed or floating point arithmetic: 20 | # option FLOATING_POINT on 21 | 22 | option FIXED_POINT on 23 | 24 | # You must chose the internal fixed point implementation or to 25 | # use the system floating point. The latter is considerably 26 | # smaller (by about 1kbyte on an x86 system): 27 | # option FLOATING_ARITHMETIC on 28 | 29 | option FLOATING_ARITHMETIC off 30 | 31 | # Your program will probably need other options. The example 32 | # program here, pngm2pnm, requires the following. Take a look 33 | # at pnglibconf.h to find out the full set of what has to be 34 | # enabled to make the following work. 35 | 36 | option SETJMP on 37 | option STDIO on 38 | option READ_EXPAND on 39 | option READ_STRIP_16_TO_8 on 40 | option USER_LIMITS on 41 | -------------------------------------------------------------------------------- /libpng/contrib/pngminim/decoder/pngusr.h: -------------------------------------------------------------------------------- 1 | /* minrdpngconf.h: headers to make a minimal png-read-only library 2 | * 3 | * Copyright (c) 2007, 2010-2013 Glenn Randers-Pehrson 4 | * 5 | * This code is released under the libpng license. 6 | * For conditions of distribution and use, see the disclaimer 7 | * and license in png.h 8 | * 9 | * Derived from pngcrush.h, Copyright 1998-2007, Glenn Randers-Pehrson 10 | */ 11 | 12 | #ifndef MINRDPNGCONF_H 13 | #define MINRDPNGCONF_H 14 | 15 | /* To include pngusr.h set -DPNG_USER_CONFIG in CPPFLAGS */ 16 | 17 | /* List options to turn off features of the build that do not 18 | * affect the API (so are not recorded in pnglibconf.h) 19 | */ 20 | 21 | #define PNG_ALIGN_TYPE PNG_ALIGN_NONE 22 | 23 | #endif /* MINRDPNGCONF_H */ 24 | -------------------------------------------------------------------------------- /libpng/contrib/pngminim/encoder/README: -------------------------------------------------------------------------------- 1 | This demonstrates the use of PNG_USER_CONFIG and pngusr.h 2 | 3 | The makefile builds a minimal write-only encoder with embedded libpng 4 | and zlib. 5 | 6 | Specify the location of the zlib source (1.2.1 or later) as ZLIBSRC 7 | on the make command line. 8 | 9 | If you prefer to use the shared libraries, go to contrib/pngminus 10 | and build the pnm2png application there. 11 | -------------------------------------------------------------------------------- /libpng/contrib/pngminim/encoder/pngusr.dfa: -------------------------------------------------------------------------------- 1 | # pngminim/encoder/pngusr.dfa 2 | # 3 | # Copyright (c) 2010-2013 Glenn Randers-Pehrson 4 | # 5 | # This code is released under the libpng license. 6 | # For conditions of distribution and use, see the disclaimer 7 | # and license in png.h 8 | 9 | # First all the build options off: 10 | 11 | everything = off 12 | 13 | # Switch on the write code - this makes a minimalist encoder 14 | 15 | option WRITE on 16 | 17 | # These 2 options are required if you need to read PBM (P1 or P4) files. 18 | option WRITE_INVERT on 19 | option WRITE_PACK on 20 | 21 | # You must choose fixed or floating point arithmetic: 22 | # option FLOATING_POINT on 23 | 24 | option FIXED_POINT on 25 | 26 | # You must chose the internal fixed point implementation or to 27 | # use the system floating point. The latter is considerably 28 | # smaller (by about 1kbyte on an x86 system): 29 | # option FLOATING_ARITHMETIC on 30 | 31 | option FLOATING_ARITHMETIC off 32 | 33 | # Your program will probably need other options. The example 34 | # program here, pnm2pngm, requires the following. Take a look 35 | # at pnglibconf.h to find out the full set of what has to be 36 | # enabled to make the following work. 37 | 38 | option SETJMP on 39 | option STDIO on 40 | -------------------------------------------------------------------------------- /libpng/contrib/pngminim/encoder/pngusr.h: -------------------------------------------------------------------------------- 1 | /* minwrpngconf.h: headers to make a minimal png-write-only library 2 | * 3 | * Copyright (c) 2007, 2010-2013 Glenn Randers-Pehrson 4 | * 5 | * This code is released under the libpng license. 6 | * For conditions of distribution and use, see the disclaimer 7 | * and license in png.h 8 | * 9 | * Derived from pngcrush.h, Copyright 1998-2007, Glenn Randers-Pehrson 10 | */ 11 | 12 | #ifndef MINWRPNGCONF_H 13 | #define MINWRPNGCONF_H 14 | 15 | /* To include pngusr.h set -DPNG_USER_CONFIG in CPPFLAGS */ 16 | 17 | /* List options to turn off features of the build that do not 18 | * affect the API (so are not recorded in pnglibconf.h) 19 | */ 20 | 21 | #define PNG_ALIGN_TYPE PNG_ALIGN_NONE 22 | 23 | #endif /* MINWRPNGCONF_H */ 24 | -------------------------------------------------------------------------------- /libpng/contrib/pngminim/preader/README: -------------------------------------------------------------------------------- 1 | This demonstrates the use of PNG_USER_CONFIG and pngusr.h 2 | 3 | The makefile builds a minimal read-only progressive decoder with 4 | embedded libpng, zlib and your system's X library. 5 | 6 | Specify the location of the zlib source (1.2.1 or later) as ZLIBSRC 7 | on the make command line. 8 | 9 | Edit makefile if required, to find your X library and include files, 10 | then 11 | 12 | make ZLIBSRC=directory 13 | 14 | If you prefer to use the shared libraries, go to contrib/gregbook 15 | and build the rpng2-x application there. 16 | -------------------------------------------------------------------------------- /libpng/contrib/pngminim/preader/pngusr.dfa: -------------------------------------------------------------------------------- 1 | # pngminim/preader/pngusr.dfa 2 | # 3 | # Copyright (c) 2010-2013 Glenn Randers-Pehrson 4 | # 5 | # This code is released under the libpng license. 6 | # For conditions of distribution and use, see the disclaimer 7 | # and license in png.h 8 | 9 | # First all the build options off: 10 | 11 | everything = off 12 | 13 | # Just switch on the progressive read code 14 | 15 | option PROGRESSIVE_READ on 16 | 17 | # You may choose fixed or floating point APIs: 18 | # option FLOATING_POINT on 19 | 20 | option FIXED_POINT on 21 | 22 | # You must chose the internal fixed point implementation or to 23 | # use the system floating point. The latter is considerably 24 | # smaller (by about 1kbyte on an x86 system): 25 | 26 | option FLOATING_ARITHMETIC on 27 | # option FLOATING_ARITHMETIC off 28 | 29 | # Your program will probably need other options. The example 30 | # program here, rpng2-x, requires the following. Take a look 31 | # at pnglibconf.h to find out the full set of what has to be 32 | # enabled to make the following work. 33 | 34 | option SETJMP on 35 | option STDIO on 36 | option READ_bKGD on 37 | option READ_GAMMA on 38 | option READ_EXPAND on 39 | option READ_STRIP_16_TO_8 on 40 | option READ_GRAY_TO_RGB on 41 | -------------------------------------------------------------------------------- /libpng/contrib/pngminim/preader/pngusr.h: -------------------------------------------------------------------------------- 1 | /* minrdpngconf.h: headers to make a minimal png-read-only library 2 | * 3 | * Copyright (c) 2009, 2010-2013 Glenn Randers-Pehrson 4 | * 5 | * This code is released under the libpng license. 6 | * For conditions of distribution and use, see the disclaimer 7 | * and license in png.h 8 | * 9 | * Derived from pngcrush.h, Copyright 1998-2007, Glenn Randers-Pehrson 10 | */ 11 | 12 | #ifndef MINPRDPNGCONF_H 13 | #define MINPRDPNGCONF_H 14 | 15 | /* To include pngusr.h set -DPNG_USER_CONFIG in CPPFLAGS */ 16 | 17 | /* List options to turn off features of the build that do not 18 | * affect the API (so are not recorded in pnglibconf.h) 19 | */ 20 | 21 | #define PNG_ALIGN_TYPE PNG_ALIGN_NONE 22 | 23 | #endif /* MINPRDPNGCONF_H */ 24 | -------------------------------------------------------------------------------- /libpng/contrib/pngminus/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled executables 2 | png2pnm 3 | png2pnm.exe 4 | png2pnm-static* 5 | pnm2png 6 | pnm2png.exe 7 | pnm2png-static* 8 | 9 | # Test artifacts 10 | *.png 11 | *.p[abgnp]m 12 | -------------------------------------------------------------------------------- /libpng/contrib/pngminus/CHANGES.txt: -------------------------------------------------------------------------------- 1 | 2 | pnm2png / png2pnm --- conversion from PBM/PGM/PPM-file to PNG-file 3 | copyright (C) 1999-2019 by Willem van Schaik 4 | 5 | version 1.0 - 1999.10.15 - First version. 6 | 1.1 - 2015.07.29 - Fix memory leaks (Glenn Randers-Pehrson) 7 | 1.2 - 2017.04.22 - Add buffer-size check 8 | 1.3 - 2017.08.24 - Fix potential overflow in buffer-size check 9 | (Glenn Randers-Pehrson) 10 | 1.4 - 2017.08.28 - Add PNGMINUS_UNUSED (Christian Hesse) 11 | 1.5 - 2018.08.05 - Fix buffer overflow in tokenizer (Cosmin Truta) 12 | 1.6 - 2018.08.05 - Improve portability and fix style (Cosmin Truta) 13 | 1.7 - 2019.01.22 - Change license to MIT (Willem van Schaik) 14 | 1.8 - 2024.01.09 - Fix, improve, modernize (Cosmin Truta) 15 | -------------------------------------------------------------------------------- /libpng/contrib/pngminus/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2018-2024 Cosmin Truta 2 | # 3 | # This software is released under the MIT license. For conditions of 4 | # distribution and use, see the LICENSE file part of this package. 5 | 6 | cmake_minimum_required(VERSION 3.5) 7 | 8 | project(PNGMINUS C) 9 | 10 | option(PNGMINUS_USE_SYSTEM_PNG 11 | "Use the libpng build found in the system" OFF) 12 | 13 | add_executable(png2pnm png2pnm.c) 14 | add_executable(pnm2png pnm2png.c) 15 | 16 | if(PNGMINUS_USE_SYSTEM_PNG) 17 | # Use the system libpng. 18 | find_package(PNG REQUIRED) 19 | target_link_libraries(png2pnm PRIVATE PNG::PNG) 20 | target_link_libraries(pnm2png PRIVATE PNG::PNG) 21 | else() 22 | # Build and use the internal libpng. 23 | # Configure libpng for static linking, to produce single-file executables. 24 | set(PNG_STATIC ON 25 | CACHE STRING "Build the internal libpng as a static library" FORCE) 26 | set(PNG_SHARED OFF 27 | CACHE STRING "Build the internal libpng as a shared library" FORCE) 28 | set(PNG_FRAMEWORK OFF 29 | CACHE STRING "Build the internal libpng as a framework bundle" FORCE) 30 | add_subdirectory(../.. libpng) 31 | target_include_directories(png2pnm PRIVATE 32 | "$" 33 | "$" 34 | ) 35 | target_include_directories(pnm2png PRIVATE 36 | "$" 37 | "$" 38 | ) 39 | target_link_libraries(png2pnm PRIVATE png_static) 40 | target_link_libraries(pnm2png PRIVATE png_static) 41 | endif() 42 | -------------------------------------------------------------------------------- /libpng/contrib/pngminus/LICENSE.txt: -------------------------------------------------------------------------------- 1 | 2 | pnm2png / png2pnm --- conversion from PBM/PGM/PPM-file to PNG-file 3 | 4 | copyright (C) 1999-2019 by Willem van Schaik 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | The software is provided "as is", without warranty of any kind, express or 17 | implied, including but not limited to the warranties of merchantability, 18 | fitness for a particular purpose and noninfringement. In no event shall the 19 | authors or copyright holders be liable for any claim, damages or other 20 | liability, whether in an action of contract, tort or otherwise, arising from, 21 | out of or in connection with the software or the use or other dealings in the 22 | software. 23 | -------------------------------------------------------------------------------- /libpng/contrib/pngminus/Makefile: -------------------------------------------------------------------------------- 1 | # Makefile for PngMinus (png2pnm and pnm2png) 2 | # Linux / Unix 3 | 4 | #CC = cc 5 | CC = gcc 6 | LD = $(CC) 7 | 8 | RM = rm -f 9 | 10 | PNGINC = -I../.. 11 | PNGLIB_SHARED = -L../.. -lpng 12 | PNGLIB_STATIC = ../../libpng.a 13 | 14 | # Uncomment the following if you have a custom zlib build at ../../../zlib 15 | #ZINC = -I../../../zlib 16 | #ZLIB_SHARED = -L../../../zlib -lz 17 | #ZLIB_STATIC = ../../../zlib/libz.a 18 | 19 | # Use the system zlib otherwise 20 | ZLIB_SHARED = -lz 21 | ZLIB_STATIC = -lz 22 | 23 | CPPFLAGS = $(PNGINC) $(ZINC) 24 | CFLAGS = 25 | LDFLAGS = 26 | LIBS_SHARED = $(PNGLIB_SHARED) $(ZLIB_SHARED) 27 | LIBS_STATIC = $(PNGLIB_STATIC) $(ZLIB_STATIC) 28 | 29 | EXEEXT = 30 | #EXEEXT = .exe 31 | 32 | # dependencies 33 | 34 | all: png2pnm$(EXEEXT) pnm2png$(EXEEXT) png2pnm-static$(EXEEXT) pnm2png-static$(EXEEXT) 35 | 36 | png2pnm.o: png2pnm.c 37 | $(CC) -c $(CPPFLAGS) $(CFLAGS) png2pnm.c 38 | 39 | pnm2png.o: pnm2png.c 40 | $(CC) -c $(CPPFLAGS) $(CFLAGS) pnm2png.c 41 | 42 | png2pnm$(EXEEXT): png2pnm.o 43 | $(LD) $(LDFLAGS) -o png2pnm$(EXEEXT) png2pnm.o $(LIBS_SHARED) -lm 44 | 45 | pnm2png$(EXEEXT): pnm2png.o 46 | $(LD) $(LDFLAGS) -o pnm2png$(EXEEXT) pnm2png.o $(LIBS_SHARED) -lm 47 | 48 | png2pnm-static$(EXEEXT): png2pnm.o 49 | $(LD) $(LDFLAGS) -o png2pnm-static$(EXEEXT) png2pnm.o $(LIBS_STATIC) -lm 50 | 51 | pnm2png-static$(EXEEXT): pnm2png.o 52 | $(LD) $(LDFLAGS) -o pnm2png-static$(EXEEXT) pnm2png.o $(LIBS_STATIC) -lm 53 | 54 | clean: 55 | $(RM) png2pnm.o 56 | $(RM) pnm2png.o 57 | $(RM) png2pnm$(EXEEXT) 58 | $(RM) pnm2png$(EXEEXT) 59 | $(RM) png2pnm-static$(EXEEXT) 60 | $(RM) pnm2png-static$(EXEEXT) 61 | 62 | # End of makefile for png2pnm / pnm2png 63 | -------------------------------------------------------------------------------- /libpng/contrib/pngminus/test_png2pnm.bat: -------------------------------------------------------------------------------- 1 | REM -- grayscale 2 | png2pnm.exe -noraw ..\pngsuite\basn0g01.png basn0g01.pgm 3 | png2pnm.exe -noraw ..\pngsuite\basn0g02.png basn0g02.pgm 4 | png2pnm.exe -noraw ..\pngsuite\basn0g04.png basn0g04.pgm 5 | png2pnm.exe -noraw ..\pngsuite\basn0g08.png basn0g08.pgm 6 | png2pnm.exe -noraw ..\pngsuite\basn0g16.png basn0g16.pgm 7 | REM -- full-color 8 | png2pnm.exe -noraw ..\pngsuite\basn2c08.png basn2c08.ppm 9 | png2pnm.exe -noraw ..\pngsuite\basn2c16.png basn2c16.ppm 10 | REM -- paletted 11 | png2pnm.exe -noraw ..\pngsuite\basn3p01.png basn3p01.ppm 12 | png2pnm.exe -noraw ..\pngsuite\basn3p02.png basn3p02.ppm 13 | png2pnm.exe -noraw ..\pngsuite\basn3p04.png basn3p04.ppm 14 | png2pnm.exe -noraw ..\pngsuite\basn3p08.png basn3p08.ppm 15 | REM -- gray with alpha-channel 16 | png2pnm.exe -noraw ..\pngsuite\basn4a08.png basn4a08.pgm 17 | png2pnm.exe -noraw ..\pngsuite\basn4a16.png basn4a16.pgm 18 | REM -- color with alpha-channel 19 | png2pnm.exe -noraw -alpha basn6a08.pgm ..\pngsuite\basn6a08.png basn6a08.ppm 20 | png2pnm.exe -noraw -alpha basn6a16.pgm ..\pngsuite\basn6a16.png basn6a16.ppm 21 | REM -- grayscale 22 | png2pnm.exe -raw ..\pngsuite\basn0g01.png rawn0g01.pgm 23 | png2pnm.exe -raw ..\pngsuite\basn0g02.png rawn0g02.pgm 24 | png2pnm.exe -raw ..\pngsuite\basn0g04.png rawn0g04.pgm 25 | png2pnm.exe -raw ..\pngsuite\basn0g08.png rawn0g08.pgm 26 | png2pnm.exe -raw ..\pngsuite\basn0g16.png rawn0g16.pgm 27 | REM -- full-color 28 | png2pnm.exe -raw ..\pngsuite\basn2c08.png rawn2c08.ppm 29 | png2pnm.exe -raw ..\pngsuite\basn2c16.png rawn2c16.ppm 30 | REM -- paletted 31 | png2pnm.exe -raw ..\pngsuite\basn3p01.png rawn3p01.ppm 32 | png2pnm.exe -raw ..\pngsuite\basn3p02.png rawn3p02.ppm 33 | png2pnm.exe -raw ..\pngsuite\basn3p04.png rawn3p04.ppm 34 | png2pnm.exe -raw ..\pngsuite\basn3p08.png rawn3p08.ppm 35 | REM -- gray with alpha-channel 36 | png2pnm.exe -raw ..\pngsuite\basn4a08.png rawn4a08.pgm 37 | png2pnm.exe -raw ..\pngsuite\basn4a16.png rawn4a16.pgm 38 | REM -- color with alpha-channel 39 | png2pnm.exe -noraw -alpha rawn6a08.pgm ..\pngsuite\basn6a08.png rawn6a08.ppm 40 | png2pnm.exe -noraw -alpha rawn6a16.pgm ..\pngsuite\basn6a16.png rawn6a16.ppm 41 | 42 | -------------------------------------------------------------------------------- /libpng/contrib/pngminus/test_png2pnm.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # -- grayscale 3 | ./png2pnm -noraw ../pngsuite/basn0g01.png basn0g01.pgm 4 | ./png2pnm -noraw ../pngsuite/basn0g02.png basn0g02.pgm 5 | ./png2pnm -noraw ../pngsuite/basn0g04.png basn0g04.pgm 6 | ./png2pnm -noraw ../pngsuite/basn0g08.png basn0g08.pgm 7 | ./png2pnm -noraw ../pngsuite/basn0g16.png basn0g16.pgm 8 | # -- full-color 9 | ./png2pnm -noraw ../pngsuite/basn2c08.png basn2c08.ppm 10 | ./png2pnm -noraw ../pngsuite/basn2c16.png basn2c16.ppm 11 | # -- paletted 12 | ./png2pnm -noraw ../pngsuite/basn3p01.png basn3p01.ppm 13 | ./png2pnm -noraw ../pngsuite/basn3p02.png basn3p02.ppm 14 | ./png2pnm -noraw ../pngsuite/basn3p04.png basn3p04.ppm 15 | ./png2pnm -noraw ../pngsuite/basn3p08.png basn3p08.ppm 16 | # -- gray with alpha-channel 17 | ./png2pnm -noraw ../pngsuite/basn4a08.png basn4a08.pgm 18 | ./png2pnm -noraw ../pngsuite/basn4a16.png basn4a16.pgm 19 | # -- color with alpha-channel 20 | ./png2pnm -noraw -alpha basn6a08.pgm ../pngsuite/basn6a08.png basn6a08.ppm 21 | ./png2pnm -noraw -alpha basn6a16.pgm ../pngsuite/basn6a16.png basn6a16.ppm 22 | # -- grayscale 23 | ./png2pnm -raw ../pngsuite/basn0g01.png rawn0g01.pgm 24 | ./png2pnm -raw ../pngsuite/basn0g02.png rawn0g02.pgm 25 | ./png2pnm -raw ../pngsuite/basn0g04.png rawn0g04.pgm 26 | ./png2pnm -raw ../pngsuite/basn0g08.png rawn0g08.pgm 27 | ./png2pnm -raw ../pngsuite/basn0g16.png rawn0g16.pgm 28 | # -- full-color 29 | ./png2pnm -raw ../pngsuite/basn2c08.png rawn2c08.ppm 30 | ./png2pnm -raw ../pngsuite/basn2c16.png rawn2c16.ppm 31 | # -- paletted 32 | ./png2pnm -raw ../pngsuite/basn3p01.png rawn3p01.ppm 33 | ./png2pnm -raw ../pngsuite/basn3p02.png rawn3p02.ppm 34 | ./png2pnm -raw ../pngsuite/basn3p04.png rawn3p04.ppm 35 | ./png2pnm -raw ../pngsuite/basn3p08.png rawn3p08.ppm 36 | # -- gray with alpha-channel 37 | ./png2pnm -raw ../pngsuite/basn4a08.png rawn4a08.pgm 38 | ./png2pnm -raw ../pngsuite/basn4a16.png rawn4a16.pgm 39 | # -- color with alpha-channel 40 | ./png2pnm -noraw -alpha rawn6a08.pgm ../pngsuite/basn6a08.png rawn6a08.ppm 41 | ./png2pnm -noraw -alpha rawn6a16.pgm ../pngsuite/basn6a16.png rawn6a16.ppm 42 | 43 | -------------------------------------------------------------------------------- /libpng/contrib/pngminus/test_pngminus.bat: -------------------------------------------------------------------------------- 1 | make 2 | call png2pnm.bat 3 | call pnm2png.bat 4 | 5 | -------------------------------------------------------------------------------- /libpng/contrib/pngminus/test_pngminus.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | make 3 | sh png2pnm.sh 4 | sh pnm2png.sh 5 | 6 | -------------------------------------------------------------------------------- /libpng/contrib/pngminus/test_pnm2png.bat: -------------------------------------------------------------------------------- 1 | REM -- grayscale 2 | pnm2png.exe basn0g01.pgm basn0g01.png 3 | pnm2png.exe basn0g02.pgm basn0g02.png 4 | pnm2png.exe basn0g04.pgm basn0g04.png 5 | pnm2png.exe basn0g08.pgm basn0g08.png 6 | pnm2png.exe basn0g16.pgm basn0g16.png 7 | REM -- full-color 8 | pnm2png.exe basn2c08.ppm basn2c08.png 9 | pnm2png.exe basn2c16.ppm basn2c16.png 10 | REM -- paletted 11 | pnm2png.exe basn3p01.ppm basn3p01.png 12 | pnm2png.exe basn3p02.ppm basn3p02.png 13 | pnm2png.exe basn3p04.ppm basn3p04.png 14 | pnm2png.exe basn3p08.ppm basn3p08.png 15 | REM -- gray with alpha-channel 16 | pnm2png.exe -alpha basn6a08.pgm basn4a08.pgm basn4a08.png 17 | pnm2png.exe -alpha basn6a16.pgm basn4a16.pgm basn4a16.png 18 | REM -- color with alpha-channel 19 | pnm2png.exe -alpha basn6a08.pgm basn6a08.ppm basn6a08.png 20 | pnm2png.exe -alpha basn6a16.pgm basn6a16.ppm basn6a16.png 21 | REM -- grayscale 22 | pnm2png.exe rawn0g01.pgm rawn0g01.png 23 | pnm2png.exe rawn0g02.pgm rawn0g02.png 24 | pnm2png.exe rawn0g04.pgm rawn0g04.png 25 | pnm2png.exe rawn0g08.pgm rawn0g08.png 26 | pnm2png.exe rawn0g16.pgm rawn0g16.png 27 | REM -- full-color 28 | pnm2png.exe rawn2c08.ppm rawn2c08.png 29 | pnm2png.exe rawn2c16.ppm rawn2c16.png 30 | REM -- paletted 31 | pnm2png.exe rawn3p01.ppm rawn3p01.png 32 | pnm2png.exe rawn3p02.ppm rawn3p02.png 33 | pnm2png.exe rawn3p04.ppm rawn3p04.png 34 | pnm2png.exe rawn3p08.ppm rawn3p08.png 35 | REM -- gray with alpha-channel 36 | pnm2png.exe -alpha rawn6a08.pgm rawn4a08.pgm rawn4a08.png 37 | pnm2png.exe -alpha rawn6a16.pgm rawn4a16.pgm rawn4a16.png 38 | REM -- color with alpha-channel 39 | pnm2png.exe -alpha rawn6a08.pgm rawn6a08.ppm rawn6a08.png 40 | pnm2png.exe -alpha rawn6a16.pgm rawn6a16.ppm rawn6a16.png 41 | 42 | -------------------------------------------------------------------------------- /libpng/contrib/pngminus/test_pnm2png.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # -- grayscale 3 | ./pnm2png basn0g01.pgm basn0g01.png 4 | ./pnm2png basn0g02.pgm basn0g02.png 5 | ./pnm2png basn0g04.pgm basn0g04.png 6 | ./pnm2png basn0g08.pgm basn0g08.png 7 | ./pnm2png basn0g16.pgm basn0g16.png 8 | # -- full-color 9 | ./pnm2png basn2c08.ppm basn2c08.png 10 | ./pnm2png basn2c16.ppm basn2c16.png 11 | # -- paletted 12 | ./pnm2png basn3p01.ppm basn3p01.png 13 | ./pnm2png basn3p02.ppm basn3p02.png 14 | ./pnm2png basn3p04.ppm basn3p04.png 15 | ./pnm2png basn3p08.ppm basn3p08.png 16 | # -- gray with alpha-channel 17 | ./pnm2png -alpha basn6a08.pgm basn4a08.pgm basn4a08.png 18 | ./pnm2png -alpha basn6a16.pgm basn4a16.pgm basn4a16.png 19 | # -- color with alpha-channel 20 | ./pnm2png -alpha basn6a08.pgm basn6a08.ppm basn6a08.png 21 | ./pnm2png -alpha basn6a16.pgm basn6a16.ppm basn6a16.png 22 | # -- grayscale 23 | ./pnm2png rawn0g01.pgm rawn0g01.png 24 | ./pnm2png rawn0g02.pgm rawn0g02.png 25 | ./pnm2png rawn0g04.pgm rawn0g04.png 26 | ./pnm2png rawn0g08.pgm rawn0g08.png 27 | ./pnm2png rawn0g16.pgm rawn0g16.png 28 | # -- full-color 29 | ./pnm2png rawn2c08.ppm rawn2c08.png 30 | ./pnm2png rawn2c16.ppm rawn2c16.png 31 | # -- paletted 32 | ./pnm2png rawn3p01.ppm rawn3p01.png 33 | ./pnm2png rawn3p02.ppm rawn3p02.png 34 | ./pnm2png rawn3p04.ppm rawn3p04.png 35 | ./pnm2png rawn3p08.ppm rawn3p08.png 36 | # -- gray with alpha-channel 37 | ./pnm2png -alpha rawn6a08.pgm rawn4a08.pgm rawn4a08.png 38 | ./pnm2png -alpha rawn6a16.pgm rawn4a16.pgm rawn4a16.png 39 | # -- color with alpha-channel 40 | ./pnm2png -alpha rawn6a08.pgm rawn6a08.ppm rawn6a08.png 41 | ./pnm2png -alpha rawn6a16.pgm rawn6a16.ppm rawn6a16.png 42 | 43 | -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/bad_interlace_conversions.txt: -------------------------------------------------------------------------------- 1 | basn0g01.png 2 | basn0g02.png 3 | basn0g04.png 4 | basn3p01.png 5 | basn3p02.png 6 | basn3p04.png 7 | ftbbn0g01.png 8 | ftbbn0g02.png 9 | ftbbn0g04.png 10 | -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn0g01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/basn0g01.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn0g02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/basn0g02.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn0g04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/basn0g04.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn0g08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/basn0g08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn0g16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/basn0g16.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn2c08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/basn2c08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn2c16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/basn2c16.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn3p01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/basn3p01.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn3p02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/basn3p02.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn3p04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/basn3p04.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/basn3p08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn4a08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/basn4a08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn4a16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/basn4a16.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn6a08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/basn6a08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn6a16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/basn6a16.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftbbn0g01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/ftbbn0g01.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftbbn0g02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/ftbbn0g02.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftbbn0g04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/ftbbn0g04.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftbbn2c16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/ftbbn2c16.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftbbn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/ftbbn3p08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftbgn2c16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/ftbgn2c16.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftbgn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/ftbgn3p08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftbrn2c08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/ftbrn2c08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftbwn0g16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/ftbwn0g16.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftbwn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/ftbwn3p08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftbyn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/ftbyn3p08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftp0n0g08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/ftp0n0g08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftp0n2c08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/ftp0n2c08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftp0n3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/ftp0n3p08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftp1n3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/ftp1n3p08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ibasn0g08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/ibasn0g08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ibasn0g16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/ibasn0g16.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ibasn2c08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/ibasn2c08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ibasn2c16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/ibasn2c16.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ibasn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/ibasn3p08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ibasn4a08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/ibasn4a08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ibasn4a16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/ibasn4a16.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ibasn6a08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/ibasn6a08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ibasn6a16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/ibasn6a16.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/iftbbn2c16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/iftbbn2c16.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/iftbbn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/iftbbn3p08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/iftbgn2c16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/iftbgn2c16.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/iftbgn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/iftbgn3p08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/iftbrn2c08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/iftbrn2c08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/iftbwn0g16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/iftbwn0g16.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/iftbwn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/iftbwn3p08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/iftbyn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/iftbyn3p08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/iftp0n0g08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/iftp0n0g08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/iftp0n2c08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/iftp0n2c08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/iftp0n3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/iftp0n3p08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/iftp1n3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/iftp1n3p08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/interlaced/README: -------------------------------------------------------------------------------- 1 | 2 | These images fail the "pngimage-quick" and "pngimage-full" tests. 3 | -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/interlaced/ibasn0g01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/interlaced/ibasn0g01.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/interlaced/ibasn0g02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/interlaced/ibasn0g02.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/interlaced/ibasn0g04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/interlaced/ibasn0g04.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/interlaced/ibasn3p01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/interlaced/ibasn3p01.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/interlaced/ibasn3p02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/interlaced/ibasn3p02.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/interlaced/ibasn3p04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/interlaced/ibasn3p04.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/interlaced/iftbbn0g01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/interlaced/iftbbn0g01.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/interlaced/iftbbn0g02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/interlaced/iftbbn0g02.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/interlaced/iftbbn0g04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/pngsuite/interlaced/iftbbn0g04.png -------------------------------------------------------------------------------- /libpng/contrib/powerpc-vsx/linux.c: -------------------------------------------------------------------------------- 1 | /* contrib/powerpc-vsx/linux.c 2 | * 3 | * Copyright (c) 2017 Glenn Randers-Pehrson 4 | * Written by Vadim Barkov, 2017. 5 | * 6 | * This code is released under the libpng license. 7 | * For conditions of distribution and use, see the disclaimer 8 | * and license in png.h 9 | * 10 | * STATUS: TESTED 11 | * BUG REPORTS: png-mng-implement@sourceforge.net 12 | * 13 | * png_have_vsx implemented for Linux by reading the widely available 14 | * pseudo-file /proc/cpuinfo. 15 | * 16 | * This code is strict ANSI-C and is probably moderately portable; it does 17 | * however use and it assumes that /proc/cpuinfo is never localized. 18 | */ 19 | 20 | #include 21 | #include 22 | #include 23 | #include "png.h" 24 | 25 | #ifndef MAXLINE 26 | # define MAXLINE 1024 27 | #endif 28 | 29 | static int 30 | png_have_vsx(png_structp png_ptr) 31 | { 32 | FILE *f; 33 | 34 | const char *string = "altivec supported"; 35 | char input[MAXLINE]; 36 | char *token = NULL; 37 | 38 | PNG_UNUSED(png_ptr) 39 | 40 | f = fopen("/proc/cpuinfo", "r"); 41 | if (f != NULL) 42 | { 43 | memset(input,0,MAXLINE); 44 | while(fgets(input,MAXLINE,f) != NULL) 45 | { 46 | token = strstr(input,string); 47 | if(token != NULL) 48 | return 1; 49 | } 50 | } 51 | #ifdef PNG_WARNINGS_SUPPORTED 52 | else 53 | png_warning(png_ptr, "/proc/cpuinfo open failed"); 54 | #endif 55 | return 0; 56 | } 57 | -------------------------------------------------------------------------------- /libpng/contrib/powerpc-vsx/linux_aux.c: -------------------------------------------------------------------------------- 1 | /* contrib/powerpc-vsx/linux_aux.c 2 | * 3 | * Copyright (c) 2017 Glenn Randers-Pehrson 4 | * Written by Vadim Barkov, 2017. 5 | * 6 | * This code is released under the libpng license. 7 | * For conditions of distribution and use, see the disclaimer 8 | * and license in png.h 9 | * 10 | * STATUS: TESTED 11 | * BUG REPORTS: png-mng-implement@sourceforge.net 12 | * 13 | * png_have_vsx implemented for Linux by using the auxiliary vector mechanism. 14 | * 15 | * This code is strict ANSI-C and is probably moderately portable; it does 16 | * however use and it assumes that /proc/cpuinfo is never localized. 17 | */ 18 | 19 | #include "sys/auxv.h" 20 | #include "png.h" 21 | 22 | static int 23 | png_have_vsx(png_structp png_ptr) 24 | { 25 | unsigned long auxv = getauxval(AT_HWCAP); 26 | 27 | PNG_UNUSED(png_ptr) 28 | 29 | if(auxv & (PPC_FEATURE_HAS_ALTIVEC|PPC_FEATURE_HAS_VSX)) 30 | return 1; 31 | else 32 | return 0; 33 | } 34 | -------------------------------------------------------------------------------- /libpng/contrib/testpngs/badpal/regression-palette-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/badpal/regression-palette-8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/badpal/small-palette-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/badpal/small-palette-1.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/badpal/small-palette-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/badpal/small-palette-2.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/badpal/small-palette-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/badpal/small-palette-4.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/badpal/small-palette-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/badpal/small-palette-8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/badpal/test-palette-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/badpal/test-palette-1.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/badpal/test-palette-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/badpal/test-palette-2.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/badpal/test-palette-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/badpal/test-palette-4.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/badpal/test-palette-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/badpal/test-palette-8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/crashers/bad_iCCP.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/crashers/bad_iCCP.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/crashers/badadler.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/crashers/badadler.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/crashers/badcrc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/crashers/badcrc.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/crashers/empty_ancillary_chunks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/crashers/empty_ancillary_chunks.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/crashers/huge_IDAT.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/crashers/huge_IDAT.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/crashers/huge_bKGD_chunk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/crashers/huge_bKGD_chunk.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/crashers/huge_cHRM_chunk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/crashers/huge_cHRM_chunk.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/crashers/huge_eXIf_chunk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/crashers/huge_eXIf_chunk.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/crashers/huge_gAMA_chunk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/crashers/huge_gAMA_chunk.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/crashers/huge_hIST_chunk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/crashers/huge_hIST_chunk.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/crashers/huge_iCCP_chunk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/crashers/huge_iCCP_chunk.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/crashers/huge_iTXt_chunk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/crashers/huge_iTXt_chunk.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/crashers/huge_juNK_unsafe_to_copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/crashers/huge_juNK_unsafe_to_copy.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/crashers/huge_juNk_safe_to_copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/crashers/huge_juNk_safe_to_copy.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/crashers/huge_pCAL_chunk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/crashers/huge_pCAL_chunk.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/crashers/huge_pHYs_chunk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/crashers/huge_pHYs_chunk.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/crashers/huge_sCAL_chunk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/crashers/huge_sCAL_chunk.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/crashers/huge_sPLT_chunk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/crashers/huge_sPLT_chunk.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/crashers/huge_sRGB_chunk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/crashers/huge_sRGB_chunk.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/crashers/huge_sTER_chunk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/crashers/huge_sTER_chunk.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/crashers/huge_tEXt_chunk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/crashers/huge_tEXt_chunk.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/crashers/huge_tIME_chunk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/crashers/huge_tIME_chunk.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/crashers/huge_zTXt_chunk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/crashers/huge_zTXt_chunk.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-1-1.8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-1-1.8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-1-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-1-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-1-linear-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-1-linear-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-1-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-1-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-1-sRGB-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-1-sRGB-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-1-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-1-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-1-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-1-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-1.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-16-1.8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-16-1.8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-16-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-16-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-16-linear-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-16-linear-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-16-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-16-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-16-sRGB-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-16-sRGB-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-16-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-16-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-16-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-16-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-16.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-2-1.8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-2-1.8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-2-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-2-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-2-linear-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-2-linear-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-2-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-2-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-2-sRGB-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-2-sRGB-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-2-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-2-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-2-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-2-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-2.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-4-1.8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-4-1.8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-4-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-4-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-4-linear-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-4-linear-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-4-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-4-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-4-sRGB-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-4-sRGB-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-4-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-4-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-4-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-4-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-4.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-8-1.8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-8-1.8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-8-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-8-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-8-linear-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-8-linear-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-8-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-8-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-8-sRGB-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-8-sRGB-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-8-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-8-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-alpha-16-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-alpha-16-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-alpha-16-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-alpha-16-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-alpha-16-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-alpha-16-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-alpha-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-alpha-16.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-alpha-8-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-alpha-8-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-alpha-8-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-alpha-8-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-alpha-8-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-alpha-8-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-alpha-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/gray-alpha-8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-1-1.8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-1-1.8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-1-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-1-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-1-linear-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-1-linear-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-1-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-1-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-1-sRGB-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-1-sRGB-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-1-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-1-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-1-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-1-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-1.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-2-1.8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-2-1.8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-2-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-2-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-2-linear-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-2-linear-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-2-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-2-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-2-sRGB-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-2-sRGB-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-2-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-2-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-2-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-2-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-2.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-4-1.8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-4-1.8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-4-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-4-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-4-linear-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-4-linear-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-4-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-4-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-4-sRGB-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-4-sRGB-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-4-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-4-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-4-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-4-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-4.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-8-1.8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-8-1.8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-8-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-8-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-8-linear-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-8-linear-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-8-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-8-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-8-sRGB-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-8-sRGB-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-8-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-8-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/palette-8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-16-1.8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/rgb-16-1.8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-16-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/rgb-16-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-16-linear-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/rgb-16-linear-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-16-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/rgb-16-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-16-sRGB-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/rgb-16-sRGB-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-16-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/rgb-16-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-16-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/rgb-16-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/rgb-16.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-8-1.8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/rgb-8-1.8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-8-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/rgb-8-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-8-linear-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/rgb-8-linear-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-8-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/rgb-8-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-8-sRGB-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/rgb-8-sRGB-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-8-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/rgb-8-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/rgb-8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/rgb-8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-alpha-16-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/rgb-alpha-16-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-alpha-16-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/rgb-alpha-16-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-alpha-16-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/rgb-alpha-16-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-alpha-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/rgb-alpha-16.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-alpha-8-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/rgb-alpha-8-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-alpha-8-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/rgb-alpha-8-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-alpha-8-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/rgb-alpha-8-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-alpha-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/testpngs/rgb-alpha-8.png -------------------------------------------------------------------------------- /libpng/contrib/tools/README.txt: -------------------------------------------------------------------------------- 1 | This directory (contrib/tools) contains tools used by the authors of libpng. 2 | 3 | Code and data placed in this directory is not required to build libpng, 4 | however the code in this directory has been used to generate data or code in 5 | the body of the libpng source. The source code identifies where this has 6 | been done. Code in this directory may not compile on all operating systems 7 | that libpng supports. 8 | 9 | NO COPYRIGHT RIGHTS ARE CLAIMED TO ANY OF THE FILES IN THIS DIRECTORY. 10 | 11 | To the extent possible under law, the authors have waived all copyright and 12 | related or neighboring rights to this work. This work is published from: 13 | United States. 14 | 15 | The files may be used freely in any way. 16 | 17 | The source code and comments in this directory are the original work of the 18 | people named below. No other person or organization has made contributions to 19 | the work in this directory. 20 | 21 | ORIGINAL AUTHORS 22 | The following people have contributed to the code in this directory. None 23 | of the people below claim any rights with regard to the contents of this 24 | directory. 25 | 26 | John Bowler 27 | Glenn Randers-Pehrson 28 | -------------------------------------------------------------------------------- /libpng/contrib/tools/sRGB.h: -------------------------------------------------------------------------------- 1 | /* sRGB.h 2 | * 3 | * COPYRIGHT: Written by John Cunningham Bowler, 2013. 4 | * To the extent possible under law, the author has waived all copyright and 5 | * related or neighboring rights to this work. This work is published from: 6 | * United States. 7 | * 8 | * Utility file; not actually a header, this contains definitions of sRGB 9 | * calculation functions for inclusion in those test programs that need them. 10 | * 11 | * All routines take and return a floating point value in the range 12 | * 0 to 1.0, doing a calculation according to the sRGB specification 13 | * (in fact the source of the numbers is the wikipedia article at 14 | * https://en.wikipedia.org/wiki/SRGB). 15 | */ 16 | 17 | static double 18 | sRGB_from_linear(double l) 19 | { 20 | if (l <= 0.0031308) 21 | l *= 12.92; 22 | 23 | else 24 | l = 1.055 * pow(l, 1/2.4) - 0.055; 25 | 26 | return l; 27 | } 28 | 29 | static double 30 | linear_from_sRGB(double s) 31 | { 32 | if (s <= 0.04045) 33 | return s / 12.92; 34 | 35 | else 36 | return pow((s+0.055)/1.055, 2.4); 37 | } 38 | 39 | static double 40 | YfromRGB(double r, double g, double b) 41 | { 42 | /* Use the sRGB (rounded) coefficients for Rlinear, Glinear, Blinear to get 43 | * the CIE Y value (also linear). 44 | */ 45 | return 0.2126 * r + 0.7152 * g + 0.0722 * b; 46 | } 47 | -------------------------------------------------------------------------------- /libpng/contrib/visupng/.editorconfig: -------------------------------------------------------------------------------- 1 | # https://editorconfig.org 2 | 3 | root = true 4 | 5 | [*] 6 | charset = utf-8 7 | end_of_line = unset 8 | indent_style = unset 9 | insert_final_newline = true 10 | max_doc_length = 80 11 | max_line_length = 100 12 | trim_trailing_whitespace = true 13 | 14 | [*.rc] 15 | end_of_line = crlf 16 | trim_trailing_whitespace = unset 17 | 18 | [*.ds[pw]] 19 | end_of_line = crlf 20 | max_doc_length = unset 21 | max_line_length = unset 22 | trim_trailing_whitespace = unset 23 | -------------------------------------------------------------------------------- /libpng/contrib/visupng/PngFile.h: -------------------------------------------------------------------------------- 1 | /*------------------------------------------*/ 2 | /* PNGFILE.H -- Header File for pngfile.c*/ 3 | /*------------------------------------------*/ 4 | 5 | /* Copyright 2000, Willem van Schaik.*/ 6 | 7 | /* This code is released under the libpng license.*/ 8 | /* For conditions of distribution and use, see the disclaimer*/ 9 | /* and license in png.h*/ 10 | 11 | #include 12 | #include 13 | #include 14 | #include 15 | 16 | void PngFileInitialize (HWND hwnd) ; 17 | BOOL PngFileOpenDlg (HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName) ; 18 | BOOL PngFileSaveDlg (HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName) ; 19 | 20 | BOOL PngLoadImage (PTSTR pstrFileName, png_byte **ppbImageData, 21 | int *piWidth, int *piHeight, int *piChannels, png_color *pBkgColor); 22 | BOOL PngSaveImage (PTSTR pstrFileName, png_byte *pDiData, 23 | int iWidth, int iHeight, png_color BkgColor); 24 | 25 | #ifndef PNG_STDIO_SUPPORTED 26 | static void png_read_data(png_structp png_ptr, png_bytep data, size_t length); 27 | static void png_write_data(png_structp png_ptr, png_bytep data, size_t length); 28 | static void png_flush(png_structp png_ptr); 29 | #endif 30 | 31 | -------------------------------------------------------------------------------- /libpng/contrib/visupng/VisualPng.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "VisualPng"=.\VisualPng.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /libpng/contrib/visupng/VisualPng.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/visupng/VisualPng.ico -------------------------------------------------------------------------------- /libpng/contrib/visupng/VisualPng.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/contrib/visupng/VisualPng.png -------------------------------------------------------------------------------- /libpng/contrib/visupng/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by VisualPng.rc 4 | // 5 | #define IDM_FILE_OPEN 40001 6 | #define IDM_FILE_SAVE 40002 7 | #define IDM_FILE_NEXT 40003 8 | #define IDM_FILE_PREVIOUS 40004 9 | #define IDM_FILE_EXIT 40005 10 | #define IDM_OPTIONS_BACKGROUND 40006 11 | #define IDM_OPTIONS_STRETCH 40007 12 | #define IDM_HELP_ABOUT 40008 13 | 14 | // Next default values for new objects 15 | // 16 | #ifdef APSTUDIO_INVOKED 17 | #ifndef APSTUDIO_READONLY_SYMBOLS 18 | #define _APS_NEXT_RESOURCE_VALUE 113 19 | #define _APS_NEXT_COMMAND_VALUE 40009 20 | #define _APS_NEXT_CONTROL_VALUE 1001 21 | #define _APS_NEXT_SYMED_VALUE 101 22 | #endif 23 | #endif 24 | -------------------------------------------------------------------------------- /libpng/intel/intel_init.c: -------------------------------------------------------------------------------- 1 | 2 | /* intel_init.c - SSE2 optimized filter functions 3 | * 4 | * Copyright (c) 2018 Cosmin Truta 5 | * Copyright (c) 2016-2017 Glenn Randers-Pehrson 6 | * Written by Mike Klein and Matt Sarett, Google, Inc. 7 | * Derived from arm/arm_init.c 8 | * 9 | * This code is released under the libpng license. 10 | * For conditions of distribution and use, see the disclaimer 11 | * and license in png.h 12 | */ 13 | 14 | #include "../pngpriv.h" 15 | 16 | #ifdef PNG_READ_SUPPORTED 17 | #if PNG_INTEL_SSE_IMPLEMENTATION > 0 18 | 19 | void 20 | png_init_filter_functions_sse2(png_structp pp, unsigned int bpp) 21 | { 22 | /* The techniques used to implement each of these filters in SSE operate on 23 | * one pixel at a time. 24 | * So they generally speed up 3bpp images about 3x, 4bpp images about 4x. 25 | * They can scale up to 6 and 8 bpp images and down to 2 bpp images, 26 | * but they'd not likely have any benefit for 1bpp images. 27 | * Most of these can be implemented using only MMX and 64-bit registers, 28 | * but they end up a bit slower than using the equally-ubiquitous SSE2. 29 | */ 30 | png_debug(1, "in png_init_filter_functions_sse2"); 31 | if (bpp == 3) 32 | { 33 | pp->read_filter[PNG_FILTER_VALUE_SUB-1] = png_read_filter_row_sub3_sse2; 34 | pp->read_filter[PNG_FILTER_VALUE_AVG-1] = png_read_filter_row_avg3_sse2; 35 | pp->read_filter[PNG_FILTER_VALUE_PAETH-1] = 36 | png_read_filter_row_paeth3_sse2; 37 | } 38 | else if (bpp == 4) 39 | { 40 | pp->read_filter[PNG_FILTER_VALUE_SUB-1] = png_read_filter_row_sub4_sse2; 41 | pp->read_filter[PNG_FILTER_VALUE_AVG-1] = png_read_filter_row_avg4_sse2; 42 | pp->read_filter[PNG_FILTER_VALUE_PAETH-1] = 43 | png_read_filter_row_paeth4_sse2; 44 | } 45 | 46 | /* No need optimize PNG_FILTER_VALUE_UP. The compiler should 47 | * autovectorize. 48 | */ 49 | } 50 | 51 | #endif /* PNG_INTEL_SSE_IMPLEMENTATION > 0 */ 52 | #endif /* PNG_READ_SUPPORTED */ 53 | -------------------------------------------------------------------------------- /libpng/libpng.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@ 5 | 6 | Name: libpng 7 | Description: Loads and saves PNG files 8 | Version: @PNGLIB_VERSION@ 9 | Requires.private: zlib 10 | Libs: -L${libdir} -lpng@PNGLIB_MAJOR@@PNGLIB_MINOR@ 11 | Libs.private: @LIBS@ 12 | Cflags: -I${includedir} 13 | -------------------------------------------------------------------------------- /libpng/libpngpf.3: -------------------------------------------------------------------------------- 1 | .TH LIBPNGPF 3 "September 12, 2024" 2 | .SH NAME 3 | libpng \- Portable Network Graphics (PNG) Reference Library 1.6.44 4 | (private functions) 5 | 6 | .SH SYNOPSIS 7 | \fB#include \fI"pngpriv.h" 8 | 9 | \fBAs of libpng version \fP\fI1.5.1\fP\fB, this section is no longer 10 | \fP\fImaintained\fP\fB, now that the private function prototypes are hidden in 11 | \fP\fIpngpriv.h\fP\fB and not accessible to applications. Look in 12 | \fP\fIpngpriv.h\fP\fB for the prototypes and a short description of each 13 | function. 14 | 15 | .SH DESCRIPTION 16 | The functions previously listed here are used privately by libpng and are not 17 | available for use by applications. They are not "exported" to applications 18 | using shared libraries. 19 | 20 | .SH "SEE ALSO" 21 | .BR "png"(5), " libpng"(3), " zlib"(3), " deflate"(5), " " and " zlib"(5) 22 | 23 | .SH AUTHORS 24 | Cosmin Truta, Glenn Randers-Pehrson 25 | -------------------------------------------------------------------------------- /libpng/loongarch/.editorconfig: -------------------------------------------------------------------------------- 1 | # https://editorconfig.org 2 | 3 | root = false 4 | 5 | # FIXME 6 | [*.[ch]] 7 | max_doc_length = unset 8 | max_line_length = unset 9 | -------------------------------------------------------------------------------- /libpng/mips/.editorconfig: -------------------------------------------------------------------------------- 1 | # https://editorconfig.org 2 | 3 | root = false 4 | 5 | # FIXME 6 | [*.[ch]] 7 | max_doc_length = unset 8 | max_line_length = unset 9 | -------------------------------------------------------------------------------- /libpng/png.5: -------------------------------------------------------------------------------- 1 | .TH PNG 5 "September 12, 2024" 2 | .SH NAME 3 | png \- Portable Network Graphics (PNG) format 4 | 5 | .SH DESCRIPTION 6 | PNG (Portable Network Graphics) is an extensible file format for the 7 | lossless, portable, well-compressed storage of raster images. PNG 8 | provides a patent-free replacement for GIF, and can also replace many 9 | common uses of TIFF. Indexed-color, grayscale, and truecolor images are 10 | supported, plus an optional alpha channel. Sample depths range from 11 | 1 to 16 bits. 12 | .br 13 | PNG is designed to work well in online viewing applications, such 14 | as the World Wide Web, so it is fully streamable with a progressive 15 | display option. PNG is robust, providing both full file integrity 16 | checking and fast, simple detection of common transmission errors. 17 | Also, PNG can store gamma and chromaticity data for improved color 18 | matching on heterogeneous platforms. 19 | 20 | .SH "SEE ALSO" 21 | .BR "libpng"(3), " zlib"(3), " deflate"(5), " " and " zlib"(5) 22 | .LP 23 | PNG Specification (Second Edition), November 2003: 24 | .IP 25 | .br 26 | https://www.w3.org/TR/2003/REC-PNG-20031110/ 27 | .LP 28 | PNG 1.2 Specification, July 1999: 29 | .IP 30 | .br 31 | https://png-mng.sourceforge.io/pub/png/spec/1.2/ 32 | .LP 33 | PNG 1.0 Specification, October 1996: 34 | .IP 35 | .br 36 | RFC 2083 37 | .br 38 | https://www.ietf.org/rfc/rfc2083.txt 39 | .IP 40 | .br 41 | or W3C Recommendation 42 | .br 43 | https://www.w3.org/TR/REC-png-961001 44 | 45 | .SH AUTHORS 46 | This man page: Glenn Randers-Pehrson, Cosmin Truta 47 | .LP 48 | Portable Network Graphics (PNG) Specification (Second Edition) 49 | Information technology - Computer graphics and image processing - 50 | Portable Network Graphics (PNG): Functional specification. 51 | ISO/IEC 15948:2003 (E) (November 10, 2003): David Duce and others. 52 | .LP 53 | Portable Network Graphics (PNG) Specification Version 1.2 (July 8, 1999): 54 | Glenn Randers-Pehrson and others. 55 | .LP 56 | Portable Network Graphics (PNG) Specification Version 1.0 (October 1, 1996): 57 | Thomas Boutell and others. 58 | 59 | .\" end of man page 60 | -------------------------------------------------------------------------------- /libpng/pngbar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/pngbar.jpg -------------------------------------------------------------------------------- /libpng/pngbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/pngbar.png -------------------------------------------------------------------------------- /libpng/pngnow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/pngnow.png -------------------------------------------------------------------------------- /libpng/pngtest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PistonDevelopers/freetype-sys/1c76587df98ec23ef7700e3a8b83ed1012adf765/libpng/pngtest.png -------------------------------------------------------------------------------- /libpng/pngusr.dfa: -------------------------------------------------------------------------------- 1 | # pngusr.dfa 2 | # 3 | # Build time configuration of libpng 4 | # 5 | # Enter build configuration options in this file 6 | # 7 | # Security settings: by default these limits are unset, you can change them 8 | # here by entering the appropriate values as #defines preceded by '@' (to cause, 9 | # them to be passed through to the build of pnglibconf.h), for example: 10 | # 11 | # @# define PNG_USER_WIDTH_MAX 65535 12 | # @# define PNG_USER_HEIGHT_MAX 65535 13 | # @# define PNG_USER_CHUNK_CACHE_MAX 256 14 | # @# define PNG_USER_CHUNK_MALLOC_MAX 640000 15 | -------------------------------------------------------------------------------- /libpng/powerpc/.editorconfig: -------------------------------------------------------------------------------- 1 | # https://editorconfig.org 2 | 3 | root = false 4 | 5 | # FIXME 6 | [*.[ch]] 7 | max_doc_length = unset 8 | max_line_length = unset 9 | -------------------------------------------------------------------------------- /libpng/projects/.editorconfig: -------------------------------------------------------------------------------- 1 | # https://editorconfig.org 2 | 3 | root = true 4 | -------------------------------------------------------------------------------- /libpng/projects/owatcom/libpng.wpj: -------------------------------------------------------------------------------- 1 | 40 2 | projectIdent 3 | 0 4 | VpeMain 5 | 1 6 | WRect 7 | 256 8 | 0 9 | 8960 10 | 9294 11 | 2 12 | MProject 13 | 3 14 | MCommand 15 | 322 16 | # Locations of zlib and (if required) awk (change as required:) 17 | set zlib=..\..\..\zlib 18 | set awk= 19 | # 20 | @if not exist pngconfig.dfa $(MAKE) $(__MAKEOPTS__) -f pngconfig.mak defaults 21 | @if exist config.inf type config.inf 22 | @echo Checking for the libpng configuration file pnglibconf.h 23 | $(MAKE) $(__MAKEOPTS__) -f pngconfig.mak 24 | 4 25 | MCommand 26 | 19 27 | @type pngconfig.inf 28 | 4 29 | 5 30 | WFileName 31 | 10 32 | libpng.tgt 33 | 6 34 | WFileName 35 | 11 36 | pngtest.tgt 37 | 7 38 | WFileName 39 | 12 40 | pngvalid.tgt 41 | 8 42 | WFileName 43 | 12 44 | pngstest.tgt 45 | 9 46 | WVList 47 | 4 48 | 10 49 | VComponent 50 | 11 51 | WRect 52 | 0 53 | 0 54 | 5638 55 | 4174 56 | 0 57 | 0 58 | 12 59 | WFileName 60 | 10 61 | libpng.tgt 62 | 0 63 | 0 64 | 13 65 | VComponent 66 | 14 67 | WRect 68 | 1280 69 | 1550 70 | 5638 71 | 4174 72 | 0 73 | 0 74 | 15 75 | WFileName 76 | 11 77 | pngtest.tgt 78 | 0 79 | 1 80 | 16 81 | VComponent 82 | 17 83 | WRect 84 | 524 85 | 497 86 | 5638 87 | 4174 88 | 0 89 | 0 90 | 18 91 | WFileName 92 | 12 93 | pngvalid.tgt 94 | 0 95 | 1 96 | 19 97 | VComponent 98 | 20 99 | WRect 100 | 2054 101 | 2701 102 | 5674 103 | 4232 104 | 0 105 | 0 106 | 21 107 | WFileName 108 | 12 109 | pngstest.tgt 110 | 0 111 | 1 112 | 19 113 | -------------------------------------------------------------------------------- /libpng/projects/owatcom/pngtest.tgt: -------------------------------------------------------------------------------- 1 | 40 2 | targetIdent 3 | 0 4 | MProject 5 | 1 6 | MComponent 7 | 0 8 | 2 9 | WString 10 | 4 11 | NEXE 12 | 3 13 | WString 14 | 5 15 | nc2en 16 | 1 17 | 0 18 | 0 19 | 4 20 | MCommand 21 | 0 22 | 5 23 | MCommand 24 | 34 25 | cd ..\.. 26 | projects\owatcom\pngtest 27 | 6 28 | MItem 29 | 11 30 | pngtest.exe 31 | 7 32 | WString 33 | 4 34 | NEXE 35 | 8 36 | WVList 37 | 4 38 | 9 39 | MVState 40 | 10 41 | WString 42 | 7 43 | WINLINK 44 | 11 45 | WString 46 | 28 47 | ?????Library directories(;): 48 | 1 49 | 12 50 | WString 51 | 8 52 | $(%zlib) 53 | 0 54 | 13 55 | MVState 56 | 14 57 | WString 58 | 7 59 | WINLINK 60 | 15 61 | WString 62 | 18 63 | ?????Libraries(,): 64 | 1 65 | 16 66 | WString 67 | 19 68 | libpng.lib zlib.lib 69 | 0 70 | 17 71 | MVState 72 | 18 73 | WString 74 | 7 75 | WINLINK 76 | 19 77 | WString 78 | 28 79 | ?????Library directories(;): 80 | 0 81 | 20 82 | WString 83 | 8 84 | $(%zlib) 85 | 0 86 | 21 87 | MVState 88 | 22 89 | WString 90 | 7 91 | WINLINK 92 | 23 93 | WString 94 | 18 95 | ?????Libraries(,): 96 | 0 97 | 24 98 | WString 99 | 19 100 | libpng.lib zlib.lib 101 | 0 102 | 25 103 | WVList 104 | 0 105 | -1 106 | 1 107 | 1 108 | 0 109 | 26 110 | WPickList 111 | 2 112 | 27 113 | MItem 114 | 3 115 | *.c 116 | 28 117 | WString 118 | 4 119 | COBJ 120 | 29 121 | WVList 122 | 2 123 | 30 124 | MVState 125 | 31 126 | WString 127 | 3 128 | WCC 129 | 32 130 | WString 131 | 25 132 | n????Include directories: 133 | 1 134 | 33 135 | WString 136 | 39 137 | "$(%zlib);$(%watcom)/h;$(%watcom)/h/nt" 138 | 0 139 | 34 140 | MVState 141 | 35 142 | WString 143 | 3 144 | WCC 145 | 36 146 | WString 147 | 25 148 | n????Include directories: 149 | 0 150 | 37 151 | WString 152 | 39 153 | "$(%zlib);$(%watcom)/h;$(%watcom)/h/nt" 154 | 0 155 | 38 156 | WVList 157 | 0 158 | -1 159 | 1 160 | 1 161 | 0 162 | 39 163 | MItem 164 | 15 165 | ..\..\pngtest.c 166 | 40 167 | WString 168 | 4 169 | COBJ 170 | 41 171 | WVList 172 | 0 173 | 42 174 | WVList 175 | 0 176 | 27 177 | 1 178 | 1 179 | 0 180 | -------------------------------------------------------------------------------- /libpng/projects/visualc71/PRJ0041.mak: -------------------------------------------------------------------------------- 1 | # Prevent "Cannot find missing dependency..." warnings while compiling 2 | # pngwin.rc (PRJ0041). 3 | 4 | all: $(IntDir)\alloc.h \ 5 | $(IntDir)\fp.h \ 6 | $(IntDir)\m68881.h \ 7 | $(IntDir)\mem.h \ 8 | $(IntDir)\pngusr.h \ 9 | $(IntDir)\strings.h \ 10 | $(IntDir)\unistd.h \ 11 | $(IntDir)\unixio.h 12 | 13 | $(IntDir)\alloc.h \ 14 | $(IntDir)\fp.h \ 15 | $(IntDir)\m68881.h \ 16 | $(IntDir)\mem.h \ 17 | $(IntDir)\pngusr.h \ 18 | $(IntDir)\strings.h \ 19 | $(IntDir)\unistd.h \ 20 | $(IntDir)\unixio.h: 21 | @!echo.>$@ 22 | -------------------------------------------------------------------------------- /libpng/projects/visualc71/README_zlib.txt: -------------------------------------------------------------------------------- 1 | /* WARNING: This file was put in the LibPNG distribution for convenience only. 2 | It is expected to be part of the next zlib release under 3 | "projects\visualc71\README.txt." */ 4 | 5 | Microsoft Developer Studio Project File, Format Version 7.10 for zlib. 6 | 7 | Copyright (C) 2004 Simon-Pierre Cadieux. 8 | Copyright (C) 2004 Cosmin Truta. 9 | 10 | This code is released under the libpng license. 11 | For conditions of distribution and use, see copyright notice in zlib.h. 12 | 13 | NOTE: This project will be removed from libpng-1.5.0. It has 14 | been replaced with the "vstudio" project. 15 | 16 | To use: 17 | 18 | 1) On the main menu, select "File | Open Solution". 19 | Open "zlib.sln". 20 | 21 | 2) Display the Solution Explorer view (Ctrl+Alt+L) 22 | 23 | 3) Set one of the project as the StartUp project. If you just want to build the 24 | binaries set "zlib" as the startup project (Select "zlib" tree view item + 25 | Project | Set as StartUp project). If you want to build and test the 26 | binaries set it to "example" (Select "example" tree view item + Project | 27 | Set as StartUp project), If you want to build the minigzip utility set it to 28 | "minigzip" (Select "minigzip" tree view item + Project | Set as StartUp 29 | project 30 | 31 | 4) Select "Build | Configuration Manager...". 32 | Choose the configuration you wish to build. 33 | 34 | 5) Select "Build | Clean Solution". 35 | 36 | 6) Select "Build | Build Solution (Ctrl-Shift-B)" 37 | 38 | This project builds the zlib binaries as follows: 39 | 40 | * Win32_DLL_Release\zlib1.dll DLL build 41 | * Win32_DLL_Debug\zlib1d.dll DLL build (debug version) 42 | * Win32_LIB_Release\zlib.lib static build 43 | * Win32_LIB_Debug\zlibd.lib static build (debug version) 44 | 45 | -------------------------------------------------------------------------------- /libpng/scripts/SCOPTIONS.ppc: -------------------------------------------------------------------------------- 1 | OPTIMIZE 2 | OPTPEEP 3 | OPTTIME 4 | OPTSCHED 5 | AUTOREGISTER 6 | PARMS=REGISTERS 7 | INCLUDEDIR=hlp:ppc/include 8 | -------------------------------------------------------------------------------- /libpng/scripts/autoconf/README.md: -------------------------------------------------------------------------------- 1 | Autoconf Macro Files for the PNG Reference Library 2 | ================================================== 3 | 4 | The Autoconf files associated with libpng are free software. 5 | Use, modification and distribution of each individual file 6 | are subject to the specific licensing terms and conditions 7 | stated at the top of the file. 8 | -------------------------------------------------------------------------------- /libpng/scripts/autoconf/ltversion.m4: -------------------------------------------------------------------------------- 1 | # ltversion.m4 -- version numbers -*- Autoconf -*- 2 | # 3 | # Copyright (C) 2004, 2011-2019, 2021-2022 Free Software Foundation, 4 | # Inc. 5 | # Written by Scott James Remnant, 2004 6 | # 7 | # This file is free software; the Free Software Foundation gives 8 | # unlimited permission to copy and/or distribute it, with or without 9 | # modifications, as long as this notice is preserved. 10 | 11 | # @configure_input@ 12 | 13 | # serial 4245 ltversion.m4 14 | # This file is part of GNU Libtool 15 | 16 | m4_define([LT_PACKAGE_VERSION], [2.4.7]) 17 | m4_define([LT_PACKAGE_REVISION], [2.4.7]) 18 | 19 | AC_DEFUN([LTVERSION_VERSION], 20 | [macro_version='2.4.7' 21 | macro_revision='2.4.7' 22 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 23 | _LT_DECL(, macro_revision, 0) 24 | ]) 25 | -------------------------------------------------------------------------------- /libpng/scripts/cmake/AUTHORS.md: -------------------------------------------------------------------------------- 1 | CMake Files, Lists and Scripts for the PNG Reference Library 2 | ============================================================ 3 | 4 | Author List 5 | ----------- 6 | 7 | * Alex Gaynor 8 | * Alexey Petruchik 9 | * Andreas Franek 10 | * Andrew Hundt 11 | * B. Scott Michel 12 | * Benjamin Buch 13 | * Bernd Kuhls 14 | * Cameron Cawley 15 | * Christian Ehrlicher 16 | * Christopher Sean Morrison 17 | * Claudio Bley 18 | * Clifford Yapp 19 | * Clinton Ingram 20 | * Cosmin Truta 21 | * Dan Rosser 22 | * David Callu 23 | * Eric Riff 24 | * Erik Scholz 25 | * Gianfranco Costamagna 26 | * Gleb Mazovetskiy 27 | * Glenn Randers-Pehrson 28 | * Gunther Nikl 29 | * Jeremy Maitin-Shepard 30 | * John Bowler 31 | * Jon Creighton 32 | * Kyle Bentley 33 | * Martin Storsjö 34 | * Owen Rudge 35 | * Philip Lowman 36 | * Roger Leigh 37 | * Roger Lowman 38 | * Sam Serrels 39 | * Simon Hausmann 40 | * Steve Robinson 41 | * Timothy Lyanguzov 42 | * Tyler Kropp 43 | * Vadim Barkov 44 | * Vicky Pfau 45 | -------------------------------------------------------------------------------- /libpng/scripts/cmake/PNGConfig.cmake: -------------------------------------------------------------------------------- 1 | include(CMakeFindDependencyMacro) 2 | 3 | find_dependency(ZLIB REQUIRED) 4 | 5 | include("${CMAKE_CURRENT_LIST_DIR}/PNGTargets.cmake") 6 | 7 | if(NOT TARGET PNG::PNG) 8 | if(TARGET PNG::png_shared) 9 | add_library(PNG::PNG INTERFACE IMPORTED) 10 | target_link_libraries(PNG::PNG INTERFACE PNG::png_shared) 11 | elseif(TARGET PNG::png_static) 12 | add_library(PNG::PNG INTERFACE IMPORTED) 13 | target_link_libraries(PNG::PNG INTERFACE PNG::png_static) 14 | endif() 15 | endif() 16 | -------------------------------------------------------------------------------- /libpng/scripts/cmake/README.md: -------------------------------------------------------------------------------- 1 | CMake Files, Lists and Scripts for the PNG Reference Library 2 | ============================================================ 3 | 4 | Copyright Notice 5 | ---------------- 6 | 7 | * Copyright (c) 2018-2024 Cosmin Truta. 8 | * Copyright (c) 2007-2018 Glenn Randers-Pehrson. 9 | * Originally written by Christian Ehrlicher, 2007. 10 | 11 | Use, modification and distribution of the CMake 12 | files in the libpng distribution are subject to 13 | the same licensing terms and conditions as libpng. 14 | Please see the copyright notice in `png.h` or visit 15 | http://libpng.org/pub/png/src/libpng-LICENSE.txt 16 | 17 | File List 18 | --------- 19 | 20 | CMakeLists.txt ==> The main CMake lists file 21 | scripts/cmake/AUTHORS.md ==> The Authors file 22 | scripts/cmake/README.md ==> This file 23 | scripts/cmake/PNGConfig.cmake ==> Config file for FindPNG 24 | scripts/cmake/genchk.cmake.in ==> Template for genchk.cmake 25 | scripts/cmake/genout.cmake.in ==> Template for genout.cmake 26 | scripts/cmake/gensrc.cmake.in ==> Template for gensrc.cmake 27 | scripts/cmake/test.cmake.in ==> Template for test.cmake 28 | 29 | Acknowledgements 30 | ---------------- 31 | 32 | See the accompanying file `scripts/cmake/AUTHORS.md` 33 | for the list of Contributing Authors. 34 | 35 | If you are a Contributing Author, please make sure 36 | that you are being acknowledged. 37 | -------------------------------------------------------------------------------- /libpng/scripts/cmake/genchk.cmake.in: -------------------------------------------------------------------------------- 1 | # genchk.cmake.in 2 | # Generate .chk from .out with awk (generic), based upon the automake logic. 3 | 4 | # Copyright (c) 2022-2024 Cosmin Truta 5 | # Copyright (c) 2016 Glenn Randers-Pehrson 6 | # Written by Roger Leigh, 2016 7 | # 8 | # Use, modification and distribution are subject to 9 | # the same licensing terms and conditions as libpng. 10 | # Please see the copyright notice in png.h or visit 11 | # http://libpng.org/pub/png/src/libpng-LICENSE.txt 12 | # 13 | # SPDX-License-Identifier: libpng-2.0 14 | 15 | # Variables substituted from CMakeLists.txt 16 | set(SRCDIR "@CMAKE_CURRENT_SOURCE_DIR@") 17 | set(BINDIR "@CMAKE_CURRENT_BINARY_DIR@") 18 | 19 | set(AWK "@AWK@") 20 | 21 | get_filename_component(INPUTEXT "${INPUT}" EXT) 22 | get_filename_component(OUTPUTEXT "${OUTPUT}" EXT) 23 | get_filename_component(INPUTBASE "${INPUT}" NAME_WE) 24 | get_filename_component(OUTPUTBASE "${OUTPUT}" NAME_WE) 25 | get_filename_component(INPUTDIR "${INPUT}" PATH) 26 | get_filename_component(OUTPUTDIR "${OUTPUT}" PATH) 27 | 28 | if(INPUTEXT STREQUAL ".out" AND OUTPUTEXT STREQUAL ".chk") 29 | # Generate .chk from .out with awk (generic) 30 | file(REMOVE "${OUTPUT}" "${OUTPUTDIR}/${OUTPUTBASE}.new") 31 | execute_process(COMMAND "${AWK}" -f "${BINDIR}/scripts/checksym.awk" 32 | "${SRCDIR}/scripts/${INPUTBASE}.def" 33 | "of=${OUTPUTDIR}/${OUTPUTBASE}.new" 34 | "${INPUT}" 35 | RESULT_VARIABLE AWK_FAIL) 36 | if(AWK_FAIL) 37 | message(FATAL_ERROR "Failed to generate ${OUTPUTDIR}/${OUTPUTBASE}.new") 38 | endif() 39 | file(RENAME "${OUTPUTDIR}/${OUTPUTBASE}.new" "${OUTPUT}") 40 | else() 41 | message(FATAL_ERROR "Unsupported conversion: ${INPUTEXT} to ${OUTPUTEXT}") 42 | endif() 43 | -------------------------------------------------------------------------------- /libpng/scripts/cmake/test.cmake.in: -------------------------------------------------------------------------------- 1 | # test.cmake.in 2 | 3 | # Copyright (c) 2024 Cosmin Truta 4 | # Copyright (c) 2016 Glenn Randers-Pehrson 5 | # Written by Roger Leigh, 2016 6 | # 7 | # Use, modification and distribution are subject to 8 | # the same licensing terms and conditions as libpng. 9 | # Please see the copyright notice in png.h or visit 10 | # http://libpng.org/pub/png/src/libpng-LICENSE.txt 11 | # 12 | # SPDX-License-Identifier: libpng-2.0 13 | 14 | set(TEST_OPTIONS "@TEST_OPTIONS@") 15 | set(TEST_FILES "@TEST_FILES@") 16 | 17 | foreach(file ${TEST_FILES}) 18 | file(TO_NATIVE_PATH "${file}" native_file) 19 | list(APPEND NATIVE_TEST_FILES "${native_file}") 20 | endforeach() 21 | 22 | # Add the directory containing libpng to the PATH (Windows only) 23 | if(WIN32) 24 | get_filename_component(LIBPNG_DIR "${LIBPNG}" PATH) 25 | file(TO_NATIVE_PATH "${LIBPNG_DIR}" LIBPNG_DIR) 26 | set(ENV{PATH} "${LIBPNG_DIR};$ENV{PATH}") 27 | endif() 28 | 29 | message("Running ${TEST_COMMAND}" ${TEST_OPTIONS} ${NATIVE_TEST_FILES}) 30 | execute_process(COMMAND "${TEST_COMMAND}" ${TEST_OPTIONS} ${NATIVE_TEST_FILES} 31 | RESULT_VARIABLE TEST_STATUS) 32 | if(TEST_STATUS) 33 | message(FATAL_ERROR "Returned failed status ${TEST_STATUS}!") 34 | endif() 35 | -------------------------------------------------------------------------------- /libpng/scripts/intprefix.c: -------------------------------------------------------------------------------- 1 | 2 | /* intprefix.c - generate an unprefixed internal symbol list 3 | * 4 | * Copyright (c) 2013-2014 Glenn Randers-Pehrson 5 | * 6 | * This code is released under the libpng license. 7 | * For conditions of distribution and use, see the disclaimer 8 | * and license in png.h 9 | */ 10 | 11 | #define PNG_INTERNAL_DATA(type, name, array)\ 12 | PNG_DFN "@" name "@" 13 | 14 | #define PNG_INTERNAL_FUNCTION(type, name, args, attributes)\ 15 | PNG_DFN "@" name "@" 16 | 17 | #define PNG_INTERNAL_CALLBACK(type, name, args, attributes)\ 18 | PNG_DFN "@" name "@" 19 | 20 | #define PNGPREFIX_H /* self generation */ 21 | #include "../pngpriv.h" 22 | -------------------------------------------------------------------------------- /libpng/scripts/libpng-config-body.in: -------------------------------------------------------------------------------- 1 | 2 | usage() 3 | { 4 | cat < 54 | -------------------------------------------------------------------------------- /libpng/scripts/makefile.netbsd: -------------------------------------------------------------------------------- 1 | # makefile for libpng on NetBSD 2 | # Copyright (C) 2020-2022 Cosmin Truta 3 | # Copyright (C) 2007-2009, 2014 Glenn Randers-Pehrson 4 | # Copyright (C) 2002 Patrick R.L. Welche 5 | # 6 | # This code is released under the libpng license. 7 | # For conditions of distribution and use, see the disclaimer 8 | # and license in png.h 9 | 10 | SHLIB_MAJOR= 16 11 | SHLIB_MINOR= 0 12 | 13 | LIB= png 14 | SRCS= png.c pngerror.c pngget.c pngmem.c pngpread.c \ 15 | pngread.c pngrio.c pngrtran.c pngrutil.c pngset.c \ 16 | pngtrans.c pngwio.c pngwrite.c pngwtran.c pngwutil.c 17 | INCS= png.h pngconf.h pnglibconf.h 18 | 19 | CPPFLAGS+= -I${.CURDIR} 20 | CFLAGS+= -Wall -Wextra -Wundef 21 | 22 | CLEANFILES+= pngtest.o pngtest pnglibconf.h 23 | 24 | # Pre-built configuration 25 | # See scripts/pnglibconf.mak for more options 26 | PNGLIBCONF_H_PREBUILT= scripts/pnglibconf.h.prebuilt 27 | 28 | # We should be able to do something like this instead of the manual 29 | # uncommenting, but it core dumps for me at the moment: 30 | # .if ${MACHINE_ARCH} == "i386" 31 | # MKLINT= no 32 | # .endif 33 | 34 | .c.o: 35 | ${CC} -c ${CPPFLAGS} ${CFLAGS} -o $@ $< 36 | 37 | pnglibconf.h: ${PNGLIBCONF_H_PREBUILT} 38 | cp ${PNGLIBCONF_H_PREBUILT} $@ 39 | 40 | pngtest.o: pngtest.c 41 | ${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 42 | 43 | pngtest: pngtest.o libpng.a 44 | ${CC} ${LDFLAGS} ${.ALLSRC} -o ${.TARGET} -lz -lm 45 | 46 | test: pngtest 47 | ./pngtest 48 | 49 | install: 50 | @echo "The $@ target is no longer supported by this makefile." 51 | @false 52 | 53 | .include 54 | -------------------------------------------------------------------------------- /libpng/scripts/makefile.openbsd: -------------------------------------------------------------------------------- 1 | # makefile for libpng 2 | # Copyright (C) 2020-2022 Cosmin Truta 3 | # Copyright (C) 2007-2009, 2014 Glenn Randers-Pehrson 4 | # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. 5 | # 6 | # This code is released under the libpng license. 7 | # For conditions of distribution and use, see the disclaimer 8 | # and license in png.h 9 | 10 | SHLIB_MAJOR= 16 11 | SHLIB_MINOR= 0 12 | 13 | LIB= png 14 | SRCS= png.c pngerror.c pngget.c pngmem.c pngpread.c \ 15 | pngread.c pngrio.c pngrtran.c pngrutil.c pngset.c \ 16 | pngtrans.c pngwio.c pngwrite.c pngwtran.c pngwutil.c 17 | HDRS= png.h pngconf.h pnglibconf.h 18 | 19 | CPPFLAGS+= -I${.CURDIR} 20 | CFLAGS+= -Wall -Wextra -Wundef 21 | 22 | CLEANFILES+= pngtest.o pngtest pnglibconf.h 23 | 24 | # Pre-built configuration 25 | # See scripts/pnglibconf.mak for more options 26 | PNGLIBCONF_H_PREBUILT= scripts/pnglibconf.h.prebuilt 27 | 28 | .c.o: 29 | ${CC} -c ${CPPFLAGS} ${CFLAGS} -o $@ $< 30 | 31 | pnglibconf.h: ${PNGLIBCONF_H_PREBUILT} 32 | cp ${PNGLIBCONF_H_PREBUILT} $@ 33 | 34 | pngtest.o: pngtest.c 35 | ${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 36 | 37 | pngtest: pngtest.o 38 | ${CC} ${LDFLAGS} ${.ALLSRC} -o ${.TARGET} -L${.OBJDIR} -lpng -lz -lm 39 | 40 | test: pngtest 41 | env LD_LIBRARY_PATH="${.OBJDIR}" ./pngtest 42 | 43 | install: 44 | @echo "The $@ target is no longer supported by this makefile." 45 | @false 46 | 47 | .include 48 | -------------------------------------------------------------------------------- /libpng/scripts/makefile.riscos: -------------------------------------------------------------------------------- 1 | # Project: libpng 2 | 3 | # Copyright (C) 2020 Cameron Cawley 4 | # Copyright (C) 1997 Tom Tanner 5 | 6 | # Toolflags: 7 | CCflags = -c -depend !Depend -IC:,C:zlib -g -throwback -DRISCOS -fnah -wz 8 | Linkflags = -aif -o $@ 9 | LibFileflags = -c -l -o $@ 10 | 11 | # Final targets: 12 | @.libpng-lib: @.o.png @.o.pngerror @.o.pngrio @.o.pngwio @.o.pngmem \ 13 | @.o.pngpread @.o.pngset @.o.pngget @.o.pngread @.o.pngrtran \ 14 | @.o.pngrutil @.o.pngtrans @.o.pngwrite @.o.pngwtran @.o.pngwutil 15 | LibFile $(LibFileflags) @.o.png @.o.pngerror @.o.pngrio @.o.pngrtran \ 16 | @.o.pngmem @.o.pngpread @.o.pngset @.o.pngget @.o.pngread @.o.pngwio \ 17 | @.o.pngrutil @.o.pngtrans @.o.pngwrite @.o.pngwtran @.o.pngwutil 18 | @.mm-libpng-lib: @.mm.png @.mm.pngerror @.mm.pngrio @.mm.pngwio @.mm.pngmem \ 19 | @.mm.pngpread @.mm.pngset @.mm.pngget @.mm.pngread @.mm.pngrtran \ 20 | @.mm.pngrutil @.mm.pngtrans @.mm.pngwrite @.mm.pngwtran @.mm.pngwutil 21 | LibFile $(LibFileflags) @.mm.png @.mm.pngerror @.mm.pngrio \ 22 | @.mm.pngwio @.mm.pngmem @.mm.pngpread @.mm.pngset @.mm.pngget \ 23 | @.mm.pngread @.mm.pngrtran @.mm.pngrutil @.mm.pngtrans @.mm.pngwrite \ 24 | @.mm.pngwtran @.mm.pngwutil 25 | 26 | 27 | # User-editable dependencies: 28 | Test: @.pngtest 29 | Run @.pngtest 30 | @Remove @.pngtest 31 | 32 | #It would be nice if you could stop "make" listing from here on! 33 | @.pngtest: @.o.pngtest @.libpng-lib C:o.Stubs C:zlib.o.zlib 34 | Link $(Linkflags) @.o.pngtest @.libpng-lib C:o.Stubs C:zlib.o.zlib 35 | 36 | .SUFFIXES: .o .mm .c 37 | 38 | .c.mm: 39 | MemCheck.CC cc $(ccflags) -o $@ LibPng:$< 40 | .c.o: 41 | cc $(ccflags) -o $@ $< 42 | 43 | # See scripts.pnglibconf/mak for how to generate this: 44 | @.h.pnglibconf: @.scripts.pnglibconf/h/prebuilt 45 | Copy @.scripts.pnglibconf/h/prebuilt $@ ~CF~V 46 | 47 | # Static dependencies: 48 | @.o.png @.o.pngerror @.o.pngrio @.o.pngwio @.o.pngmem \ 49 | @.o.pngpread @.o.pngset @.o.pngget @.o.pngread @.o.pngrtran \ 50 | @.o.pngrutil @.o.pngtrans @.o.pngwrite @.o.pngwtran @.o.pngwutil \ 51 | @.o.pngtest: @.h.pnglibconf 52 | 53 | 54 | # Dynamic dependencies: 55 | -------------------------------------------------------------------------------- /libpng/scripts/prefix.c: -------------------------------------------------------------------------------- 1 | 2 | /* prefix.c - generate an unprefixed symbol list 3 | * 4 | * Copyright (c) 2013-2014 Glenn Randers-Pehrson 5 | * 6 | * This code is released under the libpng license. 7 | * For conditions of distribution and use, see the disclaimer 8 | * and license in png.h 9 | */ 10 | 11 | #define PNG_EXPORTA(ordinal, type, name, args, attributes)\ 12 | PNG_DFN "@" name "@" 13 | 14 | /* The configuration information *before* the additional of symbol renames, 15 | * the list is the C name list; no symbol prefix. 16 | */ 17 | #include "pnglibconf.out" 18 | 19 | PNG_DFN_START_SORT 1 20 | 21 | #include "../png.h" 22 | 23 | PNG_DFN_END_SORT 24 | -------------------------------------------------------------------------------- /libpng/scripts/smakefile.ppc: -------------------------------------------------------------------------------- 1 | # Amiga powerUP (TM) Makefile 2 | # makefile for libpng and SAS C V6.58/7.00 PPC compiler 3 | # Copyright (C) 1998 by Andreas R. Kleinert 4 | # 5 | # This code is released under the libpng license. 6 | # For conditions of distribution and use, see the disclaimer 7 | # and license in png.h 8 | 9 | CC = scppc 10 | CFLAGS = NOSTKCHK NOSINT OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL IDIR /zlib \ 11 | OPTLOOP OPTRDEP=8 OPTDEP=8 OPTCOMP=8 12 | LIBNAME = libpng.a 13 | AR = ppc-amigaos-ar 14 | ARFLAGS = cr 15 | RANLIB = ppc-amigaos-ranlib 16 | LDFLAGS = -r -o 17 | LDLIBS = ../zlib/libzip.a LIB:scppc.a 18 | LN = ppc-amigaos-ld 19 | RM = delete quiet 20 | 21 | OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 22 | pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 23 | pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 24 | 25 | all: $(LIBNAME) pngtest 26 | 27 | $(LIBNAME): $(OBJS) 28 | $(AR) $(ARFLAGS) $@ $(OBJS) 29 | $(RANLIB) $@ 30 | 31 | pngtest: pngtest.o $(LIBNAME) 32 | $(LN) $(LDFLAGS) pngtest LIB:c_ppc.o pngtest.o $(LIBNAME) $(LDLIBS) \ 33 | LIB:end.o 34 | -------------------------------------------------------------------------------- /libpng/scripts/sym.c: -------------------------------------------------------------------------------- 1 | 2 | /* sym.c - define format of libpng.sym 3 | * 4 | * Copyright (c) 2011-2014 Glenn Randers-Pehrson 5 | * 6 | * This code is released under the libpng license. 7 | * For conditions of distribution and use, see the disclaimer 8 | * and license in png.h 9 | */ 10 | 11 | #define PNG_EXPORTA(ordinal, type, name, args, attributes)\ 12 | PNG_DFN "@" SYMBOL_PREFIX "@@" name "@" 13 | 14 | #include "../png.h" 15 | -------------------------------------------------------------------------------- /libpng/scripts/symbols.c: -------------------------------------------------------------------------------- 1 | 2 | /* symbols.c - find all exported symbols 3 | * 4 | * Copyright (c) 2011-2014 Glenn Randers-Pehrson 5 | * 6 | * This code is released under the libpng license. 7 | * For conditions of distribution and use, see the disclaimer 8 | * and license in png.h 9 | */ 10 | 11 | /* NOTE: making 'symbols.chk' checks both that the exported 12 | * symbols in the library don't change and (implicitly) that 13 | * scripts/pnglibconf.h.prebuilt is as expected. 14 | * If scripts/pnglibconf.h.prebuilt is remade using 15 | * scripts/pnglibconf.dfa then this checks the .dfa file too. 16 | */ 17 | 18 | #define PNG_EXPORTA(ordinal, type, name, args, attributes)\ 19 | PNG_DFN "@" name "@ @@" ordinal "@" 20 | #define PNG_REMOVED(ordinal, type, name, args, attributes)\ 21 | PNG_DFN "; @" name "@ @@" ordinal "@" 22 | #define PNG_EXPORT_LAST_ORDINAL(ordinal)\ 23 | PNG_DFN "; @@" ordinal "@" 24 | 25 | /* Read the defaults, but use scripts/pnglibconf.h.prebuilt; the 'standard' 26 | * header file. 27 | */ 28 | #include "pnglibconf.h.prebuilt" 29 | #include "../png.h" 30 | 31 | /* Some things are turned off by default. Turn these things 32 | * on here (by hand) to get the APIs they expose and validate 33 | * that no harm is done. This list is the set of options 34 | * defaulted to 'off' in scripts/pnglibconf.dfa 35 | * 36 | * Maintenance: if scripts/pnglibconf.dfa options are changed 37 | * from, or to, 'disabled' this needs updating! 38 | */ 39 | #define PNG_BENIGN_ERRORS_SUPPORTED 40 | #define PNG_ERROR_NUMBERS_SUPPORTED 41 | #define PNG_READ_BIG_ENDIAN_SUPPORTED /* should do nothing! */ 42 | #define PNG_INCH_CONVERSIONS_SUPPORTED 43 | #define PNG_READ_16_TO_8_ACCURATE_SCALE_SUPPORTED 44 | #define PNG_SET_OPTION_SUPPORTED 45 | 46 | #undef PNG_H 47 | #include "../png.h" 48 | 49 | /* Finally there are a couple of places where option support 50 | * actually changes the APIs revealed using a #if/#else/#endif 51 | * test in png.h, test these here. 52 | */ 53 | #undef PNG_FLOATING_POINT_SUPPORTED /* Exposes 'fixed' APIs */ 54 | #undef PNG_ERROR_TEXT_SUPPORTED /* Exposes unsupported APIs */ 55 | 56 | #undef PNG_H 57 | #include "../png.h" 58 | -------------------------------------------------------------------------------- /libpng/scripts/vers.c: -------------------------------------------------------------------------------- 1 | 2 | /* vers.c - define format of libpng.vers 3 | * 4 | * Copyright (c) 2011-2014 Glenn Randers-Pehrson 5 | * 6 | * This code is released under the libpng license. 7 | * For conditions of distribution and use, see the disclaimer 8 | * and license in png.h 9 | */ 10 | 11 | #define PNG_EXPORTA(ordinal, type, name, args, attributes)\ 12 | PNG_DFN " @" SYMBOL_PREFIX "@@" name "@;" 13 | 14 | PNG_DFN "@" PNGLIB_LIBNAME "@ {global:" 15 | 16 | #include "../png.h" 17 | 18 | PNG_DFN "local: *; };" 19 | -------------------------------------------------------------------------------- /libpng/tests/pngimage-full: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec ./pngimage --exhaustive --list-combos --log "${srcdir}/contrib/pngsuite/"*.png 3 | -------------------------------------------------------------------------------- /libpng/tests/pngimage-quick: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec ./pngimage --list-combos --log "${srcdir}/contrib/pngsuite/"*.png 3 | -------------------------------------------------------------------------------- /libpng/tests/pngstest-1.8: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec "${srcdir}/tests/pngstest" 1.8 none 3 | -------------------------------------------------------------------------------- /libpng/tests/pngstest-1.8-alpha: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec "${srcdir}/tests/pngstest" 1.8 alpha 3 | -------------------------------------------------------------------------------- /libpng/tests/pngstest-linear: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec "${srcdir}/tests/pngstest" linear none 3 | -------------------------------------------------------------------------------- /libpng/tests/pngstest-linear-alpha: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec "${srcdir}/tests/pngstest" linear alpha 3 | -------------------------------------------------------------------------------- /libpng/tests/pngstest-none: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec "${srcdir}/tests/pngstest" none none 3 | -------------------------------------------------------------------------------- /libpng/tests/pngstest-none-alpha: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec "${srcdir}/tests/pngstest" none alpha 3 | -------------------------------------------------------------------------------- /libpng/tests/pngstest-sRGB: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec "${srcdir}/tests/pngstest" sRGB none 3 | -------------------------------------------------------------------------------- /libpng/tests/pngstest-sRGB-alpha: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec "${srcdir}/tests/pngstest" sRGB alpha 3 | -------------------------------------------------------------------------------- /libpng/tests/pngunknown-IDAT: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec ./pngunknown --strict default=discard IDAT=save "${srcdir}/pngtest.png" 3 | -------------------------------------------------------------------------------- /libpng/tests/pngunknown-discard: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec ./pngunknown --strict default=discard "${srcdir}/pngtest.png" 3 | -------------------------------------------------------------------------------- /libpng/tests/pngunknown-if-safe: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec ./pngunknown --strict default=if-safe "${srcdir}/pngtest.png" 3 | -------------------------------------------------------------------------------- /libpng/tests/pngunknown-sAPI: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec ./pngunknown --strict bKGD=save cHRM=save gAMA=save all=discard iCCP=save sBIT=save sRGB=save eXIf=save "${srcdir}/pngtest.png" 3 | -------------------------------------------------------------------------------- /libpng/tests/pngunknown-sTER: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec ./pngunknown --strict sTER=if-safe "${srcdir}/pngtest.png" 3 | -------------------------------------------------------------------------------- /libpng/tests/pngunknown-save: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec ./pngunknown --strict default=save "${srcdir}/pngtest.png" 3 | -------------------------------------------------------------------------------- /libpng/tests/pngunknown-vpAg: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec ./pngunknown --strict vpAg=if-safe "${srcdir}/pngtest.png" 3 | -------------------------------------------------------------------------------- /libpng/tests/pngvalid-gamma-16-to-8: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec ./pngvalid --strict --gamma-16-to-8 3 | -------------------------------------------------------------------------------- /libpng/tests/pngvalid-gamma-alpha-mode: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec ./pngvalid --strict --gamma-alpha-mode 3 | -------------------------------------------------------------------------------- /libpng/tests/pngvalid-gamma-background: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec ./pngvalid --strict --gamma-background 3 | -------------------------------------------------------------------------------- /libpng/tests/pngvalid-gamma-expand16-alpha-mode: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec ./pngvalid --strict --gamma-alpha-mode --expand16 3 | -------------------------------------------------------------------------------- /libpng/tests/pngvalid-gamma-expand16-background: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec ./pngvalid --strict --gamma-background --expand16 3 | -------------------------------------------------------------------------------- /libpng/tests/pngvalid-gamma-expand16-transform: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec ./pngvalid --strict --gamma-transform --expand16 3 | -------------------------------------------------------------------------------- /libpng/tests/pngvalid-gamma-sbit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec ./pngvalid --strict --gamma-sbit 3 | -------------------------------------------------------------------------------- /libpng/tests/pngvalid-gamma-threshold: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec ./pngvalid --strict --gamma-threshold 3 | -------------------------------------------------------------------------------- /libpng/tests/pngvalid-gamma-transform: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec ./pngvalid --strict --gamma-transform 3 | -------------------------------------------------------------------------------- /libpng/tests/pngvalid-progressive-interlace-standard: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec ./pngvalid --strict --standard --progressive-read --interlace 3 | -------------------------------------------------------------------------------- /libpng/tests/pngvalid-progressive-size: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec ./pngvalid --strict --size --progressive-read 3 | -------------------------------------------------------------------------------- /libpng/tests/pngvalid-progressive-standard: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec ./pngvalid --strict --standard --progressive-read 3 | -------------------------------------------------------------------------------- /libpng/tests/pngvalid-standard: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec ./pngvalid --strict --standard 3 | -------------------------------------------------------------------------------- /libpng/tests/pngvalid-transform: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec ./pngvalid --strict --transform 3 | --------------------------------------------------------------------------------