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
Binary file
|
Binary file
|
@@ -0,0 +1,1481 @@
|
|
1
|
+
|
2
|
+
/* pngconf.h - machine configurable file for libpng
|
3
|
+
*
|
4
|
+
* libpng version 1.2.29 - May 8, 2008
|
5
|
+
* For conditions of distribution and use, see copyright notice in png.h
|
6
|
+
* Copyright (c) 1998-2008 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
|
+
/* Any machine specific code is near the front of this file, so if you
|
12
|
+
* are configuring libpng for a machine, you may want to read the section
|
13
|
+
* starting here down to where it starts to typedef png_color, png_text,
|
14
|
+
* and png_info.
|
15
|
+
*/
|
16
|
+
|
17
|
+
#ifndef PNGCONF_H
|
18
|
+
#define PNGCONF_H
|
19
|
+
|
20
|
+
#define PNG_1_2_X
|
21
|
+
|
22
|
+
/*
|
23
|
+
* PNG_USER_CONFIG has to be defined on the compiler command line. This
|
24
|
+
* includes the resource compiler for Windows DLL configurations.
|
25
|
+
*/
|
26
|
+
#ifdef PNG_USER_CONFIG
|
27
|
+
# ifndef PNG_USER_PRIVATEBUILD
|
28
|
+
# define PNG_USER_PRIVATEBUILD
|
29
|
+
# endif
|
30
|
+
#include "pngusr.h"
|
31
|
+
#endif
|
32
|
+
|
33
|
+
/* PNG_CONFIGURE_LIBPNG is set by the "configure" script. */
|
34
|
+
#ifdef PNG_CONFIGURE_LIBPNG
|
35
|
+
#ifdef HAVE_CONFIG_H
|
36
|
+
#include "config.h"
|
37
|
+
#endif
|
38
|
+
#endif
|
39
|
+
|
40
|
+
/*
|
41
|
+
* Added at libpng-1.2.8
|
42
|
+
*
|
43
|
+
* If you create a private DLL you need to define in "pngusr.h" the followings:
|
44
|
+
* #define PNG_USER_PRIVATEBUILD <Describes by whom and why this version of
|
45
|
+
* the DLL was built>
|
46
|
+
* e.g. #define PNG_USER_PRIVATEBUILD "Build by MyCompany for xyz reasons."
|
47
|
+
* #define PNG_USER_DLLFNAME_POSTFIX <two-letter postfix that serve to
|
48
|
+
* distinguish your DLL from those of the official release. These
|
49
|
+
* correspond to the trailing letters that come after the version
|
50
|
+
* number and must match your private DLL name>
|
51
|
+
* e.g. // private DLL "libpng13gx.dll"
|
52
|
+
* #define PNG_USER_DLLFNAME_POSTFIX "gx"
|
53
|
+
*
|
54
|
+
* The following macros are also at your disposal if you want to complete the
|
55
|
+
* DLL VERSIONINFO structure.
|
56
|
+
* - PNG_USER_VERSIONINFO_COMMENTS
|
57
|
+
* - PNG_USER_VERSIONINFO_COMPANYNAME
|
58
|
+
* - PNG_USER_VERSIONINFO_LEGALTRADEMARKS
|
59
|
+
*/
|
60
|
+
|
61
|
+
#ifdef __STDC__
|
62
|
+
#ifdef SPECIALBUILD
|
63
|
+
# pragma message("PNG_LIBPNG_SPECIALBUILD (and deprecated SPECIALBUILD)\
|
64
|
+
are now LIBPNG reserved macros. Use PNG_USER_PRIVATEBUILD instead.")
|
65
|
+
#endif
|
66
|
+
|
67
|
+
#ifdef PRIVATEBUILD
|
68
|
+
# pragma message("PRIVATEBUILD is deprecated.\
|
69
|
+
Use PNG_USER_PRIVATEBUILD instead.")
|
70
|
+
# define PNG_USER_PRIVATEBUILD PRIVATEBUILD
|
71
|
+
#endif
|
72
|
+
#endif /* __STDC__ */
|
73
|
+
|
74
|
+
#ifndef PNG_VERSION_INFO_ONLY
|
75
|
+
|
76
|
+
/* End of material added to libpng-1.2.8 */
|
77
|
+
|
78
|
+
/* Added at libpng-1.2.19, removed at libpng-1.2.20 because it caused trouble
|
79
|
+
Restored at libpng-1.2.21 */
|
80
|
+
#if !defined(PNG_NO_WARN_UNINITIALIZED_ROW) && \
|
81
|
+
!defined(PNG_WARN_UNINITIALIZED_ROW)
|
82
|
+
# define PNG_WARN_UNINITIALIZED_ROW 1
|
83
|
+
#endif
|
84
|
+
/* End of material added at libpng-1.2.19/1.2.21 */
|
85
|
+
|
86
|
+
/* This is the size of the compression buffer, and thus the size of
|
87
|
+
* an IDAT chunk. Make this whatever size you feel is best for your
|
88
|
+
* machine. One of these will be allocated per png_struct. When this
|
89
|
+
* is full, it writes the data to the disk, and does some other
|
90
|
+
* calculations. Making this an extremely small size will slow
|
91
|
+
* the library down, but you may want to experiment to determine
|
92
|
+
* where it becomes significant, if you are concerned with memory
|
93
|
+
* usage. Note that zlib allocates at least 32Kb also. For readers,
|
94
|
+
* this describes the size of the buffer available to read the data in.
|
95
|
+
* Unless this gets smaller than the size of a row (compressed),
|
96
|
+
* it should not make much difference how big this is.
|
97
|
+
*/
|
98
|
+
|
99
|
+
#ifndef PNG_ZBUF_SIZE
|
100
|
+
# define PNG_ZBUF_SIZE 8192
|
101
|
+
#endif
|
102
|
+
|
103
|
+
/* Enable if you want a write-only libpng */
|
104
|
+
|
105
|
+
#ifndef PNG_NO_READ_SUPPORTED
|
106
|
+
# define PNG_READ_SUPPORTED
|
107
|
+
#endif
|
108
|
+
|
109
|
+
/* Enable if you want a read-only libpng */
|
110
|
+
|
111
|
+
#ifndef PNG_NO_WRITE_SUPPORTED
|
112
|
+
# define PNG_WRITE_SUPPORTED
|
113
|
+
#endif
|
114
|
+
|
115
|
+
/* Enabled by default in 1.2.0. You can disable this if you don't need to
|
116
|
+
support PNGs that are embedded in MNG datastreams */
|
117
|
+
#if !defined(PNG_1_0_X) && !defined(PNG_NO_MNG_FEATURES)
|
118
|
+
# ifndef PNG_MNG_FEATURES_SUPPORTED
|
119
|
+
# define PNG_MNG_FEATURES_SUPPORTED
|
120
|
+
# endif
|
121
|
+
#endif
|
122
|
+
|
123
|
+
#ifndef PNG_NO_FLOATING_POINT_SUPPORTED
|
124
|
+
# ifndef PNG_FLOATING_POINT_SUPPORTED
|
125
|
+
# define PNG_FLOATING_POINT_SUPPORTED
|
126
|
+
# endif
|
127
|
+
#endif
|
128
|
+
|
129
|
+
/* If you are running on a machine where you cannot allocate more
|
130
|
+
* than 64K of memory at once, uncomment this. While libpng will not
|
131
|
+
* normally need that much memory in a chunk (unless you load up a very
|
132
|
+
* large file), zlib needs to know how big of a chunk it can use, and
|
133
|
+
* libpng thus makes sure to check any memory allocation to verify it
|
134
|
+
* will fit into memory.
|
135
|
+
#define PNG_MAX_MALLOC_64K
|
136
|
+
*/
|
137
|
+
#if defined(MAXSEG_64K) && !defined(PNG_MAX_MALLOC_64K)
|
138
|
+
# define PNG_MAX_MALLOC_64K
|
139
|
+
#endif
|
140
|
+
|
141
|
+
/* Special munging to support doing things the 'cygwin' way:
|
142
|
+
* 'Normal' png-on-win32 defines/defaults:
|
143
|
+
* PNG_BUILD_DLL -- building dll
|
144
|
+
* PNG_USE_DLL -- building an application, linking to dll
|
145
|
+
* (no define) -- building static library, or building an
|
146
|
+
* application and linking to the static lib
|
147
|
+
* 'Cygwin' defines/defaults:
|
148
|
+
* PNG_BUILD_DLL -- (ignored) building the dll
|
149
|
+
* (no define) -- (ignored) building an application, linking to the dll
|
150
|
+
* PNG_STATIC -- (ignored) building the static lib, or building an
|
151
|
+
* application that links to the static lib.
|
152
|
+
* ALL_STATIC -- (ignored) building various static libs, or building an
|
153
|
+
* application that links to the static libs.
|
154
|
+
* Thus,
|
155
|
+
* a cygwin user should define either PNG_BUILD_DLL or PNG_STATIC, and
|
156
|
+
* this bit of #ifdefs will define the 'correct' config variables based on
|
157
|
+
* that. If a cygwin user *wants* to define 'PNG_USE_DLL' that's okay, but
|
158
|
+
* unnecessary.
|
159
|
+
*
|
160
|
+
* Also, the precedence order is:
|
161
|
+
* ALL_STATIC (since we can't #undef something outside our namespace)
|
162
|
+
* PNG_BUILD_DLL
|
163
|
+
* PNG_STATIC
|
164
|
+
* (nothing) == PNG_USE_DLL
|
165
|
+
*
|
166
|
+
* CYGWIN (2002-01-20): The preceding is now obsolete. With the advent
|
167
|
+
* of auto-import in binutils, we no longer need to worry about
|
168
|
+
* __declspec(dllexport) / __declspec(dllimport) and friends. Therefore,
|
169
|
+
* we don't need to worry about PNG_STATIC or ALL_STATIC when it comes
|
170
|
+
* to __declspec() stuff. However, we DO need to worry about
|
171
|
+
* PNG_BUILD_DLL and PNG_STATIC because those change some defaults
|
172
|
+
* such as CONSOLE_IO and whether GLOBAL_ARRAYS are allowed.
|
173
|
+
*/
|
174
|
+
#if defined(__CYGWIN__)
|
175
|
+
# if defined(ALL_STATIC)
|
176
|
+
# if defined(PNG_BUILD_DLL)
|
177
|
+
# undef PNG_BUILD_DLL
|
178
|
+
# endif
|
179
|
+
# if defined(PNG_USE_DLL)
|
180
|
+
# undef PNG_USE_DLL
|
181
|
+
# endif
|
182
|
+
# if defined(PNG_DLL)
|
183
|
+
# undef PNG_DLL
|
184
|
+
# endif
|
185
|
+
# if !defined(PNG_STATIC)
|
186
|
+
# define PNG_STATIC
|
187
|
+
# endif
|
188
|
+
# else
|
189
|
+
# if defined (PNG_BUILD_DLL)
|
190
|
+
# if defined(PNG_STATIC)
|
191
|
+
# undef PNG_STATIC
|
192
|
+
# endif
|
193
|
+
# if defined(PNG_USE_DLL)
|
194
|
+
# undef PNG_USE_DLL
|
195
|
+
# endif
|
196
|
+
# if !defined(PNG_DLL)
|
197
|
+
# define PNG_DLL
|
198
|
+
# endif
|
199
|
+
# else
|
200
|
+
# if defined(PNG_STATIC)
|
201
|
+
# if defined(PNG_USE_DLL)
|
202
|
+
# undef PNG_USE_DLL
|
203
|
+
# endif
|
204
|
+
# if defined(PNG_DLL)
|
205
|
+
# undef PNG_DLL
|
206
|
+
# endif
|
207
|
+
# else
|
208
|
+
# if !defined(PNG_USE_DLL)
|
209
|
+
# define PNG_USE_DLL
|
210
|
+
# endif
|
211
|
+
# if !defined(PNG_DLL)
|
212
|
+
# define PNG_DLL
|
213
|
+
# endif
|
214
|
+
# endif
|
215
|
+
# endif
|
216
|
+
# endif
|
217
|
+
#endif
|
218
|
+
|
219
|
+
/* This protects us against compilers that run on a windowing system
|
220
|
+
* and thus don't have or would rather us not use the stdio types:
|
221
|
+
* stdin, stdout, and stderr. The only one currently used is stderr
|
222
|
+
* in png_error() and png_warning(). #defining PNG_NO_CONSOLE_IO will
|
223
|
+
* prevent these from being compiled and used. #defining PNG_NO_STDIO
|
224
|
+
* will also prevent these, plus will prevent the entire set of stdio
|
225
|
+
* macros and functions (FILE *, printf, etc.) from being compiled and used,
|
226
|
+
* unless (PNG_DEBUG > 0) has been #defined.
|
227
|
+
*
|
228
|
+
* #define PNG_NO_CONSOLE_IO
|
229
|
+
* #define PNG_NO_STDIO
|
230
|
+
*/
|
231
|
+
|
232
|
+
#if defined(_WIN32_WCE)
|
233
|
+
# include <windows.h>
|
234
|
+
/* Console I/O functions are not supported on WindowsCE */
|
235
|
+
# define PNG_NO_CONSOLE_IO
|
236
|
+
# ifdef PNG_DEBUG
|
237
|
+
# undef PNG_DEBUG
|
238
|
+
# endif
|
239
|
+
#endif
|
240
|
+
|
241
|
+
#ifdef PNG_BUILD_DLL
|
242
|
+
# ifndef PNG_CONSOLE_IO_SUPPORTED
|
243
|
+
# ifndef PNG_NO_CONSOLE_IO
|
244
|
+
# define PNG_NO_CONSOLE_IO
|
245
|
+
# endif
|
246
|
+
# endif
|
247
|
+
#endif
|
248
|
+
|
249
|
+
# ifdef PNG_NO_STDIO
|
250
|
+
# ifndef PNG_NO_CONSOLE_IO
|
251
|
+
# define PNG_NO_CONSOLE_IO
|
252
|
+
# endif
|
253
|
+
# ifdef PNG_DEBUG
|
254
|
+
# if (PNG_DEBUG > 0)
|
255
|
+
# include <stdio.h>
|
256
|
+
# endif
|
257
|
+
# endif
|
258
|
+
# else
|
259
|
+
# if !defined(_WIN32_WCE)
|
260
|
+
/* "stdio.h" functions are not supported on WindowsCE */
|
261
|
+
# include <stdio.h>
|
262
|
+
# endif
|
263
|
+
# endif
|
264
|
+
|
265
|
+
/* This macro protects us against machines that don't have function
|
266
|
+
* prototypes (ie K&R style headers). If your compiler does not handle
|
267
|
+
* function prototypes, define this macro and use the included ansi2knr.
|
268
|
+
* I've always been able to use _NO_PROTO as the indicator, but you may
|
269
|
+
* need to drag the empty declaration out in front of here, or change the
|
270
|
+
* ifdef to suit your own needs.
|
271
|
+
*/
|
272
|
+
#ifndef PNGARG
|
273
|
+
|
274
|
+
#ifdef OF /* zlib prototype munger */
|
275
|
+
# define PNGARG(arglist) OF(arglist)
|
276
|
+
#else
|
277
|
+
|
278
|
+
#ifdef _NO_PROTO
|
279
|
+
# define PNGARG(arglist) ()
|
280
|
+
# ifndef PNG_TYPECAST_NULL
|
281
|
+
# define PNG_TYPECAST_NULL
|
282
|
+
# endif
|
283
|
+
#else
|
284
|
+
# define PNGARG(arglist) arglist
|
285
|
+
#endif /* _NO_PROTO */
|
286
|
+
|
287
|
+
|
288
|
+
#endif /* OF */
|
289
|
+
|
290
|
+
#endif /* PNGARG */
|
291
|
+
|
292
|
+
/* Try to determine if we are compiling on a Mac. Note that testing for
|
293
|
+
* just __MWERKS__ is not good enough, because the Codewarrior is now used
|
294
|
+
* on non-Mac platforms.
|
295
|
+
*/
|
296
|
+
#ifndef MACOS
|
297
|
+
# if (defined(__MWERKS__) && defined(macintosh)) || defined(applec) || \
|
298
|
+
defined(THINK_C) || defined(__SC__) || defined(TARGET_OS_MAC)
|
299
|
+
# define MACOS
|
300
|
+
# endif
|
301
|
+
#endif
|
302
|
+
|
303
|
+
/* enough people need this for various reasons to include it here */
|
304
|
+
#if !defined(MACOS) && !defined(RISCOS) && !defined(_WIN32_WCE)
|
305
|
+
# include <sys/types.h>
|
306
|
+
#endif
|
307
|
+
|
308
|
+
#if !defined(PNG_SETJMP_NOT_SUPPORTED) && !defined(PNG_NO_SETJMP_SUPPORTED)
|
309
|
+
# define PNG_SETJMP_SUPPORTED
|
310
|
+
#endif
|
311
|
+
|
312
|
+
#ifdef PNG_SETJMP_SUPPORTED
|
313
|
+
/* This is an attempt to force a single setjmp behaviour on Linux. If
|
314
|
+
* the X config stuff didn't define _BSD_SOURCE we wouldn't need this.
|
315
|
+
*/
|
316
|
+
|
317
|
+
# ifdef __linux__
|
318
|
+
# ifdef _BSD_SOURCE
|
319
|
+
# define PNG_SAVE_BSD_SOURCE
|
320
|
+
# undef _BSD_SOURCE
|
321
|
+
# endif
|
322
|
+
# ifdef _SETJMP_H
|
323
|
+
/* If you encounter a compiler error here, see the explanation
|
324
|
+
* near the end of INSTALL.
|
325
|
+
*/
|
326
|
+
__pngconf.h__ already includes setjmp.h;
|
327
|
+
__dont__ include it again.;
|
328
|
+
# endif
|
329
|
+
# endif /* __linux__ */
|
330
|
+
|
331
|
+
/* include setjmp.h for error handling */
|
332
|
+
# include <setjmp.h>
|
333
|
+
|
334
|
+
# ifdef __linux__
|
335
|
+
# ifdef PNG_SAVE_BSD_SOURCE
|
336
|
+
# ifndef _BSD_SOURCE
|
337
|
+
# define _BSD_SOURCE
|
338
|
+
# endif
|
339
|
+
# undef PNG_SAVE_BSD_SOURCE
|
340
|
+
# endif
|
341
|
+
# endif /* __linux__ */
|
342
|
+
#endif /* PNG_SETJMP_SUPPORTED */
|
343
|
+
|
344
|
+
#ifdef BSD
|
345
|
+
# include <strings.h>
|
346
|
+
#else
|
347
|
+
# include <string.h>
|
348
|
+
#endif
|
349
|
+
|
350
|
+
/* Other defines for things like memory and the like can go here. */
|
351
|
+
#ifdef PNG_INTERNAL
|
352
|
+
|
353
|
+
#include <stdlib.h>
|
354
|
+
|
355
|
+
/* The functions exported by PNG_EXTERN are PNG_INTERNAL functions, which
|
356
|
+
* aren't usually used outside the library (as far as I know), so it is
|
357
|
+
* debatable if they should be exported at all. In the future, when it is
|
358
|
+
* possible to have run-time registry of chunk-handling functions, some of
|
359
|
+
* these will be made available again.
|
360
|
+
#define PNG_EXTERN extern
|
361
|
+
*/
|
362
|
+
#define PNG_EXTERN
|
363
|
+
|
364
|
+
/* Other defines specific to compilers can go here. Try to keep
|
365
|
+
* them inside an appropriate ifdef/endif pair for portability.
|
366
|
+
*/
|
367
|
+
|
368
|
+
#if defined(PNG_FLOATING_POINT_SUPPORTED)
|
369
|
+
# if defined(MACOS)
|
370
|
+
/* We need to check that <math.h> hasn't already been included earlier
|
371
|
+
* as it seems it doesn't agree with <fp.h>, yet we should really use
|
372
|
+
* <fp.h> if possible.
|
373
|
+
*/
|
374
|
+
# if !defined(__MATH_H__) && !defined(__MATH_H) && !defined(__cmath__)
|
375
|
+
# include <fp.h>
|
376
|
+
# endif
|
377
|
+
# else
|
378
|
+
# include <math.h>
|
379
|
+
# endif
|
380
|
+
# if defined(_AMIGA) && defined(__SASC) && defined(_M68881)
|
381
|
+
/* Amiga SAS/C: We must include builtin FPU functions when compiling using
|
382
|
+
* MATH=68881
|
383
|
+
*/
|
384
|
+
# include <m68881.h>
|
385
|
+
# endif
|
386
|
+
#endif
|
387
|
+
|
388
|
+
/* Codewarrior on NT has linking problems without this. */
|
389
|
+
#if (defined(__MWERKS__) && defined(WIN32)) || defined(__STDC__)
|
390
|
+
# define PNG_ALWAYS_EXTERN
|
391
|
+
#endif
|
392
|
+
|
393
|
+
/* This provides the non-ANSI (far) memory allocation routines. */
|
394
|
+
#if defined(__TURBOC__) && defined(__MSDOS__)
|
395
|
+
# include <mem.h>
|
396
|
+
# include <alloc.h>
|
397
|
+
#endif
|
398
|
+
|
399
|
+
/* I have no idea why is this necessary... */
|
400
|
+
#if defined(_MSC_VER) && (defined(WIN32) || defined(_Windows) || \
|
401
|
+
defined(_WINDOWS) || defined(_WIN32) || defined(__WIN32__))
|
402
|
+
# include <malloc.h>
|
403
|
+
#endif
|
404
|
+
|
405
|
+
/* This controls how fine the dithering gets. As this allocates
|
406
|
+
* a largish chunk of memory (32K), those who are not as concerned
|
407
|
+
* with dithering quality can decrease some or all of these.
|
408
|
+
*/
|
409
|
+
#ifndef PNG_DITHER_RED_BITS
|
410
|
+
# define PNG_DITHER_RED_BITS 5
|
411
|
+
#endif
|
412
|
+
#ifndef PNG_DITHER_GREEN_BITS
|
413
|
+
# define PNG_DITHER_GREEN_BITS 5
|
414
|
+
#endif
|
415
|
+
#ifndef PNG_DITHER_BLUE_BITS
|
416
|
+
# define PNG_DITHER_BLUE_BITS 5
|
417
|
+
#endif
|
418
|
+
|
419
|
+
/* This controls how fine the gamma correction becomes when you
|
420
|
+
* are only interested in 8 bits anyway. Increasing this value
|
421
|
+
* results in more memory being used, and more pow() functions
|
422
|
+
* being called to fill in the gamma tables. Don't set this value
|
423
|
+
* less then 8, and even that may not work (I haven't tested it).
|
424
|
+
*/
|
425
|
+
|
426
|
+
#ifndef PNG_MAX_GAMMA_8
|
427
|
+
# define PNG_MAX_GAMMA_8 11
|
428
|
+
#endif
|
429
|
+
|
430
|
+
/* This controls how much a difference in gamma we can tolerate before
|
431
|
+
* we actually start doing gamma conversion.
|
432
|
+
*/
|
433
|
+
#ifndef PNG_GAMMA_THRESHOLD
|
434
|
+
# define PNG_GAMMA_THRESHOLD 0.05
|
435
|
+
#endif
|
436
|
+
|
437
|
+
#endif /* PNG_INTERNAL */
|
438
|
+
|
439
|
+
/* The following uses const char * instead of char * for error
|
440
|
+
* and warning message functions, so some compilers won't complain.
|
441
|
+
* If you do not want to use const, define PNG_NO_CONST here.
|
442
|
+
*/
|
443
|
+
|
444
|
+
#ifndef PNG_NO_CONST
|
445
|
+
# define PNG_CONST const
|
446
|
+
#else
|
447
|
+
# define PNG_CONST
|
448
|
+
#endif
|
449
|
+
|
450
|
+
/* The following defines give you the ability to remove code from the
|
451
|
+
* library that you will not be using. I wish I could figure out how to
|
452
|
+
* automate this, but I can't do that without making it seriously hard
|
453
|
+
* on the users. So if you are not using an ability, change the #define
|
454
|
+
* to and #undef, and that part of the library will not be compiled. If
|
455
|
+
* your linker can't find a function, you may want to make sure the
|
456
|
+
* ability is defined here. Some of these depend upon some others being
|
457
|
+
* defined. I haven't figured out all the interactions here, so you may
|
458
|
+
* have to experiment awhile to get everything to compile. If you are
|
459
|
+
* creating or using a shared library, you probably shouldn't touch this,
|
460
|
+
* as it will affect the size of the structures, and this will cause bad
|
461
|
+
* things to happen if the library and/or application ever change.
|
462
|
+
*/
|
463
|
+
|
464
|
+
/* Any features you will not be using can be undef'ed here */
|
465
|
+
|
466
|
+
/* GR-P, 0.96a: Set "*TRANSFORMS_SUPPORTED as default but allow user
|
467
|
+
* to turn it off with "*TRANSFORMS_NOT_SUPPORTED" or *PNG_NO_*_TRANSFORMS
|
468
|
+
* on the compile line, then pick and choose which ones to define without
|
469
|
+
* having to edit this file. It is safe to use the *TRANSFORMS_NOT_SUPPORTED
|
470
|
+
* if you only want to have a png-compliant reader/writer but don't need
|
471
|
+
* any of the extra transformations. This saves about 80 kbytes in a
|
472
|
+
* typical installation of the library. (PNG_NO_* form added in version
|
473
|
+
* 1.0.1c, for consistency)
|
474
|
+
*/
|
475
|
+
|
476
|
+
/* The size of the png_text structure changed in libpng-1.0.6 when
|
477
|
+
* iTXt support was added. iTXt support was turned off by default through
|
478
|
+
* libpng-1.2.x, to support old apps that malloc the png_text structure
|
479
|
+
* instead of calling png_set_text() and letting libpng malloc it. It
|
480
|
+
* was turned on by default in libpng-1.3.0.
|
481
|
+
*/
|
482
|
+
|
483
|
+
#if defined(PNG_1_0_X) || defined (PNG_1_2_X)
|
484
|
+
# ifndef PNG_NO_iTXt_SUPPORTED
|
485
|
+
# define PNG_NO_iTXt_SUPPORTED
|
486
|
+
# endif
|
487
|
+
# ifndef PNG_NO_READ_iTXt
|
488
|
+
# define PNG_NO_READ_iTXt
|
489
|
+
# endif
|
490
|
+
# ifndef PNG_NO_WRITE_iTXt
|
491
|
+
# define PNG_NO_WRITE_iTXt
|
492
|
+
# endif
|
493
|
+
#endif
|
494
|
+
|
495
|
+
#if !defined(PNG_NO_iTXt_SUPPORTED)
|
496
|
+
# if !defined(PNG_READ_iTXt_SUPPORTED) && !defined(PNG_NO_READ_iTXt)
|
497
|
+
# define PNG_READ_iTXt
|
498
|
+
# endif
|
499
|
+
# if !defined(PNG_WRITE_iTXt_SUPPORTED) && !defined(PNG_NO_WRITE_iTXt)
|
500
|
+
# define PNG_WRITE_iTXt
|
501
|
+
# endif
|
502
|
+
#endif
|
503
|
+
|
504
|
+
/* The following support, added after version 1.0.0, can be turned off here en
|
505
|
+
* masse by defining PNG_LEGACY_SUPPORTED in case you need binary compatibility
|
506
|
+
* with old applications that require the length of png_struct and png_info
|
507
|
+
* to remain unchanged.
|
508
|
+
*/
|
509
|
+
|
510
|
+
#ifdef PNG_LEGACY_SUPPORTED
|
511
|
+
# define PNG_NO_FREE_ME
|
512
|
+
# define PNG_NO_READ_UNKNOWN_CHUNKS
|
513
|
+
# define PNG_NO_WRITE_UNKNOWN_CHUNKS
|
514
|
+
# define PNG_NO_READ_USER_CHUNKS
|
515
|
+
# define PNG_NO_READ_iCCP
|
516
|
+
# define PNG_NO_WRITE_iCCP
|
517
|
+
# define PNG_NO_READ_iTXt
|
518
|
+
# define PNG_NO_WRITE_iTXt
|
519
|
+
# define PNG_NO_READ_sCAL
|
520
|
+
# define PNG_NO_WRITE_sCAL
|
521
|
+
# define PNG_NO_READ_sPLT
|
522
|
+
# define PNG_NO_WRITE_sPLT
|
523
|
+
# define PNG_NO_INFO_IMAGE
|
524
|
+
# define PNG_NO_READ_RGB_TO_GRAY
|
525
|
+
# define PNG_NO_READ_USER_TRANSFORM
|
526
|
+
# define PNG_NO_WRITE_USER_TRANSFORM
|
527
|
+
# define PNG_NO_USER_MEM
|
528
|
+
# define PNG_NO_READ_EMPTY_PLTE
|
529
|
+
# define PNG_NO_MNG_FEATURES
|
530
|
+
# define PNG_NO_FIXED_POINT_SUPPORTED
|
531
|
+
#endif
|
532
|
+
|
533
|
+
/* Ignore attempt to turn off both floating and fixed point support */
|
534
|
+
#if !defined(PNG_FLOATING_POINT_SUPPORTED) || \
|
535
|
+
!defined(PNG_NO_FIXED_POINT_SUPPORTED)
|
536
|
+
# define PNG_FIXED_POINT_SUPPORTED
|
537
|
+
#endif
|
538
|
+
|
539
|
+
#ifndef PNG_NO_FREE_ME
|
540
|
+
# define PNG_FREE_ME_SUPPORTED
|
541
|
+
#endif
|
542
|
+
|
543
|
+
#if defined(PNG_READ_SUPPORTED)
|
544
|
+
|
545
|
+
#if !defined(PNG_READ_TRANSFORMS_NOT_SUPPORTED) && \
|
546
|
+
!defined(PNG_NO_READ_TRANSFORMS)
|
547
|
+
# define PNG_READ_TRANSFORMS_SUPPORTED
|
548
|
+
#endif
|
549
|
+
|
550
|
+
#ifdef PNG_READ_TRANSFORMS_SUPPORTED
|
551
|
+
# ifndef PNG_NO_READ_EXPAND
|
552
|
+
# define PNG_READ_EXPAND_SUPPORTED
|
553
|
+
# endif
|
554
|
+
# ifndef PNG_NO_READ_SHIFT
|
555
|
+
# define PNG_READ_SHIFT_SUPPORTED
|
556
|
+
# endif
|
557
|
+
# ifndef PNG_NO_READ_PACK
|
558
|
+
# define PNG_READ_PACK_SUPPORTED
|
559
|
+
# endif
|
560
|
+
# ifndef PNG_NO_READ_BGR
|
561
|
+
# define PNG_READ_BGR_SUPPORTED
|
562
|
+
# endif
|
563
|
+
# ifndef PNG_NO_READ_SWAP
|
564
|
+
# define PNG_READ_SWAP_SUPPORTED
|
565
|
+
# endif
|
566
|
+
# ifndef PNG_NO_READ_PACKSWAP
|
567
|
+
# define PNG_READ_PACKSWAP_SUPPORTED
|
568
|
+
# endif
|
569
|
+
# ifndef PNG_NO_READ_INVERT
|
570
|
+
# define PNG_READ_INVERT_SUPPORTED
|
571
|
+
# endif
|
572
|
+
# ifndef PNG_NO_READ_DITHER
|
573
|
+
# define PNG_READ_DITHER_SUPPORTED
|
574
|
+
# endif
|
575
|
+
# ifndef PNG_NO_READ_BACKGROUND
|
576
|
+
# define PNG_READ_BACKGROUND_SUPPORTED
|
577
|
+
# endif
|
578
|
+
# ifndef PNG_NO_READ_16_TO_8
|
579
|
+
# define PNG_READ_16_TO_8_SUPPORTED
|
580
|
+
# endif
|
581
|
+
# ifndef PNG_NO_READ_FILLER
|
582
|
+
# define PNG_READ_FILLER_SUPPORTED
|
583
|
+
# endif
|
584
|
+
# ifndef PNG_NO_READ_GAMMA
|
585
|
+
# define PNG_READ_GAMMA_SUPPORTED
|
586
|
+
# endif
|
587
|
+
# ifndef PNG_NO_READ_GRAY_TO_RGB
|
588
|
+
# define PNG_READ_GRAY_TO_RGB_SUPPORTED
|
589
|
+
# endif
|
590
|
+
# ifndef PNG_NO_READ_SWAP_ALPHA
|
591
|
+
# define PNG_READ_SWAP_ALPHA_SUPPORTED
|
592
|
+
# endif
|
593
|
+
# ifndef PNG_NO_READ_INVERT_ALPHA
|
594
|
+
# define PNG_READ_INVERT_ALPHA_SUPPORTED
|
595
|
+
# endif
|
596
|
+
# ifndef PNG_NO_READ_STRIP_ALPHA
|
597
|
+
# define PNG_READ_STRIP_ALPHA_SUPPORTED
|
598
|
+
# endif
|
599
|
+
# ifndef PNG_NO_READ_USER_TRANSFORM
|
600
|
+
# define PNG_READ_USER_TRANSFORM_SUPPORTED
|
601
|
+
# endif
|
602
|
+
# ifndef PNG_NO_READ_RGB_TO_GRAY
|
603
|
+
# define PNG_READ_RGB_TO_GRAY_SUPPORTED
|
604
|
+
# endif
|
605
|
+
#endif /* PNG_READ_TRANSFORMS_SUPPORTED */
|
606
|
+
|
607
|
+
#if !defined(PNG_NO_PROGRESSIVE_READ) && \
|
608
|
+
!defined(PNG_PROGRESSIVE_READ_SUPPORTED) /* if you don't do progressive */
|
609
|
+
# define PNG_PROGRESSIVE_READ_SUPPORTED /* reading. This is not talking */
|
610
|
+
#endif /* about interlacing capability! You'll */
|
611
|
+
/* still have interlacing unless you change the following line: */
|
612
|
+
|
613
|
+
#define PNG_READ_INTERLACING_SUPPORTED /* required in PNG-compliant decoders */
|
614
|
+
|
615
|
+
#ifndef PNG_NO_READ_COMPOSITE_NODIV
|
616
|
+
# ifndef PNG_NO_READ_COMPOSITED_NODIV /* libpng-1.0.x misspelling */
|
617
|
+
# define PNG_READ_COMPOSITE_NODIV_SUPPORTED /* well tested on Intel, SGI */
|
618
|
+
# endif
|
619
|
+
#endif
|
620
|
+
|
621
|
+
#if defined(PNG_1_0_X) || defined (PNG_1_2_X)
|
622
|
+
/* Deprecated, will be removed from version 2.0.0.
|
623
|
+
Use PNG_MNG_FEATURES_SUPPORTED instead. */
|
624
|
+
#ifndef PNG_NO_READ_EMPTY_PLTE
|
625
|
+
# define PNG_READ_EMPTY_PLTE_SUPPORTED
|
626
|
+
#endif
|
627
|
+
#endif
|
628
|
+
|
629
|
+
#endif /* PNG_READ_SUPPORTED */
|
630
|
+
|
631
|
+
#if defined(PNG_WRITE_SUPPORTED)
|
632
|
+
|
633
|
+
# if !defined(PNG_WRITE_TRANSFORMS_NOT_SUPPORTED) && \
|
634
|
+
!defined(PNG_NO_WRITE_TRANSFORMS)
|
635
|
+
# define PNG_WRITE_TRANSFORMS_SUPPORTED
|
636
|
+
#endif
|
637
|
+
|
638
|
+
#ifdef PNG_WRITE_TRANSFORMS_SUPPORTED
|
639
|
+
# ifndef PNG_NO_WRITE_SHIFT
|
640
|
+
# define PNG_WRITE_SHIFT_SUPPORTED
|
641
|
+
# endif
|
642
|
+
# ifndef PNG_NO_WRITE_PACK
|
643
|
+
# define PNG_WRITE_PACK_SUPPORTED
|
644
|
+
# endif
|
645
|
+
# ifndef PNG_NO_WRITE_BGR
|
646
|
+
# define PNG_WRITE_BGR_SUPPORTED
|
647
|
+
# endif
|
648
|
+
# ifndef PNG_NO_WRITE_SWAP
|
649
|
+
# define PNG_WRITE_SWAP_SUPPORTED
|
650
|
+
# endif
|
651
|
+
# ifndef PNG_NO_WRITE_PACKSWAP
|
652
|
+
# define PNG_WRITE_PACKSWAP_SUPPORTED
|
653
|
+
# endif
|
654
|
+
# ifndef PNG_NO_WRITE_INVERT
|
655
|
+
# define PNG_WRITE_INVERT_SUPPORTED
|
656
|
+
# endif
|
657
|
+
# ifndef PNG_NO_WRITE_FILLER
|
658
|
+
# define PNG_WRITE_FILLER_SUPPORTED /* same as WRITE_STRIP_ALPHA */
|
659
|
+
# endif
|
660
|
+
# ifndef PNG_NO_WRITE_SWAP_ALPHA
|
661
|
+
# define PNG_WRITE_SWAP_ALPHA_SUPPORTED
|
662
|
+
# endif
|
663
|
+
# ifndef PNG_NO_WRITE_INVERT_ALPHA
|
664
|
+
# define PNG_WRITE_INVERT_ALPHA_SUPPORTED
|
665
|
+
# endif
|
666
|
+
# ifndef PNG_NO_WRITE_USER_TRANSFORM
|
667
|
+
# define PNG_WRITE_USER_TRANSFORM_SUPPORTED
|
668
|
+
# endif
|
669
|
+
#endif /* PNG_WRITE_TRANSFORMS_SUPPORTED */
|
670
|
+
|
671
|
+
#if !defined(PNG_NO_WRITE_INTERLACING_SUPPORTED) && \
|
672
|
+
!defined(PNG_WRITE_INTERLACING_SUPPORTED)
|
673
|
+
#define PNG_WRITE_INTERLACING_SUPPORTED /* not required for PNG-compliant
|
674
|
+
encoders, but can cause trouble
|
675
|
+
if left undefined */
|
676
|
+
#endif
|
677
|
+
|
678
|
+
#if !defined(PNG_NO_WRITE_WEIGHTED_FILTER) && \
|
679
|
+
!defined(PNG_WRITE_WEIGHTED_FILTER) && \
|
680
|
+
defined(PNG_FLOATING_POINT_SUPPORTED)
|
681
|
+
# define PNG_WRITE_WEIGHTED_FILTER_SUPPORTED
|
682
|
+
#endif
|
683
|
+
|
684
|
+
#ifndef PNG_NO_WRITE_FLUSH
|
685
|
+
# define PNG_WRITE_FLUSH_SUPPORTED
|
686
|
+
#endif
|
687
|
+
|
688
|
+
#if defined(PNG_1_0_X) || defined (PNG_1_2_X)
|
689
|
+
/* Deprecated, see PNG_MNG_FEATURES_SUPPORTED, above */
|
690
|
+
#ifndef PNG_NO_WRITE_EMPTY_PLTE
|
691
|
+
# define PNG_WRITE_EMPTY_PLTE_SUPPORTED
|
692
|
+
#endif
|
693
|
+
#endif
|
694
|
+
|
695
|
+
#endif /* PNG_WRITE_SUPPORTED */
|
696
|
+
|
697
|
+
#ifndef PNG_1_0_X
|
698
|
+
# ifndef PNG_NO_ERROR_NUMBERS
|
699
|
+
# define PNG_ERROR_NUMBERS_SUPPORTED
|
700
|
+
# endif
|
701
|
+
#endif /* PNG_1_0_X */
|
702
|
+
|
703
|
+
#if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \
|
704
|
+
defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
|
705
|
+
# ifndef PNG_NO_USER_TRANSFORM_PTR
|
706
|
+
# define PNG_USER_TRANSFORM_PTR_SUPPORTED
|
707
|
+
# endif
|
708
|
+
#endif
|
709
|
+
|
710
|
+
#ifndef PNG_NO_STDIO
|
711
|
+
# define PNG_TIME_RFC1123_SUPPORTED
|
712
|
+
#endif
|
713
|
+
|
714
|
+
/* This adds extra functions in pngget.c for accessing data from the
|
715
|
+
* info pointer (added in version 0.99)
|
716
|
+
* png_get_image_width()
|
717
|
+
* png_get_image_height()
|
718
|
+
* png_get_bit_depth()
|
719
|
+
* png_get_color_type()
|
720
|
+
* png_get_compression_type()
|
721
|
+
* png_get_filter_type()
|
722
|
+
* png_get_interlace_type()
|
723
|
+
* png_get_pixel_aspect_ratio()
|
724
|
+
* png_get_pixels_per_meter()
|
725
|
+
* png_get_x_offset_pixels()
|
726
|
+
* png_get_y_offset_pixels()
|
727
|
+
* png_get_x_offset_microns()
|
728
|
+
* png_get_y_offset_microns()
|
729
|
+
*/
|
730
|
+
#if !defined(PNG_NO_EASY_ACCESS) && !defined(PNG_EASY_ACCESS_SUPPORTED)
|
731
|
+
# define PNG_EASY_ACCESS_SUPPORTED
|
732
|
+
#endif
|
733
|
+
|
734
|
+
/* PNG_ASSEMBLER_CODE was enabled by default in version 1.2.0
|
735
|
+
* and removed from version 1.2.20. The following will be removed
|
736
|
+
* from libpng-1.4.0
|
737
|
+
*/
|
738
|
+
|
739
|
+
#if defined(PNG_READ_SUPPORTED) && !defined(PNG_NO_OPTIMIZED_CODE)
|
740
|
+
# ifndef PNG_OPTIMIZED_CODE_SUPPORTED
|
741
|
+
# define PNG_OPTIMIZED_CODE_SUPPORTED
|
742
|
+
# endif
|
743
|
+
#endif
|
744
|
+
|
745
|
+
#if defined(PNG_READ_SUPPORTED) && !defined(PNG_NO_ASSEMBLER_CODE)
|
746
|
+
# ifndef PNG_ASSEMBLER_CODE_SUPPORTED
|
747
|
+
# define PNG_ASSEMBLER_CODE_SUPPORTED
|
748
|
+
# endif
|
749
|
+
|
750
|
+
# if defined(__GNUC__) && defined(__x86_64__) && (__GNUC__ < 4)
|
751
|
+
/* work around 64-bit gcc compiler bugs in gcc-3.x */
|
752
|
+
# if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE)
|
753
|
+
# define PNG_NO_MMX_CODE
|
754
|
+
# endif
|
755
|
+
# endif
|
756
|
+
|
757
|
+
# if defined(__APPLE__)
|
758
|
+
# if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE)
|
759
|
+
# define PNG_NO_MMX_CODE
|
760
|
+
# endif
|
761
|
+
# endif
|
762
|
+
|
763
|
+
# if (defined(__MWERKS__) && ((__MWERKS__ < 0x0900) || macintosh))
|
764
|
+
# if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE)
|
765
|
+
# define PNG_NO_MMX_CODE
|
766
|
+
# endif
|
767
|
+
# endif
|
768
|
+
|
769
|
+
# if !defined(PNG_MMX_CODE_SUPPORTED) && !defined(PNG_NO_MMX_CODE)
|
770
|
+
# define PNG_MMX_CODE_SUPPORTED
|
771
|
+
# endif
|
772
|
+
|
773
|
+
#endif
|
774
|
+
/* end of obsolete code to be removed from libpng-1.4.0 */
|
775
|
+
|
776
|
+
#if !defined(PNG_1_0_X)
|
777
|
+
#if !defined(PNG_NO_USER_MEM) && !defined(PNG_USER_MEM_SUPPORTED)
|
778
|
+
# define PNG_USER_MEM_SUPPORTED
|
779
|
+
#endif
|
780
|
+
#endif /* PNG_1_0_X */
|
781
|
+
|
782
|
+
/* Added at libpng-1.2.6 */
|
783
|
+
#if !defined(PNG_1_0_X)
|
784
|
+
#ifndef PNG_SET_USER_LIMITS_SUPPORTED
|
785
|
+
#if !defined(PNG_NO_SET_USER_LIMITS) && !defined(PNG_SET_USER_LIMITS_SUPPORTED)
|
786
|
+
# define PNG_SET_USER_LIMITS_SUPPORTED
|
787
|
+
#endif
|
788
|
+
#endif
|
789
|
+
#endif /* PNG_1_0_X */
|
790
|
+
|
791
|
+
/* Added at libpng-1.0.16 and 1.2.6. To accept all valid PNGS no matter
|
792
|
+
* how large, set these limits to 0x7fffffffL
|
793
|
+
*/
|
794
|
+
#ifndef PNG_USER_WIDTH_MAX
|
795
|
+
# define PNG_USER_WIDTH_MAX 1000000L
|
796
|
+
#endif
|
797
|
+
#ifndef PNG_USER_HEIGHT_MAX
|
798
|
+
# define PNG_USER_HEIGHT_MAX 1000000L
|
799
|
+
#endif
|
800
|
+
|
801
|
+
/* These are currently experimental features, define them if you want */
|
802
|
+
|
803
|
+
/* very little testing */
|
804
|
+
/*
|
805
|
+
#ifdef PNG_READ_SUPPORTED
|
806
|
+
# ifndef PNG_READ_16_TO_8_ACCURATE_SCALE_SUPPORTED
|
807
|
+
# define PNG_READ_16_TO_8_ACCURATE_SCALE_SUPPORTED
|
808
|
+
# endif
|
809
|
+
#endif
|
810
|
+
*/
|
811
|
+
|
812
|
+
/* This is only for PowerPC big-endian and 680x0 systems */
|
813
|
+
/* some testing */
|
814
|
+
/*
|
815
|
+
#ifndef PNG_READ_BIG_ENDIAN_SUPPORTED
|
816
|
+
# define PNG_READ_BIG_ENDIAN_SUPPORTED
|
817
|
+
#endif
|
818
|
+
*/
|
819
|
+
|
820
|
+
/* Buggy compilers (e.g., gcc 2.7.2.2) need this */
|
821
|
+
/*
|
822
|
+
#define PNG_NO_POINTER_INDEXING
|
823
|
+
*/
|
824
|
+
|
825
|
+
/* These functions are turned off by default, as they will be phased out. */
|
826
|
+
/*
|
827
|
+
#define PNG_USELESS_TESTS_SUPPORTED
|
828
|
+
#define PNG_CORRECT_PALETTE_SUPPORTED
|
829
|
+
*/
|
830
|
+
|
831
|
+
/* Any chunks you are not interested in, you can undef here. The
|
832
|
+
* ones that allocate memory may be expecially important (hIST,
|
833
|
+
* tEXt, zTXt, tRNS, pCAL). Others will just save time and make png_info
|
834
|
+
* a bit smaller.
|
835
|
+
*/
|
836
|
+
|
837
|
+
#if defined(PNG_READ_SUPPORTED) && \
|
838
|
+
!defined(PNG_READ_ANCILLARY_CHUNKS_NOT_SUPPORTED) && \
|
839
|
+
!defined(PNG_NO_READ_ANCILLARY_CHUNKS)
|
840
|
+
# define PNG_READ_ANCILLARY_CHUNKS_SUPPORTED
|
841
|
+
#endif
|
842
|
+
|
843
|
+
#if defined(PNG_WRITE_SUPPORTED) && \
|
844
|
+
!defined(PNG_WRITE_ANCILLARY_CHUNKS_NOT_SUPPORTED) && \
|
845
|
+
!defined(PNG_NO_WRITE_ANCILLARY_CHUNKS)
|
846
|
+
# define PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED
|
847
|
+
#endif
|
848
|
+
|
849
|
+
#ifdef PNG_READ_ANCILLARY_CHUNKS_SUPPORTED
|
850
|
+
|
851
|
+
#ifdef PNG_NO_READ_TEXT
|
852
|
+
# define PNG_NO_READ_iTXt
|
853
|
+
# define PNG_NO_READ_tEXt
|
854
|
+
# define PNG_NO_READ_zTXt
|
855
|
+
#endif
|
856
|
+
#ifndef PNG_NO_READ_bKGD
|
857
|
+
# define PNG_READ_bKGD_SUPPORTED
|
858
|
+
# define PNG_bKGD_SUPPORTED
|
859
|
+
#endif
|
860
|
+
#ifndef PNG_NO_READ_cHRM
|
861
|
+
# define PNG_READ_cHRM_SUPPORTED
|
862
|
+
# define PNG_cHRM_SUPPORTED
|
863
|
+
#endif
|
864
|
+
#ifndef PNG_NO_READ_gAMA
|
865
|
+
# define PNG_READ_gAMA_SUPPORTED
|
866
|
+
# define PNG_gAMA_SUPPORTED
|
867
|
+
#endif
|
868
|
+
#ifndef PNG_NO_READ_hIST
|
869
|
+
# define PNG_READ_hIST_SUPPORTED
|
870
|
+
# define PNG_hIST_SUPPORTED
|
871
|
+
#endif
|
872
|
+
#ifndef PNG_NO_READ_iCCP
|
873
|
+
# define PNG_READ_iCCP_SUPPORTED
|
874
|
+
# define PNG_iCCP_SUPPORTED
|
875
|
+
#endif
|
876
|
+
#ifndef PNG_NO_READ_iTXt
|
877
|
+
# ifndef PNG_READ_iTXt_SUPPORTED
|
878
|
+
# define PNG_READ_iTXt_SUPPORTED
|
879
|
+
# endif
|
880
|
+
# ifndef PNG_iTXt_SUPPORTED
|
881
|
+
# define PNG_iTXt_SUPPORTED
|
882
|
+
# endif
|
883
|
+
#endif
|
884
|
+
#ifndef PNG_NO_READ_oFFs
|
885
|
+
# define PNG_READ_oFFs_SUPPORTED
|
886
|
+
# define PNG_oFFs_SUPPORTED
|
887
|
+
#endif
|
888
|
+
#ifndef PNG_NO_READ_pCAL
|
889
|
+
# define PNG_READ_pCAL_SUPPORTED
|
890
|
+
# define PNG_pCAL_SUPPORTED
|
891
|
+
#endif
|
892
|
+
#ifndef PNG_NO_READ_sCAL
|
893
|
+
# define PNG_READ_sCAL_SUPPORTED
|
894
|
+
# define PNG_sCAL_SUPPORTED
|
895
|
+
#endif
|
896
|
+
#ifndef PNG_NO_READ_pHYs
|
897
|
+
# define PNG_READ_pHYs_SUPPORTED
|
898
|
+
# define PNG_pHYs_SUPPORTED
|
899
|
+
#endif
|
900
|
+
#ifndef PNG_NO_READ_sBIT
|
901
|
+
# define PNG_READ_sBIT_SUPPORTED
|
902
|
+
# define PNG_sBIT_SUPPORTED
|
903
|
+
#endif
|
904
|
+
#ifndef PNG_NO_READ_sPLT
|
905
|
+
# define PNG_READ_sPLT_SUPPORTED
|
906
|
+
# define PNG_sPLT_SUPPORTED
|
907
|
+
#endif
|
908
|
+
#ifndef PNG_NO_READ_sRGB
|
909
|
+
# define PNG_READ_sRGB_SUPPORTED
|
910
|
+
# define PNG_sRGB_SUPPORTED
|
911
|
+
#endif
|
912
|
+
#ifndef PNG_NO_READ_tEXt
|
913
|
+
# define PNG_READ_tEXt_SUPPORTED
|
914
|
+
# define PNG_tEXt_SUPPORTED
|
915
|
+
#endif
|
916
|
+
#ifndef PNG_NO_READ_tIME
|
917
|
+
# define PNG_READ_tIME_SUPPORTED
|
918
|
+
# define PNG_tIME_SUPPORTED
|
919
|
+
#endif
|
920
|
+
#ifndef PNG_NO_READ_tRNS
|
921
|
+
# define PNG_READ_tRNS_SUPPORTED
|
922
|
+
# define PNG_tRNS_SUPPORTED
|
923
|
+
#endif
|
924
|
+
#ifndef PNG_NO_READ_zTXt
|
925
|
+
# define PNG_READ_zTXt_SUPPORTED
|
926
|
+
# define PNG_zTXt_SUPPORTED
|
927
|
+
#endif
|
928
|
+
#ifndef PNG_NO_READ_UNKNOWN_CHUNKS
|
929
|
+
# define PNG_READ_UNKNOWN_CHUNKS_SUPPORTED
|
930
|
+
# ifndef PNG_UNKNOWN_CHUNKS_SUPPORTED
|
931
|
+
# define PNG_UNKNOWN_CHUNKS_SUPPORTED
|
932
|
+
# endif
|
933
|
+
# ifndef PNG_NO_HANDLE_AS_UNKNOWN
|
934
|
+
# define PNG_HANDLE_AS_UNKNOWN_SUPPORTED
|
935
|
+
# endif
|
936
|
+
#endif
|
937
|
+
#if !defined(PNG_NO_READ_USER_CHUNKS) && \
|
938
|
+
defined(PNG_READ_UNKNOWN_CHUNKS_SUPPORTED)
|
939
|
+
# define PNG_READ_USER_CHUNKS_SUPPORTED
|
940
|
+
# define PNG_USER_CHUNKS_SUPPORTED
|
941
|
+
# ifdef PNG_NO_READ_UNKNOWN_CHUNKS
|
942
|
+
# undef PNG_NO_READ_UNKNOWN_CHUNKS
|
943
|
+
# endif
|
944
|
+
# ifdef PNG_NO_HANDLE_AS_UNKNOWN
|
945
|
+
# undef PNG_NO_HANDLE_AS_UNKNOWN
|
946
|
+
# endif
|
947
|
+
#endif
|
948
|
+
#ifndef PNG_NO_READ_OPT_PLTE
|
949
|
+
# define PNG_READ_OPT_PLTE_SUPPORTED /* only affects support of the */
|
950
|
+
#endif /* optional PLTE chunk in RGB and RGBA images */
|
951
|
+
#if defined(PNG_READ_iTXt_SUPPORTED) || defined(PNG_READ_tEXt_SUPPORTED) || \
|
952
|
+
defined(PNG_READ_zTXt_SUPPORTED)
|
953
|
+
# define PNG_READ_TEXT_SUPPORTED
|
954
|
+
# define PNG_TEXT_SUPPORTED
|
955
|
+
#endif
|
956
|
+
|
957
|
+
#endif /* PNG_READ_ANCILLARY_CHUNKS_SUPPORTED */
|
958
|
+
|
959
|
+
#ifdef PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED
|
960
|
+
|
961
|
+
#ifdef PNG_NO_WRITE_TEXT
|
962
|
+
# define PNG_NO_WRITE_iTXt
|
963
|
+
# define PNG_NO_WRITE_tEXt
|
964
|
+
# define PNG_NO_WRITE_zTXt
|
965
|
+
#endif
|
966
|
+
#ifndef PNG_NO_WRITE_bKGD
|
967
|
+
# define PNG_WRITE_bKGD_SUPPORTED
|
968
|
+
# ifndef PNG_bKGD_SUPPORTED
|
969
|
+
# define PNG_bKGD_SUPPORTED
|
970
|
+
# endif
|
971
|
+
#endif
|
972
|
+
#ifndef PNG_NO_WRITE_cHRM
|
973
|
+
# define PNG_WRITE_cHRM_SUPPORTED
|
974
|
+
# ifndef PNG_cHRM_SUPPORTED
|
975
|
+
# define PNG_cHRM_SUPPORTED
|
976
|
+
# endif
|
977
|
+
#endif
|
978
|
+
#ifndef PNG_NO_WRITE_gAMA
|
979
|
+
# define PNG_WRITE_gAMA_SUPPORTED
|
980
|
+
# ifndef PNG_gAMA_SUPPORTED
|
981
|
+
# define PNG_gAMA_SUPPORTED
|
982
|
+
# endif
|
983
|
+
#endif
|
984
|
+
#ifndef PNG_NO_WRITE_hIST
|
985
|
+
# define PNG_WRITE_hIST_SUPPORTED
|
986
|
+
# ifndef PNG_hIST_SUPPORTED
|
987
|
+
# define PNG_hIST_SUPPORTED
|
988
|
+
# endif
|
989
|
+
#endif
|
990
|
+
#ifndef PNG_NO_WRITE_iCCP
|
991
|
+
# define PNG_WRITE_iCCP_SUPPORTED
|
992
|
+
# ifndef PNG_iCCP_SUPPORTED
|
993
|
+
# define PNG_iCCP_SUPPORTED
|
994
|
+
# endif
|
995
|
+
#endif
|
996
|
+
#ifndef PNG_NO_WRITE_iTXt
|
997
|
+
# ifndef PNG_WRITE_iTXt_SUPPORTED
|
998
|
+
# define PNG_WRITE_iTXt_SUPPORTED
|
999
|
+
# endif
|
1000
|
+
# ifndef PNG_iTXt_SUPPORTED
|
1001
|
+
# define PNG_iTXt_SUPPORTED
|
1002
|
+
# endif
|
1003
|
+
#endif
|
1004
|
+
#ifndef PNG_NO_WRITE_oFFs
|
1005
|
+
# define PNG_WRITE_oFFs_SUPPORTED
|
1006
|
+
# ifndef PNG_oFFs_SUPPORTED
|
1007
|
+
# define PNG_oFFs_SUPPORTED
|
1008
|
+
# endif
|
1009
|
+
#endif
|
1010
|
+
#ifndef PNG_NO_WRITE_pCAL
|
1011
|
+
# define PNG_WRITE_pCAL_SUPPORTED
|
1012
|
+
# ifndef PNG_pCAL_SUPPORTED
|
1013
|
+
# define PNG_pCAL_SUPPORTED
|
1014
|
+
# endif
|
1015
|
+
#endif
|
1016
|
+
#ifndef PNG_NO_WRITE_sCAL
|
1017
|
+
# define PNG_WRITE_sCAL_SUPPORTED
|
1018
|
+
# ifndef PNG_sCAL_SUPPORTED
|
1019
|
+
# define PNG_sCAL_SUPPORTED
|
1020
|
+
# endif
|
1021
|
+
#endif
|
1022
|
+
#ifndef PNG_NO_WRITE_pHYs
|
1023
|
+
# define PNG_WRITE_pHYs_SUPPORTED
|
1024
|
+
# ifndef PNG_pHYs_SUPPORTED
|
1025
|
+
# define PNG_pHYs_SUPPORTED
|
1026
|
+
# endif
|
1027
|
+
#endif
|
1028
|
+
#ifndef PNG_NO_WRITE_sBIT
|
1029
|
+
# define PNG_WRITE_sBIT_SUPPORTED
|
1030
|
+
# ifndef PNG_sBIT_SUPPORTED
|
1031
|
+
# define PNG_sBIT_SUPPORTED
|
1032
|
+
# endif
|
1033
|
+
#endif
|
1034
|
+
#ifndef PNG_NO_WRITE_sPLT
|
1035
|
+
# define PNG_WRITE_sPLT_SUPPORTED
|
1036
|
+
# ifndef PNG_sPLT_SUPPORTED
|
1037
|
+
# define PNG_sPLT_SUPPORTED
|
1038
|
+
# endif
|
1039
|
+
#endif
|
1040
|
+
#ifndef PNG_NO_WRITE_sRGB
|
1041
|
+
# define PNG_WRITE_sRGB_SUPPORTED
|
1042
|
+
# ifndef PNG_sRGB_SUPPORTED
|
1043
|
+
# define PNG_sRGB_SUPPORTED
|
1044
|
+
# endif
|
1045
|
+
#endif
|
1046
|
+
#ifndef PNG_NO_WRITE_tEXt
|
1047
|
+
# define PNG_WRITE_tEXt_SUPPORTED
|
1048
|
+
# ifndef PNG_tEXt_SUPPORTED
|
1049
|
+
# define PNG_tEXt_SUPPORTED
|
1050
|
+
# endif
|
1051
|
+
#endif
|
1052
|
+
#ifndef PNG_NO_WRITE_tIME
|
1053
|
+
# define PNG_WRITE_tIME_SUPPORTED
|
1054
|
+
# ifndef PNG_tIME_SUPPORTED
|
1055
|
+
# define PNG_tIME_SUPPORTED
|
1056
|
+
# endif
|
1057
|
+
#endif
|
1058
|
+
#ifndef PNG_NO_WRITE_tRNS
|
1059
|
+
# define PNG_WRITE_tRNS_SUPPORTED
|
1060
|
+
# ifndef PNG_tRNS_SUPPORTED
|
1061
|
+
# define PNG_tRNS_SUPPORTED
|
1062
|
+
# endif
|
1063
|
+
#endif
|
1064
|
+
#ifndef PNG_NO_WRITE_zTXt
|
1065
|
+
# define PNG_WRITE_zTXt_SUPPORTED
|
1066
|
+
# ifndef PNG_zTXt_SUPPORTED
|
1067
|
+
# define PNG_zTXt_SUPPORTED
|
1068
|
+
# endif
|
1069
|
+
#endif
|
1070
|
+
#ifndef PNG_NO_WRITE_UNKNOWN_CHUNKS
|
1071
|
+
# define PNG_WRITE_UNKNOWN_CHUNKS_SUPPORTED
|
1072
|
+
# ifndef PNG_UNKNOWN_CHUNKS_SUPPORTED
|
1073
|
+
# define PNG_UNKNOWN_CHUNKS_SUPPORTED
|
1074
|
+
# endif
|
1075
|
+
# ifndef PNG_NO_HANDLE_AS_UNKNOWN
|
1076
|
+
# ifndef PNG_HANDLE_AS_UNKNOWN_SUPPORTED
|
1077
|
+
# define PNG_HANDLE_AS_UNKNOWN_SUPPORTED
|
1078
|
+
# endif
|
1079
|
+
# endif
|
1080
|
+
#endif
|
1081
|
+
#if defined(PNG_WRITE_iTXt_SUPPORTED) || defined(PNG_WRITE_tEXt_SUPPORTED) || \
|
1082
|
+
defined(PNG_WRITE_zTXt_SUPPORTED)
|
1083
|
+
# define PNG_WRITE_TEXT_SUPPORTED
|
1084
|
+
# ifndef PNG_TEXT_SUPPORTED
|
1085
|
+
# define PNG_TEXT_SUPPORTED
|
1086
|
+
# endif
|
1087
|
+
#endif
|
1088
|
+
|
1089
|
+
#endif /* PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED */
|
1090
|
+
|
1091
|
+
/* Turn this off to disable png_read_png() and
|
1092
|
+
* png_write_png() and leave the row_pointers member
|
1093
|
+
* out of the info structure.
|
1094
|
+
*/
|
1095
|
+
#ifndef PNG_NO_INFO_IMAGE
|
1096
|
+
# define PNG_INFO_IMAGE_SUPPORTED
|
1097
|
+
#endif
|
1098
|
+
|
1099
|
+
/* need the time information for reading tIME chunks */
|
1100
|
+
#if defined(PNG_tIME_SUPPORTED)
|
1101
|
+
# if !defined(_WIN32_WCE)
|
1102
|
+
/* "time.h" functions are not supported on WindowsCE */
|
1103
|
+
# include <time.h>
|
1104
|
+
# endif
|
1105
|
+
#endif
|
1106
|
+
|
1107
|
+
/* Some typedefs to get us started. These should be safe on most of the
|
1108
|
+
* common platforms. The typedefs should be at least as large as the
|
1109
|
+
* numbers suggest (a png_uint_32 must be at least 32 bits long), but they
|
1110
|
+
* don't have to be exactly that size. Some compilers dislike passing
|
1111
|
+
* unsigned shorts as function parameters, so you may be better off using
|
1112
|
+
* unsigned int for png_uint_16. Likewise, for 64-bit systems, you may
|
1113
|
+
* want to have unsigned int for png_uint_32 instead of unsigned long.
|
1114
|
+
*/
|
1115
|
+
|
1116
|
+
typedef unsigned long png_uint_32;
|
1117
|
+
typedef long png_int_32;
|
1118
|
+
typedef unsigned short png_uint_16;
|
1119
|
+
typedef short png_int_16;
|
1120
|
+
typedef unsigned char png_byte;
|
1121
|
+
|
1122
|
+
/* This is usually size_t. It is typedef'ed just in case you need it to
|
1123
|
+
change (I'm not sure if you will or not, so I thought I'd be safe) */
|
1124
|
+
#ifdef PNG_SIZE_T
|
1125
|
+
typedef PNG_SIZE_T png_size_t;
|
1126
|
+
# define png_sizeof(x) png_convert_size(sizeof (x))
|
1127
|
+
#else
|
1128
|
+
typedef size_t png_size_t;
|
1129
|
+
# define png_sizeof(x) sizeof (x)
|
1130
|
+
#endif
|
1131
|
+
|
1132
|
+
/* The following is needed for medium model support. It cannot be in the
|
1133
|
+
* PNG_INTERNAL section. Needs modification for other compilers besides
|
1134
|
+
* MSC. Model independent support declares all arrays and pointers to be
|
1135
|
+
* large using the far keyword. The zlib version used must also support
|
1136
|
+
* model independent data. As of version zlib 1.0.4, the necessary changes
|
1137
|
+
* have been made in zlib. The USE_FAR_KEYWORD define triggers other
|
1138
|
+
* changes that are needed. (Tim Wegner)
|
1139
|
+
*/
|
1140
|
+
|
1141
|
+
/* Separate compiler dependencies (problem here is that zlib.h always
|
1142
|
+
defines FAR. (SJT) */
|
1143
|
+
#ifdef __BORLANDC__
|
1144
|
+
# if defined(__LARGE__) || defined(__HUGE__) || defined(__COMPACT__)
|
1145
|
+
# define LDATA 1
|
1146
|
+
# else
|
1147
|
+
# define LDATA 0
|
1148
|
+
# endif
|
1149
|
+
/* GRR: why is Cygwin in here? Cygwin is not Borland C... */
|
1150
|
+
# if !defined(__WIN32__) && !defined(__FLAT__) && !defined(__CYGWIN__)
|
1151
|
+
# define PNG_MAX_MALLOC_64K
|
1152
|
+
# if (LDATA != 1)
|
1153
|
+
# ifndef FAR
|
1154
|
+
# define FAR __far
|
1155
|
+
# endif
|
1156
|
+
# define USE_FAR_KEYWORD
|
1157
|
+
# endif /* LDATA != 1 */
|
1158
|
+
/* Possibly useful for moving data out of default segment.
|
1159
|
+
* Uncomment it if you want. Could also define FARDATA as
|
1160
|
+
* const if your compiler supports it. (SJT)
|
1161
|
+
# define FARDATA FAR
|
1162
|
+
*/
|
1163
|
+
# endif /* __WIN32__, __FLAT__, __CYGWIN__ */
|
1164
|
+
#endif /* __BORLANDC__ */
|
1165
|
+
|
1166
|
+
|
1167
|
+
/* Suggest testing for specific compiler first before testing for
|
1168
|
+
* FAR. The Watcom compiler defines both __MEDIUM__ and M_I86MM,
|
1169
|
+
* making reliance oncertain keywords suspect. (SJT)
|
1170
|
+
*/
|
1171
|
+
|
1172
|
+
/* MSC Medium model */
|
1173
|
+
#if defined(FAR)
|
1174
|
+
# if defined(M_I86MM)
|
1175
|
+
# define USE_FAR_KEYWORD
|
1176
|
+
# define FARDATA FAR
|
1177
|
+
# include <dos.h>
|
1178
|
+
# endif
|
1179
|
+
#endif
|
1180
|
+
|
1181
|
+
/* SJT: default case */
|
1182
|
+
#ifndef FAR
|
1183
|
+
# define FAR
|
1184
|
+
#endif
|
1185
|
+
|
1186
|
+
/* At this point FAR is always defined */
|
1187
|
+
#ifndef FARDATA
|
1188
|
+
# define FARDATA
|
1189
|
+
#endif
|
1190
|
+
|
1191
|
+
/* Typedef for floating-point numbers that are converted
|
1192
|
+
to fixed-point with a multiple of 100,000, e.g., int_gamma */
|
1193
|
+
typedef png_int_32 png_fixed_point;
|
1194
|
+
|
1195
|
+
/* Add typedefs for pointers */
|
1196
|
+
typedef void FAR * png_voidp;
|
1197
|
+
typedef png_byte FAR * png_bytep;
|
1198
|
+
typedef png_uint_32 FAR * png_uint_32p;
|
1199
|
+
typedef png_int_32 FAR * png_int_32p;
|
1200
|
+
typedef png_uint_16 FAR * png_uint_16p;
|
1201
|
+
typedef png_int_16 FAR * png_int_16p;
|
1202
|
+
typedef PNG_CONST char FAR * png_const_charp;
|
1203
|
+
typedef char FAR * png_charp;
|
1204
|
+
typedef png_fixed_point FAR * png_fixed_point_p;
|
1205
|
+
|
1206
|
+
#ifndef PNG_NO_STDIO
|
1207
|
+
#if defined(_WIN32_WCE)
|
1208
|
+
typedef HANDLE png_FILE_p;
|
1209
|
+
#else
|
1210
|
+
typedef FILE * png_FILE_p;
|
1211
|
+
#endif
|
1212
|
+
#endif
|
1213
|
+
|
1214
|
+
#ifdef PNG_FLOATING_POINT_SUPPORTED
|
1215
|
+
typedef double FAR * png_doublep;
|
1216
|
+
#endif
|
1217
|
+
|
1218
|
+
/* Pointers to pointers; i.e. arrays */
|
1219
|
+
typedef png_byte FAR * FAR * png_bytepp;
|
1220
|
+
typedef png_uint_32 FAR * FAR * png_uint_32pp;
|
1221
|
+
typedef png_int_32 FAR * FAR * png_int_32pp;
|
1222
|
+
typedef png_uint_16 FAR * FAR * png_uint_16pp;
|
1223
|
+
typedef png_int_16 FAR * FAR * png_int_16pp;
|
1224
|
+
typedef PNG_CONST char FAR * FAR * png_const_charpp;
|
1225
|
+
typedef char FAR * FAR * png_charpp;
|
1226
|
+
typedef png_fixed_point FAR * FAR * png_fixed_point_pp;
|
1227
|
+
#ifdef PNG_FLOATING_POINT_SUPPORTED
|
1228
|
+
typedef double FAR * FAR * png_doublepp;
|
1229
|
+
#endif
|
1230
|
+
|
1231
|
+
/* Pointers to pointers to pointers; i.e., pointer to array */
|
1232
|
+
typedef char FAR * FAR * FAR * png_charppp;
|
1233
|
+
|
1234
|
+
#if defined(PNG_1_0_X) || defined(PNG_1_2_X)
|
1235
|
+
/* SPC - Is this stuff deprecated? */
|
1236
|
+
/* It'll be removed as of libpng-1.3.0 - GR-P */
|
1237
|
+
/* libpng typedefs for types in zlib. If zlib changes
|
1238
|
+
* or another compression library is used, then change these.
|
1239
|
+
* Eliminates need to change all the source files.
|
1240
|
+
*/
|
1241
|
+
typedef charf * png_zcharp;
|
1242
|
+
typedef charf * FAR * png_zcharpp;
|
1243
|
+
typedef z_stream FAR * png_zstreamp;
|
1244
|
+
#endif /* (PNG_1_0_X) || defined(PNG_1_2_X) */
|
1245
|
+
|
1246
|
+
/*
|
1247
|
+
* Define PNG_BUILD_DLL if the module being built is a Windows
|
1248
|
+
* LIBPNG DLL.
|
1249
|
+
*
|
1250
|
+
* Define PNG_USE_DLL if you want to *link* to the Windows LIBPNG DLL.
|
1251
|
+
* It is equivalent to Microsoft predefined macro _DLL that is
|
1252
|
+
* automatically defined when you compile using the share
|
1253
|
+
* version of the CRT (C Run-Time library)
|
1254
|
+
*
|
1255
|
+
* The cygwin mods make this behavior a little different:
|
1256
|
+
* Define PNG_BUILD_DLL if you are building a dll for use with cygwin
|
1257
|
+
* Define PNG_STATIC if you are building a static library for use with cygwin,
|
1258
|
+
* -or- if you are building an application that you want to link to the
|
1259
|
+
* static library.
|
1260
|
+
* PNG_USE_DLL is defined by default (no user action needed) unless one of
|
1261
|
+
* the other flags is defined.
|
1262
|
+
*/
|
1263
|
+
|
1264
|
+
#if !defined(PNG_DLL) && (defined(PNG_BUILD_DLL) || defined(PNG_USE_DLL))
|
1265
|
+
# define PNG_DLL
|
1266
|
+
#endif
|
1267
|
+
/* If CYGWIN, then disallow GLOBAL ARRAYS unless building a static lib.
|
1268
|
+
* When building a static lib, default to no GLOBAL ARRAYS, but allow
|
1269
|
+
* command-line override
|
1270
|
+
*/
|
1271
|
+
#if defined(__CYGWIN__)
|
1272
|
+
# if !defined(PNG_STATIC)
|
1273
|
+
# if defined(PNG_USE_GLOBAL_ARRAYS)
|
1274
|
+
# undef PNG_USE_GLOBAL_ARRAYS
|
1275
|
+
# endif
|
1276
|
+
# if !defined(PNG_USE_LOCAL_ARRAYS)
|
1277
|
+
# define PNG_USE_LOCAL_ARRAYS
|
1278
|
+
# endif
|
1279
|
+
# else
|
1280
|
+
# if defined(PNG_USE_LOCAL_ARRAYS) || defined(PNG_NO_GLOBAL_ARRAYS)
|
1281
|
+
# if defined(PNG_USE_GLOBAL_ARRAYS)
|
1282
|
+
# undef PNG_USE_GLOBAL_ARRAYS
|
1283
|
+
# endif
|
1284
|
+
# endif
|
1285
|
+
# endif
|
1286
|
+
# if !defined(PNG_USE_LOCAL_ARRAYS) && !defined(PNG_USE_GLOBAL_ARRAYS)
|
1287
|
+
# define PNG_USE_LOCAL_ARRAYS
|
1288
|
+
# endif
|
1289
|
+
#endif
|
1290
|
+
|
1291
|
+
/* Do not use global arrays (helps with building DLL's)
|
1292
|
+
* They are no longer used in libpng itself, since version 1.0.5c,
|
1293
|
+
* but might be required for some pre-1.0.5c applications.
|
1294
|
+
*/
|
1295
|
+
#if !defined(PNG_USE_LOCAL_ARRAYS) && !defined(PNG_USE_GLOBAL_ARRAYS)
|
1296
|
+
# if defined(PNG_NO_GLOBAL_ARRAYS) || \
|
1297
|
+
(defined(__GNUC__) && defined(PNG_DLL)) || defined(_MSC_VER)
|
1298
|
+
# define PNG_USE_LOCAL_ARRAYS
|
1299
|
+
# else
|
1300
|
+
# define PNG_USE_GLOBAL_ARRAYS
|
1301
|
+
# endif
|
1302
|
+
#endif
|
1303
|
+
|
1304
|
+
#if defined(__CYGWIN__)
|
1305
|
+
# undef PNGAPI
|
1306
|
+
# define PNGAPI __cdecl
|
1307
|
+
# undef PNG_IMPEXP
|
1308
|
+
# define PNG_IMPEXP
|
1309
|
+
#endif
|
1310
|
+
|
1311
|
+
/* If you define PNGAPI, e.g., with compiler option "-DPNGAPI=__stdcall",
|
1312
|
+
* you may get warnings regarding the linkage of png_zalloc and png_zfree.
|
1313
|
+
* Don't ignore those warnings; you must also reset the default calling
|
1314
|
+
* convention in your compiler to match your PNGAPI, and you must build
|
1315
|
+
* zlib and your applications the same way you build libpng.
|
1316
|
+
*/
|
1317
|
+
|
1318
|
+
#if defined(__MINGW32__) && !defined(PNG_MODULEDEF)
|
1319
|
+
# ifndef PNG_NO_MODULEDEF
|
1320
|
+
# define PNG_NO_MODULEDEF
|
1321
|
+
# endif
|
1322
|
+
#endif
|
1323
|
+
|
1324
|
+
#if !defined(PNG_IMPEXP) && defined(PNG_BUILD_DLL) && !defined(PNG_NO_MODULEDEF)
|
1325
|
+
# define PNG_IMPEXP
|
1326
|
+
#endif
|
1327
|
+
|
1328
|
+
#if defined(PNG_DLL) || defined(_DLL) || defined(__DLL__ ) || \
|
1329
|
+
(( defined(_Windows) || defined(_WINDOWS) || \
|
1330
|
+
defined(WIN32) || defined(_WIN32) || defined(__WIN32__) ))
|
1331
|
+
|
1332
|
+
# ifndef PNGAPI
|
1333
|
+
# if defined(__GNUC__) || (defined (_MSC_VER) && (_MSC_VER >= 800))
|
1334
|
+
# define PNGAPI __cdecl
|
1335
|
+
# else
|
1336
|
+
# define PNGAPI _cdecl
|
1337
|
+
# endif
|
1338
|
+
# endif
|
1339
|
+
|
1340
|
+
# if !defined(PNG_IMPEXP) && (!defined(PNG_DLL) || \
|
1341
|
+
0 /* WINCOMPILER_WITH_NO_SUPPORT_FOR_DECLIMPEXP */)
|
1342
|
+
# define PNG_IMPEXP
|
1343
|
+
# endif
|
1344
|
+
|
1345
|
+
# if !defined(PNG_IMPEXP)
|
1346
|
+
|
1347
|
+
# define PNG_EXPORT_TYPE1(type,symbol) PNG_IMPEXP type PNGAPI symbol
|
1348
|
+
# define PNG_EXPORT_TYPE2(type,symbol) type PNG_IMPEXP PNGAPI symbol
|
1349
|
+
|
1350
|
+
/* Borland/Microsoft */
|
1351
|
+
# if defined(_MSC_VER) || defined(__BORLANDC__)
|
1352
|
+
# if (_MSC_VER >= 800) || (__BORLANDC__ >= 0x500)
|
1353
|
+
# define PNG_EXPORT PNG_EXPORT_TYPE1
|
1354
|
+
# else
|
1355
|
+
# define PNG_EXPORT PNG_EXPORT_TYPE2
|
1356
|
+
# if defined(PNG_BUILD_DLL)
|
1357
|
+
# define PNG_IMPEXP __export
|
1358
|
+
# else
|
1359
|
+
# define PNG_IMPEXP /*__import */ /* doesn't exist AFAIK in
|
1360
|
+
VC++ */
|
1361
|
+
# endif /* Exists in Borland C++ for
|
1362
|
+
C++ classes (== huge) */
|
1363
|
+
# endif
|
1364
|
+
# endif
|
1365
|
+
|
1366
|
+
# if !defined(PNG_IMPEXP)
|
1367
|
+
# if defined(PNG_BUILD_DLL)
|
1368
|
+
# define PNG_IMPEXP __declspec(dllexport)
|
1369
|
+
# else
|
1370
|
+
# define PNG_IMPEXP __declspec(dllimport)
|
1371
|
+
# endif
|
1372
|
+
# endif
|
1373
|
+
# endif /* PNG_IMPEXP */
|
1374
|
+
#else /* !(DLL || non-cygwin WINDOWS) */
|
1375
|
+
# if (defined(__IBMC__) || defined(__IBMCPP__)) && defined(__OS2__)
|
1376
|
+
# ifndef PNGAPI
|
1377
|
+
# define PNGAPI _System
|
1378
|
+
# endif
|
1379
|
+
# else
|
1380
|
+
# if 0 /* ... other platforms, with other meanings */
|
1381
|
+
# endif
|
1382
|
+
# endif
|
1383
|
+
#endif
|
1384
|
+
|
1385
|
+
#ifndef PNGAPI
|
1386
|
+
# define PNGAPI
|
1387
|
+
#endif
|
1388
|
+
#ifndef PNG_IMPEXP
|
1389
|
+
# define PNG_IMPEXP
|
1390
|
+
#endif
|
1391
|
+
|
1392
|
+
#ifdef PNG_BUILDSYMS
|
1393
|
+
# ifndef PNG_EXPORT
|
1394
|
+
# define PNG_EXPORT(type,symbol) PNG_FUNCTION_EXPORT symbol END
|
1395
|
+
# endif
|
1396
|
+
# ifdef PNG_USE_GLOBAL_ARRAYS
|
1397
|
+
# ifndef PNG_EXPORT_VAR
|
1398
|
+
# define PNG_EXPORT_VAR(type) PNG_DATA_EXPORT
|
1399
|
+
# endif
|
1400
|
+
# endif
|
1401
|
+
#endif
|
1402
|
+
|
1403
|
+
#ifndef PNG_EXPORT
|
1404
|
+
# define PNG_EXPORT(type,symbol) PNG_IMPEXP type PNGAPI symbol
|
1405
|
+
#endif
|
1406
|
+
|
1407
|
+
#ifdef PNG_USE_GLOBAL_ARRAYS
|
1408
|
+
# ifndef PNG_EXPORT_VAR
|
1409
|
+
# define PNG_EXPORT_VAR(type) extern PNG_IMPEXP type
|
1410
|
+
# endif
|
1411
|
+
#endif
|
1412
|
+
|
1413
|
+
/* User may want to use these so they are not in PNG_INTERNAL. Any library
|
1414
|
+
* functions that are passed far data must be model independent.
|
1415
|
+
*/
|
1416
|
+
|
1417
|
+
#ifndef PNG_ABORT
|
1418
|
+
# define PNG_ABORT() abort()
|
1419
|
+
#endif
|
1420
|
+
|
1421
|
+
#ifdef PNG_SETJMP_SUPPORTED
|
1422
|
+
# define png_jmpbuf(png_ptr) ((png_ptr)->jmpbuf)
|
1423
|
+
#else
|
1424
|
+
# define png_jmpbuf(png_ptr) \
|
1425
|
+
(LIBPNG_WAS_COMPILED_WITH__PNG_SETJMP_NOT_SUPPORTED)
|
1426
|
+
#endif
|
1427
|
+
|
1428
|
+
#if defined(USE_FAR_KEYWORD) /* memory model independent fns */
|
1429
|
+
/* use this to make far-to-near assignments */
|
1430
|
+
# define CHECK 1
|
1431
|
+
# define NOCHECK 0
|
1432
|
+
# define CVT_PTR(ptr) (png_far_to_near(png_ptr,ptr,CHECK))
|
1433
|
+
# define CVT_PTR_NOCHECK(ptr) (png_far_to_near(png_ptr,ptr,NOCHECK))
|
1434
|
+
# define png_snprintf _fsnprintf /* Added to v 1.2.19 */
|
1435
|
+
# define png_strlen _fstrlen
|
1436
|
+
# define png_memcmp _fmemcmp /* SJT: added */
|
1437
|
+
# define png_memcpy _fmemcpy
|
1438
|
+
# define png_memset _fmemset
|
1439
|
+
#else /* use the usual functions */
|
1440
|
+
# define CVT_PTR(ptr) (ptr)
|
1441
|
+
# define CVT_PTR_NOCHECK(ptr) (ptr)
|
1442
|
+
# ifndef PNG_NO_SNPRINTF
|
1443
|
+
# ifdef _MSC_VER
|
1444
|
+
# define png_snprintf _snprintf /* Added to v 1.2.19 */
|
1445
|
+
# define png_snprintf2 _snprintf
|
1446
|
+
# define png_snprintf6 _snprintf
|
1447
|
+
# else
|
1448
|
+
# define png_snprintf snprintf /* Added to v 1.2.19 */
|
1449
|
+
# define png_snprintf2 snprintf
|
1450
|
+
# define png_snprintf6 snprintf
|
1451
|
+
# endif
|
1452
|
+
# else
|
1453
|
+
/* You don't have or don't want to use snprintf(). Caution: Using
|
1454
|
+
* sprintf instead of snprintf exposes your application to accidental
|
1455
|
+
* or malevolent buffer overflows. If you don't have snprintf()
|
1456
|
+
* as a general rule you should provide one (you can get one from
|
1457
|
+
* Portable OpenSSH). */
|
1458
|
+
# define png_snprintf(s1,n,fmt,x1) sprintf(s1,fmt,x1)
|
1459
|
+
# define png_snprintf2(s1,n,fmt,x1,x2) sprintf(s1,fmt,x1,x2)
|
1460
|
+
# define png_snprintf6(s1,n,fmt,x1,x2,x3,x4,x5,x6) \
|
1461
|
+
sprintf(s1,fmt,x1,x2,x3,x4,x5,x6)
|
1462
|
+
# endif
|
1463
|
+
# define png_strlen strlen
|
1464
|
+
# define png_memcmp memcmp /* SJT: added */
|
1465
|
+
# define png_memcpy memcpy
|
1466
|
+
# define png_memset memset
|
1467
|
+
#endif
|
1468
|
+
/* End of memory model independent support */
|
1469
|
+
|
1470
|
+
/* Just a little check that someone hasn't tried to define something
|
1471
|
+
* contradictory.
|
1472
|
+
*/
|
1473
|
+
#if (PNG_ZBUF_SIZE > 65536L) && defined(PNG_MAX_MALLOC_64K)
|
1474
|
+
# undef PNG_ZBUF_SIZE
|
1475
|
+
# define PNG_ZBUF_SIZE 65536L
|
1476
|
+
#endif
|
1477
|
+
|
1478
|
+
/* Added at libpng-1.2.8 */
|
1479
|
+
#endif /* PNG_VERSION_INFO_ONLY */
|
1480
|
+
|
1481
|
+
#endif /* PNGCONF_H */
|