├── .gitignore ├── ChangeLog ├── LICENSE ├── Makefile ├── README ├── VERSION ├── bpgdec.c ├── bpgenc.c ├── bpgenc.h ├── bpgview.c ├── config.h ├── doc └── bpg_spec.txt ├── html ├── bpgdec.js ├── bpgdec8.js ├── bpgdec8a.js ├── clock.bpg ├── index.html └── lena512color.bpg ├── jctvc ├── Makefile ├── TAppEncCfg.cpp ├── TAppEncCfg.h ├── TAppEncTop.cpp ├── TAppEncTop.h ├── TLibCommon │ ├── AccessUnit.h │ ├── CommonDef.h │ ├── ContextModel.cpp │ ├── ContextModel.h │ ├── ContextModel3DBuffer.cpp │ ├── ContextModel3DBuffer.h │ ├── ContextTables.h │ ├── Debug.cpp │ ├── Debug.h │ ├── NAL.h │ ├── SEI.cpp │ ├── SEI.h │ ├── TComBitCounter.h │ ├── TComBitStream.cpp │ ├── TComBitStream.h │ ├── TComCABACTables.cpp │ ├── TComCABACTables.h │ ├── TComChromaFormat.cpp │ ├── TComChromaFormat.h │ ├── TComCodingStatistics.h │ ├── TComDataCU.cpp │ ├── TComDataCU.h │ ├── TComInterpolationFilter.cpp │ ├── TComInterpolationFilter.h │ ├── TComList.h │ ├── TComLoopFilter.cpp │ ├── TComLoopFilter.h │ ├── TComMotionInfo.cpp │ ├── TComMotionInfo.h │ ├── TComMv.h │ ├── TComPattern.cpp │ ├── TComPattern.h │ ├── TComPic.cpp │ ├── TComPic.h │ ├── TComPicSym.cpp │ ├── TComPicSym.h │ ├── TComPicYuv.cpp │ ├── TComPicYuv.h │ ├── TComPicYuvMD5.cpp │ ├── TComPrediction.cpp │ ├── TComPrediction.h │ ├── TComRdCost.cpp │ ├── TComRdCost.h │ ├── TComRdCostWeightPrediction.cpp │ ├── TComRdCostWeightPrediction.h │ ├── TComRectangle.h │ ├── TComRom.cpp │ ├── TComRom.h │ ├── TComSampleAdaptiveOffset.cpp │ ├── TComSampleAdaptiveOffset.h │ ├── TComSlice.cpp │ ├── TComSlice.h │ ├── TComTU.cpp │ ├── TComTU.h │ ├── TComTrQuant.cpp │ ├── TComTrQuant.h │ ├── TComWeightPrediction.cpp │ ├── TComWeightPrediction.h │ ├── TComYuv.cpp │ ├── TComYuv.h │ └── TypeDef.h ├── TLibEncoder │ ├── AnnexBwrite.h │ ├── NALwrite.cpp │ ├── NALwrite.h │ ├── SEIwrite.cpp │ ├── SEIwrite.h │ ├── SyntaxElementWriter.cpp │ ├── SyntaxElementWriter.h │ ├── TEncAnalyze.cpp │ ├── TEncAnalyze.h │ ├── TEncBinCoder.h │ ├── TEncBinCoderCABAC.cpp │ ├── TEncBinCoderCABAC.h │ ├── TEncBinCoderCABACCounter.cpp │ ├── TEncBinCoderCABACCounter.h │ ├── TEncCavlc.cpp │ ├── TEncCavlc.h │ ├── TEncCfg.h │ ├── TEncCu.cpp │ ├── TEncCu.h │ ├── TEncEntropy.cpp │ ├── TEncEntropy.h │ ├── TEncGOP.cpp │ ├── TEncGOP.h │ ├── TEncPic.cpp │ ├── TEncPic.h │ ├── TEncPreanalyzer.cpp │ ├── TEncPreanalyzer.h │ ├── TEncRateCtrl.cpp │ ├── TEncRateCtrl.h │ ├── TEncSampleAdaptiveOffset.cpp │ ├── TEncSampleAdaptiveOffset.h │ ├── TEncSbac.cpp │ ├── TEncSbac.h │ ├── TEncSearch.cpp │ ├── TEncSearch.h │ ├── TEncSlice.cpp │ ├── TEncSlice.h │ ├── TEncTop.cpp │ ├── TEncTop.h │ ├── WeightPredAnalysis.cpp │ └── WeightPredAnalysis.h ├── TLibVideoIO │ ├── TVideoIOYuv.cpp │ └── TVideoIOYuv.h ├── encmain.cpp ├── encoder_intra_main.cfg ├── libmd5 │ ├── MD5.h │ ├── libmd5.c │ └── libmd5.h ├── program_options_lite.cpp └── program_options_lite.h ├── jctvc_glue.cpp ├── libavcodec ├── avcodec.h ├── bit_depth_template.c ├── bswapdsp.h ├── bytestream.h ├── cabac.c ├── cabac.h ├── cabac_functions.h ├── cabac_tablegen.h ├── get_bits.h ├── golomb.c ├── golomb.h ├── hevc.c ├── hevc.h ├── hevc_cabac.c ├── hevc_filter.c ├── hevc_mvs.c ├── hevc_ps.c ├── hevc_refs.c ├── hevc_sei.c ├── hevcdsp.c ├── hevcdsp.h ├── hevcdsp_template.c ├── hevcpred.c ├── hevcpred.h ├── hevcpred_template.c ├── internal.h ├── mathops.h ├── old_codec_ids.h ├── put_bits.h ├── rnd_avg.h ├── thread.h ├── utils.c ├── version.h ├── videodsp.c ├── videodsp.h └── videodsp_template.c ├── libavutil ├── adler32.h ├── aes.h ├── atomic.h ├── atomic_gcc.h ├── atomic_suncc.h ├── atomic_win32.h ├── attributes.h ├── audio_fifo.h ├── audioconvert.h ├── avassert.h ├── avconfig.h ├── avstring.h ├── avutil.h ├── base64.h ├── blowfish.h ├── bprint.h ├── bswap.h ├── buffer.c ├── buffer.h ├── buffer_internal.h ├── cast5.h ├── channel_layout.h ├── colorspace.h ├── common.h ├── cpu.h ├── cpu_internal.h ├── crc.h ├── des.h ├── dict.h ├── display.h ├── downmix_info.h ├── dynarray.h ├── error.h ├── eval.h ├── ffversion.h ├── fifo.h ├── file.h ├── fixed_dsp.h ├── float_dsp.h ├── frame.c ├── frame.h ├── hash.h ├── hmac.h ├── imgutils.h ├── integer.h ├── internal.h ├── intfloat.h ├── intmath.h ├── intreadwrite.h ├── lfg.h ├── libm.h ├── lls.h ├── log.h ├── log2_tab.c ├── lzo.h ├── macros.h ├── mathematics.h ├── md5.c ├── md5.h ├── mem.c ├── mem.h ├── motion_vector.h ├── murmur3.h ├── old_pix_fmts.h ├── opencl.h ├── opencl_internal.h ├── opt.h ├── parseutils.h ├── pca.h ├── pixdesc.c ├── pixdesc.h ├── pixelutils.h ├── pixfmt.h ├── qsort.h ├── random_seed.h ├── rational.h ├── rc4.h ├── replaygain.h ├── ripemd.h ├── samplefmt.h ├── sha.h ├── sha512.h ├── softfloat.h ├── stereo3d.h ├── threadmessage.h ├── time.h ├── time_internal.h ├── timecode.h ├── timer.h ├── timestamp.h ├── tree.h ├── version.h ├── x86_cpu.h ├── xga_font_data.h └── xtea.h ├── libbpg demo ├── AppDelegate.h ├── AppDelegate.m ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard ├── Images.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Info.plist ├── ViewController.h ├── ViewController.m ├── main.m ├── test.bpg └── test.png ├── libbpg demoTests ├── Info.plist └── libbpg_demoTests.m ├── libbpg.c ├── libbpg.h ├── libbpg.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata ├── libbpgdec_ios ├── Info.plist └── libbpgdec_ios.h ├── libbpgdec_iosTests ├── Info.plist └── libbpgdec_iosTests.m ├── libbpgenc_ios ├── libbpgenc_ios.h └── libbpgenc_ios.m ├── libbpgenc_iosTests └── Info.plist ├── libjpeg ├── include │ ├── jconfig.h │ ├── jerror.h │ ├── jmorecfg.h │ └── jpeglib.h └── lib │ └── libjpeg.a ├── libpng ├── ANNOUNCE ├── CHANGES ├── CMakeLists.txt ├── INSTALL ├── LICENSE ├── Makefile.am ├── Makefile.in ├── README ├── TODO ├── aclocal.m4 ├── arm │ ├── arm_init.c │ ├── filter_neon.S │ └── filter_neon_intrinsics.c ├── autogen.sh ├── compile ├── config.guess ├── config.h ├── config.h.in ├── config.sub ├── configure ├── configure.ac ├── contrib │ ├── README.txt │ ├── arm-neon │ │ ├── README │ │ ├── android-ndk.c │ │ ├── linux-auxv.c │ │ └── linux.c │ ├── conftest │ │ ├── README │ │ ├── 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 │ ├── pngminim │ │ ├── README │ │ ├── decoder │ │ │ ├── README │ │ │ ├── makefile │ │ │ ├── pngusr.dfa │ │ │ └── pngusr.h │ │ ├── encoder │ │ │ ├── README │ │ │ ├── makefile │ │ │ ├── pngusr.dfa │ │ │ └── pngusr.h │ │ └── preader │ │ │ ├── README │ │ │ ├── makefile │ │ │ ├── pngusr.dfa │ │ │ └── pngusr.h │ ├── pngminus │ │ ├── README │ │ ├── makefile.std │ │ ├── makefile.tc3 │ │ ├── makevms.com │ │ ├── png2pnm.bat │ │ ├── png2pnm.c │ │ ├── png2pnm.sh │ │ ├── pngminus.bat │ │ ├── pngminus.sh │ │ ├── pnm2png.bat │ │ ├── pnm2png.c │ │ └── pnm2png.sh │ ├── pngsuite │ │ ├── README │ │ ├── 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 │ ├── testpngs │ │ ├── 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 │ │ ├── chkfmt │ │ ├── cvtcolor.c │ │ ├── genpng.c │ │ ├── intgamma.sh │ │ ├── makesRGB.c │ │ ├── png-fix-itxt.c │ │ ├── pngfix.c │ │ └── sRGB.h │ └── visupng │ │ ├── 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 ├── libpng-config.in ├── libpng-manual.txt ├── libpng.3 ├── libpng.pc.in ├── libpngpf.3 ├── ltmain.sh ├── missing ├── png.5 ├── png.c ├── png.h ├── pngbar.jpg ├── pngbar.png ├── pngconf.h ├── pngdebug.h ├── pngerror.c ├── pngget.c ├── pnginfo.h ├── pnglibconf.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 ├── projects │ ├── 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 │ │ ├── WARNING │ │ ├── libpng │ │ └── libpng.vcxproj │ │ ├── pnglibconf │ │ └── pnglibconf.vcxproj │ │ ├── pngstest │ │ └── pngstest.vcxproj │ │ ├── pngtest │ │ └── pngtest.vcxproj │ │ ├── pngunknown │ │ └── pngunknown.vcxproj │ │ ├── pngvalid │ │ └── pngvalid.vcxproj │ │ ├── readme.txt │ │ ├── vstudio.sln │ │ ├── zlib.props │ │ └── zlib │ │ └── zlib.vcxproj ├── scripts │ ├── README.txt │ ├── SCOPTIONS.ppc │ ├── checksym.awk │ ├── def.c │ ├── descrip.mms │ ├── dfn.awk │ ├── intprefix.c │ ├── libpng-config-body.in │ ├── libpng-config-head.in │ ├── libpng.pc.in │ ├── libtool.m4 │ ├── ltoptions.m4 │ ├── ltsugar.m4 │ ├── ltversion.m4 │ ├── lt~obsolete.m4 │ ├── macro.lst │ ├── makefile.32sunu │ ├── makefile.64sunu │ ├── makefile.acorn │ ├── makefile.aix │ ├── makefile.amiga │ ├── makefile.atari │ ├── makefile.bc32 │ ├── makefile.beos │ ├── makefile.bor │ ├── makefile.cegcc │ ├── makefile.darwin │ ├── makefile.dec │ ├── makefile.dj2 │ ├── makefile.freebsd │ ├── makefile.gcc │ ├── makefile.hp64 │ ├── makefile.hpgcc │ ├── makefile.hpux │ ├── makefile.ibmc │ ├── makefile.intel │ ├── makefile.knr │ ├── makefile.linux │ ├── makefile.mips │ ├── makefile.msc │ ├── makefile.msys │ ├── makefile.ne12bsd │ ├── makefile.netbsd │ ├── makefile.openbsd │ ├── makefile.sco │ ├── makefile.sggcc │ ├── makefile.sgi │ ├── makefile.so9 │ ├── makefile.solaris │ ├── makefile.solaris-x86 │ ├── makefile.std │ ├── makefile.sunos │ ├── makefile.tc3 │ ├── 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 │ ├── pngstest-1.8 │ ├── pngstest-1.8-alpha │ ├── pngstest-linear │ ├── pngstest-linear-alpha │ ├── pngstest-none │ ├── pngstest-none-alpha │ ├── pngstest-sRGB │ ├── pngstest-sRGB-alpha │ ├── pngtest │ ├── 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 ├── post.js ├── tmalloc.c ├── x265_glue.c └── zlib ├── CMakeLists.txt ├── ChangeLog ├── FAQ ├── INDEX ├── Makefile ├── Makefile.in ├── README ├── adler32.c ├── amiga ├── Makefile.pup └── Makefile.sas ├── as400 ├── bndsrc ├── compile.clp ├── readme.txt └── zlib.inc ├── compress.c ├── configure ├── contrib ├── README.contrib ├── ada │ ├── buffer_demo.adb │ ├── mtest.adb │ ├── read.adb │ ├── readme.txt │ ├── test.adb │ ├── zlib-streams.adb │ ├── zlib-streams.ads │ ├── zlib-thin.adb │ ├── zlib-thin.ads │ ├── zlib.adb │ ├── zlib.ads │ └── zlib.gpr ├── amd64 │ └── amd64-match.S ├── asm686 │ ├── README.686 │ └── match.S ├── blast │ ├── Makefile │ ├── README │ ├── blast.c │ ├── blast.h │ ├── test.pk │ └── test.txt ├── delphi │ ├── ZLib.pas │ ├── ZLibConst.pas │ ├── readme.txt │ └── zlibd32.mak ├── dotzlib │ ├── DotZLib.build │ ├── DotZLib.chm │ ├── DotZLib.sln │ ├── DotZLib │ │ ├── AssemblyInfo.cs │ │ ├── ChecksumImpl.cs │ │ ├── CircularBuffer.cs │ │ ├── CodecBase.cs │ │ ├── Deflater.cs │ │ ├── DotZLib.cs │ │ ├── DotZLib.csproj │ │ ├── GZipStream.cs │ │ ├── Inflater.cs │ │ └── UnitTests.cs │ ├── LICENSE_1_0.txt │ └── readme.txt ├── gcc_gvmat64 │ └── gvmat64.S ├── infback9 │ ├── README │ ├── infback9.c │ ├── infback9.h │ ├── inffix9.h │ ├── inflate9.h │ ├── inftree9.c │ └── inftree9.h ├── inflate86 │ ├── inffas86.c │ └── inffast.S ├── iostream │ ├── test.cpp │ ├── zfstream.cpp │ └── zfstream.h ├── iostream2 │ ├── zstream.h │ └── zstream_test.cpp ├── iostream3 │ ├── README │ ├── TODO │ ├── test.cc │ ├── zfstream.cc │ └── zfstream.h ├── masmx64 │ ├── bld_ml64.bat │ ├── gvmat64.asm │ ├── inffas8664.c │ ├── inffasx64.asm │ └── readme.txt ├── masmx86 │ ├── bld_ml32.bat │ ├── inffas32.asm │ ├── match686.asm │ └── readme.txt ├── minizip │ ├── Makefile │ ├── Makefile.am │ ├── MiniZip64_Changes.txt │ ├── MiniZip64_info.txt │ ├── configure.ac │ ├── crypt.h │ ├── ioapi.c │ ├── ioapi.h │ ├── iowin32.c │ ├── iowin32.h │ ├── make_vms.com │ ├── miniunz.c │ ├── miniunzip.1 │ ├── minizip.1 │ ├── minizip.c │ ├── minizip.pc.in │ ├── mztools.c │ ├── mztools.h │ ├── unzip.c │ ├── unzip.h │ ├── zip.c │ └── zip.h ├── pascal │ ├── example.pas │ ├── readme.txt │ ├── zlibd32.mak │ └── zlibpas.pas ├── puff │ ├── Makefile │ ├── README │ ├── puff.c │ ├── puff.h │ ├── pufftest.c │ └── zeros.raw ├── testzlib │ ├── testzlib.c │ └── testzlib.txt ├── untgz │ ├── Makefile │ ├── Makefile.msc │ └── untgz.c └── vstudio │ ├── readme.txt │ ├── vc10 │ ├── miniunz.vcxproj │ ├── miniunz.vcxproj.filters │ ├── minizip.vcxproj │ ├── minizip.vcxproj.filters │ ├── testzlib.vcxproj │ ├── testzlib.vcxproj.filters │ ├── testzlibdll.vcxproj │ ├── testzlibdll.vcxproj.filters │ ├── zlib.rc │ ├── zlibstat.vcxproj │ ├── zlibstat.vcxproj.filters │ ├── zlibvc.def │ ├── zlibvc.sln │ ├── zlibvc.vcxproj │ └── zlibvc.vcxproj.filters │ ├── vc11 │ ├── miniunz.vcxproj │ ├── minizip.vcxproj │ ├── testzlib.vcxproj │ ├── testzlibdll.vcxproj │ ├── zlib.rc │ ├── zlibstat.vcxproj │ ├── zlibvc.def │ ├── zlibvc.sln │ └── zlibvc.vcxproj │ └── vc9 │ ├── miniunz.vcproj │ ├── minizip.vcproj │ ├── testzlib.vcproj │ ├── testzlibdll.vcproj │ ├── zlib.rc │ ├── zlibstat.vcproj │ ├── zlibvc.def │ ├── zlibvc.sln │ └── zlibvc.vcproj ├── crc32.c ├── crc32.h ├── deflate.c ├── deflate.h ├── doc ├── algorithm.txt ├── rfc1950.txt ├── rfc1951.txt ├── rfc1952.txt └── txtvsbin.txt ├── examples ├── README.examples ├── enough.c ├── fitblk.c ├── gun.c ├── gzappend.c ├── gzjoin.c ├── gzlog.c ├── gzlog.h ├── zlib_how.html ├── zpipe.c └── zran.c ├── gzclose.c ├── gzguts.h ├── gzlib.c ├── gzread.c ├── gzwrite.c ├── infback.c ├── inffast.c ├── inffast.h ├── inffixed.h ├── inflate.c ├── inflate.h ├── inftrees.c ├── inftrees.h ├── make_vms.com ├── msdos ├── Makefile.bor ├── Makefile.dj2 ├── Makefile.emx ├── Makefile.msc └── Makefile.tc ├── nintendods ├── Makefile └── README ├── old ├── Makefile.emx ├── Makefile.riscos ├── README ├── descrip.mms ├── os2 │ ├── Makefile.os2 │ └── zlib.def └── visual-basic.txt ├── qnx └── package.qpg ├── test ├── example.c ├── infcover.c └── minigzip.c ├── treebuild.xml ├── trees.c ├── trees.h ├── uncompr.c ├── watcom ├── watcom_f.mak └── watcom_l.mak ├── win32 ├── DLL_FAQ.txt ├── Makefile.bor ├── Makefile.gcc ├── Makefile.msc ├── README-WIN32.txt ├── VisualC.txt ├── zlib.def └── zlib1.rc ├── zconf.h ├── zconf.h.cmakein ├── zconf.h.in ├── zlib.3 ├── zlib.3.pdf ├── zlib.h ├── zlib.map ├── zlib.pc.cmakein ├── zlib.pc.in ├── zlib2ansi ├── zutil.c └── zutil.h /.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | .DS_Store 3 | *.xccheckout 4 | xcuserdata 5 | -------------------------------------------------------------------------------- /ChangeLog: -------------------------------------------------------------------------------- 1 | version 0.9.6: 2 | 3 | - Faster encoding (x265 is the default encoder and is built in bpgenc). 4 | - Added monochrome support to x265. 5 | - Fixed metadata handling. 6 | 7 | version 0.9.5: 8 | 9 | - Added animation support. 10 | - added bpgview utility. 11 | - bpgenc: fixed support of some JPEG parameter combinations 12 | - fixed JS 8 bit only decoder and renamed it to bpgdec8.js 13 | - libbpg: added CMYK output format 14 | 15 | version 0.9.4: 16 | 17 | - Modified alpha plane encoding to allow progressive display and 18 | streaming encoding. This change is incompatible, so images 19 | containing alpha from the previous versions of the format cannot be 20 | decoded. 21 | 22 | - Added 4:2:2 and 4:2:0 chroma formats with MPEG2 chroma sample position. 23 | 24 | version 0.9.3: 25 | 26 | - Fixed small palette PNG. 27 | - Added support for BT 709 and BT 2020 YCbCr. 28 | - Added limited range color support. 29 | - Changed CMYK signalling. 30 | - Added premultiplied alpha support. 31 | - Specified the output RGB color space if no color profile is present. 32 | - Reduced the size of the js decoder. 33 | - Removed buffer overflows. 34 | 35 | version 0.9.2: 36 | 37 | - Fixed encoding of paletted PNG. 38 | - Reduced memory usage in the decoder. 39 | - Added faster 8 bit only Javascript decoder. 40 | - bpgenc: added '-e' option to explicitely select the encoder. 41 | - bpgenc: set default bit depth to 8. 42 | - bpgenc: added lossless support with x265. 43 | - js decoder: handle width and height attributes. 44 | 45 | version 0.9.1: 46 | 47 | - Added new meta data tags: ICC profile, XMP and thumbnail. 48 | - Disabled metadata copying by default. 49 | - Use same chroma pixel position as JPEG for 4:2:2 and 4:2:0. 50 | 51 | version 0.9: 52 | 53 | - Initial release. 54 | -------------------------------------------------------------------------------- /VERSION: -------------------------------------------------------------------------------- 1 | 0.9.6 2 | -------------------------------------------------------------------------------- /html/clock.bpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/html/clock.bpg -------------------------------------------------------------------------------- /html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 11 | 12 |

BPG Decoding Demo

13 | IMG tag:
14 | 15 |

16 | IMG tag with animated image:
17 | 18 |

19 | Dynamic loading in a canvas:
20 | 21 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /html/lena512color.bpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/html/lena512color.bpg -------------------------------------------------------------------------------- /jctvc/Makefile: -------------------------------------------------------------------------------- 1 | CC=gcc 2 | CFLAGS=-m64 -Os -Wall -MMD -fno-asynchronous-unwind-tables -g -Wno-sign-compare -Wno-unused-but-set-variable 3 | LDFLAGS= -m64 -g 4 | CFLAGS+=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 5 | PWD:=$(shell pwd) 6 | CFLAGS+=-I$(PWD) 7 | 8 | CXX=g++ 9 | CXXFLAGS=$(CFLAGS) 10 | 11 | PROGS=TAppEncoder jsenc 12 | 13 | 14 | all: $(PROGS) 15 | 16 | ENC_OBJS=$(addprefix TLibEncoder/, SyntaxElementWriter.o TEncSbac.o \ 17 | TEncBinCoderCABACCounter.o TEncGOP.o\ 18 | TEncSampleAdaptiveOffset.o TEncBinCoderCABAC.o TEncAnalyze.o\ 19 | TEncEntropy.o TEncTop.o SEIwrite.o TEncPic.o TEncRateCtrl.o\ 20 | WeightPredAnalysis.o TEncSlice.o TEncCu.o NALwrite.o TEncCavlc.o\ 21 | TEncSearch.o TEncPreanalyzer.o) 22 | ENC_OBJS+=TLibVideoIO/TVideoIOYuv.o 23 | ENC_OBJS+=$(addprefix TLibCommon/, TComWeightPrediction.o TComLoopFilter.o\ 24 | TComBitStream.o TComMotionInfo.o TComSlice.o ContextModel3DBuffer.o\ 25 | TComPic.o TComRdCostWeightPrediction.o TComTU.o TComPicSym.o\ 26 | TComPicYuv.o TComYuv.o TComTrQuant.o TComInterpolationFilter.o\ 27 | ContextModel.o TComSampleAdaptiveOffset.o SEI.o TComPrediction.o\ 28 | TComDataCU.o TComChromaFormat.o Debug.o TComRom.o\ 29 | TComPicYuvMD5.o TComRdCost.o TComPattern.o TComCABACTables.o) 30 | ENC_OBJS+=libmd5/libmd5.o 31 | ENC_OBJS+=TAppEncCfg.o TAppEncTop.o program_options_lite.o 32 | 33 | TAppEncoder: $(ENC_OBJS) encmain.o 34 | $(CXX) -o $@ $(LDFLAGS) $^ -lm 35 | 36 | jsenc: jsenc.o jctvc_glue.o $(ENC_OBJS) 37 | $(CXX) -o $@ $(LDFLAGS) $^ -lpng -lm 38 | 39 | %.o: %.c 40 | $(CC) $(CFLAGS) -c -o $@ $< 41 | 42 | %.o: %.cpp 43 | $(CXX) $(CXXFLAGS) -c -o $@ $< 44 | 45 | clean: 46 | rm -f *.o *.d *~ \ 47 | TLibEncoder/*.o TLibEncoder/*.d TLibEncoder/*~ \ 48 | TLibVideoIO/*.o TLibVideoIO/*.d TLibVideoIO/*~ \ 49 | TLibCommon/*.o TLibCommon/*.d TLibCommon/*~ 50 | 51 | -include $(wildcard *.d) 52 | -include $(wildcard TLibEncoder/*.d) 53 | -include $(wildcard TLibVideoIO/*.d) 54 | -include $(wildcard TLibCommon/*.d) 55 | -------------------------------------------------------------------------------- /libavcodec/bswapdsp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of FFmpeg. 3 | * 4 | * FFmpeg is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2.1 of the License, or (at your option) any later version. 8 | * 9 | * FFmpeg is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with FFmpeg; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #ifndef AVCODEC_BSWAP_BUF_H 20 | #define AVCODEC_BSWAP_BUF_H 21 | 22 | #include 23 | 24 | typedef struct BswapDSPContext { 25 | void (*bswap_buf)(uint32_t *dst, const uint32_t *src, int w); 26 | void (*bswap16_buf)(uint16_t *dst, const uint16_t *src, int len); 27 | } BswapDSPContext; 28 | 29 | void ff_bswapdsp_init(BswapDSPContext *c); 30 | void ff_bswapdsp_init_x86(BswapDSPContext *c); 31 | 32 | #endif /* AVCODEC_BSWAP_BUF_H */ 33 | -------------------------------------------------------------------------------- /libavcodec/hevcpred.h: -------------------------------------------------------------------------------- 1 | /* 2 | * HEVC video Decoder 3 | * 4 | * Copyright (C) 2012 - 2013 Guillaume Martres 5 | * 6 | * This file is part of FFmpeg. 7 | * 8 | * FFmpeg is free software; you can redistribute it and/or 9 | * modify it under the terms of the GNU Lesser General Public 10 | * License as published by the Free Software Foundation; either 11 | * version 2.1 of the License, or (at your option) any later version. 12 | * 13 | * FFmpeg is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | * Lesser General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU Lesser General Public 19 | * License along with FFmpeg; if not, write to the Free Software 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 21 | */ 22 | 23 | #ifndef AVCODEC_HEVCPRED_H 24 | #define AVCODEC_HEVCPRED_H 25 | 26 | #include 27 | #include 28 | 29 | struct HEVCContext; 30 | 31 | typedef struct HEVCPredContext { 32 | void (*intra_pred[4])(struct HEVCContext *s, int x0, int y0, int c_idx); 33 | 34 | void (*pred_planar[4])(uint8_t *src, const uint8_t *top, 35 | const uint8_t *left, ptrdiff_t stride); 36 | void (*pred_dc)(uint8_t *src, const uint8_t *top, const uint8_t *left, 37 | ptrdiff_t stride, int log2_size, int c_idx); 38 | void (*pred_angular[4])(uint8_t *src, const uint8_t *top, 39 | const uint8_t *left, ptrdiff_t stride, 40 | int c_idx, int mode, 41 | int disable_intra_boundary_filter BIT_DEPTH_PARAM); 42 | } HEVCPredContext; 43 | 44 | void ff_hevc_pred_init(HEVCPredContext *hpc, int bit_depth); 45 | 46 | #endif /* AVCODEC_HEVCPRED_H */ 47 | -------------------------------------------------------------------------------- /libavcodec/rnd_avg.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001-2003 BERO 3 | * Copyright (c) 2011 Oskar Arvidsson 4 | * 5 | * This file is part of FFmpeg. 6 | * 7 | * FFmpeg is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * FFmpeg is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with FFmpeg; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | #ifndef AVCODEC_RND_AVG_H 23 | #define AVCODEC_RND_AVG_H 24 | 25 | #include 26 | #include 27 | 28 | #define BYTE_VEC32(c) ((c) * 0x01010101UL) 29 | #define BYTE_VEC64(c) ((c) * 0x0001000100010001UL) 30 | 31 | static inline uint32_t rnd_avg32(uint32_t a, uint32_t b) 32 | { 33 | return (a | b) - (((a ^ b) & ~BYTE_VEC32(0x01)) >> 1); 34 | } 35 | 36 | static inline uint32_t no_rnd_avg32(uint32_t a, uint32_t b) 37 | { 38 | return (a & b) + (((a ^ b) & ~BYTE_VEC32(0x01)) >> 1); 39 | } 40 | 41 | static inline uint64_t rnd_avg64(uint64_t a, uint64_t b) 42 | { 43 | return (a | b) - (((a ^ b) & ~BYTE_VEC64(0x01)) >> 1); 44 | } 45 | 46 | static inline uint64_t no_rnd_avg64(uint64_t a, uint64_t b) 47 | { 48 | return (a & b) + (((a ^ b) & ~BYTE_VEC64(0x01)) >> 1); 49 | } 50 | 51 | #endif /* AVCODEC_RND_AVG_H */ 52 | -------------------------------------------------------------------------------- /libavutil/adler32.h: -------------------------------------------------------------------------------- 1 | /* 2 | * copyright (c) 2006 Mans Rullgard 3 | * 4 | * This file is part of FFmpeg. 5 | * 6 | * FFmpeg is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * FFmpeg is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with FFmpeg; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #ifndef AVUTIL_ADLER32_H 22 | #define AVUTIL_ADLER32_H 23 | 24 | #include 25 | #include "attributes.h" 26 | 27 | /** 28 | * @file 29 | * Public header for libavutil Adler32 hasher 30 | * 31 | * @defgroup lavu_adler32 Adler32 32 | * @ingroup lavu_crypto 33 | * @{ 34 | */ 35 | 36 | /** 37 | * Calculate the Adler32 checksum of a buffer. 38 | * 39 | * Passing the return value to a subsequent av_adler32_update() call 40 | * allows the checksum of multiple buffers to be calculated as though 41 | * they were concatenated. 42 | * 43 | * @param adler initial checksum value 44 | * @param buf pointer to input buffer 45 | * @param len size of input buffer 46 | * @return updated checksum 47 | */ 48 | unsigned long av_adler32_update(unsigned long adler, const uint8_t *buf, 49 | unsigned int len) av_pure; 50 | 51 | /** 52 | * @} 53 | */ 54 | 55 | #endif /* AVUTIL_ADLER32_H */ 56 | -------------------------------------------------------------------------------- /libavutil/atomic_suncc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * This file is part of FFmpeg. 4 | * 5 | * FFmpeg is free software; you can redistribute it and/or 6 | * modify it under the terms of the GNU Lesser General Public 7 | * License as published by the Free Software Foundation; either 8 | * version 2.1 of the License, or (at your option) any later version. 9 | * 10 | * FFmpeg is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | * Lesser General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU Lesser General Public 16 | * License along with FFmpeg; if not, write to the Free Software 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 18 | */ 19 | 20 | #ifndef AVUTIL_ATOMIC_SUNCC_H 21 | #define AVUTIL_ATOMIC_SUNCC_H 22 | 23 | #include 24 | #include 25 | 26 | #include "atomic.h" 27 | 28 | #define avpriv_atomic_int_get atomic_int_get_suncc 29 | static inline int atomic_int_get_suncc(volatile int *ptr) 30 | { 31 | __machine_rw_barrier(); 32 | return *ptr; 33 | } 34 | 35 | #define avpriv_atomic_int_set atomic_int_set_suncc 36 | static inline void atomic_int_set_suncc(volatile int *ptr, int val) 37 | { 38 | *ptr = val; 39 | __machine_rw_barrier(); 40 | } 41 | 42 | #define avpriv_atomic_int_add_and_fetch atomic_int_add_and_fetch_suncc 43 | static inline int atomic_int_add_and_fetch_suncc(volatile int *ptr, int inc) 44 | { 45 | return atomic_add_int_nv(ptr, inc); 46 | } 47 | 48 | #define avpriv_atomic_ptr_cas atomic_ptr_cas_suncc 49 | static inline void *atomic_ptr_cas_suncc(void * volatile *ptr, 50 | void *oldval, void *newval) 51 | { 52 | return atomic_cas_ptr(ptr, oldval, newval); 53 | } 54 | 55 | #endif /* AVUTIL_ATOMIC_SUNCC_H */ 56 | -------------------------------------------------------------------------------- /libavutil/atomic_win32.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Ronald S. Bultje 3 | * 4 | * This file is part of FFmpeg. 5 | * 6 | * FFmpeg is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * FFmpeg is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with FFmpeg; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #ifndef AVUTIL_ATOMIC_WIN32_H 22 | #define AVUTIL_ATOMIC_WIN32_H 23 | 24 | #include 25 | 26 | #define avpriv_atomic_int_get atomic_int_get_win32 27 | static inline int atomic_int_get_win32(volatile int *ptr) 28 | { 29 | MemoryBarrier(); 30 | return *ptr; 31 | } 32 | 33 | #define avpriv_atomic_int_set atomic_int_set_win32 34 | static inline void atomic_int_set_win32(volatile int *ptr, int val) 35 | { 36 | *ptr = val; 37 | MemoryBarrier(); 38 | } 39 | 40 | #define avpriv_atomic_int_add_and_fetch atomic_int_add_and_fetch_win32 41 | static inline int atomic_int_add_and_fetch_win32(volatile int *ptr, int inc) 42 | { 43 | return inc + InterlockedExchangeAdd(ptr, inc); 44 | } 45 | 46 | #define avpriv_atomic_ptr_cas atomic_ptr_cas_win32 47 | static inline void *atomic_ptr_cas_win32(void * volatile *ptr, 48 | void *oldval, void *newval) 49 | { 50 | return InterlockedCompareExchangePointer(ptr, newval, oldval); 51 | } 52 | 53 | #endif /* AVUTIL_ATOMIC_WIN32_H */ 54 | -------------------------------------------------------------------------------- /libavutil/audioconvert.h: -------------------------------------------------------------------------------- 1 | 2 | #include "version.h" 3 | 4 | #if FF_API_AUDIOCONVERT 5 | #include "channel_layout.h" 6 | #endif 7 | -------------------------------------------------------------------------------- /libavutil/avconfig.h: -------------------------------------------------------------------------------- 1 | /* Generated by ffconf */ 2 | #ifndef AVUTIL_AVCONFIG_H 3 | #define AVUTIL_AVCONFIG_H 4 | #define AV_HAVE_BIGENDIAN 0 5 | #define AV_HAVE_FAST_UNALIGNED 0 6 | #define AV_HAVE_INCOMPATIBLE_LIBAV_ABI 0 7 | #endif /* AVUTIL_AVCONFIG_H */ 8 | -------------------------------------------------------------------------------- /libavutil/cpu_internal.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of FFmpeg. 3 | * 4 | * FFmpeg is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2.1 of the License, or (at your option) any later version. 8 | * 9 | * FFmpeg is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with FFmpeg; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #ifndef AVUTIL_CPU_INTERNAL_H 20 | #define AVUTIL_CPU_INTERNAL_H 21 | 22 | #include "cpu.h" 23 | 24 | #define CPUEXT_SUFFIX(flags, suffix, cpuext) \ 25 | (HAVE_ ## cpuext ## suffix && ((flags) & AV_CPU_FLAG_ ## cpuext)) 26 | 27 | #define CPUEXT(flags, cpuext) CPUEXT_SUFFIX(flags, , cpuext) 28 | 29 | int ff_get_cpu_flags_aarch64(void); 30 | int ff_get_cpu_flags_arm(void); 31 | int ff_get_cpu_flags_ppc(void); 32 | int ff_get_cpu_flags_x86(void); 33 | 34 | #endif /* AVUTIL_CPU_INTERNAL_H */ 35 | -------------------------------------------------------------------------------- /libavutil/ffversion.h: -------------------------------------------------------------------------------- 1 | #ifndef AVUTIL_FFVERSION_H 2 | #define AVUTIL_FFVERSION_H 3 | #define FFMPEG_VERSION "N-67732-g530eb6a" 4 | #endif /* AVUTIL_FFVERSION_H */ 5 | -------------------------------------------------------------------------------- /libavutil/log2_tab.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Michael Niedermayer 3 | * 4 | * This file is part of FFmpeg. 5 | * 6 | * FFmpeg is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * FFmpeg is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with FFmpeg; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #include 22 | 23 | const uint8_t ff_log2_tab[256]={ 24 | 0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4, 25 | 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5, 26 | 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6, 27 | 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6, 28 | 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, 29 | 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, 30 | 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, 31 | 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7 32 | }; 33 | -------------------------------------------------------------------------------- /libavutil/macros.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of FFmpeg. 3 | * 4 | * FFmpeg is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2.1 of the License, or (at your option) any later version. 8 | * 9 | * FFmpeg is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with FFmpeg; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | /** 20 | * @file 21 | * @ingroup lavu 22 | * Utility Preprocessor macros 23 | */ 24 | 25 | #ifndef AVUTIL_MACROS_H 26 | #define AVUTIL_MACROS_H 27 | 28 | /** 29 | * @addtogroup preproc_misc Preprocessor String Macros 30 | * 31 | * String manipulation macros 32 | * 33 | * @{ 34 | */ 35 | 36 | #define AV_STRINGIFY(s) AV_TOSTRING(s) 37 | #define AV_TOSTRING(s) #s 38 | 39 | #define AV_GLUE(a, b) a ## b 40 | #define AV_JOIN(a, b) AV_GLUE(a, b) 41 | 42 | /** 43 | * @} 44 | */ 45 | 46 | #define AV_PRAGMA(s) _Pragma(#s) 47 | 48 | #endif /* AVUTIL_MACROS_H */ 49 | -------------------------------------------------------------------------------- /libavutil/motion_vector.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of FFmpeg. 3 | * 4 | * FFmpeg is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2.1 of the License, or (at your option) any later version. 8 | * 9 | * FFmpeg is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with FFmpeg; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #ifndef AVUTIL_MOTION_VECTOR_H 20 | #define AVUTIL_MOTION_VECTOR_H 21 | 22 | #include 23 | 24 | typedef struct AVMotionVector { 25 | /** 26 | * Where the current macroblock comes from; negative value when it comes 27 | * from the past, positive value when it comes from the future. 28 | * XXX: set exact relative ref frame reference instead of a +/- 1 "direction". 29 | */ 30 | int32_t source; 31 | /** 32 | * Width and height of the block. 33 | */ 34 | uint8_t w, h; 35 | /** 36 | * Absolute source position. Can be outside the frame area. 37 | */ 38 | int16_t src_x, src_y; 39 | /** 40 | * Absolute destination position. Can be outside the frame area. 41 | */ 42 | int16_t dst_x, dst_y; 43 | /** 44 | * Extra flag information. 45 | * Currently unused. 46 | */ 47 | uint64_t flags; 48 | } AVMotionVector; 49 | 50 | #endif /* AVUTIL_MOTION_VECTOR_H */ 51 | -------------------------------------------------------------------------------- /libavutil/murmur3.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2013 Reimar Döffinger 3 | * 4 | * This file is part of FFmpeg. 5 | * 6 | * FFmpeg is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * FFmpeg is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with FFmpeg; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #ifndef AVUTIL_MURMUR3_H 22 | #define AVUTIL_MURMUR3_H 23 | 24 | #include 25 | 26 | struct AVMurMur3 *av_murmur3_alloc(void); 27 | void av_murmur3_init_seeded(struct AVMurMur3 *c, uint64_t seed); 28 | void av_murmur3_init(struct AVMurMur3 *c); 29 | void av_murmur3_update(struct AVMurMur3 *c, const uint8_t *src, int len); 30 | void av_murmur3_final(struct AVMurMur3 *c, uint8_t dst[16]); 31 | 32 | #endif /* AVUTIL_MURMUR3_H */ 33 | -------------------------------------------------------------------------------- /libavutil/opencl_internal.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012 Peng Gao 3 | * Copyright (C) 2012 Li Cao 4 | * Copyright (C) 2012 Wei Gao 5 | * 6 | * This file is part of FFmpeg. 7 | * 8 | * FFmpeg is free software; you can redistribute it and/or 9 | * modify it under the terms of the GNU Lesser General Public 10 | * License as published by the Free Software Foundation; either 11 | * version 2.1 of the License, or (at your option) any later version. 12 | * 13 | * FFmpeg is distributed in the hope that it will be useful, 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 | * Lesser General Public License for more details. 17 | * 18 | * You should have received a copy of the GNU Lesser General Public 19 | * License along with FFmpeg; if not, write to the Free Software 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 21 | */ 22 | 23 | #include "opencl.h" 24 | 25 | #define FF_OPENCL_PARAM_INFO(a) ((void*)(&(a))), (sizeof(a)) 26 | 27 | typedef struct { 28 | cl_kernel kernel; 29 | int param_num; 30 | void *ctx; 31 | } FFOpenclParam; 32 | 33 | int avpriv_opencl_set_parameter(FFOpenclParam *opencl_param, ...); 34 | -------------------------------------------------------------------------------- /libavutil/pca.h: -------------------------------------------------------------------------------- 1 | /* 2 | * principal component analysis (PCA) 3 | * Copyright (c) 2004 Michael Niedermayer 4 | * 5 | * This file is part of FFmpeg. 6 | * 7 | * FFmpeg is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * FFmpeg is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with FFmpeg; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | /** 23 | * @file 24 | * principal component analysis (PCA) 25 | */ 26 | 27 | #ifndef AVUTIL_PCA_H 28 | #define AVUTIL_PCA_H 29 | 30 | struct PCA *ff_pca_init(int n); 31 | void ff_pca_free(struct PCA *pca); 32 | void ff_pca_add(struct PCA *pca, const double *v); 33 | int ff_pca(struct PCA *pca, double *eigenvector, double *eigenvalue); 34 | 35 | #endif /* AVUTIL_PCA_H */ 36 | -------------------------------------------------------------------------------- /libavutil/random_seed.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009 Baptiste Coudurier 3 | * 4 | * This file is part of FFmpeg. 5 | * 6 | * FFmpeg is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * FFmpeg is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with FFmpeg; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #ifndef AVUTIL_RANDOM_SEED_H 22 | #define AVUTIL_RANDOM_SEED_H 23 | 24 | #include 25 | /** 26 | * @addtogroup lavu_crypto 27 | * @{ 28 | */ 29 | 30 | /** 31 | * Get a seed to use in conjunction with random functions. 32 | * This function tries to provide a good seed at a best effort bases. 33 | * Its possible to call this function multiple times if more bits are needed. 34 | * It can be quite slow, which is why it should only be used as seed for a faster 35 | * PRNG. The quality of the seed depends on the platform. 36 | */ 37 | uint32_t av_get_random_seed(void); 38 | 39 | /** 40 | * @} 41 | */ 42 | 43 | #endif /* AVUTIL_RANDOM_SEED_H */ 44 | -------------------------------------------------------------------------------- /libavutil/rc4.h: -------------------------------------------------------------------------------- 1 | /* 2 | * RC4 encryption/decryption/pseudo-random number generator 3 | * 4 | * This file is part of FFmpeg. 5 | * 6 | * FFmpeg is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * FFmpeg is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with FFmpeg; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #ifndef AVUTIL_RC4_H 22 | #define AVUTIL_RC4_H 23 | 24 | #include 25 | 26 | struct AVRC4 { 27 | uint8_t state[256]; 28 | int x, y; 29 | }; 30 | 31 | /** 32 | * @brief Initializes an AVRC4 context. 33 | * 34 | * @param key_bits must be a multiple of 8 35 | * @param decrypt 0 for encryption, 1 for decryption, currently has no effect 36 | */ 37 | int av_rc4_init(struct AVRC4 *d, const uint8_t *key, int key_bits, int decrypt); 38 | 39 | /** 40 | * @brief Encrypts / decrypts using the RC4 algorithm. 41 | * 42 | * @param count number of bytes 43 | * @param dst destination array, can be equal to src 44 | * @param src source array, can be equal to dst, may be NULL 45 | * @param iv not (yet) used for RC4, should be NULL 46 | * @param decrypt 0 for encryption, 1 for decryption, not (yet) used 47 | */ 48 | void av_rc4_crypt(struct AVRC4 *d, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt); 49 | 50 | #endif /* AVUTIL_RC4_H */ 51 | -------------------------------------------------------------------------------- /libavutil/replaygain.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * This file is part of FFmpeg. 4 | * 5 | * FFmpeg is free software; you can redistribute it and/or 6 | * modify it under the terms of the GNU Lesser General Public 7 | * License as published by the Free Software Foundation; either 8 | * version 2.1 of the License, or (at your option) any later version. 9 | * 10 | * FFmpeg is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | * Lesser General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU Lesser General Public 16 | * License along with FFmpeg; if not, write to the Free Software 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 18 | */ 19 | 20 | #ifndef AVUTIL_REPLAYGAIN_H 21 | #define AVUTIL_REPLAYGAIN_H 22 | 23 | #include 24 | 25 | /** 26 | * ReplayGain information (see 27 | * http://wiki.hydrogenaudio.org/index.php?title=ReplayGain_1.0_specification). 28 | * The size of this struct is a part of the public ABI. 29 | */ 30 | typedef struct AVReplayGain { 31 | /** 32 | * Track replay gain in microbels (divide by 100000 to get the value in dB). 33 | * Should be set to INT32_MIN when unknown. 34 | */ 35 | int32_t track_gain; 36 | /** 37 | * Peak track amplitude, with 100000 representing full scale (but values 38 | * may overflow). 0 when unknown. 39 | */ 40 | uint32_t track_peak; 41 | /** 42 | * Same as track_gain, but for the whole album. 43 | */ 44 | int32_t album_gain; 45 | /** 46 | * Same as track_peak, but for the whole album, 47 | */ 48 | uint32_t album_peak; 49 | } AVReplayGain; 50 | 51 | #endif /* AVUTIL_REPLAYGAIN_H */ 52 | -------------------------------------------------------------------------------- /libavutil/time_internal.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of FFmpeg. 3 | * 4 | * FFmpeg is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2.1 of the License, or (at your option) any later version. 8 | * 9 | * FFmpeg is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with FFmpeg; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #ifndef AVUTIL_TIME_INTERNAL_H 20 | #define AVUTIL_TIME_INTERNAL_H 21 | 22 | #include 23 | #include "config.h" 24 | 25 | #if !HAVE_GMTIME_R && !defined(gmtime_r) 26 | static inline struct tm *gmtime_r(const time_t* clock, struct tm *result) 27 | { 28 | struct tm *ptr = gmtime(clock); 29 | if (!ptr) 30 | return NULL; 31 | *result = *ptr; 32 | return result; 33 | } 34 | #endif 35 | 36 | #if !HAVE_LOCALTIME_R && !defined(localtime_r) 37 | static inline struct tm *localtime_r(const time_t* clock, struct tm *result) 38 | { 39 | struct tm *ptr = localtime(clock); 40 | if (!ptr) 41 | return NULL; 42 | *result = *ptr; 43 | return result; 44 | } 45 | #endif 46 | 47 | #endif /* AVUTIL_TIME_INTERNAL_H */ 48 | -------------------------------------------------------------------------------- /libavutil/x86_cpu.h: -------------------------------------------------------------------------------- 1 | #include "libavutil/x86/asm.h" 2 | -------------------------------------------------------------------------------- /libavutil/xga_font_data.h: -------------------------------------------------------------------------------- 1 | /* 2 | * CGA/EGA/VGA ROM font data 3 | * 4 | * This file is part of FFmpeg. 5 | * 6 | * FFmpeg is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * FFmpeg is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with FFmpeg; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | /** 22 | * @file 23 | * CGA/EGA/VGA ROM font data 24 | */ 25 | 26 | #ifndef AVUTIL_XGA_FONT_DATA_H 27 | #define AVUTIL_XGA_FONT_DATA_H 28 | 29 | #include 30 | #include "internal.h" 31 | 32 | extern av_export const uint8_t avpriv_cga_font[2048]; 33 | extern av_export const uint8_t avpriv_vga16_font[4096]; 34 | 35 | #endif /* AVUTIL_XGA_FONT_DATA_H */ 36 | -------------------------------------------------------------------------------- /libbpg demo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // libbpg demo 4 | // 5 | // Created by Jason Gorski on 2014-12-11. 6 | // Copyright (c) 2014 jgorski. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /libbpg demo/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /libbpg demo/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "ipad", 5 | "size" : "29x29", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "ipad", 10 | "size" : "29x29", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "ipad", 15 | "size" : "40x40", 16 | "scale" : "1x" 17 | }, 18 | { 19 | "idiom" : "ipad", 20 | "size" : "40x40", 21 | "scale" : "2x" 22 | }, 23 | { 24 | "idiom" : "ipad", 25 | "size" : "76x76", 26 | "scale" : "1x" 27 | }, 28 | { 29 | "idiom" : "ipad", 30 | "size" : "76x76", 31 | "scale" : "2x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /libbpg demo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.jgorski.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations~ipad 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationPortraitUpsideDown 37 | UIInterfaceOrientationLandscapeLeft 38 | UIInterfaceOrientationLandscapeRight 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /libbpg demo/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // libbpg demo 4 | // 5 | // Created by Jason Gorski on 2014-12-11. 6 | // Copyright (c) 2014 jgorski. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /libbpg demo/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // libbpg demo 4 | // 5 | // Created by Jason Gorski on 2014-12-11. 6 | // Copyright (c) 2014 jgorski. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | 11 | @interface ViewController () 12 | 13 | @end 14 | 15 | @implementation ViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | // Do any additional setup after loading the view, typically from a nib. 20 | } 21 | 22 | - (void)didReceiveMemoryWarning { 23 | [super didReceiveMemoryWarning]; 24 | // Dispose of any resources that can be recreated. 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /libbpg demo/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // libbpg demo 4 | // 5 | // Created by Jason Gorski on 2014-12-11. 6 | // Copyright (c) 2014 jgorski. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /libbpg demo/test.bpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libbpg demo/test.bpg -------------------------------------------------------------------------------- /libbpg demo/test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libbpg demo/test.png -------------------------------------------------------------------------------- /libbpg demoTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.jgorski.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /libbpg demoTests/libbpg_demoTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // libbpg_demoTests.m 3 | // libbpg demoTests 4 | // 5 | // Created by Jason Gorski on 2014-12-11. 6 | // Copyright (c) 2014 jgorski. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface libbpg_demoTests : XCTestCase 13 | 14 | @end 15 | 16 | @implementation libbpg_demoTests 17 | 18 | - (void)setUp { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown { 24 | // Put teardown code here. This method is called after the invocation of each test method in the class. 25 | [super tearDown]; 26 | } 27 | 28 | - (void)testExample { 29 | // This is an example of a functional test case. 30 | XCTAssert(YES, @"Pass"); 31 | } 32 | 33 | - (void)testPerformanceExample { 34 | // This is an example of a performance test case. 35 | [self measureBlock:^{ 36 | // Put the code you want to measure the time of here. 37 | }]; 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /libbpg.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /libbpgdec_ios/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.jgorski.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /libbpgdec_ios/libbpgdec_ios.h: -------------------------------------------------------------------------------- 1 | // 2 | // libbpgdec_ios.h 3 | // libbpgdec_ios 4 | // 5 | // Created by Jason Gorski on 2014-12-11. 6 | // Copyright (c) 2014 jgorski. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for libbpgdec_ios. 12 | FOUNDATION_EXPORT double libbpgdec_iosVersionNumber; 13 | 14 | //! Project version string for libbpgdec_ios. 15 | FOUNDATION_EXPORT const unsigned char libbpgdec_iosVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /libbpgdec_iosTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.jgorski.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /libbpgdec_iosTests/libbpgdec_iosTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // libbpgdec_iosTests.m 3 | // libbpgdec_iosTests 4 | // 5 | // Created by Jason Gorski on 2014-12-11. 6 | // Copyright (c) 2014 jgorski. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface libbpgdec_iosTests : XCTestCase 13 | 14 | @end 15 | 16 | @implementation libbpgdec_iosTests 17 | 18 | - (void)setUp { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown { 24 | // Put teardown code here. This method is called after the invocation of each test method in the class. 25 | [super tearDown]; 26 | } 27 | 28 | - (void)testExample { 29 | // This is an example of a functional test case. 30 | XCTAssert(YES, @"Pass"); 31 | } 32 | 33 | - (void)testPerformanceExample { 34 | // This is an example of a performance test case. 35 | [self measureBlock:^{ 36 | // Put the code you want to measure the time of here. 37 | }]; 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /libbpgenc_ios/libbpgenc_ios.h: -------------------------------------------------------------------------------- 1 | // 2 | // libbpgenc_ios.h 3 | // libbpgenc_ios 4 | // 5 | // Created by Jason Gorski on 2014-12-11. 6 | // Copyright (c) 2014 jgorski. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface libbpgenc_ios : NSObject 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /libbpgenc_ios/libbpgenc_ios.m: -------------------------------------------------------------------------------- 1 | // 2 | // libbpgenc_ios.m 3 | // libbpgenc_ios 4 | // 5 | // Created by Jason Gorski on 2014-12-11. 6 | // Copyright (c) 2014 jgorski. All rights reserved. 7 | // 8 | 9 | #import "libbpgenc_ios.h" 10 | 11 | @implementation libbpgenc_ios 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /libbpgenc_iosTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.jgorski.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /libjpeg/lib/libjpeg.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libjpeg/lib/libjpeg.a -------------------------------------------------------------------------------- /libpng/TODO: -------------------------------------------------------------------------------- 1 | /* 2 | TODO - list of things to do for libpng: 3 | 4 | Final bug fixes. 5 | Better C++ wrapper/full C++ implementation? 6 | Fix problem with C++ and EXTERN "C". 7 | cHRM transformation. 8 | Remove setjmp/longjmp usage in favor of returning error codes. 9 | Palette creation. 10 | Add "grayscale->palette" transformation and "palette->grayscale" detection. 11 | Improved dithering. 12 | Multi-lingual error and warning message support. 13 | Complete sRGB transformation (presently it simply uses gamma=0.45455). 14 | Make profile checking optional via a png_set_something() call. 15 | Man pages for function calls. 16 | Better documentation. 17 | Better filter selection 18 | (counting huffman bits/precompression? filter inertia? filter costs?). 19 | Histogram creation. 20 | Text conversion between different code pages (Latin-1 -> Mac and DOS). 21 | Avoid building gamma tables whenever possible. 22 | Use greater precision when changing to linear gamma for compositing against 23 | background and doing rgb-to-gray transformation. 24 | Investigate pre-incremented loop counters and other loop constructions. 25 | Add interpolated method of handling interlacing. 26 | Switch to the simpler zlib (zlib/libpng) license if legally possible. 27 | Extend pngvalid.c to validate more of the libpng transformations. 28 | 29 | */ 30 | -------------------------------------------------------------------------------- /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 | * Last changed in libpng 1.6.10 [March 6, 2014] 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 | * SEE contrib/arm-neon/README before reporting bugs 12 | * 13 | * STATUS: COMPILED, UNTESTED 14 | * BUG REPORTS: png-mng-implement@sourceforge.net 15 | * 16 | * png_have_neon implemented for the Android NDK, see: 17 | * 18 | * Documentation: 19 | * http://www.kandroid.org/ndk/docs/CPU-ARM-NEON.html 20 | * http://code.google.com/p/android/issues/detail?id=49065 21 | * 22 | * NOTE: this requires that libpng is built against the Android NDK and linked 23 | * with an implementation of the Android ARM 'cpu-features' library. The code 24 | * has been compiled only, not linked: no version of the library has been found, 25 | * only the header files exist in the NDK. 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/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/rpng-x.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/gregbook/rpng-x.c -------------------------------------------------------------------------------- /libpng/contrib/gregbook/rpng2-x.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/gregbook/rpng2-x.c -------------------------------------------------------------------------------- /libpng/contrib/gregbook/toucan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/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/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/makefile.std: -------------------------------------------------------------------------------- 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 | #PNGPATH = /usr/local 11 | #PNGINC = -I$(PNGPATH)/include/libpng16 12 | #PNGLIB = -L$(PNGPATH)/lib -lpng16 13 | #PNGLIBS = $(PNGPATH)/lib/libpng16.a 14 | PNGINC = -I../.. 15 | PNGLIB = -L../.. -lpng 16 | PNGLIBS = ../../libpng.a 17 | 18 | #ZPATH = /usr/local 19 | #ZINC = -I$(ZPATH)/include 20 | #ZLIB = -L$(ZPATH)/lib -lz 21 | #ZLIBS = $(ZPATH)/lib/libz.a 22 | ZINC = -I../../../zlib 23 | ZLIB = -L../../../zlib -lz 24 | ZLIBS = ../../../zlib/libz.a 25 | 26 | CPPFLAGS=$(PNGINC) $(ZINC) 27 | CFLAGS= 28 | LDLIBS=$(PNGLIB) $(ZLIB) 29 | LDLIBSS=$(PNGLIBS) $(ZLIBS) 30 | C=.c 31 | O=.o 32 | L=.a 33 | E= 34 | 35 | # dependencies 36 | 37 | #all: png2pnm$(E) pnm2png$(E) 38 | all: png2pnm$(E) pnm2png$(E) png2pnm-static$(E) pnm2png-static$(E) 39 | 40 | png2pnm$(O): png2pnm$(C) 41 | $(CC) -c $(CPPFLAGS) $(CFLAGS) png2pnm$(C) 42 | 43 | png2pnm$(E): png2pnm$(O) 44 | $(LD) $(LDFLAGS) -o png2pnm$(E) png2pnm$(O) $(LDLIBS) -lm 45 | 46 | png2pnm-static$(E): png2pnm$(O) 47 | $(LD) $(LDFLAGS) -o png2pnm-static$(E) png2pnm$(O) $(LDLIBSS) -lm 48 | 49 | pnm2png$(O): pnm2png$(C) 50 | $(CC) -c $(CPPFLAGS) $(CFLAGS) pnm2png$(C) 51 | 52 | pnm2png$(E): pnm2png$(O) 53 | $(LD) $(LDFLAGS) -o pnm2png$(E) pnm2png$(O) $(LDLIBS) -lm 54 | 55 | pnm2png-static$(E): pnm2png$(O) 56 | $(LD) $(LDFLAGS) -o pnm2png-static$(E) pnm2png$(O) $(LDLIBSS) -lm 57 | 58 | clean: 59 | $(RM) png2pnm$(O) 60 | $(RM) pnm2png$(O) 61 | $(RM) png2pnm$(E) 62 | $(RM) pnm2png$(E) 63 | $(RM) png2pnm-static$(E) 64 | $(RM) pnm2png-static$(E) 65 | 66 | # End of makefile for png2pnm / pnm2png 67 | -------------------------------------------------------------------------------- /libpng/contrib/pngminus/makefile.tc3: -------------------------------------------------------------------------------- 1 | # Makefile for PngMinus (png2pnm and pnm2png) 2 | # TurboC++ 3.0 3 | 4 | CC=tcc -Ic:\tc3\inc 5 | LD=tcc -Lc:\tc3\lib 6 | LB=tlib 7 | RM=del 8 | CP=copy 9 | MODEL=l 10 | CPPFLAGS=-I..\libpng -I..\zlib 11 | CFLAGS=-O -m$(MODEL) 12 | LDFLAGS=-m$(MODEL) -L..\libpng -L..\zlib 13 | C=.c 14 | O=.obj 15 | L=.lib 16 | E=.exe 17 | 18 | # dependencies 19 | 20 | all: png2pnm$(E) pnm2png$(E) 21 | 22 | png2pnm$(O): png2pnm$(C) 23 | $(CC) -c $(CPPFLAGS) $(CFLAGS) png2pnm$(C) 24 | 25 | png2pnm$(E): png2pnm$(O) 26 | $(LD) $(LDFLAGS) png2pnm$(O) libpng$(L) zlib$(L) 27 | 28 | pnm2png$(O): pnm2png$(C) 29 | $(CC) -c $(CPPFLAGS) $(CFLAGS) pnm2png$(C) 30 | 31 | pnm2png$(E): pnm2png$(O) 32 | $(LD) $(LDFLAGS) pnm2png$(O) libpng$(L) zlib$(L) 33 | 34 | clean: 35 | $(RM) *$(O) 36 | $(RM) *$(E) 37 | 38 | # End of makefile for png2pnm / pnm2png 39 | -------------------------------------------------------------------------------- /libpng/contrib/pngminus/pngminus.bat: -------------------------------------------------------------------------------- 1 | make -f makefile.tc3 2 | call png2pnm.bat 3 | call pnm2png.bat 4 | 5 | -------------------------------------------------------------------------------- /libpng/contrib/pngminus/pngminus.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | make -f makefile.std 3 | sh png2pnm.sh 4 | sh pnm2png.sh 5 | 6 | -------------------------------------------------------------------------------- /libpng/contrib/pngminus/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 -- palletted 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 -- palletted 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/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 | # -- palletted 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 | # -- palletted 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/basn0g01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/basn0g01.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn0g02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/basn0g02.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn0g04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/basn0g04.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn0g08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/basn0g08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn0g16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/basn0g16.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn2c08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/basn2c08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn2c16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/basn2c16.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn3p01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/basn3p01.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn3p02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/basn3p02.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn3p04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/basn3p04.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/basn3p08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn4a08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/basn4a08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn4a16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/basn4a16.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn6a08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/basn6a08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/basn6a16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/basn6a16.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftbbn0g01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/ftbbn0g01.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftbbn0g02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/ftbbn0g02.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftbbn0g04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/ftbbn0g04.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftbbn2c16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/ftbbn2c16.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftbbn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/ftbbn3p08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftbgn2c16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/ftbgn2c16.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftbgn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/ftbgn3p08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftbrn2c08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/ftbrn2c08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftbwn0g16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/ftbwn0g16.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftbwn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/ftbwn3p08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftbyn3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/ftbyn3p08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftp0n0g08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/ftp0n0g08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftp0n2c08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/ftp0n2c08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftp0n3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/ftp0n3p08.png -------------------------------------------------------------------------------- /libpng/contrib/pngsuite/ftp1n3p08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/pngsuite/ftp1n3p08.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-1-1.8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-1-1.8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-1-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-1-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-1-linear-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-1-linear-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-1-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-1-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-1-sRGB-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-1-sRGB-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-1-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-1-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-1-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-1-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-1.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-16-1.8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-16-1.8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-16-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-16-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-16-linear-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-16-linear-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-16-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-16-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-16-sRGB-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-16-sRGB-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-16-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-16-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-16-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-16-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-16.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-2-1.8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-2-1.8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-2-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-2-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-2-linear-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-2-linear-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-2-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-2-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-2-sRGB-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-2-sRGB-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-2-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-2-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-2-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-2-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-2.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-4-1.8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-4-1.8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-4-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-4-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-4-linear-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-4-linear-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-4-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-4-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-4-sRGB-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-4-sRGB-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-4-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-4-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-4-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-4-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-4.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-8-1.8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-8-1.8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-8-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-8-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-8-linear-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-8-linear-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-8-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-8-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-8-sRGB-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-8-sRGB-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-8-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-8-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-alpha-16-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-alpha-16-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-alpha-16-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-alpha-16-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-alpha-16-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-alpha-16-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-alpha-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-alpha-16.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-alpha-8-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-alpha-8-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-alpha-8-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-alpha-8-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-alpha-8-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-alpha-8-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/gray-alpha-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/gray-alpha-8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-1-1.8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-1-1.8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-1-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-1-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-1-linear-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-1-linear-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-1-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-1-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-1-sRGB-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-1-sRGB-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-1-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-1-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-1-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-1-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-1.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-2-1.8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-2-1.8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-2-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-2-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-2-linear-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-2-linear-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-2-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-2-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-2-sRGB-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-2-sRGB-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-2-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-2-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-2-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-2-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-2.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-4-1.8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-4-1.8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-4-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-4-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-4-linear-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-4-linear-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-4-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-4-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-4-sRGB-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-4-sRGB-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-4-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-4-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-4-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-4-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-4.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-8-1.8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-8-1.8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-8-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-8-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-8-linear-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-8-linear-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-8-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-8-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-8-sRGB-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-8-sRGB-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-8-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-8-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/palette-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/palette-8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-16-1.8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/rgb-16-1.8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-16-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/rgb-16-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-16-linear-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/rgb-16-linear-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-16-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/rgb-16-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-16-sRGB-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/rgb-16-sRGB-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-16-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/rgb-16-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-16-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/rgb-16-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/rgb-16.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-8-1.8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/rgb-8-1.8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-8-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/rgb-8-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-8-linear-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/rgb-8-linear-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-8-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/rgb-8-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-8-sRGB-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/rgb-8-sRGB-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-8-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/rgb-8-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-8-tRNS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/rgb-8-tRNS.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/rgb-8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-alpha-16-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/rgb-alpha-16-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-alpha-16-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/rgb-alpha-16-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-alpha-16-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/rgb-alpha-16-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-alpha-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/rgb-alpha-16.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-alpha-8-1.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/rgb-alpha-8-1.8.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-alpha-8-linear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/rgb-alpha-8-linear.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-alpha-8-sRGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/testpngs/rgb-alpha-8-sRGB.png -------------------------------------------------------------------------------- /libpng/contrib/testpngs/rgb-alpha-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/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 | -------------------------------------------------------------------------------- /libpng/contrib/tools/sRGB.h: -------------------------------------------------------------------------------- 1 | /*- 2 | * sRGB.h 3 | * 4 | * Last changed in libpng 1.6.0 [February 14, 2013] 5 | * 6 | * COPYRIGHT: Written by John Cunningham Bowler, 2013. 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 | * Utility file; not actually a header, this contains definitions of sRGB 12 | * calculation functions for inclusion in those test programs that need them. 13 | * 14 | * All routines take and return a floating point value in the range 15 | * 0 to 1.0, doing a calculation according to the sRGB specification 16 | * (in fact the source of the numbers is the wikipedia article at 17 | * http://en.wikipedia.org/wiki/SRGB). 18 | */ 19 | static double 20 | sRGB_from_linear(double l) 21 | { 22 | if (l <= 0.0031308) 23 | l *= 12.92; 24 | 25 | else 26 | l = 1.055 * pow(l, 1/2.4) - 0.055; 27 | 28 | return l; 29 | } 30 | 31 | static double 32 | linear_from_sRGB(double s) 33 | { 34 | if (s <= 0.04045) 35 | return s / 12.92; 36 | 37 | else 38 | return pow((s+0.055)/1.055, 2.4); 39 | } 40 | 41 | static double 42 | YfromRGB(double r, double g, double b) 43 | { 44 | /* Use the sRGB (rounded) coefficients for Rlinear, Glinear, Blinear to get 45 | * the CIE Y value (also linear). 46 | */ 47 | return 0.2126 * r + 0.7152 * g + 0.0722 * b; 48 | } 49 | -------------------------------------------------------------------------------- /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, png_size_t length); 27 | static void png_write_data(png_structp png_ptr, png_bytep data, png_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/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/contrib/visupng/VisualPng.ico -------------------------------------------------------------------------------- /libpng/contrib/visupng/VisualPng.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/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/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 | Libs: -L${libdir} -lpng@PNGLIB_MAJOR@@PNGLIB_MINOR@ 10 | Libs.private: @LIBS@ 11 | Cflags: -I${includedir} 12 | -------------------------------------------------------------------------------- /libpng/libpngpf.3: -------------------------------------------------------------------------------- 1 | .TH LIBPNGPF 3 "November 12, 2015" 2 | .SH NAME 3 | libpng \- Portable Network Graphics (PNG) Reference Library 1.6.19 4 | (private functions) 5 | .SH SYNOPSIS 6 | \fB#include \fI"pngpriv.h" 7 | 8 | \fBAs of libpng version \fP\fI1.5.1\fP\fB, this section is no longer \fP\fImaintained\fP\fB, now that the private function prototypes are hidden in pngpriv.h and not accessible to applications. Look in pngpriv.h for the prototypes and a short description of each \fIfunction. 9 | 10 | .SH DESCRIPTION 11 | The functions previously listed here are used privately by libpng and are not 12 | available for use by applications. They are not "exported" to applications 13 | using shared libraries. 14 | 15 | .SH SEE ALSO 16 | .BR "png"(5), " libpng"(3), " zlib"(3), " deflate"(5), " " and " zlib"(5) 17 | .SH AUTHOR 18 | Glenn Randers-Pehrson 19 | -------------------------------------------------------------------------------- /libpng/pngbar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/pngbar.jpg -------------------------------------------------------------------------------- /libpng/pngbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/pngbar.png -------------------------------------------------------------------------------- /libpng/pngnow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/libpng/pngnow.png -------------------------------------------------------------------------------- /libpng/pngtest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/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/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/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/projects/vstudio/WARNING: -------------------------------------------------------------------------------- 1 | WARNING 2 | ======= 3 | Libpng 1.6 does not use the default run-time library when building static 4 | library builds of libpng; instead of the shared DLL runtime it uses a static 5 | runtime. If you need to change this make sure to change the setting on all the 6 | relevant projects: 7 | 8 | libpng 9 | zlib 10 | all the test programs 11 | 12 | The runtime library settings for each build are as follows: 13 | 14 | Release Debug 15 | DLL /MD /MDd 16 | Library /MT /MTd 17 | 18 | NOTICE that libpng 1.5 erroneously used /MD for Debug DLL builds; if you used 19 | the debug builds in your app and you changed your app to use /MD you will need 20 | to change it to /MDd for libpng 1.6. 21 | 22 | The Visual Studio 2010 defaults for a Win32 DLL or Static Library project are 23 | as follows: 24 | 25 | Release Debug 26 | DLL /MD /MDd 27 | Static Library /MD /MDd 28 | -------------------------------------------------------------------------------- /libpng/projects/vstudio/zlib.props: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | 20 | 35 | ..\..\..\..\zlib-1.2.8 36 | 37 | 43 | true 44 | 45 | 46 | -------------------------------------------------------------------------------- /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/def.c: -------------------------------------------------------------------------------- 1 | /* def.c - define format of libpng.def 2 | * 3 | * Last changed in libpng version 1.6.16 [December 22, 2014] 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 | /* Write the export file header: */ 12 | PNG_DFN ";--------------------------------------------------------------" 13 | PNG_DFN "; LIBPNG module definition file for OS/2" 14 | PNG_DFN ";--------------------------------------------------------------" 15 | PNG_DFN "" 16 | PNG_DFN "; If you give the library an explicit name one or other files" 17 | PNG_DFN "; may need modifying to support the new name on one or more" 18 | PNG_DFN "; systems." 19 | PNG_DFN "LIBRARY" 20 | PNG_DFN "OS2 DESCRIPTION "PNG image compression library"" 21 | PNG_DFN "OS2 CODE PRELOAD MOVEABLE DISCARDABLE" 22 | PNG_DFN "" 23 | PNG_DFN "EXPORTS" 24 | PNG_DFN ";Version 1.6.19" 25 | 26 | #define PNG_EXPORTA(ordinal, type, name, args, attributes)\ 27 | PNG_DFN "@" SYMBOL_PREFIX "@@" name "@" 28 | 29 | #include "../png.h" 30 | -------------------------------------------------------------------------------- /libpng/scripts/intprefix.c: -------------------------------------------------------------------------------- 1 | 2 | /* intprefix.c - generate an unprefixed internal symbol list 3 | * 4 | * Last changed in libpng version 1.6.16 [December 22, 2014] 5 | * Copyright (c) 2013-2014 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 | 12 | #define PNG_INTERNAL_DATA(type, name, array)\ 13 | PNG_DFN "@" name "@" 14 | 15 | #define PNG_INTERNAL_FUNCTION(type, name, args, attributes)\ 16 | PNG_DFN "@" name "@" 17 | 18 | #define PNG_INTERNAL_CALLBACK(type, name, args, attributes)\ 19 | PNG_DFN "@" name "@" 20 | 21 | #define PNGPREFIX_H /* self generation */ 22 | #include "../pngpriv.h" 23 | -------------------------------------------------------------------------------- /libpng/scripts/libpng-config-head.in: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # libpng-config 4 | # provides configuration info for libpng. 5 | 6 | # Copyright (C) 2002 Glenn Randers-Pehrson 7 | 8 | # This code is released under the libpng license. 9 | # For conditions of distribution and use, see the disclaimer 10 | # and license in png.h 11 | 12 | # Modeled after libxml-config. 13 | 14 | version=1.6.19 15 | prefix="" 16 | libdir="" 17 | libs="" 18 | I_opts="" 19 | L_opts="" 20 | R_opts="" 21 | cppflags="" 22 | ccopts="" 23 | ldopts="" 24 | 25 | -------------------------------------------------------------------------------- /libpng/scripts/libpng.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@/libpng16 5 | 6 | Name: libpng 7 | Description: Loads and saves PNG files 8 | Version: 1.6.19 9 | Libs: -L${libdir} -lpng16 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /libpng/scripts/ltversion.m4: -------------------------------------------------------------------------------- 1 | # ltversion.m4 -- version numbers -*- Autoconf -*- 2 | # 3 | # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc. 4 | # Written by Scott James Remnant, 2004 5 | # 6 | # This file is free software; the Free Software Foundation gives 7 | # unlimited permission to copy and/or distribute it, with or without 8 | # modifications, as long as this notice is preserved. 9 | 10 | # @configure_input@ 11 | 12 | # serial 4179 ltversion.m4 13 | # This file is part of GNU Libtool 14 | 15 | m4_define([LT_PACKAGE_VERSION], [2.4.6]) 16 | m4_define([LT_PACKAGE_REVISION], [2.4.6]) 17 | 18 | AC_DEFUN([LTVERSION_VERSION], 19 | [macro_version='2.4.6' 20 | macro_revision='2.4.6' 21 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 22 | _LT_DECL(, macro_revision, 0) 23 | ]) 24 | -------------------------------------------------------------------------------- /libpng/scripts/macro.lst: -------------------------------------------------------------------------------- 1 | get_uint_32(buf) 2 | get_uint_16(buf) 3 | get_int_32(buf) 4 | -------------------------------------------------------------------------------- /libpng/scripts/makefile.amiga: -------------------------------------------------------------------------------- 1 | # Commodore Amiga Makefile 2 | # makefile for libpng and SAS C V6.5x compiler 3 | # Copyright (C) 1995-2000 Wolf Faust 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 | # Location/path of zlib include files 10 | ZLIB=/zlib 11 | #compiler 12 | CC=sc 13 | #compiler flags 14 | # WARNING: a bug in V6.51 causes bad code with OPTGO 15 | # So use V6.55 or set NOOPTGO!!!!!!!!! 16 | CFLAGS= NOSTKCHK PARMS=REG OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL\ 17 | OPTLOOP OPTRDEP=4 OPTDEP=4 OPTCOMP=4 INCLUDEDIR=$(ZLIB) \ 18 | DEFINE=PNG_INTERNAL 19 | #linker flags 20 | LDFLAGS= SD ND BATCH 21 | #link libs 22 | LDLIBS= libpng.lib libgz.lib LIB:scm.lib LIB:sc.lib Lib:amiga.lib 23 | # linker 24 | LN= slink 25 | # file deletion command 26 | RM= delete quiet 27 | # library (.lib) file creation command 28 | AR= oml 29 | # make directory command 30 | MKDIR= makedir 31 | 32 | # Pre-built configuration 33 | # See scripts/pnglibconf.mak for more options 34 | PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt 35 | 36 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ 37 | pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ 38 | pngwtran.o pngmem.o pngerror.o pngpread.o 39 | 40 | all: libpng.lib pngtest 41 | 42 | libpng.lib: $(OBJS) 43 | -$(RM) libpng.lib 44 | $(AR) libpng.lib r $(OBJS) 45 | 46 | $(OBJS): pngpriv.h png.h pngconf.h pnglibconf.h pnginfo.h pngstruct.h pngdebug.h 47 | 48 | pnglibconf.h: $(PNGLIBCONF_H_PREBUILT) 49 | COPY $(PNGLIBCONF_H_PREBUILT) TO pnglibconf.h 50 | 51 | pngtest: pngtest.o libpng.lib 52 | $(LN) 57 | -------------------------------------------------------------------------------- /libpng/scripts/makefile.netbsd: -------------------------------------------------------------------------------- 1 | # makefile for libpng for NetBSD for the standard 2 | # make obj && make depend && make && make test 3 | # make includes && make install 4 | # Copyright (C) 2002 Patrick R.L. Welche 5 | # Copyright (C) 2007-2009, 2014 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 | # You should also run makefile.ne16bsd 12 | 13 | LOCALBASE?=/usr/local 14 | LIBDIR= ${LOCALBASE}/lib 15 | MANDIR= ${LOCALBASE}/man 16 | INCSDIR=${LOCALBASE}/include 17 | 18 | LIB= png 19 | SHLIB_MAJOR= 16 20 | SHLIB_MINOR= 1.6.19 21 | SRCS= png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \ 22 | pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \ 23 | pngwtran.c pngmem.c pngerror.c pngpread.c 24 | INCS= png.h pngconf.h pnglibconf.h 25 | MAN= libpng.3 libpngpf.3 png.5 26 | 27 | CPPFLAGS+=-I${.CURDIR} 28 | 29 | # Pre-built configuration 30 | # See scripts/pnglibconf.mak for more options 31 | PNGLIBCONF_H_PREBUILT= scripts/pnglibconf.h.prebuilt 32 | 33 | # We should be able to do something like this instead of the manual 34 | # uncommenting, but it core dumps for me at the moment: 35 | # .if ${MACHINE_ARCH} == "i386" 36 | # MKLINT= no 37 | # .endif 38 | 39 | CLEANFILES+=pngtest.o pngtest pnglibconf.h 40 | 41 | .c.o: 42 | $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $< 43 | 44 | pnglibconf.h: $(PNGLIBCONF_H_PREBUILT) 45 | cp $(PNGLIBCONF_H_PREBUILT) $@ 46 | 47 | pngtest.o: pngtest.c 48 | ${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} 49 | 50 | pngtest: pngtest.o libpng.a 51 | ${CC} ${LDFLAGS} ${.ALLSRC} -o${.TARGET} -lz -lm 52 | 53 | test: pngtest 54 | cd ${.CURDIR} && ${.OBJDIR}/pngtest 55 | 56 | .include 57 | -------------------------------------------------------------------------------- /libpng/scripts/prefix.c: -------------------------------------------------------------------------------- 1 | 2 | /* prefix.c - generate an unprefixed symbol list 3 | * 4 | * Last changed in libpng version 1.6.16 [December 22, 2014] 5 | * Copyright (c) 2013-2014 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 | 12 | #define PNG_EXPORTA(ordinal, type, name, args, attributes)\ 13 | PNG_DFN "@" name "@" 14 | 15 | /* The configuration information *before* the additional of symbol renames, 16 | * the list is the C name list; no symbol prefix. 17 | */ 18 | #include "pnglibconf.out" 19 | 20 | PNG_DFN_START_SORT 1 21 | 22 | #include "../png.h" 23 | 24 | PNG_DFN_END_SORT 25 | -------------------------------------------------------------------------------- /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 | AR_FLAGS = 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 | MKDIR = makedir 21 | 22 | OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o pngread.o \ 23 | pngerror.o pngpread.o pngwrite.o pngrtran.o pngwtran.o pngrio.o \ 24 | pngwio.o pngmem.o 25 | 26 | all: $(LIBNAME) pngtest 27 | 28 | $(LIBNAME): $(OBJS) 29 | $(AR) $(AR_FLAGS) $@ $(OBJS) 30 | $(RANLIB) $@ 31 | 32 | pngtest: pngtest.o $(LIBNAME) 33 | $(LN) $(LDFLAGS) pngtest LIB:c_ppc.o pngtest.o $(LIBNAME) $(LDLIBS) \ 34 | LIB:end.o 35 | -------------------------------------------------------------------------------- /libpng/scripts/sym.c: -------------------------------------------------------------------------------- 1 | 2 | /* sym.c - define format of libpng.sym 3 | * 4 | * Last changed in libpng version 1.6.16 [December 22, 2014] 5 | * Copyright (c) 2011-2014 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 | 12 | #define PNG_EXPORTA(ordinal, type, name, args, attributes)\ 13 | PNG_DFN "@" SYMBOL_PREFIX "@@" name "@" 14 | 15 | #include "../png.h" 16 | -------------------------------------------------------------------------------- /libpng/scripts/vers.c: -------------------------------------------------------------------------------- 1 | 2 | /* vers.c - define format of libpng.vers 3 | * 4 | * Last changed in libpng version 1.6.16 [December 22, 2014] 5 | * Copyright (c) 2011-2014 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 | 12 | #define PNG_EXPORTA(ordinal, type, name, args, attributes)\ 13 | PNG_DFN " @" SYMBOL_PREFIX "@@" name "@;" 14 | 15 | PNG_DFN "@" PNGLIB_LIBNAME "@ {global:" 16 | 17 | #include "../png.h" 18 | 19 | PNG_DFN "local: *; };" 20 | -------------------------------------------------------------------------------- /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 | #!/bin/sh 2 | # 3 | # Usage: 4 | # 5 | # tests/pngstest gamma alpha 6 | # 7 | # Run ./pngstest on the PNG files in $srcdir/contrib/testpngs which have the 8 | # given gamma and opacity: 9 | # 10 | # gamma: one of; linear, 1.8, sRGB, none. 11 | # alpha: one of; opaque, tRNS, alpha, none. 'none' is equivalent to !alpha 12 | # 13 | # NOTE: the temporary files pngstest generates have the base name gamma-alpha to 14 | # avoid issues with make -j 15 | # 16 | gamma="$1" 17 | shift 18 | alpha="$1" 19 | shift 20 | exec ./pngstest --tmpfile "${gamma}-${alpha}-" --log ${1+"$@"} $( 21 | for f in "${srcdir}/contrib/testpngs/"*.png 22 | do 23 | g= 24 | case "$f" in 25 | *-linear[.-]*) 26 | test "$gamma" = "linear" && g="$f";; 27 | 28 | *-sRGB[.-]*) 29 | test "$gamma" = "sRGB" && g="$f";; 30 | 31 | *-1.8[.-]*) 32 | test "$gamma" = "1.8" && g="$f";; 33 | 34 | *) 35 | test "$gamma" = "none" && g="$f";; 36 | esac 37 | 38 | case "$g" in 39 | "") 40 | :;; 41 | 42 | *-alpha[-.]*) 43 | test "$alpha" = "alpha" && echo "$g";; 44 | 45 | *-tRNS[-.]*) 46 | test "$alpha" = "tRNS" -o "$alpha" = "none" && echo "$g";; 47 | 48 | *) 49 | test "$alpha" = "opaque" -o "$alpha" = "none" && echo "$g";; 50 | esac 51 | done 52 | ) 53 | -------------------------------------------------------------------------------- /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/pngtest: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec ./pngtest --strict ${srcdir}/pngtest.png 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 "${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 | -------------------------------------------------------------------------------- /zlib/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/zlib/ChangeLog -------------------------------------------------------------------------------- /zlib/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | -@echo "Please use ./configure first. Thank you." 3 | 4 | distclean: 5 | make -f Makefile.in distclean 6 | -------------------------------------------------------------------------------- /zlib/contrib/README.contrib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/zlib/contrib/README.contrib -------------------------------------------------------------------------------- /zlib/contrib/ada/zlib.gpr: -------------------------------------------------------------------------------- 1 | project Zlib is 2 | 3 | for Languages use ("Ada"); 4 | for Source_Dirs use ("."); 5 | for Object_Dir use "."; 6 | for Main use ("test.adb", "mtest.adb", "read.adb", "buffer_demo"); 7 | 8 | package Compiler is 9 | for Default_Switches ("ada") use ("-gnatwcfilopru", "-gnatVcdfimorst", "-gnatyabcefhiklmnoprst"); 10 | end Compiler; 11 | 12 | package Linker is 13 | for Default_Switches ("ada") use ("-lz"); 14 | end Linker; 15 | 16 | package Builder is 17 | for Default_Switches ("ada") use ("-s", "-gnatQ"); 18 | end Builder; 19 | 20 | end Zlib; 21 | -------------------------------------------------------------------------------- /zlib/contrib/asm686/README.686: -------------------------------------------------------------------------------- 1 | This is a patched version of zlib, modified to use 2 | Pentium-Pro-optimized assembly code in the deflation algorithm. The 3 | files changed/added by this patch are: 4 | 5 | README.686 6 | match.S 7 | 8 | The speedup that this patch provides varies, depending on whether the 9 | compiler used to build the original version of zlib falls afoul of the 10 | PPro's speed traps. My own tests show a speedup of around 10-20% at 11 | the default compression level, and 20-30% using -9, against a version 12 | compiled using gcc 2.7.2.3. Your mileage may vary. 13 | 14 | Note that this code has been tailored for the PPro/PII in particular, 15 | and will not perform particuarly well on a Pentium. 16 | 17 | If you are using an assembler other than GNU as, you will have to 18 | translate match.S to use your assembler's syntax. (Have fun.) 19 | 20 | Brian Raiter 21 | breadbox@muppetlabs.com 22 | April, 1998 23 | 24 | 25 | Added for zlib 1.1.3: 26 | 27 | The patches come from 28 | http://www.muppetlabs.com/~breadbox/software/assembly.html 29 | 30 | To compile zlib with this asm file, copy match.S to the zlib directory 31 | then do: 32 | 33 | CFLAGS="-O3 -DASMV" ./configure 34 | make OBJA=match.o 35 | 36 | 37 | Update: 38 | 39 | I've been ignoring these assembly routines for years, believing that 40 | gcc's generated code had caught up with it sometime around gcc 2.95 41 | and the major rearchitecting of the Pentium 4. However, I recently 42 | learned that, despite what I believed, this code still has some life 43 | in it. On the Pentium 4 and AMD64 chips, it continues to run about 8% 44 | faster than the code produced by gcc 4.1. 45 | 46 | In acknowledgement of its continuing usefulness, I've altered the 47 | license to match that of the rest of zlib. Share and Enjoy! 48 | 49 | Brian Raiter 50 | breadbox@muppetlabs.com 51 | April, 2007 52 | -------------------------------------------------------------------------------- /zlib/contrib/blast/Makefile: -------------------------------------------------------------------------------- 1 | blast: blast.c blast.h 2 | cc -DTEST -o blast blast.c 3 | 4 | test: blast 5 | blast < test.pk | cmp - test.txt 6 | 7 | clean: 8 | rm -f blast blast.o 9 | -------------------------------------------------------------------------------- /zlib/contrib/blast/README: -------------------------------------------------------------------------------- 1 | Read blast.h for purpose and usage. 2 | 3 | Mark Adler 4 | madler@alumni.caltech.edu 5 | -------------------------------------------------------------------------------- /zlib/contrib/blast/test.pk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/zlib/contrib/blast/test.pk -------------------------------------------------------------------------------- /zlib/contrib/blast/test.txt: -------------------------------------------------------------------------------- 1 | AIAIAIAIAIAIA -------------------------------------------------------------------------------- /zlib/contrib/delphi/ZLibConst.pas: -------------------------------------------------------------------------------- 1 | unit ZLibConst; 2 | 3 | interface 4 | 5 | resourcestring 6 | sTargetBufferTooSmall = 'ZLib error: target buffer may be too small'; 7 | sInvalidStreamOp = 'Invalid stream operation'; 8 | 9 | implementation 10 | 11 | end. 12 | -------------------------------------------------------------------------------- /zlib/contrib/dotzlib/DotZLib.build: -------------------------------------------------------------------------------- 1 |  2 | 3 | A .Net wrapper library around ZLib1.dll 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /zlib/contrib/dotzlib/DotZLib.chm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/zlib/contrib/dotzlib/DotZLib.chm -------------------------------------------------------------------------------- /zlib/contrib/dotzlib/DotZLib.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 8.00 2 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotZLib", "DotZLib\DotZLib.csproj", "{BB1EE0B1-1808-46CB-B786-949D91117FC5}" 3 | ProjectSection(ProjectDependencies) = postProject 4 | EndProjectSection 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfiguration) = preSolution 8 | Debug = Debug 9 | Release = Release 10 | EndGlobalSection 11 | GlobalSection(ProjectConfiguration) = postSolution 12 | {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Debug.ActiveCfg = Debug|.NET 13 | {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Debug.Build.0 = Debug|.NET 14 | {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Release.ActiveCfg = Release|.NET 15 | {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Release.Build.0 = Release|.NET 16 | EndGlobalSection 17 | GlobalSection(ExtensibilityGlobals) = postSolution 18 | EndGlobalSection 19 | GlobalSection(ExtensibilityAddIns) = postSolution 20 | EndGlobalSection 21 | EndGlobal 22 | -------------------------------------------------------------------------------- /zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs -------------------------------------------------------------------------------- /zlib/contrib/dotzlib/DotZLib/CircularBuffer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/zlib/contrib/dotzlib/DotZLib/CircularBuffer.cs -------------------------------------------------------------------------------- /zlib/contrib/dotzlib/DotZLib/CodecBase.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/zlib/contrib/dotzlib/DotZLib/CodecBase.cs -------------------------------------------------------------------------------- /zlib/contrib/dotzlib/DotZLib/Deflater.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/zlib/contrib/dotzlib/DotZLib/Deflater.cs -------------------------------------------------------------------------------- /zlib/contrib/dotzlib/DotZLib/DotZLib.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/zlib/contrib/dotzlib/DotZLib/DotZLib.cs -------------------------------------------------------------------------------- /zlib/contrib/dotzlib/DotZLib/GZipStream.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/zlib/contrib/dotzlib/DotZLib/GZipStream.cs -------------------------------------------------------------------------------- /zlib/contrib/dotzlib/DotZLib/Inflater.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/zlib/contrib/dotzlib/DotZLib/Inflater.cs -------------------------------------------------------------------------------- /zlib/contrib/dotzlib/LICENSE_1_0.txt: -------------------------------------------------------------------------------- 1 | Boost Software License - Version 1.0 - August 17th, 2003 2 | 3 | Permission is hereby granted, free of charge, to any person or organization 4 | obtaining a copy of the software and accompanying documentation covered by 5 | this license (the "Software") to use, reproduce, display, distribute, 6 | execute, and transmit the Software, and to prepare derivative works of the 7 | Software, and to permit third-parties to whom the Software is furnished to 8 | do so, all subject to the following: 9 | 10 | The copyright notices in the Software and this entire statement, including 11 | the above license grant, this restriction and the following disclaimer, 12 | must be included in all copies of the Software, in whole or in part, and 13 | all derivative works of the Software, unless such copies or derivative 14 | works are solely in the form of machine-executable object code generated by 15 | a source language processor. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT 20 | SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE 21 | FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, 22 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 23 | DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /zlib/contrib/infback9/README: -------------------------------------------------------------------------------- 1 | See infback9.h for what this is and how to use it. 2 | -------------------------------------------------------------------------------- /zlib/contrib/infback9/infback9.h: -------------------------------------------------------------------------------- 1 | /* infback9.h -- header for using inflateBack9 functions 2 | * Copyright (C) 2003 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* 7 | * This header file and associated patches provide a decoder for PKWare's 8 | * undocumented deflate64 compression method (method 9). Use with infback9.c, 9 | * inftree9.h, inftree9.c, and inffix9.h. These patches are not supported. 10 | * This should be compiled with zlib, since it uses zutil.h and zutil.o. 11 | * This code has not yet been tested on 16-bit architectures. See the 12 | * comments in zlib.h for inflateBack() usage. These functions are used 13 | * identically, except that there is no windowBits parameter, and a 64K 14 | * window must be provided. Also if int's are 16 bits, then a zero for 15 | * the third parameter of the "out" function actually means 65536UL. 16 | * zlib.h must be included before this header file. 17 | */ 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | ZEXTERN int ZEXPORT inflateBack9 OF((z_stream FAR *strm, 24 | in_func in, void FAR *in_desc, 25 | out_func out, void FAR *out_desc)); 26 | ZEXTERN int ZEXPORT inflateBack9End OF((z_stream FAR *strm)); 27 | ZEXTERN int ZEXPORT inflateBack9Init_ OF((z_stream FAR *strm, 28 | unsigned char FAR *window, 29 | const char *version, 30 | int stream_size)); 31 | #define inflateBack9Init(strm, window) \ 32 | inflateBack9Init_((strm), (window), \ 33 | ZLIB_VERSION, sizeof(z_stream)) 34 | 35 | #ifdef __cplusplus 36 | } 37 | #endif 38 | -------------------------------------------------------------------------------- /zlib/contrib/iostream/test.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "zfstream.h" 3 | 4 | int main() { 5 | 6 | // Construct a stream object with this filebuffer. Anything sent 7 | // to this stream will go to standard out. 8 | gzofstream os( 1, ios::out ); 9 | 10 | // This text is getting compressed and sent to stdout. 11 | // To prove this, run 'test | zcat'. 12 | os << "Hello, Mommy" << endl; 13 | 14 | os << setcompressionlevel( Z_NO_COMPRESSION ); 15 | os << "hello, hello, hi, ho!" << endl; 16 | 17 | setcompressionlevel( os, Z_DEFAULT_COMPRESSION ) 18 | << "I'm compressing again" << endl; 19 | 20 | os.close(); 21 | 22 | return 0; 23 | 24 | } 25 | -------------------------------------------------------------------------------- /zlib/contrib/iostream2/zstream_test.cpp: -------------------------------------------------------------------------------- 1 | #include "zstream.h" 2 | #include 3 | #include 4 | #include 5 | 6 | void main() { 7 | char h[256] = "Hello"; 8 | char* g = "Goodbye"; 9 | ozstream out("temp.gz"); 10 | out < "This works well" < h < g; 11 | out.close(); 12 | 13 | izstream in("temp.gz"); // read it back 14 | char *x = read_string(in), *y = new char[256], z[256]; 15 | in > y > z; 16 | in.close(); 17 | cout << x << endl << y << endl << z << endl; 18 | 19 | out.open("temp.gz"); // try ascii output; zcat temp.gz to see the results 20 | out << setw(50) << setfill('#') << setprecision(20) << x << endl << y << endl << z << endl; 21 | out << z << endl << y << endl << x << endl; 22 | out << 1.1234567890123456789 << endl; 23 | 24 | delete[] x; delete[] y; 25 | } 26 | -------------------------------------------------------------------------------- /zlib/contrib/iostream3/README: -------------------------------------------------------------------------------- 1 | These classes provide a C++ stream interface to the zlib library. It allows you 2 | to do things like: 3 | 4 | gzofstream outf("blah.gz"); 5 | outf << "These go into the gzip file " << 123 << endl; 6 | 7 | It does this by deriving a specialized stream buffer for gzipped files, which is 8 | the way Stroustrup would have done it. :-> 9 | 10 | The gzifstream and gzofstream classes were originally written by Kevin Ruland 11 | and made available in the zlib contrib/iostream directory. The older version still 12 | compiles under gcc 2.xx, but not under gcc 3.xx, which sparked the development of 13 | this version. 14 | 15 | The new classes are as standard-compliant as possible, closely following the 16 | approach of the standard library's fstream classes. It compiles under gcc versions 17 | 3.2 and 3.3, but not under gcc 2.xx. This is mainly due to changes in the standard 18 | library naming scheme. The new version of gzifstream/gzofstream/gzfilebuf differs 19 | from the previous one in the following respects: 20 | - added showmanyc 21 | - added setbuf, with support for unbuffered output via setbuf(0,0) 22 | - a few bug fixes of stream behavior 23 | - gzipped output file opened with default compression level instead of maximum level 24 | - setcompressionlevel()/strategy() members replaced by single setcompression() 25 | 26 | The code is provided "as is", with the permission to use, copy, modify, distribute 27 | and sell it for any purpose without fee. 28 | 29 | Ludwig Schwardt 30 | 31 | 32 | DSP Lab 33 | Electrical & Electronic Engineering Department 34 | University of Stellenbosch 35 | South Africa 36 | -------------------------------------------------------------------------------- /zlib/contrib/iostream3/TODO: -------------------------------------------------------------------------------- 1 | Possible upgrades to gzfilebuf: 2 | 3 | - The ability to do putback (e.g. putbackfail) 4 | 5 | - The ability to seek (zlib supports this, but could be slow/tricky) 6 | 7 | - Simultaneous read/write access (does it make sense?) 8 | 9 | - Support for ios_base::ate open mode 10 | 11 | - Locale support? 12 | 13 | - Check public interface to see which calls give problems 14 | (due to dependence on library internals) 15 | 16 | - Override operator<<(ostream&, gzfilebuf*) to allow direct copying 17 | of stream buffer to stream ( i.e. os << is.rdbuf(); ) 18 | -------------------------------------------------------------------------------- /zlib/contrib/iostream3/test.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Test program for gzifstream and gzofstream 3 | * 4 | * by Ludwig Schwardt 5 | * original version by Kevin Ruland 6 | */ 7 | 8 | #include "zfstream.h" 9 | #include // for cout 10 | 11 | int main() { 12 | 13 | gzofstream outf; 14 | gzifstream inf; 15 | char buf[80]; 16 | 17 | outf.open("test1.txt.gz"); 18 | outf << "The quick brown fox sidestepped the lazy canine\n" 19 | << 1.3 << "\nPlan " << 9 << std::endl; 20 | outf.close(); 21 | std::cout << "Wrote the following message to 'test1.txt.gz' (check with zcat or zless):\n" 22 | << "The quick brown fox sidestepped the lazy canine\n" 23 | << 1.3 << "\nPlan " << 9 << std::endl; 24 | 25 | std::cout << "\nReading 'test1.txt.gz' (buffered) produces:\n"; 26 | inf.open("test1.txt.gz"); 27 | while (inf.getline(buf,80,'\n')) { 28 | std::cout << buf << "\t(" << inf.rdbuf()->in_avail() << " chars left in buffer)\n"; 29 | } 30 | inf.close(); 31 | 32 | outf.rdbuf()->pubsetbuf(0,0); 33 | outf.open("test2.txt.gz"); 34 | outf << setcompression(Z_NO_COMPRESSION) 35 | << "The quick brown fox sidestepped the lazy canine\n" 36 | << 1.3 << "\nPlan " << 9 << std::endl; 37 | outf.close(); 38 | std::cout << "\nWrote the same message to 'test2.txt.gz' in uncompressed form"; 39 | 40 | std::cout << "\nReading 'test2.txt.gz' (unbuffered) produces:\n"; 41 | inf.rdbuf()->pubsetbuf(0,0); 42 | inf.open("test2.txt.gz"); 43 | while (inf.getline(buf,80,'\n')) { 44 | std::cout << buf << "\t(" << inf.rdbuf()->in_avail() << " chars left in buffer)\n"; 45 | } 46 | inf.close(); 47 | 48 | return 0; 49 | 50 | } 51 | -------------------------------------------------------------------------------- /zlib/contrib/masmx64/bld_ml64.bat: -------------------------------------------------------------------------------- 1 | ml64.exe /Flinffasx64 /c /Zi inffasx64.asm 2 | ml64.exe /Flgvmat64 /c /Zi gvmat64.asm 3 | -------------------------------------------------------------------------------- /zlib/contrib/masmx64/readme.txt: -------------------------------------------------------------------------------- 1 | Summary 2 | ------- 3 | This directory contains ASM implementations of the functions 4 | longest_match() and inflate_fast(), for 64 bits x86 (both AMD64 and Intel EM64t), 5 | for use with Microsoft Macro Assembler (x64) for AMD64 and Microsoft C++ 64 bits. 6 | 7 | gvmat64.asm is written by Gilles Vollant (2005), by using Brian Raiter 686/32 bits 8 | assembly optimized version from Jean-loup Gailly original longest_match function 9 | 10 | inffasx64.asm and inffas8664.c were written by Chris Anderson, by optimizing 11 | original function from Mark Adler 12 | 13 | Use instructions 14 | ---------------- 15 | Assemble the .asm files using MASM and put the object files into the zlib source 16 | directory. You can also get object files here: 17 | 18 | http://www.winimage.com/zLibDll/zlib124_masm_obj.zip 19 | 20 | define ASMV and ASMINF in your project. Include inffas8664.c in your source tree, 21 | and inffasx64.obj and gvmat64.obj as object to link. 22 | 23 | 24 | Build instructions 25 | ------------------ 26 | run bld_64.bat with Microsoft Macro Assembler (x64) for AMD64 (ml64.exe) 27 | 28 | ml64.exe is given with Visual Studio 2005, Windows 2003 server DDK 29 | 30 | You can get Windows 2003 server DDK with ml64 and cl for AMD64 from 31 | http://www.microsoft.com/whdc/devtools/ddk/default.mspx for low price) 32 | -------------------------------------------------------------------------------- /zlib/contrib/masmx86/bld_ml32.bat: -------------------------------------------------------------------------------- 1 | ml /coff /Zi /c /Flmatch686.lst match686.asm 2 | ml /coff /Zi /c /Flinffas32.lst inffas32.asm 3 | -------------------------------------------------------------------------------- /zlib/contrib/masmx86/readme.txt: -------------------------------------------------------------------------------- 1 | 2 | Summary 3 | ------- 4 | This directory contains ASM implementations of the functions 5 | longest_match() and inflate_fast(). 6 | 7 | 8 | Use instructions 9 | ---------------- 10 | Assemble using MASM, and copy the object files into the zlib source 11 | directory, then run the appropriate makefile, as suggested below. You can 12 | donwload MASM from here: 13 | 14 | http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=7a1c9da0-0510-44a2-b042-7ef370530c64 15 | 16 | You can also get objects files here: 17 | 18 | http://www.winimage.com/zLibDll/zlib124_masm_obj.zip 19 | 20 | Build instructions 21 | ------------------ 22 | * With Microsoft C and MASM: 23 | nmake -f win32/Makefile.msc LOC="-DASMV -DASMINF" OBJA="match686.obj inffas32.obj" 24 | 25 | * With Borland C and TASM: 26 | make -f win32/Makefile.bor LOCAL_ZLIB="-DASMV -DASMINF" OBJA="match686.obj inffas32.obj" OBJPA="+match686c.obj+match686.obj+inffas32.obj" 27 | 28 | -------------------------------------------------------------------------------- /zlib/contrib/minizip/Makefile: -------------------------------------------------------------------------------- 1 | CC=cc 2 | CFLAGS=-O -I../.. 3 | 4 | UNZ_OBJS = miniunz.o unzip.o ioapi.o ../../libz.a 5 | ZIP_OBJS = minizip.o zip.o ioapi.o ../../libz.a 6 | 7 | .c.o: 8 | $(CC) -c $(CFLAGS) $*.c 9 | 10 | all: miniunz minizip 11 | 12 | miniunz: $(UNZ_OBJS) 13 | $(CC) $(CFLAGS) -o $@ $(UNZ_OBJS) 14 | 15 | minizip: $(ZIP_OBJS) 16 | $(CC) $(CFLAGS) -o $@ $(ZIP_OBJS) 17 | 18 | test: miniunz minizip 19 | ./minizip test readme.txt 20 | ./miniunz -l test.zip 21 | mv readme.txt readme.old 22 | ./miniunz test.zip 23 | 24 | clean: 25 | /bin/rm -f *.o *~ minizip miniunz 26 | -------------------------------------------------------------------------------- /zlib/contrib/minizip/Makefile.am: -------------------------------------------------------------------------------- 1 | lib_LTLIBRARIES = libminizip.la 2 | 3 | if COND_DEMOS 4 | bin_PROGRAMS = miniunzip minizip 5 | endif 6 | 7 | zlib_top_srcdir = $(top_srcdir)/../.. 8 | zlib_top_builddir = $(top_builddir)/../.. 9 | 10 | AM_CPPFLAGS = -I$(zlib_top_srcdir) 11 | AM_LDFLAGS = -L$(zlib_top_builddir) 12 | 13 | if WIN32 14 | iowin32_src = iowin32.c 15 | iowin32_h = iowin32.h 16 | endif 17 | 18 | libminizip_la_SOURCES = \ 19 | ioapi.c \ 20 | mztools.c \ 21 | unzip.c \ 22 | zip.c \ 23 | ${iowin32_src} 24 | 25 | libminizip_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:0:0 -lz 26 | 27 | minizip_includedir = $(includedir)/minizip 28 | minizip_include_HEADERS = \ 29 | crypt.h \ 30 | ioapi.h \ 31 | mztools.h \ 32 | unzip.h \ 33 | zip.h \ 34 | ${iowin32_h} 35 | 36 | pkgconfigdir = $(libdir)/pkgconfig 37 | pkgconfig_DATA = minizip.pc 38 | 39 | EXTRA_PROGRAMS = miniunzip minizip 40 | 41 | miniunzip_SOURCES = miniunz.c 42 | miniunzip_LDADD = libminizip.la 43 | 44 | minizip_SOURCES = minizip.c 45 | minizip_LDADD = libminizip.la -lz 46 | -------------------------------------------------------------------------------- /zlib/contrib/minizip/MiniZip64_Changes.txt: -------------------------------------------------------------------------------- 1 | 2 | MiniZip 1.1 was derrived from MiniZip at version 1.01f 3 | 4 | Change in 1.0 (Okt 2009) 5 | - **TODO - Add history** 6 | 7 | -------------------------------------------------------------------------------- /zlib/contrib/minizip/configure.ac: -------------------------------------------------------------------------------- 1 | # -*- Autoconf -*- 2 | # Process this file with autoconf to produce a configure script. 3 | 4 | AC_INIT([minizip], [1.2.8], [bugzilla.redhat.com]) 5 | AC_CONFIG_SRCDIR([minizip.c]) 6 | AM_INIT_AUTOMAKE([foreign]) 7 | LT_INIT 8 | 9 | AC_MSG_CHECKING([whether to build example programs]) 10 | AC_ARG_ENABLE([demos], AC_HELP_STRING([--enable-demos], [build example programs])) 11 | AM_CONDITIONAL([COND_DEMOS], [test "$enable_demos" = yes]) 12 | if test "$enable_demos" = yes 13 | then 14 | AC_MSG_RESULT([yes]) 15 | else 16 | AC_MSG_RESULT([no]) 17 | fi 18 | 19 | case "${host}" in 20 | *-mingw* | mingw*) 21 | WIN32="yes" 22 | ;; 23 | *) 24 | ;; 25 | esac 26 | AM_CONDITIONAL([WIN32], [test "${WIN32}" = "yes"]) 27 | 28 | 29 | AC_SUBST([HAVE_UNISTD_H], [0]) 30 | AC_CHECK_HEADER([unistd.h], [HAVE_UNISTD_H=1], []) 31 | AC_CONFIG_FILES([Makefile minizip.pc]) 32 | AC_OUTPUT 33 | -------------------------------------------------------------------------------- /zlib/contrib/minizip/iowin32.h: -------------------------------------------------------------------------------- 1 | /* iowin32.h -- IO base function header for compress/uncompress .zip 2 | Version 1.1, February 14h, 2010 3 | part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html ) 4 | 5 | Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.com/zLibDll/minizip.html ) 6 | 7 | Modifications for Zip64 support 8 | Copyright (C) 2009-2010 Mathias Svensson ( http://result42.com ) 9 | 10 | For more info read MiniZip_info.txt 11 | 12 | */ 13 | 14 | #include 15 | 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | void fill_win32_filefunc OF((zlib_filefunc_def* pzlib_filefunc_def)); 22 | void fill_win32_filefunc64 OF((zlib_filefunc64_def* pzlib_filefunc_def)); 23 | void fill_win32_filefunc64A OF((zlib_filefunc64_def* pzlib_filefunc_def)); 24 | void fill_win32_filefunc64W OF((zlib_filefunc64_def* pzlib_filefunc_def)); 25 | 26 | #ifdef __cplusplus 27 | } 28 | #endif 29 | -------------------------------------------------------------------------------- /zlib/contrib/minizip/make_vms.com: -------------------------------------------------------------------------------- 1 | $ if f$search("ioapi.h_orig") .eqs. "" then copy ioapi.h ioapi.h_orig 2 | $ open/write zdef vmsdefs.h 3 | $ copy sys$input: zdef 4 | $ deck 5 | #define unix 6 | #define fill_zlib_filefunc64_32_def_from_filefunc32 fillzffunc64from 7 | #define Write_Zip64EndOfCentralDirectoryLocator Write_Zip64EoDLocator 8 | #define Write_Zip64EndOfCentralDirectoryRecord Write_Zip64EoDRecord 9 | #define Write_EndOfCentralDirectoryRecord Write_EoDRecord 10 | $ eod 11 | $ close zdef 12 | $ copy vmsdefs.h,ioapi.h_orig ioapi.h 13 | $ cc/include=[--]/prefix=all ioapi.c 14 | $ cc/include=[--]/prefix=all miniunz.c 15 | $ cc/include=[--]/prefix=all unzip.c 16 | $ cc/include=[--]/prefix=all minizip.c 17 | $ cc/include=[--]/prefix=all zip.c 18 | $ link miniunz,unzip,ioapi,[--]libz.olb/lib 19 | $ link minizip,zip,ioapi,[--]libz.olb/lib 20 | $ mcr []minizip test minizip_info.txt 21 | $ mcr []miniunz -l test.zip 22 | $ rename minizip_info.txt; minizip_info.txt_old 23 | $ mcr []miniunz test.zip 24 | $ delete test.zip;* 25 | $exit 26 | -------------------------------------------------------------------------------- /zlib/contrib/minizip/minizip.1: -------------------------------------------------------------------------------- 1 | .\" Hey, EMACS: -*- nroff -*- 2 | .TH minizip 1 "May 2, 2001" 3 | .\" Please adjust this date whenever revising the manpage. 4 | .\" 5 | .\" Some roff macros, for reference: 6 | .\" .nh disable hyphenation 7 | .\" .hy enable hyphenation 8 | .\" .ad l left justify 9 | .\" .ad b justify to both left and right margins 10 | .\" .nf disable filling 11 | .\" .fi enable filling 12 | .\" .br insert line break 13 | .\" .sp insert n+1 empty lines 14 | .\" for manpage-specific macros, see man(7) 15 | .SH NAME 16 | minizip - create ZIP archives 17 | .SH SYNOPSIS 18 | .B minizip 19 | .RI [ -o ] 20 | zipfile [ " files" ... ] 21 | .SH DESCRIPTION 22 | .B minizip 23 | is a simple tool which allows the creation of compressed file archives 24 | in the ZIP format used by the MS-DOS utility PKZIP. It was written as 25 | a demonstration of the 26 | .IR zlib (3) 27 | library and therefore lack many of the features of the 28 | .IR zip (1) 29 | program. 30 | .SH OPTIONS 31 | The first argument supplied is the name of the ZIP archive to create or 32 | .RI -o 33 | in which case it is ignored and the second argument treated as the 34 | name of the ZIP file. If the ZIP file already exists it will be 35 | overwritten. 36 | .PP 37 | Subsequent arguments specify a list of files to place in the ZIP 38 | archive. If none are specified then an empty archive will be created. 39 | .SH SEE ALSO 40 | .BR miniunzip (1), 41 | .BR zlib (3), 42 | .BR zip (1). 43 | .SH AUTHOR 44 | This program was written by Gilles Vollant. This manual page was 45 | written by Mark Brown . 46 | 47 | -------------------------------------------------------------------------------- /zlib/contrib/minizip/minizip.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@/minizip 5 | 6 | Name: minizip 7 | Description: Minizip zip file manipulation library 8 | Requires: 9 | Version: @PACKAGE_VERSION@ 10 | Libs: -L${libdir} -lminizip 11 | Libs.private: -lz 12 | Cflags: -I${includedir} 13 | -------------------------------------------------------------------------------- /zlib/contrib/minizip/mztools.h: -------------------------------------------------------------------------------- 1 | /* 2 | Additional tools for Minizip 3 | Code: Xavier Roche '2004 4 | License: Same as ZLIB (www.gzip.org) 5 | */ 6 | 7 | #ifndef _zip_tools_H 8 | #define _zip_tools_H 9 | 10 | #ifdef __cplusplus 11 | extern "C" { 12 | #endif 13 | 14 | #ifndef _ZLIB_H 15 | #include "zlib.h" 16 | #endif 17 | 18 | #include "unzip.h" 19 | 20 | /* Repair a ZIP file (missing central directory) 21 | file: file to recover 22 | fileOut: output file after recovery 23 | fileOutTmp: temporary file name used for recovery 24 | */ 25 | extern int ZEXPORT unzRepair(const char* file, 26 | const char* fileOut, 27 | const char* fileOutTmp, 28 | uLong* nRecovered, 29 | uLong* bytesRecovered); 30 | 31 | 32 | #ifdef __cplusplus 33 | } 34 | #endif 35 | 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /zlib/contrib/puff/puff.h: -------------------------------------------------------------------------------- 1 | /* puff.h 2 | Copyright (C) 2002-2013 Mark Adler, all rights reserved 3 | version 2.3, 21 Jan 2013 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the author be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | 21 | Mark Adler madler@alumni.caltech.edu 22 | */ 23 | 24 | 25 | /* 26 | * See puff.c for purpose and usage. 27 | */ 28 | #ifndef NIL 29 | # define NIL ((unsigned char *)0) /* for no output option */ 30 | #endif 31 | 32 | int puff(unsigned char *dest, /* pointer to destination pointer */ 33 | unsigned long *destlen, /* amount of output space */ 34 | const unsigned char *source, /* pointer to source data pointer */ 35 | unsigned long *sourcelen); /* amount of input available */ 36 | -------------------------------------------------------------------------------- /zlib/contrib/puff/zeros.raw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/zlib/contrib/puff/zeros.raw -------------------------------------------------------------------------------- /zlib/contrib/testzlib/testzlib.txt: -------------------------------------------------------------------------------- 1 | To build testzLib with Visual Studio 2005: 2 | 3 | copy to a directory file from : 4 | - root of zLib tree 5 | - contrib/testzlib 6 | - contrib/masmx86 7 | - contrib/masmx64 8 | - contrib/vstudio/vc7 9 | 10 | and open testzlib8.sln -------------------------------------------------------------------------------- /zlib/contrib/untgz/Makefile: -------------------------------------------------------------------------------- 1 | CC=cc 2 | CFLAGS=-g 3 | 4 | untgz: untgz.o ../../libz.a 5 | $(CC) $(CFLAGS) -o untgz untgz.o -L../.. -lz 6 | 7 | untgz.o: untgz.c ../../zlib.h 8 | $(CC) $(CFLAGS) -c -I../.. untgz.c 9 | 10 | ../../libz.a: 11 | cd ../..; ./configure; make 12 | 13 | clean: 14 | rm -f untgz untgz.o *~ 15 | -------------------------------------------------------------------------------- /zlib/contrib/untgz/Makefile.msc: -------------------------------------------------------------------------------- 1 | CC=cl 2 | CFLAGS=-MD 3 | 4 | untgz.exe: untgz.obj ..\..\zlib.lib 5 | $(CC) $(CFLAGS) untgz.obj ..\..\zlib.lib 6 | 7 | untgz.obj: untgz.c ..\..\zlib.h 8 | $(CC) $(CFLAGS) -c -I..\.. untgz.c 9 | 10 | ..\..\zlib.lib: 11 | cd ..\.. 12 | $(MAKE) -f win32\makefile.msc 13 | cd contrib\untgz 14 | 15 | clean: 16 | -del untgz.obj 17 | -del untgz.exe 18 | -------------------------------------------------------------------------------- /zlib/contrib/vstudio/vc10/miniunz.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {048af943-022b-4db6-beeb-a54c34774ee2} 6 | cpp;c;cxx;def;odl;idl;hpj;bat;asm 7 | 8 | 9 | {c1d600d2-888f-4aea-b73e-8b0dd9befa0c} 10 | h;hpp;hxx;hm;inl;inc 11 | 12 | 13 | {0844199a-966b-4f19-81db-1e0125e141b9} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /zlib/contrib/vstudio/vc10/minizip.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {c0419b40-bf50-40da-b153-ff74215b79de} 6 | cpp;c;cxx;def;odl;idl;hpj;bat;asm 7 | 8 | 9 | {bb87b070-735b-478e-92ce-7383abb2f36c} 10 | h;hpp;hxx;hm;inl;inc 11 | 12 | 13 | {f46ab6a6-548f-43cb-ae96-681abb5bd5db} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /zlib/contrib/vstudio/vc10/testzlibdll.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {fa61a89f-93fc-4c89-b29e-36224b7592f4} 6 | cpp;c;cxx;def;odl;idl;hpj;bat;asm 7 | 8 | 9 | {d4b85da0-2ba2-4934-b57f-e2584e3848ee} 10 | h;hpp;hxx;hm;inl;inc 11 | 12 | 13 | {e573e075-00bd-4a7d-bd67-a8cc9bfc5aca} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe 15 | 16 | 17 | 18 | 19 | Source Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /zlib/contrib/vstudio/vc10/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1,2,8,0 6 | PRODUCTVERSION 1,2,8,0 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 8 | FILEFLAGS 0 9 | FILEOS VOS_DOS_WINDOWS32 10 | FILETYPE VFT_DLL 11 | FILESUBTYPE 0 // not used 12 | BEGIN 13 | BLOCK "StringFileInfo" 14 | BEGIN 15 | BLOCK "040904E4" 16 | //language ID = U.S. English, char set = Windows, Multilingual 17 | 18 | BEGIN 19 | VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" 20 | VALUE "FileVersion", "1.2.8\0" 21 | VALUE "InternalName", "zlib\0" 22 | VALUE "OriginalFilename", "zlibwapi.dll\0" 23 | VALUE "ProductName", "ZLib.DLL\0" 24 | VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0" 25 | VALUE "LegalCopyright", "(C) 1995-2013 Jean-loup Gailly & Mark Adler\0" 26 | END 27 | END 28 | BLOCK "VarFileInfo" 29 | BEGIN 30 | VALUE "Translation", 0x0409, 1252 31 | END 32 | END 33 | -------------------------------------------------------------------------------- /zlib/contrib/vstudio/vc11/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1,2,8,0 6 | PRODUCTVERSION 1,2,8,0 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 8 | FILEFLAGS 0 9 | FILEOS VOS_DOS_WINDOWS32 10 | FILETYPE VFT_DLL 11 | FILESUBTYPE 0 // not used 12 | BEGIN 13 | BLOCK "StringFileInfo" 14 | BEGIN 15 | BLOCK "040904E4" 16 | //language ID = U.S. English, char set = Windows, Multilingual 17 | 18 | BEGIN 19 | VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" 20 | VALUE "FileVersion", "1.2.8\0" 21 | VALUE "InternalName", "zlib\0" 22 | VALUE "OriginalFilename", "zlibwapi.dll\0" 23 | VALUE "ProductName", "ZLib.DLL\0" 24 | VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0" 25 | VALUE "LegalCopyright", "(C) 1995-2013 Jean-loup Gailly & Mark Adler\0" 26 | END 27 | END 28 | BLOCK "VarFileInfo" 29 | BEGIN 30 | VALUE "Translation", 0x0409, 1252 31 | END 32 | END 33 | -------------------------------------------------------------------------------- /zlib/contrib/vstudio/vc9/zlib.rc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define IDR_VERSION1 1 4 | IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 5 | FILEVERSION 1,2,8,0 6 | PRODUCTVERSION 1,2,8,0 7 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 8 | FILEFLAGS 0 9 | FILEOS VOS_DOS_WINDOWS32 10 | FILETYPE VFT_DLL 11 | FILESUBTYPE 0 // not used 12 | BEGIN 13 | BLOCK "StringFileInfo" 14 | BEGIN 15 | BLOCK "040904E4" 16 | //language ID = U.S. English, char set = Windows, Multilingual 17 | 18 | BEGIN 19 | VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0" 20 | VALUE "FileVersion", "1.2.8\0" 21 | VALUE "InternalName", "zlib\0" 22 | VALUE "OriginalFilename", "zlibwapi.dll\0" 23 | VALUE "ProductName", "ZLib.DLL\0" 24 | VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0" 25 | VALUE "LegalCopyright", "(C) 1995-2013 Jean-loup Gailly & Mark Adler\0" 26 | END 27 | END 28 | BLOCK "VarFileInfo" 29 | BEGIN 30 | VALUE "Translation", 0x0409, 1252 31 | END 32 | END 33 | -------------------------------------------------------------------------------- /zlib/examples/README.examples: -------------------------------------------------------------------------------- 1 | This directory contains examples of the use of zlib and other relevant 2 | programs and documentation. 3 | 4 | enough.c 5 | calculation and justification of ENOUGH parameter in inftrees.h 6 | - calculates the maximum table space used in inflate tree 7 | construction over all possible Huffman codes 8 | 9 | fitblk.c 10 | compress just enough input to nearly fill a requested output size 11 | - zlib isn't designed to do this, but fitblk does it anyway 12 | 13 | gun.c 14 | uncompress a gzip file 15 | - illustrates the use of inflateBack() for high speed file-to-file 16 | decompression using call-back functions 17 | - is approximately twice as fast as gzip -d 18 | - also provides Unix uncompress functionality, again twice as fast 19 | 20 | gzappend.c 21 | append to a gzip file 22 | - illustrates the use of the Z_BLOCK flush parameter for inflate() 23 | - illustrates the use of deflatePrime() to start at any bit 24 | 25 | gzjoin.c 26 | join gzip files without recalculating the crc or recompressing 27 | - illustrates the use of the Z_BLOCK flush parameter for inflate() 28 | - illustrates the use of crc32_combine() 29 | 30 | gzlog.c 31 | gzlog.h 32 | efficiently and robustly maintain a message log file in gzip format 33 | - illustrates use of raw deflate, Z_PARTIAL_FLUSH, deflatePrime(), 34 | and deflateSetDictionary() 35 | - illustrates use of a gzip header extra field 36 | 37 | zlib_how.html 38 | painfully comprehensive description of zpipe.c (see below) 39 | - describes in excruciating detail the use of deflate() and inflate() 40 | 41 | zpipe.c 42 | reads and writes zlib streams from stdin to stdout 43 | - illustrates the proper use of deflate() and inflate() 44 | - deeply commented in zlib_how.html (see above) 45 | 46 | zran.c 47 | index a zlib or gzip stream and randomly access it 48 | - illustrates the use of Z_BLOCK, inflatePrime(), and 49 | inflateSetDictionary() to provide random access 50 | -------------------------------------------------------------------------------- /zlib/gzclose.c: -------------------------------------------------------------------------------- 1 | /* gzclose.c -- zlib gzclose() function 2 | * Copyright (C) 2004, 2010 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | #include "gzguts.h" 7 | 8 | /* gzclose() is in a separate file so that it is linked in only if it is used. 9 | That way the other gzclose functions can be used instead to avoid linking in 10 | unneeded compression or decompression routines. */ 11 | int ZEXPORT gzclose(file) 12 | gzFile file; 13 | { 14 | #ifndef NO_GZCOMPRESS 15 | gz_statep state; 16 | 17 | if (file == NULL) 18 | return Z_STREAM_ERROR; 19 | state = (gz_statep)file; 20 | 21 | return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file); 22 | #else 23 | return gzclose_r(file); 24 | #endif 25 | } 26 | -------------------------------------------------------------------------------- /zlib/inffast.h: -------------------------------------------------------------------------------- 1 | /* inffast.h -- header to use inffast.c 2 | * Copyright (C) 1995-2003, 2010 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* WARNING: this file should *not* be used by applications. It is 7 | part of the implementation of the compression library and is 8 | subject to change. Applications should only use zlib.h. 9 | */ 10 | 11 | void ZLIB_INTERNAL inflate_fast OF((z_streamp strm, unsigned start)); 12 | -------------------------------------------------------------------------------- /zlib/msdos/Makefile.emx: -------------------------------------------------------------------------------- 1 | # Makefile for zlib. Modified for emx 0.9c by Chr. Spieler, 6/17/98. 2 | # Copyright (C) 1995-1998 Jean-loup Gailly. 3 | # For conditions of distribution and use, see copyright notice in zlib.h 4 | 5 | # To compile, or to compile and test, type: 6 | # 7 | # make -fmakefile.emx; make test -fmakefile.emx 8 | # 9 | 10 | CC=gcc 11 | 12 | #CFLAGS=-MMD -O 13 | #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 14 | #CFLAGS=-MMD -g -DDEBUG 15 | CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ 16 | -Wstrict-prototypes -Wmissing-prototypes 17 | 18 | # If cp.exe is available, replace "copy /Y" with "cp -fp" . 19 | CP=copy /Y 20 | # If gnu install.exe is available, replace $(CP) with ginstall. 21 | INSTALL=$(CP) 22 | # The default value of RM is "rm -f." If "rm.exe" is found, comment out: 23 | RM=del 24 | LDLIBS=-L. -lzlib 25 | LD=$(CC) -s -o 26 | LDSHARED=$(CC) 27 | 28 | INCL=zlib.h zconf.h 29 | LIBS=zlib.a 30 | 31 | AR=ar rcs 32 | 33 | prefix=/usr/local 34 | exec_prefix = $(prefix) 35 | 36 | OBJS = adler32.o compress.o crc32.o gzclose.o gzlib.o gzread.o gzwrite.o \ 37 | uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o 38 | 39 | TEST_OBJS = example.o minigzip.o 40 | 41 | all: example.exe minigzip.exe 42 | 43 | test: all 44 | ./example 45 | echo hello world | .\minigzip | .\minigzip -d 46 | 47 | %.o : %.c 48 | $(CC) $(CFLAGS) -c $< -o $@ 49 | 50 | zlib.a: $(OBJS) 51 | $(AR) $@ $(OBJS) 52 | 53 | %.exe : %.o $(LIBS) 54 | $(LD) $@ $< $(LDLIBS) 55 | 56 | 57 | .PHONY : clean 58 | 59 | clean: 60 | $(RM) *.d 61 | $(RM) *.o 62 | $(RM) *.exe 63 | $(RM) zlib.a 64 | $(RM) foo.gz 65 | 66 | DEPS := $(wildcard *.d) 67 | ifneq ($(DEPS),) 68 | include $(DEPS) 69 | endif 70 | -------------------------------------------------------------------------------- /zlib/nintendods/README: -------------------------------------------------------------------------------- 1 | This Makefile requires devkitARM (http://www.devkitpro.org/category/devkitarm/) and works inside "contrib/nds". It is based on a devkitARM template. 2 | 3 | Eduardo Costa 4 | January 3, 2009 5 | 6 | -------------------------------------------------------------------------------- /zlib/old/Makefile.emx: -------------------------------------------------------------------------------- 1 | # Makefile for zlib. Modified for emx/rsxnt by Chr. Spieler, 6/16/98. 2 | # Copyright (C) 1995-1998 Jean-loup Gailly. 3 | # For conditions of distribution and use, see copyright notice in zlib.h 4 | 5 | # To compile, or to compile and test, type: 6 | # 7 | # make -fmakefile.emx; make test -fmakefile.emx 8 | # 9 | 10 | CC=gcc -Zwin32 11 | 12 | #CFLAGS=-MMD -O 13 | #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 14 | #CFLAGS=-MMD -g -DDEBUG 15 | CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ 16 | -Wstrict-prototypes -Wmissing-prototypes 17 | 18 | # If cp.exe is available, replace "copy /Y" with "cp -fp" . 19 | CP=copy /Y 20 | # If gnu install.exe is available, replace $(CP) with ginstall. 21 | INSTALL=$(CP) 22 | # The default value of RM is "rm -f." If "rm.exe" is found, comment out: 23 | RM=del 24 | LDLIBS=-L. -lzlib 25 | LD=$(CC) -s -o 26 | LDSHARED=$(CC) 27 | 28 | INCL=zlib.h zconf.h 29 | LIBS=zlib.a 30 | 31 | AR=ar rcs 32 | 33 | prefix=/usr/local 34 | exec_prefix = $(prefix) 35 | 36 | OBJS = adler32.o compress.o crc32.o deflate.o gzclose.o gzlib.o gzread.o \ 37 | gzwrite.o infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o 38 | 39 | TEST_OBJS = example.o minigzip.o 40 | 41 | all: example.exe minigzip.exe 42 | 43 | test: all 44 | ./example 45 | echo hello world | .\minigzip | .\minigzip -d 46 | 47 | %.o : %.c 48 | $(CC) $(CFLAGS) -c $< -o $@ 49 | 50 | zlib.a: $(OBJS) 51 | $(AR) $@ $(OBJS) 52 | 53 | %.exe : %.o $(LIBS) 54 | $(LD) $@ $< $(LDLIBS) 55 | 56 | 57 | .PHONY : clean 58 | 59 | clean: 60 | $(RM) *.d 61 | $(RM) *.o 62 | $(RM) *.exe 63 | $(RM) zlib.a 64 | $(RM) foo.gz 65 | 66 | DEPS := $(wildcard *.d) 67 | ifneq ($(DEPS),) 68 | include $(DEPS) 69 | endif 70 | -------------------------------------------------------------------------------- /zlib/old/README: -------------------------------------------------------------------------------- 1 | This directory contains files that have not been updated for zlib 1.2.x 2 | 3 | (Volunteers are encouraged to help clean this up. Thanks.) 4 | -------------------------------------------------------------------------------- /zlib/old/descrip.mms: -------------------------------------------------------------------------------- 1 | # descrip.mms: MMS description file for building zlib on VMS 2 | # written by Martin P.J. Zinser 3 | 4 | cc_defs = 5 | c_deb = 6 | 7 | .ifdef __DECC__ 8 | pref = /prefix=all 9 | .endif 10 | 11 | OBJS = adler32.obj, compress.obj, crc32.obj, gzio.obj, uncompr.obj,\ 12 | deflate.obj, trees.obj, zutil.obj, inflate.obj, infblock.obj,\ 13 | inftrees.obj, infcodes.obj, infutil.obj, inffast.obj 14 | 15 | CFLAGS= $(C_DEB) $(CC_DEFS) $(PREF) 16 | 17 | all : example.exe minigzip.exe 18 | @ write sys$output " Example applications available" 19 | libz.olb : libz.olb($(OBJS)) 20 | @ write sys$output " libz available" 21 | 22 | example.exe : example.obj libz.olb 23 | link example,libz.olb/lib 24 | 25 | minigzip.exe : minigzip.obj libz.olb 26 | link minigzip,libz.olb/lib,x11vms:xvmsutils.olb/lib 27 | 28 | clean : 29 | delete *.obj;*,libz.olb;* 30 | 31 | 32 | # Other dependencies. 33 | adler32.obj : zutil.h zlib.h zconf.h 34 | compress.obj : zlib.h zconf.h 35 | crc32.obj : zutil.h zlib.h zconf.h 36 | deflate.obj : deflate.h zutil.h zlib.h zconf.h 37 | example.obj : zlib.h zconf.h 38 | gzio.obj : zutil.h zlib.h zconf.h 39 | infblock.obj : zutil.h zlib.h zconf.h infblock.h inftrees.h infcodes.h infutil.h 40 | infcodes.obj : zutil.h zlib.h zconf.h inftrees.h infutil.h infcodes.h inffast.h 41 | inffast.obj : zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h 42 | inflate.obj : zutil.h zlib.h zconf.h infblock.h 43 | inftrees.obj : zutil.h zlib.h zconf.h inftrees.h 44 | infutil.obj : zutil.h zlib.h zconf.h inftrees.h infutil.h 45 | minigzip.obj : zlib.h zconf.h 46 | trees.obj : deflate.h zutil.h zlib.h zconf.h 47 | uncompr.obj : zlib.h zconf.h 48 | zutil.obj : zutil.h zlib.h zconf.h 49 | -------------------------------------------------------------------------------- /zlib/old/os2/zlib.def: -------------------------------------------------------------------------------- 1 | ; 2 | ; Slightly modified version of ../nt/zlib.dnt :-) 3 | ; 4 | 5 | LIBRARY Z 6 | DESCRIPTION "Zlib compression library for OS/2" 7 | CODE PRELOAD MOVEABLE DISCARDABLE 8 | DATA PRELOAD MOVEABLE MULTIPLE 9 | 10 | EXPORTS 11 | adler32 12 | compress 13 | crc32 14 | deflate 15 | deflateCopy 16 | deflateEnd 17 | deflateInit2_ 18 | deflateInit_ 19 | deflateParams 20 | deflateReset 21 | deflateSetDictionary 22 | gzclose 23 | gzdopen 24 | gzerror 25 | gzflush 26 | gzopen 27 | gzread 28 | gzwrite 29 | inflate 30 | inflateEnd 31 | inflateInit2_ 32 | inflateInit_ 33 | inflateReset 34 | inflateSetDictionary 35 | inflateSync 36 | uncompress 37 | zlibVersion 38 | gzprintf 39 | gzputc 40 | gzgetc 41 | gzseek 42 | gzrewind 43 | gztell 44 | gzeof 45 | gzsetparams 46 | zError 47 | inflateSyncPoint 48 | get_crc_table 49 | compress2 50 | gzputs 51 | gzgets 52 | -------------------------------------------------------------------------------- /zlib/watcom/watcom_f.mak: -------------------------------------------------------------------------------- 1 | # Makefile for zlib 2 | # OpenWatcom flat model 3 | # Last updated: 28-Dec-2005 4 | 5 | # To use, do "wmake -f watcom_f.mak" 6 | 7 | C_SOURCE = adler32.c compress.c crc32.c deflate.c & 8 | gzclose.c gzlib.c gzread.c gzwrite.c & 9 | infback.c inffast.c inflate.c inftrees.c & 10 | trees.c uncompr.c zutil.c 11 | 12 | OBJS = adler32.obj compress.obj crc32.obj deflate.obj & 13 | gzclose.obj gzlib.obj gzread.obj gzwrite.obj & 14 | infback.obj inffast.obj inflate.obj inftrees.obj & 15 | trees.obj uncompr.obj zutil.obj 16 | 17 | CC = wcc386 18 | LINKER = wcl386 19 | CFLAGS = -zq -mf -3r -fp3 -s -bt=dos -oilrtfm -fr=nul -wx 20 | ZLIB_LIB = zlib_f.lib 21 | 22 | .C.OBJ: 23 | $(CC) $(CFLAGS) $[@ 24 | 25 | all: $(ZLIB_LIB) example.exe minigzip.exe 26 | 27 | $(ZLIB_LIB): $(OBJS) 28 | wlib -b -c $(ZLIB_LIB) -+adler32.obj -+compress.obj -+crc32.obj 29 | wlib -b -c $(ZLIB_LIB) -+gzclose.obj -+gzlib.obj -+gzread.obj -+gzwrite.obj 30 | wlib -b -c $(ZLIB_LIB) -+deflate.obj -+infback.obj 31 | wlib -b -c $(ZLIB_LIB) -+inffast.obj -+inflate.obj -+inftrees.obj 32 | wlib -b -c $(ZLIB_LIB) -+trees.obj -+uncompr.obj -+zutil.obj 33 | 34 | example.exe: $(ZLIB_LIB) example.obj 35 | $(LINKER) -ldos32a -fe=example.exe example.obj $(ZLIB_LIB) 36 | 37 | minigzip.exe: $(ZLIB_LIB) minigzip.obj 38 | $(LINKER) -ldos32a -fe=minigzip.exe minigzip.obj $(ZLIB_LIB) 39 | 40 | clean: .SYMBOLIC 41 | del *.obj 42 | del $(ZLIB_LIB) 43 | @echo Cleaning done 44 | -------------------------------------------------------------------------------- /zlib/watcom/watcom_l.mak: -------------------------------------------------------------------------------- 1 | # Makefile for zlib 2 | # OpenWatcom large model 3 | # Last updated: 28-Dec-2005 4 | 5 | # To use, do "wmake -f watcom_l.mak" 6 | 7 | C_SOURCE = adler32.c compress.c crc32.c deflate.c & 8 | gzclose.c gzlib.c gzread.c gzwrite.c & 9 | infback.c inffast.c inflate.c inftrees.c & 10 | trees.c uncompr.c zutil.c 11 | 12 | OBJS = adler32.obj compress.obj crc32.obj deflate.obj & 13 | gzclose.obj gzlib.obj gzread.obj gzwrite.obj & 14 | infback.obj inffast.obj inflate.obj inftrees.obj & 15 | trees.obj uncompr.obj zutil.obj 16 | 17 | CC = wcc 18 | LINKER = wcl 19 | CFLAGS = -zq -ml -s -bt=dos -oilrtfm -fr=nul -wx 20 | ZLIB_LIB = zlib_l.lib 21 | 22 | .C.OBJ: 23 | $(CC) $(CFLAGS) $[@ 24 | 25 | all: $(ZLIB_LIB) example.exe minigzip.exe 26 | 27 | $(ZLIB_LIB): $(OBJS) 28 | wlib -b -c $(ZLIB_LIB) -+adler32.obj -+compress.obj -+crc32.obj 29 | wlib -b -c $(ZLIB_LIB) -+gzclose.obj -+gzlib.obj -+gzread.obj -+gzwrite.obj 30 | wlib -b -c $(ZLIB_LIB) -+deflate.obj -+infback.obj 31 | wlib -b -c $(ZLIB_LIB) -+inffast.obj -+inflate.obj -+inftrees.obj 32 | wlib -b -c $(ZLIB_LIB) -+trees.obj -+uncompr.obj -+zutil.obj 33 | 34 | example.exe: $(ZLIB_LIB) example.obj 35 | $(LINKER) -fe=example.exe example.obj $(ZLIB_LIB) 36 | 37 | minigzip.exe: $(ZLIB_LIB) minigzip.obj 38 | $(LINKER) -fe=minigzip.exe minigzip.obj $(ZLIB_LIB) 39 | 40 | clean: .SYMBOLIC 41 | del *.obj 42 | del $(ZLIB_LIB) 43 | @echo Cleaning done 44 | -------------------------------------------------------------------------------- /zlib/win32/VisualC.txt: -------------------------------------------------------------------------------- 1 | 2 | To build zlib using the Microsoft Visual C++ environment, 3 | use the appropriate project from the projects/ directory. 4 | -------------------------------------------------------------------------------- /zlib/win32/zlib.def: -------------------------------------------------------------------------------- 1 | ; zlib data compression library 2 | EXPORTS 3 | ; basic functions 4 | zlibVersion 5 | deflate 6 | deflateEnd 7 | inflate 8 | inflateEnd 9 | ; advanced functions 10 | deflateSetDictionary 11 | deflateCopy 12 | deflateReset 13 | deflateParams 14 | deflateTune 15 | deflateBound 16 | deflatePending 17 | deflatePrime 18 | deflateSetHeader 19 | inflateSetDictionary 20 | inflateGetDictionary 21 | inflateSync 22 | inflateCopy 23 | inflateReset 24 | inflateReset2 25 | inflatePrime 26 | inflateMark 27 | inflateGetHeader 28 | inflateBack 29 | inflateBackEnd 30 | zlibCompileFlags 31 | ; utility functions 32 | compress 33 | compress2 34 | compressBound 35 | uncompress 36 | gzopen 37 | gzdopen 38 | gzbuffer 39 | gzsetparams 40 | gzread 41 | gzwrite 42 | gzprintf 43 | gzvprintf 44 | gzputs 45 | gzgets 46 | gzputc 47 | gzgetc 48 | gzungetc 49 | gzflush 50 | gzseek 51 | gzrewind 52 | gztell 53 | gzoffset 54 | gzeof 55 | gzdirect 56 | gzclose 57 | gzclose_r 58 | gzclose_w 59 | gzerror 60 | gzclearerr 61 | ; large file functions 62 | gzopen64 63 | gzseek64 64 | gztell64 65 | gzoffset64 66 | adler32_combine64 67 | crc32_combine64 68 | ; checksum functions 69 | adler32 70 | crc32 71 | adler32_combine 72 | crc32_combine 73 | ; various hacks, don't look :) 74 | deflateInit_ 75 | deflateInit2_ 76 | inflateInit_ 77 | inflateInit2_ 78 | inflateBackInit_ 79 | gzgetc_ 80 | zError 81 | inflateSyncPoint 82 | get_crc_table 83 | inflateUndermine 84 | inflateResetKeep 85 | deflateResetKeep 86 | gzopen_w 87 | -------------------------------------------------------------------------------- /zlib/win32/zlib1.rc: -------------------------------------------------------------------------------- 1 | #include 2 | #include "../zlib.h" 3 | 4 | #ifdef GCC_WINDRES 5 | VS_VERSION_INFO VERSIONINFO 6 | #else 7 | VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE 8 | #endif 9 | FILEVERSION ZLIB_VER_MAJOR,ZLIB_VER_MINOR,ZLIB_VER_REVISION,0 10 | PRODUCTVERSION ZLIB_VER_MAJOR,ZLIB_VER_MINOR,ZLIB_VER_REVISION,0 11 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK 12 | #ifdef _DEBUG 13 | FILEFLAGS 1 14 | #else 15 | FILEFLAGS 0 16 | #endif 17 | FILEOS VOS__WINDOWS32 18 | FILETYPE VFT_DLL 19 | FILESUBTYPE 0 // not used 20 | BEGIN 21 | BLOCK "StringFileInfo" 22 | BEGIN 23 | BLOCK "040904E4" 24 | //language ID = U.S. English, char set = Windows, Multilingual 25 | BEGIN 26 | VALUE "FileDescription", "zlib data compression library\0" 27 | VALUE "FileVersion", ZLIB_VERSION "\0" 28 | VALUE "InternalName", "zlib1.dll\0" 29 | VALUE "LegalCopyright", "(C) 1995-2013 Jean-loup Gailly & Mark Adler\0" 30 | VALUE "OriginalFilename", "zlib1.dll\0" 31 | VALUE "ProductName", "zlib\0" 32 | VALUE "ProductVersion", ZLIB_VERSION "\0" 33 | VALUE "Comments", "For more information visit http://www.zlib.net/\0" 34 | END 35 | END 36 | BLOCK "VarFileInfo" 37 | BEGIN 38 | VALUE "Translation", 0x0409, 1252 39 | END 40 | END 41 | -------------------------------------------------------------------------------- /zlib/zlib.3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasongorski/libbpg-xcode/0a8393301ac7738b4b3b9fc558c56e2a8b364ddd/zlib/zlib.3.pdf -------------------------------------------------------------------------------- /zlib/zlib.map: -------------------------------------------------------------------------------- 1 | ZLIB_1.2.0 { 2 | global: 3 | compressBound; 4 | deflateBound; 5 | inflateBack; 6 | inflateBackEnd; 7 | inflateBackInit_; 8 | inflateCopy; 9 | local: 10 | deflate_copyright; 11 | inflate_copyright; 12 | inflate_fast; 13 | inflate_table; 14 | zcalloc; 15 | zcfree; 16 | z_errmsg; 17 | gz_error; 18 | gz_intmax; 19 | _*; 20 | }; 21 | 22 | ZLIB_1.2.0.2 { 23 | gzclearerr; 24 | gzungetc; 25 | zlibCompileFlags; 26 | } ZLIB_1.2.0; 27 | 28 | ZLIB_1.2.0.8 { 29 | deflatePrime; 30 | } ZLIB_1.2.0.2; 31 | 32 | ZLIB_1.2.2 { 33 | adler32_combine; 34 | crc32_combine; 35 | deflateSetHeader; 36 | inflateGetHeader; 37 | } ZLIB_1.2.0.8; 38 | 39 | ZLIB_1.2.2.3 { 40 | deflateTune; 41 | gzdirect; 42 | } ZLIB_1.2.2; 43 | 44 | ZLIB_1.2.2.4 { 45 | inflatePrime; 46 | } ZLIB_1.2.2.3; 47 | 48 | ZLIB_1.2.3.3 { 49 | adler32_combine64; 50 | crc32_combine64; 51 | gzopen64; 52 | gzseek64; 53 | gztell64; 54 | inflateUndermine; 55 | } ZLIB_1.2.2.4; 56 | 57 | ZLIB_1.2.3.4 { 58 | inflateReset2; 59 | inflateMark; 60 | } ZLIB_1.2.3.3; 61 | 62 | ZLIB_1.2.3.5 { 63 | gzbuffer; 64 | gzoffset; 65 | gzoffset64; 66 | gzclose_r; 67 | gzclose_w; 68 | } ZLIB_1.2.3.4; 69 | 70 | ZLIB_1.2.5.1 { 71 | deflatePending; 72 | } ZLIB_1.2.3.5; 73 | 74 | ZLIB_1.2.5.2 { 75 | deflateResetKeep; 76 | gzgetc_; 77 | inflateResetKeep; 78 | } ZLIB_1.2.5.1; 79 | 80 | ZLIB_1.2.7.1 { 81 | inflateGetDictionary; 82 | gzvprintf; 83 | } ZLIB_1.2.5.2; 84 | -------------------------------------------------------------------------------- /zlib/zlib.pc.cmakein: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=@INSTALL_LIB_DIR@ 4 | sharedlibdir=@INSTALL_LIB_DIR@ 5 | includedir=@INSTALL_INC_DIR@ 6 | 7 | Name: zlib 8 | Description: zlib compression library 9 | Version: @VERSION@ 10 | 11 | Requires: 12 | Libs: -L${libdir} -L${sharedlibdir} -lz 13 | Cflags: -I${includedir} 14 | -------------------------------------------------------------------------------- /zlib/zlib.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | sharedlibdir=@sharedlibdir@ 5 | includedir=@includedir@ 6 | 7 | Name: zlib 8 | Description: zlib compression library 9 | Version: @VERSION@ 10 | 11 | Requires: 12 | Libs: -L${libdir} -L${sharedlibdir} -lz 13 | Cflags: -I${includedir} 14 | --------------------------------------------------------------------------------