gosu 0.7.15 → 0.7.16
Sign up to get free protection for your applications and to get access to all the features.
- data/Gosu/Audio.hpp +18 -29
- data/Gosu/Bitmap.hpp +1 -1
- data/Gosu/Color.hpp +16 -1
- data/Gosu/Font.hpp +3 -3
- data/Gosu/Graphics.hpp +7 -1
- data/Gosu/Image.hpp +4 -4
- data/Gosu/TextInput.hpp +10 -2
- data/Gosu/Version.hpp +2 -2
- data/Gosu/Window.hpp +4 -3
- data/GosuImpl/Audio/AudioOpenAL.mm +46 -29
- data/GosuImpl/AudioFmod.cpp +58 -61
- data/GosuImpl/AudioSDL.cpp +47 -32
- data/GosuImpl/Graphics/BitmapColorKey.cpp +1 -1
- data/GosuImpl/Graphics/BitmapUtils.cpp +2 -2
- data/GosuImpl/Graphics/Color.cpp +12 -0
- data/GosuImpl/Graphics/Font.cpp +1 -1
- data/GosuImpl/Graphics/Text.cpp +2 -2
- data/GosuImpl/Graphics/Texture.cpp +3 -0
- data/GosuImpl/ObjGosu/ObjGosu.mm +36 -0
- data/GosuImpl/ObjGosu/ObjGosuColor.mm +84 -0
- data/GosuImpl/ObjGosu/ObjGosuFont.mm +42 -0
- data/GosuImpl/ObjGosu/ObjGosuImage.h +7 -0
- data/GosuImpl/ObjGosu/ObjGosuImage.mm +65 -0
- data/GosuImpl/ObjGosu/ObjGosuSample.mm +32 -0
- data/GosuImpl/ObjGosu/ObjGosuSong.mm +43 -0
- data/GosuImpl/ObjGosu/ObjGosuWindow.h +32 -0
- data/GosuImpl/ObjGosu/ObjGosuWindow.mm +155 -0
- data/GosuImpl/RubyGosu.swg +48 -21
- data/GosuImpl/RubyGosuStub.mm +6 -0
- data/GosuImpl/RubyGosu_wrap.cxx +358 -195
- data/GosuImpl/RubyGosu_wrap.h +9 -0
- data/GosuImpl/TextInputMac.mm +10 -4
- data/GosuImpl/TextInputWin.cpp +4 -2
- data/GosuImpl/TextInputX.cpp +16 -14
- data/GosuImpl/WindowMac.mm +33 -23
- data/GosuImpl/WindowWin.cpp +22 -16
- data/GosuImpl/WindowX.cpp +17 -16
- data/Rakefile +38 -12
- data/dependencies/libogg/AUTHORS +4 -0
- data/dependencies/libogg/CHANGES +33 -0
- data/dependencies/libogg/COPYING +28 -0
- data/dependencies/libogg/Makefile.am +32 -0
- data/dependencies/libogg/Makefile.in +713 -0
- data/dependencies/libogg/README +103 -0
- data/dependencies/libogg/aclocal.m4 +6807 -0
- data/dependencies/libogg/compile +142 -0
- data/dependencies/libogg/config.guess +1465 -0
- data/dependencies/libogg/config.h.in +70 -0
- data/dependencies/libogg/config.sub +1569 -0
- data/dependencies/libogg/configure +23018 -0
- data/dependencies/libogg/configure.in +301 -0
- data/dependencies/libogg/debian/changelog +68 -0
- data/dependencies/libogg/debian/control +22 -0
- data/dependencies/libogg/debian/copyright +37 -0
- data/dependencies/libogg/debian/libogg-dev.docs +1 -0
- data/dependencies/libogg/debian/libogg-dev.install +8 -0
- data/dependencies/libogg/debian/libogg0.README.Debian +6 -0
- data/dependencies/libogg/debian/libogg0.install +1 -0
- data/dependencies/libogg/debian/rules +154 -0
- data/dependencies/libogg/debian/watch +3 -0
- data/dependencies/libogg/depcomp +529 -0
- data/dependencies/libogg/doc/Makefile.am +11 -0
- data/dependencies/libogg/doc/Makefile.in +518 -0
- data/dependencies/libogg/doc/framing.html +431 -0
- data/dependencies/libogg/doc/index.html +104 -0
- data/dependencies/libogg/doc/libogg/Makefile.am +28 -0
- data/dependencies/libogg/doc/libogg/Makefile.in +378 -0
- data/dependencies/libogg/doc/libogg/bitpacking.html +99 -0
- data/dependencies/libogg/doc/libogg/datastructures.html +59 -0
- data/dependencies/libogg/doc/libogg/decoding.html +100 -0
- data/dependencies/libogg/doc/libogg/encoding.html +64 -0
- data/dependencies/libogg/doc/libogg/general.html +105 -0
- data/dependencies/libogg/doc/libogg/index.html +39 -0
- data/dependencies/libogg/doc/libogg/ogg_packet.html +75 -0
- data/dependencies/libogg/doc/libogg/ogg_packet_clear.html +62 -0
- data/dependencies/libogg/doc/libogg/ogg_page.html +74 -0
- data/dependencies/libogg/doc/libogg/ogg_page_bos.html +65 -0
- data/dependencies/libogg/doc/libogg/ogg_page_checksum_set.html +62 -0
- data/dependencies/libogg/doc/libogg/ogg_page_continued.html +64 -0
- data/dependencies/libogg/doc/libogg/ogg_page_eos.html +65 -0
- data/dependencies/libogg/doc/libogg/ogg_page_granulepos.html +65 -0
- data/dependencies/libogg/doc/libogg/ogg_page_packets.html +75 -0
- data/dependencies/libogg/doc/libogg/ogg_page_pageno.html +63 -0
- data/dependencies/libogg/doc/libogg/ogg_page_serialno.html +63 -0
- data/dependencies/libogg/doc/libogg/ogg_page_version.html +63 -0
- data/dependencies/libogg/doc/libogg/ogg_stream_clear.html +61 -0
- data/dependencies/libogg/doc/libogg/ogg_stream_destroy.html +62 -0
- data/dependencies/libogg/doc/libogg/ogg_stream_eos.html +62 -0
- data/dependencies/libogg/doc/libogg/ogg_stream_flush.html +67 -0
- data/dependencies/libogg/doc/libogg/ogg_stream_init.html +66 -0
- data/dependencies/libogg/doc/libogg/ogg_stream_packetin.html +65 -0
- data/dependencies/libogg/doc/libogg/ogg_stream_packetout.html +71 -0
- data/dependencies/libogg/doc/libogg/ogg_stream_packetpeek.html +85 -0
- data/dependencies/libogg/doc/libogg/ogg_stream_pagein.html +67 -0
- data/dependencies/libogg/doc/libogg/ogg_stream_pageout.html +66 -0
- data/dependencies/libogg/doc/libogg/ogg_stream_reset.html +61 -0
- data/dependencies/libogg/doc/libogg/ogg_stream_reset_serialno.html +67 -0
- data/dependencies/libogg/doc/libogg/ogg_stream_state.html +121 -0
- data/dependencies/libogg/doc/libogg/ogg_sync_buffer.html +67 -0
- data/dependencies/libogg/doc/libogg/ogg_sync_clear.html +62 -0
- data/dependencies/libogg/doc/libogg/ogg_sync_destroy.html +62 -0
- data/dependencies/libogg/doc/libogg/ogg_sync_init.html +63 -0
- data/dependencies/libogg/doc/libogg/ogg_sync_pageout.html +79 -0
- data/dependencies/libogg/doc/libogg/ogg_sync_pageseek.html +68 -0
- data/dependencies/libogg/doc/libogg/ogg_sync_reset.html +63 -0
- data/dependencies/libogg/doc/libogg/ogg_sync_state.html +67 -0
- data/dependencies/libogg/doc/libogg/ogg_sync_wrote.html +73 -0
- data/dependencies/libogg/doc/libogg/oggpack_adv.html +64 -0
- data/dependencies/libogg/doc/libogg/oggpack_adv1.html +62 -0
- data/dependencies/libogg/doc/libogg/oggpack_bits.html +62 -0
- data/dependencies/libogg/doc/libogg/oggpack_buffer.html +66 -0
- data/dependencies/libogg/doc/libogg/oggpack_bytes.html +62 -0
- data/dependencies/libogg/doc/libogg/oggpack_get_buffer.html +62 -0
- data/dependencies/libogg/doc/libogg/oggpack_look.html +66 -0
- data/dependencies/libogg/doc/libogg/oggpack_look1.html +63 -0
- data/dependencies/libogg/doc/libogg/oggpack_read.html +65 -0
- data/dependencies/libogg/doc/libogg/oggpack_read1.html +63 -0
- data/dependencies/libogg/doc/libogg/oggpack_readinit.html +64 -0
- data/dependencies/libogg/doc/libogg/oggpack_reset.html +62 -0
- data/dependencies/libogg/doc/libogg/oggpack_write.html +68 -0
- data/dependencies/libogg/doc/libogg/oggpack_writealign.html +65 -0
- data/dependencies/libogg/doc/libogg/oggpack_writeclear.html +62 -0
- data/dependencies/libogg/doc/libogg/oggpack_writecopy.html +69 -0
- data/dependencies/libogg/doc/libogg/oggpack_writeinit.html +62 -0
- data/dependencies/libogg/doc/libogg/oggpack_writetrunc.html +65 -0
- data/dependencies/libogg/doc/libogg/overview.html +44 -0
- data/dependencies/libogg/doc/libogg/reference.html +93 -0
- data/dependencies/libogg/doc/libogg/style.css +7 -0
- data/dependencies/libogg/doc/libogg/vorbis_comment.html +70 -0
- data/dependencies/libogg/doc/libogg/vorbis_info.html +80 -0
- data/dependencies/libogg/doc/ogg-multiplex.html +445 -0
- data/dependencies/libogg/doc/oggstream.html +234 -0
- data/dependencies/libogg/doc/rfc3533.txt +843 -0
- data/dependencies/libogg/doc/rfc3534.txt +339 -0
- data/dependencies/libogg/doc/stream.png +0 -0
- data/dependencies/libogg/doc/vorbisword2.png +0 -0
- data/dependencies/libogg/doc/white-ogg.png +0 -0
- data/dependencies/libogg/doc/white-xifish.png +0 -0
- data/dependencies/libogg/include/Makefile.am +3 -0
- data/dependencies/libogg/include/Makefile.in +481 -0
- data/dependencies/libogg/include/ogg/Makefile.am +6 -0
- data/dependencies/libogg/include/ogg/Makefile.in +428 -0
- data/dependencies/libogg/include/ogg/config_types.h.in +11 -0
- data/dependencies/libogg/include/ogg/ogg.h +202 -0
- data/dependencies/libogg/include/ogg/os_types.h +127 -0
- data/dependencies/libogg/install-sh +323 -0
- data/dependencies/libogg/libogg.spec +106 -0
- data/dependencies/libogg/libogg.spec.in +106 -0
- data/dependencies/libogg/ltmain.sh +6426 -0
- data/dependencies/libogg/macos/compat/strdup.c +21 -0
- data/dependencies/libogg/macos/compat/sys/types.h +1 -0
- data/dependencies/libogg/macos/libogg.mcp +0 -0
- data/dependencies/libogg/macos/libogg.mcp.exp +64 -0
- data/dependencies/libogg/macosx/English.lproj/InfoPlist.strings +0 -0
- data/dependencies/libogg/macosx/Info.plist +30 -0
- data/dependencies/libogg/macosx/Ogg.xcodeproj/project.pbxproj +303 -0
- data/dependencies/libogg/macosx/Ogg_Prefix.pch +5 -0
- data/dependencies/libogg/missing +357 -0
- data/dependencies/libogg/ogg-uninstalled.pc.in +14 -0
- data/dependencies/libogg/ogg.m4 +102 -0
- data/dependencies/libogg/ogg.pc.in +14 -0
- data/dependencies/libogg/src/Makefile.am +28 -0
- data/dependencies/libogg/src/Makefile.in +536 -0
- data/dependencies/libogg/src/bitwise.c +784 -0
- data/dependencies/libogg/src/framing.c +1800 -0
- data/dependencies/libogg/win32/Makefile.am +5 -0
- data/dependencies/libogg/win32/Makefile.in +327 -0
- data/dependencies/libogg/win32/build_ogg_dynamic.bat +18 -0
- data/dependencies/libogg/win32/build_ogg_dynamic_debug.bat +18 -0
- data/dependencies/libogg/win32/build_ogg_static.bat +18 -0
- data/dependencies/libogg/win32/build_ogg_static_debug.bat +18 -0
- data/dependencies/libogg/win32/ogg.def +78 -0
- data/dependencies/libogg/win32/ogg.dsw +41 -0
- data/dependencies/libogg/win32/ogg_dynamic.dsp +128 -0
- data/dependencies/libogg/win32/ogg_static.dsp +108 -0
- data/dependencies/libpng/ANNOUNCE +61 -0
- data/dependencies/libpng/CHANGES +2173 -0
- data/dependencies/libpng/INSTALL +199 -0
- data/dependencies/libpng/KNOWNBUG +22 -0
- data/dependencies/libpng/LICENSE +109 -0
- data/dependencies/libpng/README +264 -0
- data/dependencies/libpng/TODO +24 -0
- data/dependencies/libpng/Y2KINFO +55 -0
- data/dependencies/libpng/configure +13 -0
- data/dependencies/libpng/contrib/gregbook/COPYING +340 -0
- data/dependencies/libpng/contrib/gregbook/LICENSE +50 -0
- data/dependencies/libpng/contrib/gregbook/Makefile.mingw32 +130 -0
- data/dependencies/libpng/contrib/gregbook/Makefile.sgi +104 -0
- data/dependencies/libpng/contrib/gregbook/Makefile.unx +132 -0
- data/dependencies/libpng/contrib/gregbook/Makefile.w32 +113 -0
- data/dependencies/libpng/contrib/gregbook/README +186 -0
- data/dependencies/libpng/contrib/gregbook/makevms.com +132 -0
- data/dependencies/libpng/contrib/gregbook/readpng.c +304 -0
- data/dependencies/libpng/contrib/gregbook/readpng.h +88 -0
- data/dependencies/libpng/contrib/gregbook/readpng2.c +645 -0
- data/dependencies/libpng/contrib/gregbook/readpng2.h +121 -0
- data/dependencies/libpng/contrib/gregbook/readppm.c +179 -0
- data/dependencies/libpng/contrib/gregbook/rpng-win.c +684 -0
- data/dependencies/libpng/contrib/gregbook/rpng-x.c +904 -0
- data/dependencies/libpng/contrib/gregbook/rpng2-win.c +1225 -0
- data/dependencies/libpng/contrib/gregbook/rpng2-x.c +2127 -0
- data/dependencies/libpng/contrib/gregbook/toucan.png +0 -0
- data/dependencies/libpng/contrib/gregbook/wpng.c +853 -0
- data/dependencies/libpng/contrib/gregbook/writepng.c +392 -0
- data/dependencies/libpng/contrib/gregbook/writepng.h +133 -0
- data/dependencies/libpng/contrib/pngminim/decoder/README +6 -0
- data/dependencies/libpng/contrib/pngminim/decoder/gather.sh +8 -0
- data/dependencies/libpng/contrib/pngminim/decoder/makefile.std +44 -0
- data/dependencies/libpng/contrib/pngminim/decoder/pngusr.h +67 -0
- data/dependencies/libpng/contrib/pngminim/encoder/README +6 -0
- data/dependencies/libpng/contrib/pngminim/encoder/dummy_inflate.c +27 -0
- data/dependencies/libpng/contrib/pngminim/encoder/gather.sh +9 -0
- data/dependencies/libpng/contrib/pngminim/encoder/makefile.std +43 -0
- data/dependencies/libpng/contrib/pngminim/encoder/pngusr.h +66 -0
- data/dependencies/libpng/contrib/pngminus/README +153 -0
- data/dependencies/libpng/contrib/pngminus/makefile.std +65 -0
- data/dependencies/libpng/contrib/pngminus/makefile.tc3 +38 -0
- data/dependencies/libpng/contrib/pngminus/makevms.com +92 -0
- data/dependencies/libpng/contrib/pngminus/png2pnm.bat +41 -0
- data/dependencies/libpng/contrib/pngminus/png2pnm.c +430 -0
- data/dependencies/libpng/contrib/pngminus/png2pnm.sh +42 -0
- data/dependencies/libpng/contrib/pngminus/pngminus.bat +4 -0
- data/dependencies/libpng/contrib/pngminus/pngminus.sh +5 -0
- data/dependencies/libpng/contrib/pngminus/pnm2png.bat +41 -0
- data/dependencies/libpng/contrib/pngminus/pnm2png.c +533 -0
- data/dependencies/libpng/contrib/pngminus/pnm2png.sh +42 -0
- data/dependencies/libpng/contrib/pngsuite/basn0g01.png +0 -0
- data/dependencies/libpng/contrib/pngsuite/basn0g02.png +0 -0
- data/dependencies/libpng/contrib/pngsuite/basn0g04.png +0 -0
- data/dependencies/libpng/contrib/pngsuite/basn0g08.png +0 -0
- data/dependencies/libpng/contrib/pngsuite/basn0g16.png +0 -0
- data/dependencies/libpng/contrib/pngsuite/basn2c08.png +0 -0
- data/dependencies/libpng/contrib/pngsuite/basn2c16.png +0 -0
- data/dependencies/libpng/contrib/pngsuite/basn3p01.png +0 -0
- data/dependencies/libpng/contrib/pngsuite/basn3p02.png +0 -0
- data/dependencies/libpng/contrib/pngsuite/basn3p04.png +0 -0
- data/dependencies/libpng/contrib/pngsuite/basn3p08.png +0 -0
- data/dependencies/libpng/contrib/pngsuite/basn4a08.png +0 -0
- data/dependencies/libpng/contrib/pngsuite/basn4a16.png +0 -0
- data/dependencies/libpng/contrib/pngsuite/basn6a08.png +0 -0
- data/dependencies/libpng/contrib/pngsuite/basn6a16.png +0 -0
- data/dependencies/libpng/contrib/visupng/PngFile.c +439 -0
- data/dependencies/libpng/contrib/visupng/PngFile.h +27 -0
- data/dependencies/libpng/contrib/visupng/README.txt +58 -0
- data/dependencies/libpng/contrib/visupng/VisualPng.c +961 -0
- data/dependencies/libpng/contrib/visupng/VisualPng.dsp +147 -0
- data/dependencies/libpng/contrib/visupng/VisualPng.dsw +29 -0
- data/dependencies/libpng/contrib/visupng/VisualPng.ico +0 -0
- data/dependencies/libpng/contrib/visupng/VisualPng.png +0 -0
- data/dependencies/libpng/contrib/visupng/VisualPng.rc +152 -0
- data/dependencies/libpng/contrib/visupng/cexcept.h +243 -0
- data/dependencies/libpng/contrib/visupng/resource.h +23 -0
- data/dependencies/libpng/example.c +814 -0
- data/dependencies/libpng/libpng-1.2.29.txt +2906 -0
- data/dependencies/libpng/libpng.3 +3680 -0
- data/dependencies/libpng/libpngpf.3 +274 -0
- data/dependencies/libpng/png.5 +74 -0
- data/dependencies/libpng/png.c +798 -0
- data/dependencies/libpng/png.h +3569 -0
- data/dependencies/libpng/pngbar.jpg +0 -0
- data/dependencies/libpng/pngbar.png +0 -0
- data/dependencies/libpng/pngconf.h +1481 -0
- data/dependencies/libpng/pngerror.c +343 -0
- data/dependencies/libpng/pnggccrd.c +103 -0
- data/dependencies/libpng/pngget.c +901 -0
- data/dependencies/libpng/pngmem.c +608 -0
- data/dependencies/libpng/pngnow.png +0 -0
- data/dependencies/libpng/pngpread.c +1598 -0
- data/dependencies/libpng/pngread.c +1479 -0
- data/dependencies/libpng/pngrio.c +167 -0
- data/dependencies/libpng/pngrtran.c +4292 -0
- data/dependencies/libpng/pngrutil.c +3183 -0
- data/dependencies/libpng/pngset.c +1268 -0
- data/dependencies/libpng/pngtest.c +1563 -0
- data/dependencies/libpng/pngtest.png +0 -0
- data/dependencies/libpng/pngtrans.c +662 -0
- data/dependencies/libpng/pngvcrd.c +1 -0
- data/dependencies/libpng/pngwio.c +234 -0
- data/dependencies/libpng/pngwrite.c +1532 -0
- data/dependencies/libpng/pngwtran.c +572 -0
- data/dependencies/libpng/pngwutil.c +2802 -0
- data/dependencies/libpng/projects/beos/x86-shared.proj +0 -0
- data/dependencies/libpng/projects/beos/x86-shared.txt +22 -0
- data/dependencies/libpng/projects/beos/x86-static.proj +0 -0
- data/dependencies/libpng/projects/beos/x86-static.txt +22 -0
- data/dependencies/libpng/projects/cbuilder5/libpng.bpf +22 -0
- data/dependencies/libpng/projects/cbuilder5/libpng.bpg +25 -0
- data/dependencies/libpng/projects/cbuilder5/libpng.bpr +157 -0
- data/dependencies/libpng/projects/cbuilder5/libpng.cpp +29 -0
- data/dependencies/libpng/projects/cbuilder5/libpng.readme.txt +25 -0
- data/dependencies/libpng/projects/cbuilder5/libpngstat.bpf +22 -0
- data/dependencies/libpng/projects/cbuilder5/libpngstat.bpr +109 -0
- data/dependencies/libpng/projects/cbuilder5/zlib.readme.txt +14 -0
- data/dependencies/libpng/projects/netware.txt +6 -0
- data/dependencies/libpng/projects/visualc6/README.txt +57 -0
- data/dependencies/libpng/projects/visualc6/libpng.dsp +472 -0
- data/dependencies/libpng/projects/visualc6/libpng.dsw +59 -0
- data/dependencies/libpng/projects/visualc6/pngtest.dsp +314 -0
- data/dependencies/libpng/projects/visualc71/PRJ0041.mak +21 -0
- data/dependencies/libpng/projects/visualc71/README.txt +57 -0
- data/dependencies/libpng/projects/visualc71/README_zlib.txt +44 -0
- data/dependencies/libpng/projects/visualc71/libpng.sln +88 -0
- data/dependencies/libpng/projects/visualc71/libpng.vcproj +702 -0
- data/dependencies/libpng/projects/visualc71/pngtest.vcproj +459 -0
- data/dependencies/libpng/projects/visualc71/zlib.vcproj +670 -0
- data/dependencies/libpng/projects/wince.txt +6 -0
- data/dependencies/libpng/scripts/CMakeLists.txt +210 -0
- data/dependencies/libpng/scripts/SCOPTIONS.ppc +7 -0
- data/dependencies/libpng/scripts/descrip.mms +52 -0
- data/dependencies/libpng/scripts/libpng-config-body.in +96 -0
- data/dependencies/libpng/scripts/libpng-config-head.in +21 -0
- data/dependencies/libpng/scripts/libpng-config.in +124 -0
- data/dependencies/libpng/scripts/libpng.icc +44 -0
- data/dependencies/libpng/scripts/libpng.pc-configure.in +10 -0
- data/dependencies/libpng/scripts/libpng.pc.in +10 -0
- data/dependencies/libpng/scripts/makefile.32sunu +254 -0
- data/dependencies/libpng/scripts/makefile.64sunu +254 -0
- data/dependencies/libpng/scripts/makefile.acorn +51 -0
- data/dependencies/libpng/scripts/makefile.aix +113 -0
- data/dependencies/libpng/scripts/makefile.amiga +48 -0
- data/dependencies/libpng/scripts/makefile.atari +51 -0
- data/dependencies/libpng/scripts/makefile.bc32 +152 -0
- data/dependencies/libpng/scripts/makefile.beos +226 -0
- data/dependencies/libpng/scripts/makefile.bor +162 -0
- data/dependencies/libpng/scripts/makefile.cygwin +299 -0
- data/dependencies/libpng/scripts/makefile.darwin +234 -0
- data/dependencies/libpng/scripts/makefile.dec +214 -0
- data/dependencies/libpng/scripts/makefile.dj2 +55 -0
- data/dependencies/libpng/scripts/makefile.elf +275 -0
- data/dependencies/libpng/scripts/makefile.freebsd +48 -0
- data/dependencies/libpng/scripts/makefile.gcc +79 -0
- data/dependencies/libpng/scripts/makefile.gcmmx +271 -0
- data/dependencies/libpng/scripts/makefile.hp64 +235 -0
- data/dependencies/libpng/scripts/makefile.hpgcc +245 -0
- data/dependencies/libpng/scripts/makefile.hpux +232 -0
- data/dependencies/libpng/scripts/makefile.ibmc +71 -0
- data/dependencies/libpng/scripts/makefile.intel +102 -0
- data/dependencies/libpng/scripts/makefile.knr +99 -0
- data/dependencies/libpng/scripts/makefile.linux +249 -0
- data/dependencies/libpng/scripts/makefile.mingw +289 -0
- data/dependencies/libpng/scripts/makefile.mips +83 -0
- data/dependencies/libpng/scripts/makefile.msc +86 -0
- data/dependencies/libpng/scripts/makefile.ne12bsd +45 -0
- data/dependencies/libpng/scripts/makefile.netbsd +45 -0
- data/dependencies/libpng/scripts/makefile.nommx +252 -0
- data/dependencies/libpng/scripts/makefile.openbsd +73 -0
- data/dependencies/libpng/scripts/makefile.os2 +69 -0
- data/dependencies/libpng/scripts/makefile.sco +229 -0
- data/dependencies/libpng/scripts/makefile.sggcc +242 -0
- data/dependencies/libpng/scripts/makefile.sgi +245 -0
- data/dependencies/libpng/scripts/makefile.so9 +251 -0
- data/dependencies/libpng/scripts/makefile.solaris +249 -0
- data/dependencies/libpng/scripts/makefile.solaris-x86 +248 -0
- data/dependencies/libpng/scripts/makefile.std +92 -0
- data/dependencies/libpng/scripts/makefile.sunos +97 -0
- data/dependencies/libpng/scripts/makefile.tc3 +89 -0
- data/dependencies/libpng/scripts/makefile.vcawin32 +99 -0
- data/dependencies/libpng/scripts/makefile.vcwin32 +99 -0
- data/dependencies/libpng/scripts/makefile.watcom +109 -0
- data/dependencies/libpng/scripts/makevms.com +144 -0
- data/dependencies/libpng/scripts/pngos2.def +257 -0
- data/dependencies/libpng/scripts/pngw32.def +238 -0
- data/dependencies/libpng/scripts/pngw32.rc +112 -0
- data/dependencies/libpng/scripts/smakefile.ppc +30 -0
- data/dependencies/libvorbis/AUTHORS +3 -0
- data/dependencies/libvorbis/CHANGES +48 -0
- data/dependencies/libvorbis/COPYING +28 -0
- data/dependencies/libvorbis/Makefile.am +41 -0
- data/dependencies/libvorbis/Makefile.in +759 -0
- data/dependencies/libvorbis/README +132 -0
- data/dependencies/libvorbis/acinclude.m4 +161 -0
- data/dependencies/libvorbis/aclocal.m4 +7273 -0
- data/dependencies/libvorbis/autogen.sh +127 -0
- data/dependencies/libvorbis/config.guess +1500 -0
- data/dependencies/libvorbis/config.h.in +78 -0
- data/dependencies/libvorbis/config.sub +1616 -0
- data/dependencies/libvorbis/configure +22114 -0
- data/dependencies/libvorbis/configure.in +246 -0
- data/dependencies/libvorbis/depcomp +584 -0
- data/dependencies/libvorbis/doc/Makefile +665 -0
- data/dependencies/libvorbis/doc/Makefile.am +137 -0
- data/dependencies/libvorbis/doc/Makefile.in +665 -0
- data/dependencies/libvorbis/doc/Vorbis_I_spec.html +2292 -0
- data/dependencies/libvorbis/doc/Vorbis_I_spec.pdf +0 -0
- data/dependencies/libvorbis/doc/components.png +0 -0
- data/dependencies/libvorbis/doc/draft-ietf-avt-rtp-vorbis-06.txt +1401 -0
- data/dependencies/libvorbis/doc/draft-ietf-avt-rtp-vorbis-06.xml +1388 -0
- data/dependencies/libvorbis/doc/eightphase.png +0 -0
- data/dependencies/libvorbis/doc/evenlsp.png +0 -0
- data/dependencies/libvorbis/doc/fish_xiph_org.png +0 -0
- data/dependencies/libvorbis/doc/floor1-1.png +0 -0
- data/dependencies/libvorbis/doc/floor1-2.png +0 -0
- data/dependencies/libvorbis/doc/floor1-3.png +0 -0
- data/dependencies/libvorbis/doc/floor1-4.png +0 -0
- data/dependencies/libvorbis/doc/floor1_inverse_dB_table.html +154 -0
- data/dependencies/libvorbis/doc/floorval.png +0 -0
- data/dependencies/libvorbis/doc/fourphase.png +0 -0
- data/dependencies/libvorbis/doc/framing.html +431 -0
- data/dependencies/libvorbis/doc/helper.html +239 -0
- data/dependencies/libvorbis/doc/hufftree-under.png +0 -0
- data/dependencies/libvorbis/doc/hufftree.png +0 -0
- data/dependencies/libvorbis/doc/index.html +114 -0
- data/dependencies/libvorbis/doc/lspmap.png +0 -0
- data/dependencies/libvorbis/doc/oddlsp.png +0 -0
- data/dependencies/libvorbis/doc/oggstream.html +234 -0
- data/dependencies/libvorbis/doc/programming.html +554 -0
- data/dependencies/libvorbis/doc/residue-pack.png +0 -0
- data/dependencies/libvorbis/doc/residue2.png +0 -0
- data/dependencies/libvorbis/doc/squarepolar.png +0 -0
- data/dependencies/libvorbis/doc/stereo.html +418 -0
- data/dependencies/libvorbis/doc/stream.png +0 -0
- data/dependencies/libvorbis/doc/v-comment.html +285 -0
- data/dependencies/libvorbis/doc/vorbis-clip.txt +139 -0
- data/dependencies/libvorbis/doc/vorbis-errors.txt +103 -0
- data/dependencies/libvorbis/doc/vorbis-fidelity.html +180 -0
- data/dependencies/libvorbis/doc/vorbis.html +234 -0
- data/dependencies/libvorbis/doc/vorbisenc/Makefile +382 -0
- data/dependencies/libvorbis/doc/vorbisenc/Makefile.am +9 -0
- data/dependencies/libvorbis/doc/vorbisenc/Makefile.in +382 -0
- data/dependencies/libvorbis/doc/vorbisenc/changes.html +104 -0
- data/dependencies/libvorbis/doc/vorbisenc/examples.html +133 -0
- data/dependencies/libvorbis/doc/vorbisenc/index.html +40 -0
- data/dependencies/libvorbis/doc/vorbisenc/ov_ectl_ratemanage2_arg.html +92 -0
- data/dependencies/libvorbis/doc/vorbisenc/ov_ectl_ratemanage_arg.html +92 -0
- data/dependencies/libvorbis/doc/vorbisenc/overview.html +382 -0
- data/dependencies/libvorbis/doc/vorbisenc/reference.html +48 -0
- data/dependencies/libvorbis/doc/vorbisenc/style.css +7 -0
- data/dependencies/libvorbis/doc/vorbisenc/vorbis_encode_ctl.html +169 -0
- data/dependencies/libvorbis/doc/vorbisenc/vorbis_encode_init.html +88 -0
- data/dependencies/libvorbis/doc/vorbisenc/vorbis_encode_init_vbr.html +81 -0
- data/dependencies/libvorbis/doc/vorbisenc/vorbis_encode_setup_init.html +88 -0
- data/dependencies/libvorbis/doc/vorbisenc/vorbis_encode_setup_managed.html +102 -0
- data/dependencies/libvorbis/doc/vorbisenc/vorbis_encode_setup_vbr.html +90 -0
- data/dependencies/libvorbis/doc/vorbisenc/vorbis_info.html +81 -0
- data/dependencies/libvorbis/doc/vorbisfile/Makefile +396 -0
- data/dependencies/libvorbis/doc/vorbisfile/Makefile.am +23 -0
- data/dependencies/libvorbis/doc/vorbisfile/Makefile.in +396 -0
- data/dependencies/libvorbis/doc/vorbisfile/OggVorbis_File.html +137 -0
- data/dependencies/libvorbis/doc/vorbisfile/callbacks.html +121 -0
- data/dependencies/libvorbis/doc/vorbisfile/chaining_example_c.html +90 -0
- data/dependencies/libvorbis/doc/vorbisfile/chainingexample.html +175 -0
- data/dependencies/libvorbis/doc/vorbisfile/crosslap.html +121 -0
- data/dependencies/libvorbis/doc/vorbisfile/datastructures.html +61 -0
- data/dependencies/libvorbis/doc/vorbisfile/decoding.html +87 -0
- data/dependencies/libvorbis/doc/vorbisfile/example.html +208 -0
- data/dependencies/libvorbis/doc/vorbisfile/exampleindex.html +39 -0
- data/dependencies/libvorbis/doc/vorbisfile/fileinfo.html +95 -0
- data/dependencies/libvorbis/doc/vorbisfile/index.html +49 -0
- data/dependencies/libvorbis/doc/vorbisfile/initialization.html +118 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_bitrate.html +72 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_bitrate_instant.html +65 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_callbacks.html +117 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_clear.html +64 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_comment.html +66 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_crosslap.html +100 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_fopen.html +124 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_info.html +64 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_open.html +183 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_open_callbacks.html +147 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_pcm_seek.html +83 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_pcm_seek_lap.html +103 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_pcm_seek_page.html +84 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_pcm_seek_page_lap.html +112 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_pcm_tell.html +63 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_pcm_total.html +67 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_raw_seek.html +83 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_raw_seek_lap.html +110 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_raw_tell.html +65 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_raw_total.html +68 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_read.html +123 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_read_float.html +101 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_seekable.html +63 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_serialnumber.html +67 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_streams.html +64 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_test.html +101 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_test_callbacks.html +111 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_test_open.html +82 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_time_seek.html +82 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_time_seek_lap.html +105 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_time_seek_page.html +83 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_time_seek_page_lap.html +112 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_time_tell.html +63 -0
- data/dependencies/libvorbis/doc/vorbisfile/ov_time_total.html +67 -0
- data/dependencies/libvorbis/doc/vorbisfile/overview.html +61 -0
- data/dependencies/libvorbis/doc/vorbisfile/reference.html +83 -0
- data/dependencies/libvorbis/doc/vorbisfile/return.html +77 -0
- data/dependencies/libvorbis/doc/vorbisfile/seekexample.html +152 -0
- data/dependencies/libvorbis/doc/vorbisfile/seeking.html +107 -0
- data/dependencies/libvorbis/doc/vorbisfile/seeking_example_c.html +86 -0
- data/dependencies/libvorbis/doc/vorbisfile/seeking_test_c.html +86 -0
- data/dependencies/libvorbis/doc/vorbisfile/seekingexample.html +203 -0
- data/dependencies/libvorbis/doc/vorbisfile/style.css +7 -0
- data/dependencies/libvorbis/doc/vorbisfile/threads.html +50 -0
- data/dependencies/libvorbis/doc/vorbisfile/vorbis_comment.html +70 -0
- data/dependencies/libvorbis/doc/vorbisfile/vorbis_info.html +80 -0
- data/dependencies/libvorbis/doc/vorbisfile/vorbisfile_example_c.html +106 -0
- data/dependencies/libvorbis/doc/vorbisword2.png +0 -0
- data/dependencies/libvorbis/doc/wait.png +0 -0
- data/dependencies/libvorbis/doc/white-ogg.png +0 -0
- data/dependencies/libvorbis/doc/white-xifish.png +0 -0
- data/dependencies/libvorbis/doc/window1.png +0 -0
- data/dependencies/libvorbis/doc/window2.png +0 -0
- data/dependencies/libvorbis/doc/xifish.pdf +0 -0
- data/dependencies/libvorbis/doc/xml/01-introduction.xml +665 -0
- data/dependencies/libvorbis/doc/xml/02-bitpacking.xml +280 -0
- data/dependencies/libvorbis/doc/xml/03-codebook.xml +458 -0
- data/dependencies/libvorbis/doc/xml/04-codec.xml +711 -0
- data/dependencies/libvorbis/doc/xml/05-comment.xml +284 -0
- data/dependencies/libvorbis/doc/xml/06-floor0.xml +257 -0
- data/dependencies/libvorbis/doc/xml/07-floor1.xml +450 -0
- data/dependencies/libvorbis/doc/xml/08-residue.xml +492 -0
- data/dependencies/libvorbis/doc/xml/09-helper.xml +211 -0
- data/dependencies/libvorbis/doc/xml/10-tables.xml +94 -0
- data/dependencies/libvorbis/doc/xml/TODO +28 -0
- data/dependencies/libvorbis/doc/xml/Vorbis_I_spec.xml +30 -0
- data/dependencies/libvorbis/doc/xml/a1-encapsulation_ogg.xml +201 -0
- data/dependencies/libvorbis/doc/xml/a2-encapsulation_rtp.xml +31 -0
- data/dependencies/libvorbis/doc/xml/footer.xml +60 -0
- data/dependencies/libvorbis/doc/xml/spec-common.xsl +24 -0
- data/dependencies/libvorbis/doc/xml/spec-fo.xsl +16 -0
- data/dependencies/libvorbis/doc/xml/spec-html.xsl +5 -0
- data/dependencies/libvorbis/examples/Makefile +515 -0
- data/dependencies/libvorbis/examples/Makefile.am +28 -0
- data/dependencies/libvorbis/examples/Makefile.in +515 -0
- data/dependencies/libvorbis/examples/chaining_example.c +72 -0
- data/dependencies/libvorbis/examples/decoder_example.c +307 -0
- data/dependencies/libvorbis/examples/encoder_example.c +253 -0
- data/dependencies/libvorbis/examples/frameview.pl +630 -0
- data/dependencies/libvorbis/examples/seeking_example.c +256 -0
- data/dependencies/libvorbis/examples/vorbisfile_example.c +87 -0
- data/dependencies/libvorbis/include/Makefile.am +3 -0
- data/dependencies/libvorbis/include/Makefile.in +506 -0
- data/dependencies/libvorbis/include/vorbis/Makefile.am +7 -0
- data/dependencies/libvorbis/include/vorbis/Makefile.in +426 -0
- data/dependencies/libvorbis/include/vorbis/codec.h +241 -0
- data/dependencies/libvorbis/include/vorbis/vorbisenc.h +112 -0
- data/dependencies/libvorbis/include/vorbis/vorbisfile.h +183 -0
- data/dependencies/libvorbis/install-sh +507 -0
- data/dependencies/libvorbis/lib/Makefile.am +44 -0
- data/dependencies/libvorbis/lib/Makefile.in +706 -0
- data/dependencies/libvorbis/lib/analysis.c +121 -0
- data/dependencies/libvorbis/lib/backends.h +146 -0
- data/dependencies/libvorbis/lib/barkmel.c +64 -0
- data/dependencies/libvorbis/lib/bitrate.c +253 -0
- data/dependencies/libvorbis/lib/bitrate.h +59 -0
- data/dependencies/libvorbis/lib/block.c +993 -0
- data/dependencies/libvorbis/lib/books/Makefile.am +3 -0
- data/dependencies/libvorbis/lib/books/Makefile.in +506 -0
- data/dependencies/libvorbis/lib/books/coupled/Makefile.am +3 -0
- data/dependencies/libvorbis/lib/books/coupled/Makefile.in +347 -0
- data/dependencies/libvorbis/lib/books/coupled/res_books_stereo.h +20681 -0
- data/dependencies/libvorbis/lib/books/floor/Makefile.am +3 -0
- data/dependencies/libvorbis/lib/books/floor/Makefile.in +347 -0
- data/dependencies/libvorbis/lib/books/floor/floor_books.h +1838 -0
- data/dependencies/libvorbis/lib/books/uncoupled/Makefile.am +3 -0
- data/dependencies/libvorbis/lib/books/uncoupled/Makefile.in +347 -0
- data/dependencies/libvorbis/lib/books/uncoupled/res_books_uncoupled.h +11517 -0
- data/dependencies/libvorbis/lib/codebook.c +634 -0
- data/dependencies/libvorbis/lib/codebook.h +160 -0
- data/dependencies/libvorbis/lib/codec_internal.h +137 -0
- data/dependencies/libvorbis/lib/envelope.c +382 -0
- data/dependencies/libvorbis/lib/envelope.h +81 -0
- data/dependencies/libvorbis/lib/floor0.c +223 -0
- data/dependencies/libvorbis/lib/floor1.c +1094 -0
- data/dependencies/libvorbis/lib/highlevel.h +57 -0
- data/dependencies/libvorbis/lib/info.c +644 -0
- data/dependencies/libvorbis/lib/lookup.c +94 -0
- data/dependencies/libvorbis/lib/lookup.h +32 -0
- data/dependencies/libvorbis/lib/lookup_data.h +189 -0
- data/dependencies/libvorbis/lib/lookups.pl +142 -0
- data/dependencies/libvorbis/lib/lpc.c +149 -0
- data/dependencies/libvorbis/lib/lpc.h +29 -0
- data/dependencies/libvorbis/lib/lsp.c +455 -0
- data/dependencies/libvorbis/lib/lsp.h +28 -0
- data/dependencies/libvorbis/lib/mapping0.c +844 -0
- data/dependencies/libvorbis/lib/masking.h +785 -0
- data/dependencies/libvorbis/lib/mdct.c +564 -0
- data/dependencies/libvorbis/lib/mdct.h +83 -0
- data/dependencies/libvorbis/lib/misc.h +52 -0
- data/dependencies/libvorbis/lib/modes/Makefile.am +6 -0
- data/dependencies/libvorbis/lib/modes/Makefile.in +351 -0
- data/dependencies/libvorbis/lib/modes/floor_all.h +248 -0
- data/dependencies/libvorbis/lib/modes/psych_11.h +51 -0
- data/dependencies/libvorbis/lib/modes/psych_16.h +136 -0
- data/dependencies/libvorbis/lib/modes/psych_44.h +666 -0
- data/dependencies/libvorbis/lib/modes/psych_8.h +102 -0
- data/dependencies/libvorbis/lib/modes/residue_16.h +163 -0
- data/dependencies/libvorbis/lib/modes/residue_44.h +294 -0
- data/dependencies/libvorbis/lib/modes/residue_44u.h +318 -0
- data/dependencies/libvorbis/lib/modes/residue_8.h +109 -0
- data/dependencies/libvorbis/lib/modes/setup_11.h +141 -0
- data/dependencies/libvorbis/lib/modes/setup_16.h +149 -0
- data/dependencies/libvorbis/lib/modes/setup_22.h +128 -0
- data/dependencies/libvorbis/lib/modes/setup_32.h +132 -0
- data/dependencies/libvorbis/lib/modes/setup_44.h +107 -0
- data/dependencies/libvorbis/lib/modes/setup_44u.h +74 -0
- data/dependencies/libvorbis/lib/modes/setup_8.h +146 -0
- data/dependencies/libvorbis/lib/modes/setup_X.h +226 -0
- data/dependencies/libvorbis/lib/os.h +156 -0
- data/dependencies/libvorbis/lib/psy.c +1227 -0
- data/dependencies/libvorbis/lib/psy.h +186 -0
- data/dependencies/libvorbis/lib/psytune.c +524 -0
- data/dependencies/libvorbis/lib/registry.c +46 -0
- data/dependencies/libvorbis/lib/registry.h +32 -0
- data/dependencies/libvorbis/lib/res0.c +919 -0
- data/dependencies/libvorbis/lib/scales.h +86 -0
- data/dependencies/libvorbis/lib/sharedbook.c +735 -0
- data/dependencies/libvorbis/lib/smallft.c +1255 -0
- data/dependencies/libvorbis/lib/smallft.h +34 -0
- data/dependencies/libvorbis/lib/synthesis.c +170 -0
- data/dependencies/libvorbis/lib/tone.c +54 -0
- data/dependencies/libvorbis/lib/vorbisenc.c +1184 -0
- data/dependencies/libvorbis/lib/vorbisfile.c +2194 -0
- data/dependencies/libvorbis/lib/window.c +2136 -0
- data/dependencies/libvorbis/lib/window.h +26 -0
- data/dependencies/libvorbis/libvorbis.spec +118 -0
- data/dependencies/libvorbis/libvorbis.spec.in +118 -0
- data/dependencies/libvorbis/ltmain.sh +6871 -0
- data/dependencies/libvorbis/macos/compat/strdup.c +21 -0
- data/dependencies/libvorbis/macos/compat/sys/types.h +1 -0
- data/dependencies/libvorbis/macos/decoder_example.mcp +0 -0
- data/dependencies/libvorbis/macos/encoder_example.mcp +0 -0
- data/dependencies/libvorbis/macos/libvorbis.mcp +0 -0
- data/dependencies/libvorbis/macos/libvorbis.mcp.exp +45 -0
- data/dependencies/libvorbis/macos/libvorbisenc.mcp +0 -0
- data/dependencies/libvorbis/macos/libvorbisenc.mcp.exp +8 -0
- data/dependencies/libvorbis/macos/libvorbisfile.mcp +0 -0
- data/dependencies/libvorbis/macos/libvorbisfile.mcp.exp +45 -0
- data/dependencies/libvorbis/macos/vorbis.mcp +0 -0
- data/dependencies/libvorbis/macosx/English.lproj/InfoPlist.strings +0 -0
- data/dependencies/libvorbis/macosx/Info.plist +30 -0
- data/dependencies/libvorbis/macosx/Vorbis.xcodeproj/project.pbxproj +893 -0
- data/dependencies/libvorbis/missing +367 -0
- data/dependencies/libvorbis/symbian/bld.inf +35 -0
- data/dependencies/libvorbis/symbian/config.h +54 -0
- data/dependencies/libvorbis/symbian/vorbis.mmp +43 -0
- data/dependencies/libvorbis/todo.txt +22 -0
- data/dependencies/libvorbis/vorbis-uninstalled.pc.in +14 -0
- data/dependencies/libvorbis/vorbis.m4 +122 -0
- data/dependencies/libvorbis/vorbis.pc.in +14 -0
- data/dependencies/libvorbis/vorbisenc-uninstalled.pc.in +14 -0
- data/dependencies/libvorbis/vorbisenc.pc.in +14 -0
- data/dependencies/libvorbis/vorbisfile-uninstalled.pc.in +14 -0
- data/dependencies/libvorbis/vorbisfile.pc.in +14 -0
- data/dependencies/libvorbis/vq/16.vqs +77 -0
- data/dependencies/libvorbis/vq/16u.vqs +71 -0
- data/dependencies/libvorbis/vq/44c-1.vqs +63 -0
- data/dependencies/libvorbis/vq/44c0.vqs +65 -0
- data/dependencies/libvorbis/vq/44c1.vqs +66 -0
- data/dependencies/libvorbis/vq/44c2.vqs +37 -0
- data/dependencies/libvorbis/vq/44c3.vqs +36 -0
- data/dependencies/libvorbis/vq/44c4.vqs +36 -0
- data/dependencies/libvorbis/vq/44c5.vqs +37 -0
- data/dependencies/libvorbis/vq/44c6.vqs +37 -0
- data/dependencies/libvorbis/vq/44c7.vqs +38 -0
- data/dependencies/libvorbis/vq/44c8.vqs +39 -0
- data/dependencies/libvorbis/vq/44c9.vqs +37 -0
- data/dependencies/libvorbis/vq/44u0.vqs +33 -0
- data/dependencies/libvorbis/vq/44u1.vqs +33 -0
- data/dependencies/libvorbis/vq/44u2.vqs +32 -0
- data/dependencies/libvorbis/vq/44u3.vqs +33 -0
- data/dependencies/libvorbis/vq/44u4.vqs +33 -0
- data/dependencies/libvorbis/vq/44u5.vqs +35 -0
- data/dependencies/libvorbis/vq/44u6.vqs +35 -0
- data/dependencies/libvorbis/vq/44u7.vqs +34 -0
- data/dependencies/libvorbis/vq/44u8.vqs +35 -0
- data/dependencies/libvorbis/vq/44u9.vqs +36 -0
- data/dependencies/libvorbis/vq/8.vqs +43 -0
- data/dependencies/libvorbis/vq/8u.vqs +41 -0
- data/dependencies/libvorbis/vq/Makefile +532 -0
- data/dependencies/libvorbis/vq/Makefile.am +34 -0
- data/dependencies/libvorbis/vq/Makefile.in +532 -0
- data/dependencies/libvorbis/vq/auxpartition.pl +71 -0
- data/dependencies/libvorbis/vq/bookutil.c +717 -0
- data/dependencies/libvorbis/vq/bookutil.h +43 -0
- data/dependencies/libvorbis/vq/build.c +195 -0
- data/dependencies/libvorbis/vq/cascade.c +91 -0
- data/dependencies/libvorbis/vq/distribution.c +248 -0
- data/dependencies/libvorbis/vq/floor_11.vqs +10 -0
- data/dependencies/libvorbis/vq/floor_22.vqs +27 -0
- data/dependencies/libvorbis/vq/floor_44.vqs +83 -0
- data/dependencies/libvorbis/vq/genericdata.c +61 -0
- data/dependencies/libvorbis/vq/huffbuild.c +201 -0
- data/dependencies/libvorbis/vq/latticebuild.c +177 -0
- data/dependencies/libvorbis/vq/latticehint.c +430 -0
- data/dependencies/libvorbis/vq/latticepare.c +595 -0
- data/dependencies/libvorbis/vq/latticetune.c +164 -0
- data/dependencies/libvorbis/vq/localcodebook.h +160 -0
- data/dependencies/libvorbis/vq/lspdata.c +157 -0
- data/dependencies/libvorbis/vq/make_floor_books.pl +108 -0
- data/dependencies/libvorbis/vq/make_residue_books.pl +187 -0
- data/dependencies/libvorbis/vq/metrics.c +295 -0
- data/dependencies/libvorbis/vq/residue_entropy +58 -0
- data/dependencies/libvorbis/vq/residuedata.c +160 -0
- data/dependencies/libvorbis/vq/residuesplit.c +282 -0
- data/dependencies/libvorbis/vq/run.c +216 -0
- data/dependencies/libvorbis/vq/train.c +364 -0
- data/dependencies/libvorbis/vq/vqext.h +34 -0
- data/dependencies/libvorbis/vq/vqgen.c +567 -0
- data/dependencies/libvorbis/vq/vqgen.h +85 -0
- data/dependencies/libvorbis/vq/vqsplit.c +612 -0
- data/dependencies/libvorbis/vq/vqsplit.h +37 -0
- data/dependencies/libvorbis/win32/VS2003/libvorbis/libvorbis.vcproj +467 -0
- data/dependencies/libvorbis/win32/VS2003/libvorbisfile/libvorbisfile.def +47 -0
- data/dependencies/libvorbis/win32/VS2003/libvorbisfile/libvorbisfile.vcproj +147 -0
- data/dependencies/libvorbis/win32/VS2003/vorbisdec/vorbisdec.vcproj +268 -0
- data/dependencies/libvorbis/win32/VS2003/vorbisenc/vorbisenc.vcproj +268 -0
- data/dependencies/libvorbis/win32/VS2005/libvorbis/libvorbis.vcproj +653 -0
- data/dependencies/libvorbis/win32/VS2005/libvorbisfile/libvorbisfile.def +47 -0
- data/dependencies/libvorbis/win32/VS2005/libvorbisfile/libvorbisfile.vcproj +219 -0
- data/dependencies/libvorbis/win32/VS2005/vorbisdec/vorbisdec.vcproj +389 -0
- data/dependencies/libvorbis/win32/VS2005/vorbisenc/vorbisenc.vcproj +390 -0
- data/dependencies/libvorbis/win32/build_vorbis_dynamic.bat +19 -0
- data/dependencies/libvorbis/win32/build_vorbis_dynamic_debug.bat +19 -0
- data/dependencies/libvorbis/win32/build_vorbis_static.bat +19 -0
- data/dependencies/libvorbis/win32/build_vorbis_static_debug.bat +19 -0
- data/dependencies/libvorbis/win32/build_vorbisenc_dynamic.bat +19 -0
- data/dependencies/libvorbis/win32/build_vorbisenc_dynamic_debug.bat +19 -0
- data/dependencies/libvorbis/win32/build_vorbisenc_static.bat +19 -0
- data/dependencies/libvorbis/win32/build_vorbisenc_static_debug.bat +19 -0
- data/dependencies/libvorbis/win32/build_vorbisfile_dynamic.bat +19 -0
- data/dependencies/libvorbis/win32/build_vorbisfile_dynamic_debug.bat +19 -0
- data/dependencies/libvorbis/win32/build_vorbisfile_static.bat +19 -0
- data/dependencies/libvorbis/win32/build_vorbisfile_static_debug.bat +19 -0
- data/dependencies/libvorbis/win32/vorbis.def +57 -0
- data/dependencies/libvorbis/win32/vorbis.dsw +101 -0
- data/dependencies/libvorbis/win32/vorbis_dynamic.dsp +281 -0
- data/dependencies/libvorbis/win32/vorbis_static.dsp +257 -0
- data/dependencies/libvorbis/win32/vorbisenc.def +13 -0
- data/dependencies/libvorbis/win32/vorbisenc_dynamic.dsp +121 -0
- data/dependencies/libvorbis/win32/vorbisenc_static.dsp +100 -0
- data/dependencies/libvorbis/win32/vorbisfile.def +41 -0
- data/dependencies/libvorbis/win32/vorbisfile_dynamic.dsp +119 -0
- data/dependencies/libvorbis/win32/vorbisfile_static.dsp +100 -0
- data/dependencies/zlib/ChangeLog +855 -0
- data/dependencies/zlib/FAQ +339 -0
- data/dependencies/zlib/INDEX +51 -0
- data/dependencies/zlib/Makefile +154 -0
- data/dependencies/zlib/Makefile.in +154 -0
- data/dependencies/zlib/README +125 -0
- data/dependencies/zlib/adler32.c +149 -0
- data/dependencies/zlib/algorithm.txt +209 -0
- data/dependencies/zlib/amiga/Makefile.pup +66 -0
- data/dependencies/zlib/amiga/Makefile.sas +65 -0
- data/dependencies/zlib/as400/bndsrc +132 -0
- data/dependencies/zlib/as400/compile.clp +123 -0
- data/dependencies/zlib/as400/readme.txt +111 -0
- data/dependencies/zlib/as400/zlib.inc +331 -0
- data/dependencies/zlib/compress.c +79 -0
- data/dependencies/zlib/configure +459 -0
- data/dependencies/zlib/contrib/README.contrib +71 -0
- data/dependencies/zlib/contrib/ada/buffer_demo.adb +106 -0
- data/dependencies/zlib/contrib/ada/mtest.adb +156 -0
- data/dependencies/zlib/contrib/ada/read.adb +156 -0
- data/dependencies/zlib/contrib/ada/readme.txt +65 -0
- data/dependencies/zlib/contrib/ada/test.adb +463 -0
- data/dependencies/zlib/contrib/ada/zlib-streams.adb +225 -0
- data/dependencies/zlib/contrib/ada/zlib-streams.ads +114 -0
- data/dependencies/zlib/contrib/ada/zlib-thin.adb +141 -0
- data/dependencies/zlib/contrib/ada/zlib-thin.ads +450 -0
- data/dependencies/zlib/contrib/ada/zlib.adb +701 -0
- data/dependencies/zlib/contrib/ada/zlib.ads +328 -0
- data/dependencies/zlib/contrib/ada/zlib.gpr +20 -0
- data/dependencies/zlib/contrib/asm586/README.586 +43 -0
- data/dependencies/zlib/contrib/asm586/match.S +364 -0
- data/dependencies/zlib/contrib/asm686/README.686 +34 -0
- data/dependencies/zlib/contrib/asm686/match.S +329 -0
- data/dependencies/zlib/contrib/blast/Makefile +8 -0
- data/dependencies/zlib/contrib/blast/README +4 -0
- data/dependencies/zlib/contrib/blast/blast.c +444 -0
- data/dependencies/zlib/contrib/blast/blast.h +71 -0
- data/dependencies/zlib/contrib/blast/test.pk +0 -0
- data/dependencies/zlib/contrib/blast/test.txt +1 -0
- data/dependencies/zlib/contrib/delphi/ZLib.pas +557 -0
- data/dependencies/zlib/contrib/delphi/ZLibConst.pas +11 -0
- data/dependencies/zlib/contrib/delphi/readme.txt +76 -0
- data/dependencies/zlib/contrib/delphi/zlibd32.mak +93 -0
- data/dependencies/zlib/contrib/dotzlib/DotZLib.build +33 -0
- data/dependencies/zlib/contrib/dotzlib/DotZLib.chm +0 -0
- data/dependencies/zlib/contrib/dotzlib/DotZLib.sln +21 -0
- data/dependencies/zlib/contrib/dotzlib/DotZLib/AssemblyInfo.cs +58 -0
- data/dependencies/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs +202 -0
- data/dependencies/zlib/contrib/dotzlib/DotZLib/CircularBuffer.cs +83 -0
- data/dependencies/zlib/contrib/dotzlib/DotZLib/CodecBase.cs +198 -0
- data/dependencies/zlib/contrib/dotzlib/DotZLib/Deflater.cs +106 -0
- data/dependencies/zlib/contrib/dotzlib/DotZLib/DotZLib.cs +288 -0
- data/dependencies/zlib/contrib/dotzlib/DotZLib/DotZLib.csproj +141 -0
- data/dependencies/zlib/contrib/dotzlib/DotZLib/GZipStream.cs +301 -0
- data/dependencies/zlib/contrib/dotzlib/DotZLib/Inflater.cs +105 -0
- data/dependencies/zlib/contrib/dotzlib/DotZLib/UnitTests.cs +274 -0
- data/dependencies/zlib/contrib/dotzlib/LICENSE_1_0.txt +23 -0
- data/dependencies/zlib/contrib/dotzlib/readme.txt +58 -0
- data/dependencies/zlib/contrib/infback9/README +1 -0
- data/dependencies/zlib/contrib/infback9/infback9.c +608 -0
- data/dependencies/zlib/contrib/infback9/infback9.h +37 -0
- data/dependencies/zlib/contrib/infback9/inffix9.h +107 -0
- data/dependencies/zlib/contrib/infback9/inflate9.h +47 -0
- data/dependencies/zlib/contrib/infback9/inftree9.c +323 -0
- data/dependencies/zlib/contrib/infback9/inftree9.h +55 -0
- data/dependencies/zlib/contrib/inflate86/inffas86.c +1157 -0
- data/dependencies/zlib/contrib/inflate86/inffast.S +1368 -0
- data/dependencies/zlib/contrib/iostream/test.cpp +24 -0
- data/dependencies/zlib/contrib/iostream/zfstream.cpp +329 -0
- data/dependencies/zlib/contrib/iostream/zfstream.h +128 -0
- data/dependencies/zlib/contrib/iostream2/zstream.h +307 -0
- data/dependencies/zlib/contrib/iostream2/zstream_test.cpp +25 -0
- data/dependencies/zlib/contrib/iostream3/README +35 -0
- data/dependencies/zlib/contrib/iostream3/TODO +17 -0
- data/dependencies/zlib/contrib/iostream3/test.cc +50 -0
- data/dependencies/zlib/contrib/iostream3/zfstream.cc +479 -0
- data/dependencies/zlib/contrib/iostream3/zfstream.h +466 -0
- data/dependencies/zlib/contrib/masm686/match.asm +413 -0
- data/dependencies/zlib/contrib/masmx64/bld_ml64.bat +2 -0
- data/dependencies/zlib/contrib/masmx64/gvmat64.asm +513 -0
- data/dependencies/zlib/contrib/masmx64/gvmat64.obj +0 -0
- data/dependencies/zlib/contrib/masmx64/inffas8664.c +186 -0
- data/dependencies/zlib/contrib/masmx64/inffasx64.asm +392 -0
- data/dependencies/zlib/contrib/masmx64/inffasx64.obj +0 -0
- data/dependencies/zlib/contrib/masmx64/readme.txt +28 -0
- data/dependencies/zlib/contrib/masmx86/bld_ml32.bat +2 -0
- data/dependencies/zlib/contrib/masmx86/gvmat32.asm +972 -0
- data/dependencies/zlib/contrib/masmx86/gvmat32.obj +0 -0
- data/dependencies/zlib/contrib/masmx86/gvmat32c.c +62 -0
- data/dependencies/zlib/contrib/masmx86/inffas32.asm +1083 -0
- data/dependencies/zlib/contrib/masmx86/inffas32.obj +0 -0
- data/dependencies/zlib/contrib/masmx86/mkasm.bat +3 -0
- data/dependencies/zlib/contrib/masmx86/readme.txt +21 -0
- data/dependencies/zlib/contrib/minizip/ChangeLogUnzip +67 -0
- data/dependencies/zlib/contrib/minizip/Makefile +25 -0
- data/dependencies/zlib/contrib/minizip/crypt.h +132 -0
- data/dependencies/zlib/contrib/minizip/ioapi.c +177 -0
- data/dependencies/zlib/contrib/minizip/ioapi.h +75 -0
- data/dependencies/zlib/contrib/minizip/iowin32.c +270 -0
- data/dependencies/zlib/contrib/minizip/iowin32.h +21 -0
- data/dependencies/zlib/contrib/minizip/miniunz.c +585 -0
- data/dependencies/zlib/contrib/minizip/minizip.c +420 -0
- data/dependencies/zlib/contrib/minizip/mztools.c +281 -0
- data/dependencies/zlib/contrib/minizip/mztools.h +31 -0
- data/dependencies/zlib/contrib/minizip/unzip.c +1598 -0
- data/dependencies/zlib/contrib/minizip/unzip.h +354 -0
- data/dependencies/zlib/contrib/minizip/zip.c +1219 -0
- data/dependencies/zlib/contrib/minizip/zip.h +235 -0
- data/dependencies/zlib/contrib/pascal/example.pas +599 -0
- data/dependencies/zlib/contrib/pascal/readme.txt +76 -0
- data/dependencies/zlib/contrib/pascal/zlibd32.mak +93 -0
- data/dependencies/zlib/contrib/pascal/zlibpas.pas +236 -0
- data/dependencies/zlib/contrib/puff/Makefile +8 -0
- data/dependencies/zlib/contrib/puff/README +63 -0
- data/dependencies/zlib/contrib/puff/puff.c +837 -0
- data/dependencies/zlib/contrib/puff/puff.h +31 -0
- data/dependencies/zlib/contrib/puff/zeros.raw +0 -0
- data/dependencies/zlib/contrib/testzlib/testzlib.c +275 -0
- data/dependencies/zlib/contrib/testzlib/testzlib.txt +10 -0
- data/dependencies/zlib/contrib/untgz/Makefile +14 -0
- data/dependencies/zlib/contrib/untgz/Makefile.msc +17 -0
- data/dependencies/zlib/contrib/untgz/untgz.c +674 -0
- data/dependencies/zlib/contrib/vstudio/readme.txt +73 -0
- data/dependencies/zlib/contrib/vstudio/vc7/miniunz.vcproj +126 -0
- data/dependencies/zlib/contrib/vstudio/vc7/minizip.vcproj +126 -0
- data/dependencies/zlib/contrib/vstudio/vc7/testzlib.vcproj +126 -0
- data/dependencies/zlib/contrib/vstudio/vc7/zlib.rc +32 -0
- data/dependencies/zlib/contrib/vstudio/vc7/zlibstat.vcproj +246 -0
- data/dependencies/zlib/contrib/vstudio/vc7/zlibvc.def +92 -0
- data/dependencies/zlib/contrib/vstudio/vc7/zlibvc.sln +78 -0
- data/dependencies/zlib/contrib/vstudio/vc7/zlibvc.vcproj +445 -0
- data/dependencies/zlib/contrib/vstudio/vc8/miniunz.vcproj +566 -0
- data/dependencies/zlib/contrib/vstudio/vc8/minizip.vcproj +563 -0
- data/dependencies/zlib/contrib/vstudio/vc8/testzlib.vcproj +948 -0
- data/dependencies/zlib/contrib/vstudio/vc8/testzlibdll.vcproj +567 -0
- data/dependencies/zlib/contrib/vstudio/vc8/zlib.rc +32 -0
- data/dependencies/zlib/contrib/vstudio/vc8/zlibstat.vcproj +870 -0
- data/dependencies/zlib/contrib/vstudio/vc8/zlibvc.def +92 -0
- data/dependencies/zlib/contrib/vstudio/vc8/zlibvc.sln +144 -0
- data/dependencies/zlib/contrib/vstudio/vc8/zlibvc.vcproj +1219 -0
- data/dependencies/zlib/crc32.c +423 -0
- data/dependencies/zlib/crc32.h +441 -0
- data/dependencies/zlib/deflate.c +1736 -0
- data/dependencies/zlib/deflate.h +331 -0
- data/dependencies/zlib/example.c +565 -0
- data/dependencies/zlib/examples/README.examples +42 -0
- data/dependencies/zlib/examples/fitblk.c +233 -0
- data/dependencies/zlib/examples/gun.c +693 -0
- data/dependencies/zlib/examples/gzappend.c +500 -0
- data/dependencies/zlib/examples/gzjoin.c +448 -0
- data/dependencies/zlib/examples/gzlog.c +413 -0
- data/dependencies/zlib/examples/gzlog.h +58 -0
- data/dependencies/zlib/examples/zlib_how.html +523 -0
- data/dependencies/zlib/examples/zpipe.c +191 -0
- data/dependencies/zlib/examples/zran.c +404 -0
- data/dependencies/zlib/gzio.c +1026 -0
- data/dependencies/zlib/infback.c +623 -0
- data/dependencies/zlib/inffast.c +318 -0
- data/dependencies/zlib/inffast.h +11 -0
- data/dependencies/zlib/inffixed.h +94 -0
- data/dependencies/zlib/inflate.c +1368 -0
- data/dependencies/zlib/inflate.h +115 -0
- data/dependencies/zlib/inftrees.c +329 -0
- data/dependencies/zlib/inftrees.h +55 -0
- data/dependencies/zlib/make_vms.com +461 -0
- data/dependencies/zlib/minigzip.c +322 -0
- data/dependencies/zlib/msdos/Makefile.bor +109 -0
- data/dependencies/zlib/msdos/Makefile.dj2 +104 -0
- data/dependencies/zlib/msdos/Makefile.emx +69 -0
- data/dependencies/zlib/msdos/Makefile.msc +106 -0
- data/dependencies/zlib/msdos/Makefile.tc +94 -0
- data/dependencies/zlib/old/Makefile.riscos +151 -0
- data/dependencies/zlib/old/README +3 -0
- data/dependencies/zlib/old/descrip.mms +48 -0
- data/dependencies/zlib/old/os2/Makefile.os2 +136 -0
- data/dependencies/zlib/old/os2/zlib.def +51 -0
- data/dependencies/zlib/old/visual-basic.txt +160 -0
- data/dependencies/zlib/old/zlib.html +971 -0
- data/dependencies/zlib/projects/README.projects +41 -0
- data/dependencies/zlib/projects/visualc6/README.txt +73 -0
- data/dependencies/zlib/projects/visualc6/example.dsp +278 -0
- data/dependencies/zlib/projects/visualc6/minigzip.dsp +278 -0
- data/dependencies/zlib/projects/visualc6/zlib.dsp +609 -0
- data/dependencies/zlib/projects/visualc6/zlib.dsw +59 -0
- data/dependencies/zlib/qnx/package.qpg +141 -0
- data/dependencies/zlib/trees.c +1219 -0
- data/dependencies/zlib/trees.h +128 -0
- data/dependencies/zlib/uncompr.c +61 -0
- data/dependencies/zlib/win32/DLL_FAQ.txt +397 -0
- data/dependencies/zlib/win32/Makefile.bor +107 -0
- data/dependencies/zlib/win32/Makefile.emx +69 -0
- data/dependencies/zlib/win32/Makefile.gcc +141 -0
- data/dependencies/zlib/win32/Makefile.msc +126 -0
- data/dependencies/zlib/win32/VisualC.txt +3 -0
- data/dependencies/zlib/win32/zlib.def +60 -0
- data/dependencies/zlib/win32/zlib1.rc +39 -0
- data/dependencies/zlib/zconf.h +332 -0
- data/dependencies/zlib/zconf.in.h +332 -0
- data/dependencies/zlib/zlib.3 +159 -0
- data/dependencies/zlib/zlib.h +1357 -0
- data/dependencies/zlib/zutil.c +318 -0
- data/dependencies/zlib/zutil.h +269 -0
- data/examples/ChipmunkIntegration.rb +7 -7
- data/examples/CptnRuby.rb +5 -5
- data/examples/OpenGLIntegration.rb +6 -6
- data/examples/RMagickIntegration.rb +1 -1
- data/examples/TextInput.cpp +23 -1
- data/examples/TextInput.rb +7 -1
- data/examples/Tutorial.cpp +2 -2
- data/examples/Tutorial.rb +5 -5
- data/lib/gosu/patches.rb +53 -0
- data/linux/Makefile.in +3 -2
- data/mac/Gosu.xcodeproj/jlnr.pbxuser +461 -349
- data/mac/Gosu.xcodeproj/jlnr.perspectivev3 +82 -50
- data/mac/Gosu.xcodeproj/project.pbxproj +503 -0
- data/reference/cpp/_audio_8hpp.html +0 -3
- data/reference/cpp/_audio_8hpp_source.html +95 -103
- data/reference/cpp/_bitmap_8hpp_source.html +1 -1
- data/reference/cpp/_color_8hpp.html +2 -3
- data/reference/cpp/_color_8hpp_source.html +54 -38
- data/reference/cpp/_font_8hpp_source.html +6 -6
- data/reference/cpp/_graphics_8hpp_source.html +55 -49
- data/reference/cpp/_image_8hpp_source.html +7 -7
- data/reference/cpp/_text_input_8hpp_source.html +11 -6
- data/reference/cpp/_version_8hpp.html +4 -4
- data/reference/cpp/_version_8hpp_source.html +2 -2
- data/reference/cpp/_window_8hpp_source.html +37 -36
- data/reference/cpp/annotated.html +0 -1
- data/reference/cpp/class_gosu_1_1_bitmap-members.html +1 -1
- data/reference/cpp/class_gosu_1_1_bitmap.html +3 -3
- data/reference/cpp/class_gosu_1_1_color-members.html +11 -0
- data/reference/cpp/class_gosu_1_1_color.html +212 -1
- data/reference/cpp/class_gosu_1_1_font-members.html +3 -3
- data/reference/cpp/class_gosu_1_1_font.html +12 -12
- data/reference/cpp/class_gosu_1_1_graphics-members.html +1 -1
- data/reference/cpp/class_gosu_1_1_graphics.html +5 -5
- data/reference/cpp/class_gosu_1_1_image-members.html +3 -3
- data/reference/cpp/class_gosu_1_1_image.html +13 -13
- data/reference/cpp/class_gosu_1_1_sample-members.html +2 -0
- data/reference/cpp/class_gosu_1_1_sample.html +70 -26
- data/reference/cpp/class_gosu_1_1_sample_instance.html +1 -1
- data/reference/cpp/class_gosu_1_1_song-members.html +3 -0
- data/reference/cpp/class_gosu_1_1_song.html +103 -26
- data/reference/cpp/class_gosu_1_1_text_input-members.html +2 -1
- data/reference/cpp/class_gosu_1_1_text_input.html +31 -4
- data/reference/cpp/class_gosu_1_1_window.html +6 -6
- data/reference/cpp/classes.html +12 -13
- data/reference/cpp/functions.html +3 -3
- data/reference/cpp/functions_0x62.html +7 -3
- data/reference/cpp/functions_0x63.html +4 -2
- data/reference/cpp/functions_0x64.html +6 -6
- data/reference/cpp/functions_0x66.html +4 -0
- data/reference/cpp/functions_0x67.html +4 -0
- data/reference/cpp/functions_0x6e.html +2 -0
- data/reference/cpp/functions_0x72.html +4 -2
- data/reference/cpp/functions_0x73.html +6 -6
- data/reference/cpp/functions_0x75.html +1 -1
- data/reference/cpp/functions_0x77.html +5 -3
- data/reference/cpp/functions_0x79.html +2 -0
- data/reference/cpp/functions_0x7e.html +1 -3
- data/reference/cpp/functions_func.html +0 -2
- data/reference/cpp/functions_func_0x62.html +1 -1
- data/reference/cpp/functions_func_0x64.html +6 -6
- data/reference/cpp/functions_func_0x66.html +2 -0
- data/reference/cpp/functions_func_0x72.html +1 -1
- data/reference/cpp/functions_func_0x73.html +8 -8
- data/reference/cpp/functions_func_0x75.html +1 -1
- data/reference/cpp/functions_func_0x7e.html +1 -3
- data/reference/cpp/functions_vars.html +22 -0
- data/reference/cpp/hierarchy.html +0 -1
- data/reference/cpp/namespace_gosu.html +2 -8
- data/reference/cpp/namespace_gosu_1_1_colors.html +30 -17
- data/reference/cpp/namespacemembers.html +2 -0
- data/reference/cpp/namespacemembers_vars.html +2 -0
- data/reference/cpp/namespaces.html +1 -1
- data/reference/rdoc/classes/Gosu.html +23 -3
- data/reference/rdoc/classes/Gosu/Color.html +127 -29
- data/reference/rdoc/classes/Gosu/Font.html +31 -21
- data/reference/rdoc/classes/Gosu/GLTexInfo.html +3 -3
- data/reference/rdoc/classes/Gosu/Image.html +52 -37
- data/reference/rdoc/classes/Gosu/Sample.html +19 -13
- data/reference/rdoc/classes/Gosu/SampleInstance.html +29 -19
- data/reference/rdoc/classes/Gosu/Song.html +41 -27
- data/reference/rdoc/classes/Gosu/TextInput.html +42 -3
- data/reference/rdoc/classes/Gosu/Window.html +102 -69
- data/reference/rdoc/classes/Numeric.html +7 -3
- data/reference/rdoc/created.rid +1 -1
- data/reference/rdoc/files/COPYING_txt.html +3 -3
- data/reference/rdoc/files/README_txt.html +3 -3
- data/reference/rdoc/files/reference/Deployment on OS X_rdoc.html +4 -19
- data/reference/rdoc/files/reference/Deployment on Windows_rdoc.html +18 -31
- data/reference/rdoc/files/reference/Drawing with Colors_rdoc.html +3 -3
- data/reference/rdoc/files/reference/Order of Corners_rdoc.html +3 -3
- data/reference/rdoc/files/reference/Tileability_rdoc.html +3 -3
- data/reference/rdoc/files/reference/Z Ordering_rdoc.html +3 -3
- data/reference/rdoc/files/reference/gosu_rb.html +3 -3
- data/reference/rdoc/fr_method_index.html +49 -48
- data/reference/rdoc/index.html +1 -1
- metadata +912 -66
- data/reference/rdoc/classes/Gosu.src/M000003.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000004.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000005.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000006.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000007.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000008.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000009.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000010.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000011.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000012.html +0 -0
- data/reference/rdoc/classes/Gosu/Color.src/M000016.html +0 -0
- data/reference/rdoc/classes/Gosu/Color.src/M000017.html +0 -0
- data/reference/rdoc/classes/Gosu/Color.src/M000018.html +0 -0
- data/reference/rdoc/classes/Gosu/Color.src/M000019.html +0 -0
- data/reference/rdoc/classes/Gosu/Font.src/M000029.html +0 -0
- data/reference/rdoc/classes/Gosu/Font.src/M000030.html +0 -0
- data/reference/rdoc/classes/Gosu/Font.src/M000031.html +0 -0
- data/reference/rdoc/classes/Gosu/Font.src/M000032.html +0 -0
- data/reference/rdoc/classes/Gosu/Font.src/M000033.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000020.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000021.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000022.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000023.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000024.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000025.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000026.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000027.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000028.html +0 -0
- data/reference/rdoc/classes/Gosu/Sample.src/M000013.html +0 -0
- data/reference/rdoc/classes/Gosu/Sample.src/M000014.html +0 -0
- data/reference/rdoc/classes/Gosu/Sample.src/M000015.html +0 -0
- data/reference/rdoc/classes/Gosu/SampleInstance.src/M000051.html +0 -0
- data/reference/rdoc/classes/Gosu/SampleInstance.src/M000052.html +0 -0
- data/reference/rdoc/classes/Gosu/SampleInstance.src/M000053.html +0 -0
- data/reference/rdoc/classes/Gosu/SampleInstance.src/M000054.html +0 -0
- data/reference/rdoc/classes/Gosu/SampleInstance.src/M000055.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000056.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000057.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000058.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000059.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000060.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000061.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000062.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000034.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000035.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000036.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000037.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000038.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000039.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000040.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000041.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000042.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000043.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000044.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000045.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000046.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000047.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000048.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000049.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000050.html +0 -0
- data/reference/rdoc/classes/Numeric.src/M000001.html +0 -0
- data/reference/rdoc/classes/Numeric.src/M000002.html +0 -0
@@ -0,0 +1,274 @@
|
|
1
|
+
.TH LIBPNGPF 3 "May 8, 2008"
|
2
|
+
.SH NAME
|
3
|
+
libpng \- Portable Network Graphics (PNG) Reference Library 1.2.29
|
4
|
+
(private functions)
|
5
|
+
.SH SYNOPSIS
|
6
|
+
\fB#include <png.h>\fP
|
7
|
+
|
8
|
+
\fBvoid png_build_gamma_table (png_structp \fIpng_ptr\fP\fB);\fP
|
9
|
+
|
10
|
+
\fBvoid png_build_grayscale_palette (int \fP\fIbit_depth\fP\fB, png_colorp \fIpalette\fP\fB);\fP
|
11
|
+
|
12
|
+
\fBvoid png_calculate_crc (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fP\fIptr\fP\fB, png_size_t \fIlength\fP\fB);\fP
|
13
|
+
|
14
|
+
\fBvoid png_check_chunk_name (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fIchunk_name\fP\fB);\fP
|
15
|
+
|
16
|
+
\fBpng_size_t png_check_keyword (png_structp \fP\fIpng_ptr\fP\fB, png_charp \fP\fIkey\fP\fB, png_charpp \fInew_key\fP\fB);\fP
|
17
|
+
|
18
|
+
\fBvoid png_combine_row (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fP\fIrow\fP\fB, int \fImask\fP\fB);\fP
|
19
|
+
|
20
|
+
\fBvoid png_correct_palette (png_structp \fP\fIpng_ptr\fP\fB, png_colorp \fP\fIpalette\fP\fB, int \fInum_palette\fP\fB);\fP
|
21
|
+
|
22
|
+
\fBint png_crc_error (png_structp \fIpng_ptr\fP\fB);\fP
|
23
|
+
|
24
|
+
\fBint png_crc_finish (png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fIskip\fP\fB);\fP
|
25
|
+
|
26
|
+
\fBvoid png_crc_read (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fP\fIbuf\fP\fB, png_size_t \fIlength\fP\fB);\fP
|
27
|
+
|
28
|
+
\fBpng_voidp png_create_struct (int \fItype\fP\fB);\fP
|
29
|
+
|
30
|
+
\fBpng_voidp png_create_struct_2 (int \fP\fItype\fP\fB, png_malloc_ptr \fP\fImalloc_fn\fP\fB, png_voidp \fImem_ptr\fP\fB);\fP
|
31
|
+
|
32
|
+
\fBpng_charp png_decompress_chunk (png_structp \fP\fIpng_ptr\fP\fB, int \fP\fIcomp_type\fP\fB, png_charp \fP\fIchunkdata\fP\fB, png_size_t \fP\fIchunklength\fP\fB, png_size_t \fP\fIprefix_length\fP\fB, png_size_t \fI*data_length\fP\fB);\fP
|
33
|
+
|
34
|
+
\fBvoid png_destroy_struct (png_voidp \fIstruct_ptr\fP\fB);\fP
|
35
|
+
|
36
|
+
\fBvoid png_destroy_struct_2 (png_voidp \fP\fIstruct_ptr\fP\fB, png_free_ptr \fP\fIfree_fn\fP\fB, png_voidp \fImem_ptr\fP\fB);\fP
|
37
|
+
|
38
|
+
\fBvoid png_do_background (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, png_color_16p \fP\fItrans_values\fP\fB, png_color_16p \fP\fIbackground\fP\fB, png_color_16p \fP\fIbackground_1\fP\fB, png_bytep \fP\fIgamma_table\fP\fB, png_bytep \fP\fIgamma_from_1\fP\fB, png_bytep \fP\fIgamma_to_1\fP\fB, png_uint_16pp \fP\fIgamma_16\fP\fB, png_uint_16pp \fP\fIgamma_16_from_1\fP\fB, png_uint_16pp \fP\fIgamma_16_to_1\fP\fB, int \fIgamma_shift\fP\fB);\fP
|
39
|
+
|
40
|
+
\fBvoid png_do_bgr (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fIrow\fP\fB);\fP
|
41
|
+
|
42
|
+
\fBvoid png_do_chop (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fIrow\fP\fB);\fP
|
43
|
+
|
44
|
+
\fBvoid png_do_dither (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, png_bytep \fP\fIpalette_lookup\fP\fB, png_bytep \fIdither_lookup\fP\fB);\fP
|
45
|
+
|
46
|
+
\fBvoid png_do_expand (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, png_color_16p \fItrans_value\fP\fB);\fP
|
47
|
+
|
48
|
+
\fBvoid png_do_expand_palette (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, png_colorp \fP\fIpalette\fP\fB, png_bytep \fP\fItrans\fP\fB, int \fInum_trans\fP\fB);\fP
|
49
|
+
|
50
|
+
\fBvoid png_do_gamma (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, png_bytep \fP\fIgamma_table\fP\fB, png_uint_16pp \fP\fIgamma_16_table\fP\fB, int \fIgamma_shift\fP\fB);\fP
|
51
|
+
|
52
|
+
\fBvoid png_do_gray_to_rgb (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fIrow\fP\fB);\fP
|
53
|
+
|
54
|
+
\fBvoid png_do_invert (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fIrow\fP\fB);\fP
|
55
|
+
|
56
|
+
\fBvoid png_do_pack (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, png_uint_32 \fIbit_depth\fP\fB);\fP
|
57
|
+
|
58
|
+
\fBvoid png_do_packswap (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fIrow\fP\fB);\fP
|
59
|
+
|
60
|
+
\fBvoid png_do_read_filler (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, png_uint_32 \fP\fIfiller\fP\fB, png_uint_32 \fIflags\fP\fB);\fP
|
61
|
+
|
62
|
+
\fBvoid png_do_read_interlace (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, int \fP\fIpass\fP\fB, png_uint_32 \fItransformations\fP\fB);\fP
|
63
|
+
|
64
|
+
\fBvoid png_do_read_invert_alpha (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fIrow\fP\fB);\fP
|
65
|
+
|
66
|
+
\fBvoid png_do_read_swap_alpha (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fIrow\fP\fB);\fP
|
67
|
+
|
68
|
+
\fBvoid png_do_read_transformations (png_structp \fIpng_ptr\fP\fB);\fP
|
69
|
+
|
70
|
+
\fBint png_do_rgb_to_gray (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fIrow\fP\fB);\fP
|
71
|
+
|
72
|
+
\fBvoid png_do_shift (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, png_color_8p \fIbit_depth\fP\fB);\fP
|
73
|
+
|
74
|
+
\fBvoid png_do_strip_filler (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, png_uint_32 \fIflags\fP\fB);\fP
|
75
|
+
|
76
|
+
\fBvoid png_do_swap (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fIrow\fP\fB);\fP
|
77
|
+
|
78
|
+
\fBvoid png_do_unpack (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fIrow\fP\fB);\fP
|
79
|
+
|
80
|
+
\fBvoid png_do_unshift (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, png_color_8p \fIsig_bits\fP\fB);\fP
|
81
|
+
|
82
|
+
\fBvoid png_do_write_interlace (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, int \fIpass\fP\fB);\fP
|
83
|
+
|
84
|
+
\fBvoid png_do_write_invert_alpha (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fIrow\fP\fB);\fP
|
85
|
+
|
86
|
+
\fBvoid png_do_write_swap_alpha (png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fIrow\fP\fB);\fP
|
87
|
+
|
88
|
+
\fBvoid png_do_write_transformations (png_structp \fIpng_ptr\fP\fB);\fP
|
89
|
+
|
90
|
+
\fBvoid *png_far_to_near (png_structp png_ptr,png_voidp \fP\fIptr\fP\fB, int \fIcheck\fP\fB);\fP
|
91
|
+
|
92
|
+
\fBvoid png_flush (png_structp \fIpng_ptr\fP\fB);\fP
|
93
|
+
|
94
|
+
\fBvoid png_handle_bKGD (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
95
|
+
|
96
|
+
\fBvoid png_handle_cHRM (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
97
|
+
|
98
|
+
\fBvoid png_handle_gAMA (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
99
|
+
|
100
|
+
\fBvoid png_handle_hIST (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
101
|
+
|
102
|
+
\fBvoid png_handle_IEND (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
103
|
+
|
104
|
+
\fBvoid png_handle_IHDR (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
105
|
+
|
106
|
+
\fBvoid png_handle_iCCP (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
107
|
+
|
108
|
+
\fBvoid png_handle_iTXt (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
109
|
+
|
110
|
+
\fBvoid png_handle_oFFs (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
111
|
+
|
112
|
+
\fBvoid png_handle_pCAL (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
113
|
+
|
114
|
+
\fBvoid png_handle_pHYs (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
115
|
+
|
116
|
+
\fBvoid png_handle_PLTE (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
117
|
+
|
118
|
+
\fBvoid png_handle_sBIT (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
119
|
+
|
120
|
+
\fBvoid png_handle_sCAL (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
121
|
+
|
122
|
+
\fBvoid png_handle_sPLT (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
123
|
+
|
124
|
+
\fBvoid png_handle_sRGB (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
125
|
+
|
126
|
+
\fBvoid png_handle_tEXt (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
127
|
+
|
128
|
+
\fBvoid png_handle_tIME (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
129
|
+
|
130
|
+
\fBvoid png_handle_tRNS (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
131
|
+
|
132
|
+
\fBvoid png_handle_unknown (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
133
|
+
|
134
|
+
\fBvoid png_handle_zTXt (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
135
|
+
|
136
|
+
\fBvoid png_info_destroy (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
|
137
|
+
|
138
|
+
\fBvoid png_init_mmx_flags (png_structp \fIpng_ptr\fP\fB);\fP
|
139
|
+
|
140
|
+
\fBvoid png_init_read_transformations (png_structp \fIpng_ptr\fP\fB);\fP
|
141
|
+
|
142
|
+
\fBvoid png_process_IDAT_data (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fP\fIbuffer\fP\fB, png_size_t \fIbuffer_length\fP\fB);\fP
|
143
|
+
|
144
|
+
\fBvoid png_process_some_data (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
|
145
|
+
|
146
|
+
\fBvoid png_push_check_crc (png_structp \fIpng_ptr\fP\fB);\fP
|
147
|
+
|
148
|
+
\fBvoid png_push_crc_finish (png_structp \fIpng_ptr\fP\fB);\fP
|
149
|
+
|
150
|
+
\fBvoid png_push_crc_skip (png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
151
|
+
|
152
|
+
\fBvoid png_push_fill_buffer (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fP\fIbuffer\fP\fB, png_size_t \fIlength\fP\fB);\fP
|
153
|
+
|
154
|
+
\fBvoid png_push_handle_tEXt (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
155
|
+
|
156
|
+
\fBvoid png_push_handle_unknown (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
157
|
+
|
158
|
+
\fBvoid png_push_handle_zTXt (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
159
|
+
|
160
|
+
\fBvoid png_push_have_end (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
|
161
|
+
|
162
|
+
\fBvoid png_push_have_info (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
|
163
|
+
|
164
|
+
\fBvoid png_push_have_row (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fIrow\fP\fB);\fP
|
165
|
+
|
166
|
+
\fBvoid png_push_process_row (png_structp \fIpng_ptr\fP\fB);\fP
|
167
|
+
|
168
|
+
\fBvoid png_push_read_chunk (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
|
169
|
+
|
170
|
+
\fBvoid png_push_read_end (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
|
171
|
+
|
172
|
+
\fBvoid png_push_read_IDAT (png_structp \fIpng_ptr\fP\fB);\fP
|
173
|
+
|
174
|
+
\fBvoid png_push_read_sig (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
|
175
|
+
|
176
|
+
\fBvoid png_push_read_tEXt (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
|
177
|
+
|
178
|
+
\fBvoid png_push_read_zTXt (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
|
179
|
+
|
180
|
+
\fBvoid png_push_restore_buffer (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fP\fIbuffer\fP\fB, png_size_t \fIbuffer_length\fP\fB);\fP
|
181
|
+
|
182
|
+
\fBvoid png_push_save_buffer (png_structp \fIpng_ptr\fP\fB);\fP
|
183
|
+
|
184
|
+
\fBvoid png_read_data (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fP\fIdata\fP\fB, png_size_t \fIlength\fP\fB);\fP
|
185
|
+
|
186
|
+
\fBvoid png_read_filter_row (png_structp \fP\fIpng_ptr\fP\fB, png_row_infop \fP\fIrow_info\fP\fB, png_bytep \fP\fIrow\fP\fB, png_bytep \fP\fIprev_row\fP\fB, int \fIfilter\fP\fB);\fP
|
187
|
+
|
188
|
+
\fBvoid png_read_finish_row (png_structp \fIpng_ptr\fP\fB);\fP
|
189
|
+
|
190
|
+
\fBvoid png_read_push_finish_row (png_structp \fIpng_ptr\fP\fB);\fP
|
191
|
+
|
192
|
+
\fBvoid png_read_start_row (png_structp \fIpng_ptr\fP\fB);\fP
|
193
|
+
|
194
|
+
\fBvoid png_read_transform_info (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
|
195
|
+
|
196
|
+
\fBvoid png_reset_crc (png_structp \fIpng_ptr\fP\fB);\fP
|
197
|
+
|
198
|
+
\fBint png_set_text_2 (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_textp \fP\fItext_ptr\fP\fB, int \fInum_text\fP\fB);\fP
|
199
|
+
|
200
|
+
\fBvoid png_write_cHRM (png_structp \fP\fIpng_ptr\fP\fB, double \fP\fIwhite_x\fP\fB, double \fP\fIwhite_y\fP\fB, double \fP\fIred_x\fP\fB, double \fP\fIred_y\fP\fB, double \fP\fIgreen_x\fP\fB, double \fP\fIgreen_y\fP\fB, double \fP\fIblue_x\fP\fB, double \fIblue_y\fP\fB);\fP
|
201
|
+
|
202
|
+
\fBvoid png_write_cHRM_fixed (png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fP\fIwhite_x\fP\fB, png_uint_32 \fP\fIwhite_y\fP\fB, png_uint_32 \fP\fIred_x\fP\fB, png_uint_32 \fP\fIred_y\fP\fB, png_uint_32 \fP\fIgreen_x\fP\fB, png_uint_32 \fP\fIgreen_y\fP\fB, png_uint_32 \fP\fIblue_x\fP\fB, png_uint_32 \fIblue_y\fP\fB);\fP
|
203
|
+
|
204
|
+
\fBvoid png_write_data (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fP\fIdata\fP\fB, png_size_t \fIlength\fP\fB);\fP
|
205
|
+
|
206
|
+
\fBvoid png_write_filtered_row (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fIfiltered_row\fP\fB);\fP
|
207
|
+
|
208
|
+
\fBvoid png_write_find_filter (png_structp \fP\fIpng_ptr\fP\fB, png_row_infop \fIrow_info\fP\fB);\fP
|
209
|
+
|
210
|
+
\fBvoid png_write_finish_row (png_structp \fIpng_ptr\fP\fB);\fP
|
211
|
+
|
212
|
+
\fBvoid png_write_gAMA (png_structp \fP\fIpng_ptr\fP\fB, double \fIfile_gamma\fP\fB);\fP
|
213
|
+
|
214
|
+
\fBvoid png_write_gAMA_fixed (png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fIint_file_gamma\fP\fB);\fP
|
215
|
+
|
216
|
+
\fBvoid png_write_hIST (png_structp \fP\fIpng_ptr\fP\fB, png_uint_16p \fP\fIhist\fP\fB, int \fInum_hist\fP\fB);\fP
|
217
|
+
|
218
|
+
\fBvoid png_write_iCCP (png_structp \fP\fIpng_ptr\fP\fB, png_charp \fP\fIname\fP\fB, int \fP\fIcompression_type\fP\fB, png_charp \fP\fIprofile\fP\fB, int \fIproflen\fP\fB);\fP
|
219
|
+
|
220
|
+
\fBvoid png_write_IDAT (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fP\fIdata\fP\fB, png_size_t \fIlength\fP\fB);\fP
|
221
|
+
|
222
|
+
\fBvoid png_write_IEND (png_structp \fIpng_ptr\fP\fB);\fP
|
223
|
+
|
224
|
+
\fBvoid png_write_IHDR (png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fP\fIwidth\fP\fB, png_uint_32 \fP\fIheight\fP\fB, int \fP\fIbit_depth\fP\fB, int \fP\fIcolor_type\fP\fB, int \fP\fIcompression_type\fP\fB, int \fP\fIfilter_type\fP\fB, int \fIinterlace_type\fP\fB);\fP
|
225
|
+
|
226
|
+
\fBvoid png_write_iTXt (png_structp \fP\fIpng_ptr\fP\fB, int \fP\fIcompression\fP\fB, png_charp \fP\fIkey\fP\fB, png_charp \fP\fIlang\fP\fB, png_charp \fP\fItranslated_key\fP\fB, png_charp \fItext\fP\fB);\fP
|
227
|
+
|
228
|
+
\fBvoid png_write_oFFs (png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fP\fIx_offset\fP\fB, png_uint_32 \fP\fIy_offset\fP\fB, int \fIunit_type\fP\fB);\fP
|
229
|
+
|
230
|
+
\fBvoid png_write_pCAL (png_structp \fP\fIpng_ptr\fP\fB, png_charp \fP\fIpurpose\fP\fB, png_int_32 \fP\fIX0\fP\fB, png_int_32 \fP\fIX1\fP\fB, int \fP\fItype\fP\fB, int \fP\fInparams\fP\fB, png_charp \fP\fIunits\fP\fB, png_charpp \fIparams\fP\fB);\fP
|
231
|
+
|
232
|
+
\fBvoid png_write_pHYs (png_structp \fP\fIpng_ptr\fP\fB, png_uint_32 \fP\fIx_pixels_per_unit\fP\fB, png_uint_32 \fP\fIy_pixels_per_unit\fP\fB, int \fIunit_type\fP\fB);\fP
|
233
|
+
|
234
|
+
\fBvoid png_write_PLTE (png_structp \fP\fIpng_ptr\fP\fB, png_colorp \fP\fIpalette\fP\fB, png_uint_32 \fInum_pal\fP\fB);\fP
|
235
|
+
|
236
|
+
\fBvoid png_write_sBIT (png_structp \fP\fIpng_ptr\fP\fB, png_color_8p \fP\fIsbit\fP\fB, int \fIcolor_type\fP\fB);\fP
|
237
|
+
|
238
|
+
\fBvoid png_write_sCAL (png_structp \fP\fIpng_ptr\fP\fB, png_charp \fP\fIunit\fP\fB, double \fP\fIwidth\fP\fB, double \fIheight\fP\fB);\fP
|
239
|
+
|
240
|
+
\fBvoid png_write_sCAL_s (png_structp \fP\fIpng_ptr\fP\fB, png_charp \fP\fIunit\fP\fB, png_charp \fP\fIwidth\fP\fB, png_charp \fIheight\fP\fB);\fP
|
241
|
+
|
242
|
+
\fBvoid png_write_sig (png_structp \fIpng_ptr\fP\fB);\fP
|
243
|
+
|
244
|
+
\fBvoid png_write_sRGB (png_structp \fP\fIpng_ptr\fP\fB, int \fIintent\fP\fB);\fP
|
245
|
+
|
246
|
+
\fBvoid png_write_sPLT (png_structp \fP\fIpng_ptr\fP\fB, png_spalette_p \fIpalette\fP\fB);\fP
|
247
|
+
|
248
|
+
\fBvoid png_write_start_row (png_structp \fIpng_ptr\fP\fB);\fP
|
249
|
+
|
250
|
+
\fBvoid png_write_tEXt (png_structp \fP\fIpng_ptr\fP\fB, png_charp \fP\fIkey\fP\fB, png_charp \fP\fItext\fP\fB, png_size_t \fItext_len\fP\fB);\fP
|
251
|
+
|
252
|
+
\fBvoid png_write_tIME (png_structp \fP\fIpng_ptr\fP\fB, png_timep \fImod_time\fP\fB);\fP
|
253
|
+
|
254
|
+
\fBvoid png_write_tRNS (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fP\fItrans\fP\fB, png_color_16p \fP\fIvalues\fP\fB, int \fP\fInumber\fP\fB, int \fIcolor_type\fP\fB);\fP
|
255
|
+
|
256
|
+
\fBvoid png_write_zTXt (png_structp \fP\fIpng_ptr\fP\fB, png_charp \fP\fIkey\fP\fB, png_charp \fP\fItext\fP\fB, png_size_t \fP\fItext_len\fP\fB, int \fIcompression\fP\fB);\fP
|
257
|
+
|
258
|
+
\fBvoidpf png_zalloc (voidpf \fP\fIpng_ptr\fP\fB, uInt \fP\fIitems\fP\fB, uInt \fIsize\fP\fB);\fP
|
259
|
+
|
260
|
+
\fBvoid png_zfree (voidpf \fP\fIpng_ptr\fP\fB, voidpf \fIptr\fP\fB);\fP
|
261
|
+
|
262
|
+
\fI\fB
|
263
|
+
|
264
|
+
.SH DESCRIPTION
|
265
|
+
The functions listed above are used privately by libpng
|
266
|
+
and are not recommended for use by applications. They are
|
267
|
+
not "exported" to applications using shared libraries. They
|
268
|
+
are listed alphabetically here as an aid to libpng maintainers.
|
269
|
+
See png.h for more information on these functions.
|
270
|
+
|
271
|
+
.SH SEE ALSO
|
272
|
+
.IR libpng(3) ", " png(5)
|
273
|
+
.SH AUTHOR
|
274
|
+
Glenn Randers-Pehrson
|
@@ -0,0 +1,74 @@
|
|
1
|
+
.TH PNG 5 "May 8, 2008"
|
2
|
+
.SH NAME
|
3
|
+
png \- Portable Network Graphics (PNG) format
|
4
|
+
.SH DESCRIPTION
|
5
|
+
PNG (Portable Network Graphics) is an extensible file format for the
|
6
|
+
lossless, portable, well-compressed storage of raster images. PNG provides
|
7
|
+
a patent-free replacement for GIF and can also replace many
|
8
|
+
common uses of TIFF. Indexed-color, grayscale, and truecolor images are
|
9
|
+
supported, plus an optional alpha channel. Sample depths range from
|
10
|
+
1 to 16 bits.
|
11
|
+
.br
|
12
|
+
|
13
|
+
PNG is designed to work well in online viewing applications, such as the
|
14
|
+
World Wide Web, so it is fully streamable with a progressive display
|
15
|
+
option. PNG is robust, providing both full file integrity checking and
|
16
|
+
fast, simple detection of common transmission errors. Also, PNG can store
|
17
|
+
gamma and chromaticity data for improved color matching on heterogeneous
|
18
|
+
platforms.
|
19
|
+
|
20
|
+
.SH "SEE ALSO"
|
21
|
+
.IR libpng(3) ", " zlib(3) ", " deflate(5) ", and " zlib(5)
|
22
|
+
.LP
|
23
|
+
PNG specification (second edition), November 2003:
|
24
|
+
.IP
|
25
|
+
.br
|
26
|
+
<http://www.w3.org/TR/2003/REC-PNG-20031110/
|
27
|
+
PNG 1.2 specification, July 1999:
|
28
|
+
.IP
|
29
|
+
.br
|
30
|
+
http://www.libpng.org/pub/png
|
31
|
+
.LP
|
32
|
+
PNG 1.0 specification, October 1996:
|
33
|
+
.IP
|
34
|
+
.br
|
35
|
+
RFC 2083
|
36
|
+
.IP
|
37
|
+
.br
|
38
|
+
ftp://ftp.rfc-editor.org:/in-notes/rfc2083.txt
|
39
|
+
.br
|
40
|
+
or (as a W3C Recommendation) at
|
41
|
+
.br
|
42
|
+
http://www.w3.org/TR/REC-png.html
|
43
|
+
.SH AUTHORS
|
44
|
+
This man page: Glenn Randers-Pehrson
|
45
|
+
.LP
|
46
|
+
Portable Network Graphics (PNG) Specification (Second Edition)
|
47
|
+
Information technology - Computer graphics and image processing -
|
48
|
+
Portable Network Graphics (PNG): Functional specification.
|
49
|
+
ISO/IEC 15948:2003 (E) (November 10, 2003): David Duce and others.
|
50
|
+
.LP
|
51
|
+
Portable Network Graphics (PNG) Specification Version 1.2 (July 8, 1999):
|
52
|
+
Glenn Randers-Pehrson and others (png-list).
|
53
|
+
.LP
|
54
|
+
Portable Network Graphics (PNG) Specification Version 1.0 (October 1, 1996):
|
55
|
+
Thomas Boutell and others (png-list).
|
56
|
+
.LP
|
57
|
+
|
58
|
+
|
59
|
+
.SH COPYRIGHT NOTICE
|
60
|
+
.LP
|
61
|
+
This man page is Copyright (c) 1998-2006 Glenn Randers-Pehrson. See png.h
|
62
|
+
for conditions of use and distribution.
|
63
|
+
.LP
|
64
|
+
The PNG Specification (Second Edition) is
|
65
|
+
Copyright (c) 2003 W3C. (MIT, ERCIM, Keio), All Rights Reserved.
|
66
|
+
.LP
|
67
|
+
The PNG-1.2 specification is copyright (c) 1999 Glenn Randers-Pehrson.
|
68
|
+
See the specification for conditions of use and distribution.
|
69
|
+
.LP
|
70
|
+
The PNG-1.0 specification is copyright (c) 1996 Massachusetts Institute of
|
71
|
+
Technology. See the specification for conditions of use and distribution.
|
72
|
+
.LP
|
73
|
+
.\" end of man page
|
74
|
+
|
@@ -0,0 +1,798 @@
|
|
1
|
+
|
2
|
+
/* png.c - location for general purpose libpng functions
|
3
|
+
*
|
4
|
+
* Last changed in libpng 1.2.21 October 4, 2007
|
5
|
+
* For conditions of distribution and use, see copyright notice in png.h
|
6
|
+
* Copyright (c) 1998-2007 Glenn Randers-Pehrson
|
7
|
+
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
8
|
+
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
9
|
+
*/
|
10
|
+
|
11
|
+
#define PNG_INTERNAL
|
12
|
+
#define PNG_NO_EXTERN
|
13
|
+
#include "png.h"
|
14
|
+
|
15
|
+
/* Generate a compiler error if there is an old png.h in the search path. */
|
16
|
+
typedef version_1_2_29 Your_png_h_is_not_version_1_2_29;
|
17
|
+
|
18
|
+
/* Version information for C files. This had better match the version
|
19
|
+
* string defined in png.h. */
|
20
|
+
|
21
|
+
#ifdef PNG_USE_GLOBAL_ARRAYS
|
22
|
+
/* png_libpng_ver was changed to a function in version 1.0.5c */
|
23
|
+
PNG_CONST char png_libpng_ver[18] = PNG_LIBPNG_VER_STRING;
|
24
|
+
|
25
|
+
#ifdef PNG_READ_SUPPORTED
|
26
|
+
|
27
|
+
/* png_sig was changed to a function in version 1.0.5c */
|
28
|
+
/* Place to hold the signature string for a PNG file. */
|
29
|
+
PNG_CONST png_byte FARDATA png_sig[8] = {137, 80, 78, 71, 13, 10, 26, 10};
|
30
|
+
#endif /* PNG_READ_SUPPORTED */
|
31
|
+
|
32
|
+
/* Invoke global declarations for constant strings for known chunk types */
|
33
|
+
PNG_IHDR;
|
34
|
+
PNG_IDAT;
|
35
|
+
PNG_IEND;
|
36
|
+
PNG_PLTE;
|
37
|
+
PNG_bKGD;
|
38
|
+
PNG_cHRM;
|
39
|
+
PNG_gAMA;
|
40
|
+
PNG_hIST;
|
41
|
+
PNG_iCCP;
|
42
|
+
PNG_iTXt;
|
43
|
+
PNG_oFFs;
|
44
|
+
PNG_pCAL;
|
45
|
+
PNG_sCAL;
|
46
|
+
PNG_pHYs;
|
47
|
+
PNG_sBIT;
|
48
|
+
PNG_sPLT;
|
49
|
+
PNG_sRGB;
|
50
|
+
PNG_tEXt;
|
51
|
+
PNG_tIME;
|
52
|
+
PNG_tRNS;
|
53
|
+
PNG_zTXt;
|
54
|
+
|
55
|
+
#ifdef PNG_READ_SUPPORTED
|
56
|
+
/* arrays to facilitate easy interlacing - use pass (0 - 6) as index */
|
57
|
+
|
58
|
+
/* start of interlace block */
|
59
|
+
PNG_CONST int FARDATA png_pass_start[] = {0, 4, 0, 2, 0, 1, 0};
|
60
|
+
|
61
|
+
/* offset to next interlace block */
|
62
|
+
PNG_CONST int FARDATA png_pass_inc[] = {8, 8, 4, 4, 2, 2, 1};
|
63
|
+
|
64
|
+
/* start of interlace block in the y direction */
|
65
|
+
PNG_CONST int FARDATA png_pass_ystart[] = {0, 0, 4, 0, 2, 0, 1};
|
66
|
+
|
67
|
+
/* offset to next interlace block in the y direction */
|
68
|
+
PNG_CONST int FARDATA png_pass_yinc[] = {8, 8, 8, 4, 4, 2, 2};
|
69
|
+
|
70
|
+
/* Height of interlace block. This is not currently used - if you need
|
71
|
+
* it, uncomment it here and in png.h
|
72
|
+
PNG_CONST int FARDATA png_pass_height[] = {8, 8, 4, 4, 2, 2, 1};
|
73
|
+
*/
|
74
|
+
|
75
|
+
/* Mask to determine which pixels are valid in a pass */
|
76
|
+
PNG_CONST int FARDATA png_pass_mask[] = {0x80, 0x08, 0x88, 0x22, 0xaa, 0x55, 0xff};
|
77
|
+
|
78
|
+
/* Mask to determine which pixels to overwrite while displaying */
|
79
|
+
PNG_CONST int FARDATA png_pass_dsp_mask[]
|
80
|
+
= {0xff, 0x0f, 0xff, 0x33, 0xff, 0x55, 0xff};
|
81
|
+
|
82
|
+
#endif /* PNG_READ_SUPPORTED */
|
83
|
+
#endif /* PNG_USE_GLOBAL_ARRAYS */
|
84
|
+
|
85
|
+
/* Tells libpng that we have already handled the first "num_bytes" bytes
|
86
|
+
* of the PNG file signature. If the PNG data is embedded into another
|
87
|
+
* stream we can set num_bytes = 8 so that libpng will not attempt to read
|
88
|
+
* or write any of the magic bytes before it starts on the IHDR.
|
89
|
+
*/
|
90
|
+
|
91
|
+
#ifdef PNG_READ_SUPPORTED
|
92
|
+
void PNGAPI
|
93
|
+
png_set_sig_bytes(png_structp png_ptr, int num_bytes)
|
94
|
+
{
|
95
|
+
if(png_ptr == NULL) return;
|
96
|
+
png_debug(1, "in png_set_sig_bytes\n");
|
97
|
+
if (num_bytes > 8)
|
98
|
+
png_error(png_ptr, "Too many bytes for PNG signature.");
|
99
|
+
|
100
|
+
png_ptr->sig_bytes = (png_byte)(num_bytes < 0 ? 0 : num_bytes);
|
101
|
+
}
|
102
|
+
|
103
|
+
/* Checks whether the supplied bytes match the PNG signature. We allow
|
104
|
+
* checking less than the full 8-byte signature so that those apps that
|
105
|
+
* already read the first few bytes of a file to determine the file type
|
106
|
+
* can simply check the remaining bytes for extra assurance. Returns
|
107
|
+
* an integer less than, equal to, or greater than zero if sig is found,
|
108
|
+
* respectively, to be less than, to match, or be greater than the correct
|
109
|
+
* PNG signature (this is the same behaviour as strcmp, memcmp, etc).
|
110
|
+
*/
|
111
|
+
int PNGAPI
|
112
|
+
png_sig_cmp(png_bytep sig, png_size_t start, png_size_t num_to_check)
|
113
|
+
{
|
114
|
+
png_byte png_signature[8] = {137, 80, 78, 71, 13, 10, 26, 10};
|
115
|
+
if (num_to_check > 8)
|
116
|
+
num_to_check = 8;
|
117
|
+
else if (num_to_check < 1)
|
118
|
+
return (-1);
|
119
|
+
|
120
|
+
if (start > 7)
|
121
|
+
return (-1);
|
122
|
+
|
123
|
+
if (start + num_to_check > 8)
|
124
|
+
num_to_check = 8 - start;
|
125
|
+
|
126
|
+
return ((int)(png_memcmp(&sig[start], &png_signature[start], num_to_check)));
|
127
|
+
}
|
128
|
+
|
129
|
+
#if defined(PNG_1_0_X) || defined(PNG_1_2_X)
|
130
|
+
/* (Obsolete) function to check signature bytes. It does not allow one
|
131
|
+
* to check a partial signature. This function might be removed in the
|
132
|
+
* future - use png_sig_cmp(). Returns true (nonzero) if the file is PNG.
|
133
|
+
*/
|
134
|
+
int PNGAPI
|
135
|
+
png_check_sig(png_bytep sig, int num)
|
136
|
+
{
|
137
|
+
return ((int)!png_sig_cmp(sig, (png_size_t)0, (png_size_t)num));
|
138
|
+
}
|
139
|
+
#endif
|
140
|
+
#endif /* PNG_READ_SUPPORTED */
|
141
|
+
|
142
|
+
#if defined(PNG_READ_SUPPORTED) || defined(PNG_WRITE_SUPPORTED)
|
143
|
+
/* Function to allocate memory for zlib and clear it to 0. */
|
144
|
+
#ifdef PNG_1_0_X
|
145
|
+
voidpf PNGAPI
|
146
|
+
#else
|
147
|
+
voidpf /* private */
|
148
|
+
#endif
|
149
|
+
png_zalloc(voidpf png_ptr, uInt items, uInt size)
|
150
|
+
{
|
151
|
+
png_voidp ptr;
|
152
|
+
png_structp p=(png_structp)png_ptr;
|
153
|
+
png_uint_32 save_flags=p->flags;
|
154
|
+
png_uint_32 num_bytes;
|
155
|
+
|
156
|
+
if(png_ptr == NULL) return (NULL);
|
157
|
+
if (items > PNG_UINT_32_MAX/size)
|
158
|
+
{
|
159
|
+
png_warning (p, "Potential overflow in png_zalloc()");
|
160
|
+
return (NULL);
|
161
|
+
}
|
162
|
+
num_bytes = (png_uint_32)items * size;
|
163
|
+
|
164
|
+
p->flags|=PNG_FLAG_MALLOC_NULL_MEM_OK;
|
165
|
+
ptr = (png_voidp)png_malloc((png_structp)png_ptr, num_bytes);
|
166
|
+
p->flags=save_flags;
|
167
|
+
|
168
|
+
#if defined(PNG_1_0_X) && !defined(PNG_NO_ZALLOC_ZERO)
|
169
|
+
if (ptr == NULL)
|
170
|
+
return ((voidpf)ptr);
|
171
|
+
|
172
|
+
if (num_bytes > (png_uint_32)0x8000L)
|
173
|
+
{
|
174
|
+
png_memset(ptr, 0, (png_size_t)0x8000L);
|
175
|
+
png_memset((png_bytep)ptr + (png_size_t)0x8000L, 0,
|
176
|
+
(png_size_t)(num_bytes - (png_uint_32)0x8000L));
|
177
|
+
}
|
178
|
+
else
|
179
|
+
{
|
180
|
+
png_memset(ptr, 0, (png_size_t)num_bytes);
|
181
|
+
}
|
182
|
+
#endif
|
183
|
+
return ((voidpf)ptr);
|
184
|
+
}
|
185
|
+
|
186
|
+
/* function to free memory for zlib */
|
187
|
+
#ifdef PNG_1_0_X
|
188
|
+
void PNGAPI
|
189
|
+
#else
|
190
|
+
void /* private */
|
191
|
+
#endif
|
192
|
+
png_zfree(voidpf png_ptr, voidpf ptr)
|
193
|
+
{
|
194
|
+
png_free((png_structp)png_ptr, (png_voidp)ptr);
|
195
|
+
}
|
196
|
+
|
197
|
+
/* Reset the CRC variable to 32 bits of 1's. Care must be taken
|
198
|
+
* in case CRC is > 32 bits to leave the top bits 0.
|
199
|
+
*/
|
200
|
+
void /* PRIVATE */
|
201
|
+
png_reset_crc(png_structp png_ptr)
|
202
|
+
{
|
203
|
+
png_ptr->crc = crc32(0, Z_NULL, 0);
|
204
|
+
}
|
205
|
+
|
206
|
+
/* Calculate the CRC over a section of data. We can only pass as
|
207
|
+
* much data to this routine as the largest single buffer size. We
|
208
|
+
* also check that this data will actually be used before going to the
|
209
|
+
* trouble of calculating it.
|
210
|
+
*/
|
211
|
+
void /* PRIVATE */
|
212
|
+
png_calculate_crc(png_structp png_ptr, png_bytep ptr, png_size_t length)
|
213
|
+
{
|
214
|
+
int need_crc = 1;
|
215
|
+
|
216
|
+
if (png_ptr->chunk_name[0] & 0x20) /* ancillary */
|
217
|
+
{
|
218
|
+
if ((png_ptr->flags & PNG_FLAG_CRC_ANCILLARY_MASK) ==
|
219
|
+
(PNG_FLAG_CRC_ANCILLARY_USE | PNG_FLAG_CRC_ANCILLARY_NOWARN))
|
220
|
+
need_crc = 0;
|
221
|
+
}
|
222
|
+
else /* critical */
|
223
|
+
{
|
224
|
+
if (png_ptr->flags & PNG_FLAG_CRC_CRITICAL_IGNORE)
|
225
|
+
need_crc = 0;
|
226
|
+
}
|
227
|
+
|
228
|
+
if (need_crc)
|
229
|
+
png_ptr->crc = crc32(png_ptr->crc, ptr, (uInt)length);
|
230
|
+
}
|
231
|
+
|
232
|
+
/* Allocate the memory for an info_struct for the application. We don't
|
233
|
+
* really need the png_ptr, but it could potentially be useful in the
|
234
|
+
* future. This should be used in favour of malloc(png_sizeof(png_info))
|
235
|
+
* and png_info_init() so that applications that want to use a shared
|
236
|
+
* libpng don't have to be recompiled if png_info changes size.
|
237
|
+
*/
|
238
|
+
png_infop PNGAPI
|
239
|
+
png_create_info_struct(png_structp png_ptr)
|
240
|
+
{
|
241
|
+
png_infop info_ptr;
|
242
|
+
|
243
|
+
png_debug(1, "in png_create_info_struct\n");
|
244
|
+
if(png_ptr == NULL) return (NULL);
|
245
|
+
#ifdef PNG_USER_MEM_SUPPORTED
|
246
|
+
info_ptr = (png_infop)png_create_struct_2(PNG_STRUCT_INFO,
|
247
|
+
png_ptr->malloc_fn, png_ptr->mem_ptr);
|
248
|
+
#else
|
249
|
+
info_ptr = (png_infop)png_create_struct(PNG_STRUCT_INFO);
|
250
|
+
#endif
|
251
|
+
if (info_ptr != NULL)
|
252
|
+
png_info_init_3(&info_ptr, png_sizeof(png_info));
|
253
|
+
|
254
|
+
return (info_ptr);
|
255
|
+
}
|
256
|
+
|
257
|
+
/* This function frees the memory associated with a single info struct.
|
258
|
+
* Normally, one would use either png_destroy_read_struct() or
|
259
|
+
* png_destroy_write_struct() to free an info struct, but this may be
|
260
|
+
* useful for some applications.
|
261
|
+
*/
|
262
|
+
void PNGAPI
|
263
|
+
png_destroy_info_struct(png_structp png_ptr, png_infopp info_ptr_ptr)
|
264
|
+
{
|
265
|
+
png_infop info_ptr = NULL;
|
266
|
+
if(png_ptr == NULL) return;
|
267
|
+
|
268
|
+
png_debug(1, "in png_destroy_info_struct\n");
|
269
|
+
if (info_ptr_ptr != NULL)
|
270
|
+
info_ptr = *info_ptr_ptr;
|
271
|
+
|
272
|
+
if (info_ptr != NULL)
|
273
|
+
{
|
274
|
+
png_info_destroy(png_ptr, info_ptr);
|
275
|
+
|
276
|
+
#ifdef PNG_USER_MEM_SUPPORTED
|
277
|
+
png_destroy_struct_2((png_voidp)info_ptr, png_ptr->free_fn,
|
278
|
+
png_ptr->mem_ptr);
|
279
|
+
#else
|
280
|
+
png_destroy_struct((png_voidp)info_ptr);
|
281
|
+
#endif
|
282
|
+
*info_ptr_ptr = NULL;
|
283
|
+
}
|
284
|
+
}
|
285
|
+
|
286
|
+
/* Initialize the info structure. This is now an internal function (0.89)
|
287
|
+
* and applications using it are urged to use png_create_info_struct()
|
288
|
+
* instead.
|
289
|
+
*/
|
290
|
+
#if defined(PNG_1_0_X) || defined(PNG_1_2_X)
|
291
|
+
#undef png_info_init
|
292
|
+
void PNGAPI
|
293
|
+
png_info_init(png_infop info_ptr)
|
294
|
+
{
|
295
|
+
/* We only come here via pre-1.0.12-compiled applications */
|
296
|
+
png_info_init_3(&info_ptr, 0);
|
297
|
+
}
|
298
|
+
#endif
|
299
|
+
|
300
|
+
void PNGAPI
|
301
|
+
png_info_init_3(png_infopp ptr_ptr, png_size_t png_info_struct_size)
|
302
|
+
{
|
303
|
+
png_infop info_ptr = *ptr_ptr;
|
304
|
+
|
305
|
+
if(info_ptr == NULL) return;
|
306
|
+
|
307
|
+
png_debug(1, "in png_info_init_3\n");
|
308
|
+
|
309
|
+
if(png_sizeof(png_info) > png_info_struct_size)
|
310
|
+
{
|
311
|
+
png_destroy_struct(info_ptr);
|
312
|
+
info_ptr = (png_infop)png_create_struct(PNG_STRUCT_INFO);
|
313
|
+
*ptr_ptr = info_ptr;
|
314
|
+
}
|
315
|
+
|
316
|
+
/* set everything to 0 */
|
317
|
+
png_memset(info_ptr, 0, png_sizeof (png_info));
|
318
|
+
}
|
319
|
+
|
320
|
+
#ifdef PNG_FREE_ME_SUPPORTED
|
321
|
+
void PNGAPI
|
322
|
+
png_data_freer(png_structp png_ptr, png_infop info_ptr,
|
323
|
+
int freer, png_uint_32 mask)
|
324
|
+
{
|
325
|
+
png_debug(1, "in png_data_freer\n");
|
326
|
+
if (png_ptr == NULL || info_ptr == NULL)
|
327
|
+
return;
|
328
|
+
if(freer == PNG_DESTROY_WILL_FREE_DATA)
|
329
|
+
info_ptr->free_me |= mask;
|
330
|
+
else if(freer == PNG_USER_WILL_FREE_DATA)
|
331
|
+
info_ptr->free_me &= ~mask;
|
332
|
+
else
|
333
|
+
png_warning(png_ptr,
|
334
|
+
"Unknown freer parameter in png_data_freer.");
|
335
|
+
}
|
336
|
+
#endif
|
337
|
+
|
338
|
+
void PNGAPI
|
339
|
+
png_free_data(png_structp png_ptr, png_infop info_ptr, png_uint_32 mask,
|
340
|
+
int num)
|
341
|
+
{
|
342
|
+
png_debug(1, "in png_free_data\n");
|
343
|
+
if (png_ptr == NULL || info_ptr == NULL)
|
344
|
+
return;
|
345
|
+
|
346
|
+
#if defined(PNG_TEXT_SUPPORTED)
|
347
|
+
/* free text item num or (if num == -1) all text items */
|
348
|
+
#ifdef PNG_FREE_ME_SUPPORTED
|
349
|
+
if ((mask & PNG_FREE_TEXT) & info_ptr->free_me)
|
350
|
+
#else
|
351
|
+
if (mask & PNG_FREE_TEXT)
|
352
|
+
#endif
|
353
|
+
{
|
354
|
+
if (num != -1)
|
355
|
+
{
|
356
|
+
if (info_ptr->text && info_ptr->text[num].key)
|
357
|
+
{
|
358
|
+
png_free(png_ptr, info_ptr->text[num].key);
|
359
|
+
info_ptr->text[num].key = NULL;
|
360
|
+
}
|
361
|
+
}
|
362
|
+
else
|
363
|
+
{
|
364
|
+
int i;
|
365
|
+
for (i = 0; i < info_ptr->num_text; i++)
|
366
|
+
png_free_data(png_ptr, info_ptr, PNG_FREE_TEXT, i);
|
367
|
+
png_free(png_ptr, info_ptr->text);
|
368
|
+
info_ptr->text = NULL;
|
369
|
+
info_ptr->num_text=0;
|
370
|
+
}
|
371
|
+
}
|
372
|
+
#endif
|
373
|
+
|
374
|
+
#if defined(PNG_tRNS_SUPPORTED)
|
375
|
+
/* free any tRNS entry */
|
376
|
+
#ifdef PNG_FREE_ME_SUPPORTED
|
377
|
+
if ((mask & PNG_FREE_TRNS) & info_ptr->free_me)
|
378
|
+
#else
|
379
|
+
if ((mask & PNG_FREE_TRNS) && (png_ptr->flags & PNG_FLAG_FREE_TRNS))
|
380
|
+
#endif
|
381
|
+
{
|
382
|
+
png_free(png_ptr, info_ptr->trans);
|
383
|
+
info_ptr->valid &= ~PNG_INFO_tRNS;
|
384
|
+
#ifndef PNG_FREE_ME_SUPPORTED
|
385
|
+
png_ptr->flags &= ~PNG_FLAG_FREE_TRNS;
|
386
|
+
#endif
|
387
|
+
info_ptr->trans = NULL;
|
388
|
+
}
|
389
|
+
#endif
|
390
|
+
|
391
|
+
#if defined(PNG_sCAL_SUPPORTED)
|
392
|
+
/* free any sCAL entry */
|
393
|
+
#ifdef PNG_FREE_ME_SUPPORTED
|
394
|
+
if ((mask & PNG_FREE_SCAL) & info_ptr->free_me)
|
395
|
+
#else
|
396
|
+
if (mask & PNG_FREE_SCAL)
|
397
|
+
#endif
|
398
|
+
{
|
399
|
+
#if defined(PNG_FIXED_POINT_SUPPORTED) && !defined(PNG_FLOATING_POINT_SUPPORTED)
|
400
|
+
png_free(png_ptr, info_ptr->scal_s_width);
|
401
|
+
png_free(png_ptr, info_ptr->scal_s_height);
|
402
|
+
info_ptr->scal_s_width = NULL;
|
403
|
+
info_ptr->scal_s_height = NULL;
|
404
|
+
#endif
|
405
|
+
info_ptr->valid &= ~PNG_INFO_sCAL;
|
406
|
+
}
|
407
|
+
#endif
|
408
|
+
|
409
|
+
#if defined(PNG_pCAL_SUPPORTED)
|
410
|
+
/* free any pCAL entry */
|
411
|
+
#ifdef PNG_FREE_ME_SUPPORTED
|
412
|
+
if ((mask & PNG_FREE_PCAL) & info_ptr->free_me)
|
413
|
+
#else
|
414
|
+
if (mask & PNG_FREE_PCAL)
|
415
|
+
#endif
|
416
|
+
{
|
417
|
+
png_free(png_ptr, info_ptr->pcal_purpose);
|
418
|
+
png_free(png_ptr, info_ptr->pcal_units);
|
419
|
+
info_ptr->pcal_purpose = NULL;
|
420
|
+
info_ptr->pcal_units = NULL;
|
421
|
+
if (info_ptr->pcal_params != NULL)
|
422
|
+
{
|
423
|
+
int i;
|
424
|
+
for (i = 0; i < (int)info_ptr->pcal_nparams; i++)
|
425
|
+
{
|
426
|
+
png_free(png_ptr, info_ptr->pcal_params[i]);
|
427
|
+
info_ptr->pcal_params[i]=NULL;
|
428
|
+
}
|
429
|
+
png_free(png_ptr, info_ptr->pcal_params);
|
430
|
+
info_ptr->pcal_params = NULL;
|
431
|
+
}
|
432
|
+
info_ptr->valid &= ~PNG_INFO_pCAL;
|
433
|
+
}
|
434
|
+
#endif
|
435
|
+
|
436
|
+
#if defined(PNG_iCCP_SUPPORTED)
|
437
|
+
/* free any iCCP entry */
|
438
|
+
#ifdef PNG_FREE_ME_SUPPORTED
|
439
|
+
if ((mask & PNG_FREE_ICCP) & info_ptr->free_me)
|
440
|
+
#else
|
441
|
+
if (mask & PNG_FREE_ICCP)
|
442
|
+
#endif
|
443
|
+
{
|
444
|
+
png_free(png_ptr, info_ptr->iccp_name);
|
445
|
+
png_free(png_ptr, info_ptr->iccp_profile);
|
446
|
+
info_ptr->iccp_name = NULL;
|
447
|
+
info_ptr->iccp_profile = NULL;
|
448
|
+
info_ptr->valid &= ~PNG_INFO_iCCP;
|
449
|
+
}
|
450
|
+
#endif
|
451
|
+
|
452
|
+
#if defined(PNG_sPLT_SUPPORTED)
|
453
|
+
/* free a given sPLT entry, or (if num == -1) all sPLT entries */
|
454
|
+
#ifdef PNG_FREE_ME_SUPPORTED
|
455
|
+
if ((mask & PNG_FREE_SPLT) & info_ptr->free_me)
|
456
|
+
#else
|
457
|
+
if (mask & PNG_FREE_SPLT)
|
458
|
+
#endif
|
459
|
+
{
|
460
|
+
if (num != -1)
|
461
|
+
{
|
462
|
+
if(info_ptr->splt_palettes)
|
463
|
+
{
|
464
|
+
png_free(png_ptr, info_ptr->splt_palettes[num].name);
|
465
|
+
png_free(png_ptr, info_ptr->splt_palettes[num].entries);
|
466
|
+
info_ptr->splt_palettes[num].name = NULL;
|
467
|
+
info_ptr->splt_palettes[num].entries = NULL;
|
468
|
+
}
|
469
|
+
}
|
470
|
+
else
|
471
|
+
{
|
472
|
+
if(info_ptr->splt_palettes_num)
|
473
|
+
{
|
474
|
+
int i;
|
475
|
+
for (i = 0; i < (int)info_ptr->splt_palettes_num; i++)
|
476
|
+
png_free_data(png_ptr, info_ptr, PNG_FREE_SPLT, i);
|
477
|
+
|
478
|
+
png_free(png_ptr, info_ptr->splt_palettes);
|
479
|
+
info_ptr->splt_palettes = NULL;
|
480
|
+
info_ptr->splt_palettes_num = 0;
|
481
|
+
}
|
482
|
+
info_ptr->valid &= ~PNG_INFO_sPLT;
|
483
|
+
}
|
484
|
+
}
|
485
|
+
#endif
|
486
|
+
|
487
|
+
#if defined(PNG_UNKNOWN_CHUNKS_SUPPORTED)
|
488
|
+
if(png_ptr->unknown_chunk.data)
|
489
|
+
{
|
490
|
+
png_free(png_ptr, png_ptr->unknown_chunk.data);
|
491
|
+
png_ptr->unknown_chunk.data = NULL;
|
492
|
+
}
|
493
|
+
#ifdef PNG_FREE_ME_SUPPORTED
|
494
|
+
if ((mask & PNG_FREE_UNKN) & info_ptr->free_me)
|
495
|
+
#else
|
496
|
+
if (mask & PNG_FREE_UNKN)
|
497
|
+
#endif
|
498
|
+
{
|
499
|
+
if (num != -1)
|
500
|
+
{
|
501
|
+
if(info_ptr->unknown_chunks)
|
502
|
+
{
|
503
|
+
png_free(png_ptr, info_ptr->unknown_chunks[num].data);
|
504
|
+
info_ptr->unknown_chunks[num].data = NULL;
|
505
|
+
}
|
506
|
+
}
|
507
|
+
else
|
508
|
+
{
|
509
|
+
int i;
|
510
|
+
|
511
|
+
if(info_ptr->unknown_chunks_num)
|
512
|
+
{
|
513
|
+
for (i = 0; i < (int)info_ptr->unknown_chunks_num; i++)
|
514
|
+
png_free_data(png_ptr, info_ptr, PNG_FREE_UNKN, i);
|
515
|
+
|
516
|
+
png_free(png_ptr, info_ptr->unknown_chunks);
|
517
|
+
info_ptr->unknown_chunks = NULL;
|
518
|
+
info_ptr->unknown_chunks_num = 0;
|
519
|
+
}
|
520
|
+
}
|
521
|
+
}
|
522
|
+
#endif
|
523
|
+
|
524
|
+
#if defined(PNG_hIST_SUPPORTED)
|
525
|
+
/* free any hIST entry */
|
526
|
+
#ifdef PNG_FREE_ME_SUPPORTED
|
527
|
+
if ((mask & PNG_FREE_HIST) & info_ptr->free_me)
|
528
|
+
#else
|
529
|
+
if ((mask & PNG_FREE_HIST) && (png_ptr->flags & PNG_FLAG_FREE_HIST))
|
530
|
+
#endif
|
531
|
+
{
|
532
|
+
png_free(png_ptr, info_ptr->hist);
|
533
|
+
info_ptr->hist = NULL;
|
534
|
+
info_ptr->valid &= ~PNG_INFO_hIST;
|
535
|
+
#ifndef PNG_FREE_ME_SUPPORTED
|
536
|
+
png_ptr->flags &= ~PNG_FLAG_FREE_HIST;
|
537
|
+
#endif
|
538
|
+
}
|
539
|
+
#endif
|
540
|
+
|
541
|
+
/* free any PLTE entry that was internally allocated */
|
542
|
+
#ifdef PNG_FREE_ME_SUPPORTED
|
543
|
+
if ((mask & PNG_FREE_PLTE) & info_ptr->free_me)
|
544
|
+
#else
|
545
|
+
if ((mask & PNG_FREE_PLTE) && (png_ptr->flags & PNG_FLAG_FREE_PLTE))
|
546
|
+
#endif
|
547
|
+
{
|
548
|
+
png_zfree(png_ptr, info_ptr->palette);
|
549
|
+
info_ptr->palette = NULL;
|
550
|
+
info_ptr->valid &= ~PNG_INFO_PLTE;
|
551
|
+
#ifndef PNG_FREE_ME_SUPPORTED
|
552
|
+
png_ptr->flags &= ~PNG_FLAG_FREE_PLTE;
|
553
|
+
#endif
|
554
|
+
info_ptr->num_palette = 0;
|
555
|
+
}
|
556
|
+
|
557
|
+
#if defined(PNG_INFO_IMAGE_SUPPORTED)
|
558
|
+
/* free any image bits attached to the info structure */
|
559
|
+
#ifdef PNG_FREE_ME_SUPPORTED
|
560
|
+
if ((mask & PNG_FREE_ROWS) & info_ptr->free_me)
|
561
|
+
#else
|
562
|
+
if (mask & PNG_FREE_ROWS)
|
563
|
+
#endif
|
564
|
+
{
|
565
|
+
if(info_ptr->row_pointers)
|
566
|
+
{
|
567
|
+
int row;
|
568
|
+
for (row = 0; row < (int)info_ptr->height; row++)
|
569
|
+
{
|
570
|
+
png_free(png_ptr, info_ptr->row_pointers[row]);
|
571
|
+
info_ptr->row_pointers[row]=NULL;
|
572
|
+
}
|
573
|
+
png_free(png_ptr, info_ptr->row_pointers);
|
574
|
+
info_ptr->row_pointers=NULL;
|
575
|
+
}
|
576
|
+
info_ptr->valid &= ~PNG_INFO_IDAT;
|
577
|
+
}
|
578
|
+
#endif
|
579
|
+
|
580
|
+
#ifdef PNG_FREE_ME_SUPPORTED
|
581
|
+
if(num == -1)
|
582
|
+
info_ptr->free_me &= ~mask;
|
583
|
+
else
|
584
|
+
info_ptr->free_me &= ~(mask & ~PNG_FREE_MUL);
|
585
|
+
#endif
|
586
|
+
}
|
587
|
+
|
588
|
+
/* This is an internal routine to free any memory that the info struct is
|
589
|
+
* pointing to before re-using it or freeing the struct itself. Recall
|
590
|
+
* that png_free() checks for NULL pointers for us.
|
591
|
+
*/
|
592
|
+
void /* PRIVATE */
|
593
|
+
png_info_destroy(png_structp png_ptr, png_infop info_ptr)
|
594
|
+
{
|
595
|
+
png_debug(1, "in png_info_destroy\n");
|
596
|
+
|
597
|
+
png_free_data(png_ptr, info_ptr, PNG_FREE_ALL, -1);
|
598
|
+
|
599
|
+
#if defined(PNG_UNKNOWN_CHUNKS_SUPPORTED)
|
600
|
+
if (png_ptr->num_chunk_list)
|
601
|
+
{
|
602
|
+
png_free(png_ptr, png_ptr->chunk_list);
|
603
|
+
png_ptr->chunk_list=NULL;
|
604
|
+
png_ptr->num_chunk_list=0;
|
605
|
+
}
|
606
|
+
#endif
|
607
|
+
|
608
|
+
png_info_init_3(&info_ptr, png_sizeof(png_info));
|
609
|
+
}
|
610
|
+
#endif /* defined(PNG_READ_SUPPORTED) || defined(PNG_WRITE_SUPPORTED) */
|
611
|
+
|
612
|
+
/* This function returns a pointer to the io_ptr associated with the user
|
613
|
+
* functions. The application should free any memory associated with this
|
614
|
+
* pointer before png_write_destroy() or png_read_destroy() are called.
|
615
|
+
*/
|
616
|
+
png_voidp PNGAPI
|
617
|
+
png_get_io_ptr(png_structp png_ptr)
|
618
|
+
{
|
619
|
+
if(png_ptr == NULL) return (NULL);
|
620
|
+
return (png_ptr->io_ptr);
|
621
|
+
}
|
622
|
+
|
623
|
+
#if defined(PNG_READ_SUPPORTED) || defined(PNG_WRITE_SUPPORTED)
|
624
|
+
#if !defined(PNG_NO_STDIO)
|
625
|
+
/* Initialize the default input/output functions for the PNG file. If you
|
626
|
+
* use your own read or write routines, you can call either png_set_read_fn()
|
627
|
+
* or png_set_write_fn() instead of png_init_io(). If you have defined
|
628
|
+
* PNG_NO_STDIO, you must use a function of your own because "FILE *" isn't
|
629
|
+
* necessarily available.
|
630
|
+
*/
|
631
|
+
void PNGAPI
|
632
|
+
png_init_io(png_structp png_ptr, png_FILE_p fp)
|
633
|
+
{
|
634
|
+
png_debug(1, "in png_init_io\n");
|
635
|
+
if(png_ptr == NULL) return;
|
636
|
+
png_ptr->io_ptr = (png_voidp)fp;
|
637
|
+
}
|
638
|
+
#endif
|
639
|
+
|
640
|
+
#if defined(PNG_TIME_RFC1123_SUPPORTED)
|
641
|
+
/* Convert the supplied time into an RFC 1123 string suitable for use in
|
642
|
+
* a "Creation Time" or other text-based time string.
|
643
|
+
*/
|
644
|
+
png_charp PNGAPI
|
645
|
+
png_convert_to_rfc1123(png_structp png_ptr, png_timep ptime)
|
646
|
+
{
|
647
|
+
static PNG_CONST char short_months[12][4] =
|
648
|
+
{"Jan", "Feb", "Mar", "Apr", "May", "Jun",
|
649
|
+
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
|
650
|
+
|
651
|
+
if(png_ptr == NULL) return (NULL);
|
652
|
+
if (png_ptr->time_buffer == NULL)
|
653
|
+
{
|
654
|
+
png_ptr->time_buffer = (png_charp)png_malloc(png_ptr, (png_uint_32)(29*
|
655
|
+
png_sizeof(char)));
|
656
|
+
}
|
657
|
+
|
658
|
+
#if defined(_WIN32_WCE)
|
659
|
+
{
|
660
|
+
wchar_t time_buf[29];
|
661
|
+
wsprintf(time_buf, TEXT("%d %S %d %02d:%02d:%02d +0000"),
|
662
|
+
ptime->day % 32, short_months[(ptime->month - 1) % 12],
|
663
|
+
ptime->year, ptime->hour % 24, ptime->minute % 60,
|
664
|
+
ptime->second % 61);
|
665
|
+
WideCharToMultiByte(CP_ACP, 0, time_buf, -1, png_ptr->time_buffer, 29,
|
666
|
+
NULL, NULL);
|
667
|
+
}
|
668
|
+
#else
|
669
|
+
#ifdef USE_FAR_KEYWORD
|
670
|
+
{
|
671
|
+
char near_time_buf[29];
|
672
|
+
png_snprintf6(near_time_buf,29,"%d %s %d %02d:%02d:%02d +0000",
|
673
|
+
ptime->day % 32, short_months[(ptime->month - 1) % 12],
|
674
|
+
ptime->year, ptime->hour % 24, ptime->minute % 60,
|
675
|
+
ptime->second % 61);
|
676
|
+
png_memcpy(png_ptr->time_buffer, near_time_buf,
|
677
|
+
29*png_sizeof(char));
|
678
|
+
}
|
679
|
+
#else
|
680
|
+
png_snprintf6(png_ptr->time_buffer,29,"%d %s %d %02d:%02d:%02d +0000",
|
681
|
+
ptime->day % 32, short_months[(ptime->month - 1) % 12],
|
682
|
+
ptime->year, ptime->hour % 24, ptime->minute % 60,
|
683
|
+
ptime->second % 61);
|
684
|
+
#endif
|
685
|
+
#endif /* _WIN32_WCE */
|
686
|
+
return ((png_charp)png_ptr->time_buffer);
|
687
|
+
}
|
688
|
+
#endif /* PNG_TIME_RFC1123_SUPPORTED */
|
689
|
+
|
690
|
+
#endif /* defined(PNG_READ_SUPPORTED) || defined(PNG_WRITE_SUPPORTED) */
|
691
|
+
|
692
|
+
png_charp PNGAPI
|
693
|
+
png_get_copyright(png_structp png_ptr)
|
694
|
+
{
|
695
|
+
png_ptr = png_ptr; /* silence compiler warning about unused png_ptr */
|
696
|
+
return ((png_charp) "\n libpng version 1.2.29 - May 8, 2008\n\
|
697
|
+
Copyright (c) 1998-2008 Glenn Randers-Pehrson\n\
|
698
|
+
Copyright (c) 1996-1997 Andreas Dilger\n\
|
699
|
+
Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.\n");
|
700
|
+
}
|
701
|
+
|
702
|
+
/* The following return the library version as a short string in the
|
703
|
+
* format 1.0.0 through 99.99.99zz. To get the version of *.h files
|
704
|
+
* used with your application, print out PNG_LIBPNG_VER_STRING, which
|
705
|
+
* is defined in png.h.
|
706
|
+
* Note: now there is no difference between png_get_libpng_ver() and
|
707
|
+
* png_get_header_ver(). Due to the version_nn_nn_nn typedef guard,
|
708
|
+
* it is guaranteed that png.c uses the correct version of png.h.
|
709
|
+
*/
|
710
|
+
png_charp PNGAPI
|
711
|
+
png_get_libpng_ver(png_structp png_ptr)
|
712
|
+
{
|
713
|
+
/* Version of *.c files used when building libpng */
|
714
|
+
png_ptr = png_ptr; /* silence compiler warning about unused png_ptr */
|
715
|
+
return ((png_charp) PNG_LIBPNG_VER_STRING);
|
716
|
+
}
|
717
|
+
|
718
|
+
png_charp PNGAPI
|
719
|
+
png_get_header_ver(png_structp png_ptr)
|
720
|
+
{
|
721
|
+
/* Version of *.h files used when building libpng */
|
722
|
+
png_ptr = png_ptr; /* silence compiler warning about unused png_ptr */
|
723
|
+
return ((png_charp) PNG_LIBPNG_VER_STRING);
|
724
|
+
}
|
725
|
+
|
726
|
+
png_charp PNGAPI
|
727
|
+
png_get_header_version(png_structp png_ptr)
|
728
|
+
{
|
729
|
+
/* Returns longer string containing both version and date */
|
730
|
+
png_ptr = png_ptr; /* silence compiler warning about unused png_ptr */
|
731
|
+
return ((png_charp) PNG_HEADER_VERSION_STRING
|
732
|
+
#ifndef PNG_READ_SUPPORTED
|
733
|
+
" (NO READ SUPPORT)"
|
734
|
+
#endif
|
735
|
+
"\n");
|
736
|
+
}
|
737
|
+
|
738
|
+
#if defined(PNG_READ_SUPPORTED) || defined(PNG_WRITE_SUPPORTED)
|
739
|
+
#ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED
|
740
|
+
int PNGAPI
|
741
|
+
png_handle_as_unknown(png_structp png_ptr, png_bytep chunk_name)
|
742
|
+
{
|
743
|
+
/* check chunk_name and return "keep" value if it's on the list, else 0 */
|
744
|
+
int i;
|
745
|
+
png_bytep p;
|
746
|
+
if(png_ptr == NULL || chunk_name == NULL || png_ptr->num_chunk_list<=0)
|
747
|
+
return 0;
|
748
|
+
p=png_ptr->chunk_list+png_ptr->num_chunk_list*5-5;
|
749
|
+
for (i = png_ptr->num_chunk_list; i; i--, p-=5)
|
750
|
+
if (!png_memcmp(chunk_name, p, 4))
|
751
|
+
return ((int)*(p+4));
|
752
|
+
return 0;
|
753
|
+
}
|
754
|
+
#endif
|
755
|
+
|
756
|
+
/* This function, added to libpng-1.0.6g, is untested. */
|
757
|
+
int PNGAPI
|
758
|
+
png_reset_zstream(png_structp png_ptr)
|
759
|
+
{
|
760
|
+
if (png_ptr == NULL) return Z_STREAM_ERROR;
|
761
|
+
return (inflateReset(&png_ptr->zstream));
|
762
|
+
}
|
763
|
+
#endif /* defined(PNG_READ_SUPPORTED) || defined(PNG_WRITE_SUPPORTED) */
|
764
|
+
|
765
|
+
/* This function was added to libpng-1.0.7 */
|
766
|
+
png_uint_32 PNGAPI
|
767
|
+
png_access_version_number(void)
|
768
|
+
{
|
769
|
+
/* Version of *.c files used when building libpng */
|
770
|
+
return((png_uint_32) PNG_LIBPNG_VER);
|
771
|
+
}
|
772
|
+
|
773
|
+
|
774
|
+
#if defined(PNG_READ_SUPPORTED) && defined(PNG_ASSEMBLER_CODE_SUPPORTED)
|
775
|
+
#if !defined(PNG_1_0_X)
|
776
|
+
/* this function was added to libpng 1.2.0 */
|
777
|
+
int PNGAPI
|
778
|
+
png_mmx_support(void)
|
779
|
+
{
|
780
|
+
/* obsolete, to be removed from libpng-1.4.0 */
|
781
|
+
return -1;
|
782
|
+
}
|
783
|
+
#endif /* PNG_1_0_X */
|
784
|
+
#endif /* PNG_READ_SUPPORTED && PNG_ASSEMBLER_CODE_SUPPORTED */
|
785
|
+
|
786
|
+
#if defined(PNG_READ_SUPPORTED) || defined(PNG_WRITE_SUPPORTED)
|
787
|
+
#ifdef PNG_SIZE_T
|
788
|
+
/* Added at libpng version 1.2.6 */
|
789
|
+
PNG_EXTERN png_size_t PNGAPI png_convert_size PNGARG((size_t size));
|
790
|
+
png_size_t PNGAPI
|
791
|
+
png_convert_size(size_t size)
|
792
|
+
{
|
793
|
+
if (size > (png_size_t)-1)
|
794
|
+
PNG_ABORT(); /* We haven't got access to png_ptr, so no png_error() */
|
795
|
+
return ((png_size_t)size);
|
796
|
+
}
|
797
|
+
#endif /* PNG_SIZE_T */
|
798
|
+
#endif /* defined(PNG_READ_SUPPORTED) || defined(PNG_WRITE_SUPPORTED) */
|