gosu 0.7.16 → 0.7.17
Sign up to get free protection for your applications and to get access to all the features.
- data/Gosu/Version.hpp +2 -2
- data/GosuImpl/AudioFmod.cpp +7 -1
- data/GosuImpl/RubyGosuStub.mm +4 -1
- data/GosuImpl/RubyGosu_wrap.cxx +2 -2
- data/GosuImpl/TimingUnix.cpp +4 -1
- data/GosuImpl/TimingWin.cpp +31 -28
- data/GosuImpl/WindowWin.cpp +4 -0
- data/Rakefile +12 -18
- data/examples/ChipmunkIntegration.rb +1 -1
- data/examples/OpenGLIntegration.rb +1 -1
- data/examples/RMagickIntegration.rb +1 -1
- data/examples/Tutorial.cpp +2 -2
- data/examples/Tutorial.rb +1 -1
- data/lib/gosu/patches.rb +2 -2
- data/reference/cpp/_version_8hpp.html +4 -4
- data/reference/cpp/_version_8hpp_source.html +2 -2
- data/reference/rdoc/classes/Gosu.html +10 -10
- data/reference/rdoc/classes/Gosu/Color.html +3 -3
- data/reference/rdoc/classes/Gosu/Font.html +5 -5
- data/reference/rdoc/classes/Gosu/Image.html +9 -9
- data/reference/rdoc/classes/Gosu/Sample.html +3 -3
- data/reference/rdoc/classes/Gosu/SampleInstance.html +5 -5
- data/reference/rdoc/classes/Gosu/Song.html +7 -7
- data/reference/rdoc/classes/Gosu/TextInput.html +1 -1
- data/reference/rdoc/classes/Gosu/Window.html +17 -17
- data/reference/rdoc/classes/Numeric.html +2 -2
- data/reference/rdoc/created.rid +1 -1
- metadata +2 -912
- data/dependencies/libogg/AUTHORS +0 -4
- data/dependencies/libogg/CHANGES +0 -33
- data/dependencies/libogg/COPYING +0 -28
- data/dependencies/libogg/Makefile.am +0 -32
- data/dependencies/libogg/Makefile.in +0 -713
- data/dependencies/libogg/README +0 -103
- data/dependencies/libogg/aclocal.m4 +0 -6807
- data/dependencies/libogg/compile +0 -142
- data/dependencies/libogg/config.guess +0 -1465
- data/dependencies/libogg/config.h.in +0 -70
- data/dependencies/libogg/config.sub +0 -1569
- data/dependencies/libogg/configure +0 -23018
- data/dependencies/libogg/configure.in +0 -301
- data/dependencies/libogg/debian/changelog +0 -68
- data/dependencies/libogg/debian/control +0 -22
- data/dependencies/libogg/debian/copyright +0 -37
- data/dependencies/libogg/debian/libogg-dev.docs +0 -1
- data/dependencies/libogg/debian/libogg-dev.install +0 -8
- data/dependencies/libogg/debian/libogg0.README.Debian +0 -6
- data/dependencies/libogg/debian/libogg0.install +0 -1
- data/dependencies/libogg/debian/rules +0 -154
- data/dependencies/libogg/debian/watch +0 -3
- data/dependencies/libogg/depcomp +0 -529
- data/dependencies/libogg/doc/Makefile.am +0 -11
- data/dependencies/libogg/doc/Makefile.in +0 -518
- data/dependencies/libogg/doc/framing.html +0 -431
- data/dependencies/libogg/doc/index.html +0 -104
- data/dependencies/libogg/doc/libogg/Makefile.am +0 -28
- data/dependencies/libogg/doc/libogg/Makefile.in +0 -378
- data/dependencies/libogg/doc/libogg/bitpacking.html +0 -99
- data/dependencies/libogg/doc/libogg/datastructures.html +0 -59
- data/dependencies/libogg/doc/libogg/decoding.html +0 -100
- data/dependencies/libogg/doc/libogg/encoding.html +0 -64
- data/dependencies/libogg/doc/libogg/general.html +0 -105
- data/dependencies/libogg/doc/libogg/index.html +0 -39
- data/dependencies/libogg/doc/libogg/ogg_packet.html +0 -75
- data/dependencies/libogg/doc/libogg/ogg_packet_clear.html +0 -62
- data/dependencies/libogg/doc/libogg/ogg_page.html +0 -74
- data/dependencies/libogg/doc/libogg/ogg_page_bos.html +0 -65
- data/dependencies/libogg/doc/libogg/ogg_page_checksum_set.html +0 -62
- data/dependencies/libogg/doc/libogg/ogg_page_continued.html +0 -64
- data/dependencies/libogg/doc/libogg/ogg_page_eos.html +0 -65
- data/dependencies/libogg/doc/libogg/ogg_page_granulepos.html +0 -65
- data/dependencies/libogg/doc/libogg/ogg_page_packets.html +0 -75
- data/dependencies/libogg/doc/libogg/ogg_page_pageno.html +0 -63
- data/dependencies/libogg/doc/libogg/ogg_page_serialno.html +0 -63
- data/dependencies/libogg/doc/libogg/ogg_page_version.html +0 -63
- data/dependencies/libogg/doc/libogg/ogg_stream_clear.html +0 -61
- data/dependencies/libogg/doc/libogg/ogg_stream_destroy.html +0 -62
- data/dependencies/libogg/doc/libogg/ogg_stream_eos.html +0 -62
- data/dependencies/libogg/doc/libogg/ogg_stream_flush.html +0 -67
- data/dependencies/libogg/doc/libogg/ogg_stream_init.html +0 -66
- data/dependencies/libogg/doc/libogg/ogg_stream_packetin.html +0 -65
- data/dependencies/libogg/doc/libogg/ogg_stream_packetout.html +0 -71
- data/dependencies/libogg/doc/libogg/ogg_stream_packetpeek.html +0 -85
- data/dependencies/libogg/doc/libogg/ogg_stream_pagein.html +0 -67
- data/dependencies/libogg/doc/libogg/ogg_stream_pageout.html +0 -66
- data/dependencies/libogg/doc/libogg/ogg_stream_reset.html +0 -61
- data/dependencies/libogg/doc/libogg/ogg_stream_reset_serialno.html +0 -67
- data/dependencies/libogg/doc/libogg/ogg_stream_state.html +0 -121
- data/dependencies/libogg/doc/libogg/ogg_sync_buffer.html +0 -67
- data/dependencies/libogg/doc/libogg/ogg_sync_clear.html +0 -62
- data/dependencies/libogg/doc/libogg/ogg_sync_destroy.html +0 -62
- data/dependencies/libogg/doc/libogg/ogg_sync_init.html +0 -63
- data/dependencies/libogg/doc/libogg/ogg_sync_pageout.html +0 -79
- data/dependencies/libogg/doc/libogg/ogg_sync_pageseek.html +0 -68
- data/dependencies/libogg/doc/libogg/ogg_sync_reset.html +0 -63
- data/dependencies/libogg/doc/libogg/ogg_sync_state.html +0 -67
- data/dependencies/libogg/doc/libogg/ogg_sync_wrote.html +0 -73
- data/dependencies/libogg/doc/libogg/oggpack_adv.html +0 -64
- data/dependencies/libogg/doc/libogg/oggpack_adv1.html +0 -62
- data/dependencies/libogg/doc/libogg/oggpack_bits.html +0 -62
- data/dependencies/libogg/doc/libogg/oggpack_buffer.html +0 -66
- data/dependencies/libogg/doc/libogg/oggpack_bytes.html +0 -62
- data/dependencies/libogg/doc/libogg/oggpack_get_buffer.html +0 -62
- data/dependencies/libogg/doc/libogg/oggpack_look.html +0 -66
- data/dependencies/libogg/doc/libogg/oggpack_look1.html +0 -63
- data/dependencies/libogg/doc/libogg/oggpack_read.html +0 -65
- data/dependencies/libogg/doc/libogg/oggpack_read1.html +0 -63
- data/dependencies/libogg/doc/libogg/oggpack_readinit.html +0 -64
- data/dependencies/libogg/doc/libogg/oggpack_reset.html +0 -62
- data/dependencies/libogg/doc/libogg/oggpack_write.html +0 -68
- data/dependencies/libogg/doc/libogg/oggpack_writealign.html +0 -65
- data/dependencies/libogg/doc/libogg/oggpack_writeclear.html +0 -62
- data/dependencies/libogg/doc/libogg/oggpack_writecopy.html +0 -69
- data/dependencies/libogg/doc/libogg/oggpack_writeinit.html +0 -62
- data/dependencies/libogg/doc/libogg/oggpack_writetrunc.html +0 -65
- data/dependencies/libogg/doc/libogg/overview.html +0 -44
- data/dependencies/libogg/doc/libogg/reference.html +0 -93
- data/dependencies/libogg/doc/libogg/style.css +0 -7
- data/dependencies/libogg/doc/libogg/vorbis_comment.html +0 -70
- data/dependencies/libogg/doc/libogg/vorbis_info.html +0 -80
- data/dependencies/libogg/doc/ogg-multiplex.html +0 -445
- data/dependencies/libogg/doc/oggstream.html +0 -234
- data/dependencies/libogg/doc/rfc3533.txt +0 -843
- data/dependencies/libogg/doc/rfc3534.txt +0 -339
- 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 +0 -3
- data/dependencies/libogg/include/Makefile.in +0 -481
- data/dependencies/libogg/include/ogg/Makefile.am +0 -6
- data/dependencies/libogg/include/ogg/Makefile.in +0 -428
- data/dependencies/libogg/include/ogg/config_types.h.in +0 -11
- data/dependencies/libogg/include/ogg/ogg.h +0 -202
- data/dependencies/libogg/include/ogg/os_types.h +0 -127
- data/dependencies/libogg/install-sh +0 -323
- data/dependencies/libogg/libogg.spec +0 -106
- data/dependencies/libogg/libogg.spec.in +0 -106
- data/dependencies/libogg/ltmain.sh +0 -6426
- data/dependencies/libogg/macos/compat/strdup.c +0 -21
- data/dependencies/libogg/macos/compat/sys/types.h +0 -1
- data/dependencies/libogg/macos/libogg.mcp +0 -0
- data/dependencies/libogg/macos/libogg.mcp.exp +0 -64
- data/dependencies/libogg/macosx/English.lproj/InfoPlist.strings +0 -0
- data/dependencies/libogg/macosx/Info.plist +0 -30
- data/dependencies/libogg/macosx/Ogg.xcodeproj/project.pbxproj +0 -303
- data/dependencies/libogg/macosx/Ogg_Prefix.pch +0 -5
- data/dependencies/libogg/missing +0 -357
- data/dependencies/libogg/ogg-uninstalled.pc.in +0 -14
- data/dependencies/libogg/ogg.m4 +0 -102
- data/dependencies/libogg/ogg.pc.in +0 -14
- data/dependencies/libogg/src/Makefile.am +0 -28
- data/dependencies/libogg/src/Makefile.in +0 -536
- data/dependencies/libogg/src/bitwise.c +0 -784
- data/dependencies/libogg/src/framing.c +0 -1800
- data/dependencies/libogg/win32/Makefile.am +0 -5
- data/dependencies/libogg/win32/Makefile.in +0 -327
- data/dependencies/libogg/win32/build_ogg_dynamic.bat +0 -18
- data/dependencies/libogg/win32/build_ogg_dynamic_debug.bat +0 -18
- data/dependencies/libogg/win32/build_ogg_static.bat +0 -18
- data/dependencies/libogg/win32/build_ogg_static_debug.bat +0 -18
- data/dependencies/libogg/win32/ogg.def +0 -78
- data/dependencies/libogg/win32/ogg.dsw +0 -41
- data/dependencies/libogg/win32/ogg_dynamic.dsp +0 -128
- data/dependencies/libogg/win32/ogg_static.dsp +0 -108
- data/dependencies/libpng/ANNOUNCE +0 -61
- data/dependencies/libpng/CHANGES +0 -2173
- data/dependencies/libpng/INSTALL +0 -199
- data/dependencies/libpng/KNOWNBUG +0 -22
- data/dependencies/libpng/LICENSE +0 -109
- data/dependencies/libpng/README +0 -264
- data/dependencies/libpng/TODO +0 -24
- data/dependencies/libpng/Y2KINFO +0 -55
- data/dependencies/libpng/configure +0 -13
- data/dependencies/libpng/contrib/gregbook/COPYING +0 -340
- data/dependencies/libpng/contrib/gregbook/LICENSE +0 -50
- data/dependencies/libpng/contrib/gregbook/Makefile.mingw32 +0 -130
- data/dependencies/libpng/contrib/gregbook/Makefile.sgi +0 -104
- data/dependencies/libpng/contrib/gregbook/Makefile.unx +0 -132
- data/dependencies/libpng/contrib/gregbook/Makefile.w32 +0 -113
- data/dependencies/libpng/contrib/gregbook/README +0 -186
- data/dependencies/libpng/contrib/gregbook/makevms.com +0 -132
- data/dependencies/libpng/contrib/gregbook/readpng.c +0 -304
- data/dependencies/libpng/contrib/gregbook/readpng.h +0 -88
- data/dependencies/libpng/contrib/gregbook/readpng2.c +0 -645
- data/dependencies/libpng/contrib/gregbook/readpng2.h +0 -121
- data/dependencies/libpng/contrib/gregbook/readppm.c +0 -179
- data/dependencies/libpng/contrib/gregbook/rpng-win.c +0 -684
- data/dependencies/libpng/contrib/gregbook/rpng-x.c +0 -904
- data/dependencies/libpng/contrib/gregbook/rpng2-win.c +0 -1225
- data/dependencies/libpng/contrib/gregbook/rpng2-x.c +0 -2127
- data/dependencies/libpng/contrib/gregbook/toucan.png +0 -0
- data/dependencies/libpng/contrib/gregbook/wpng.c +0 -853
- data/dependencies/libpng/contrib/gregbook/writepng.c +0 -392
- data/dependencies/libpng/contrib/gregbook/writepng.h +0 -133
- data/dependencies/libpng/contrib/pngminim/decoder/README +0 -6
- data/dependencies/libpng/contrib/pngminim/decoder/gather.sh +0 -8
- data/dependencies/libpng/contrib/pngminim/decoder/makefile.std +0 -44
- data/dependencies/libpng/contrib/pngminim/decoder/pngusr.h +0 -67
- data/dependencies/libpng/contrib/pngminim/encoder/README +0 -6
- data/dependencies/libpng/contrib/pngminim/encoder/dummy_inflate.c +0 -27
- data/dependencies/libpng/contrib/pngminim/encoder/gather.sh +0 -9
- data/dependencies/libpng/contrib/pngminim/encoder/makefile.std +0 -43
- data/dependencies/libpng/contrib/pngminim/encoder/pngusr.h +0 -66
- data/dependencies/libpng/contrib/pngminus/README +0 -153
- data/dependencies/libpng/contrib/pngminus/makefile.std +0 -65
- data/dependencies/libpng/contrib/pngminus/makefile.tc3 +0 -38
- data/dependencies/libpng/contrib/pngminus/makevms.com +0 -92
- data/dependencies/libpng/contrib/pngminus/png2pnm.bat +0 -41
- data/dependencies/libpng/contrib/pngminus/png2pnm.c +0 -430
- data/dependencies/libpng/contrib/pngminus/png2pnm.sh +0 -42
- data/dependencies/libpng/contrib/pngminus/pngminus.bat +0 -4
- data/dependencies/libpng/contrib/pngminus/pngminus.sh +0 -5
- data/dependencies/libpng/contrib/pngminus/pnm2png.bat +0 -41
- data/dependencies/libpng/contrib/pngminus/pnm2png.c +0 -533
- data/dependencies/libpng/contrib/pngminus/pnm2png.sh +0 -42
- 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 +0 -439
- data/dependencies/libpng/contrib/visupng/PngFile.h +0 -27
- data/dependencies/libpng/contrib/visupng/README.txt +0 -58
- data/dependencies/libpng/contrib/visupng/VisualPng.c +0 -961
- data/dependencies/libpng/contrib/visupng/VisualPng.dsp +0 -147
- data/dependencies/libpng/contrib/visupng/VisualPng.dsw +0 -29
- 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 +0 -152
- data/dependencies/libpng/contrib/visupng/cexcept.h +0 -243
- data/dependencies/libpng/contrib/visupng/resource.h +0 -23
- data/dependencies/libpng/example.c +0 -814
- data/dependencies/libpng/libpng-1.2.29.txt +0 -2906
- data/dependencies/libpng/libpng.3 +0 -3680
- data/dependencies/libpng/libpngpf.3 +0 -274
- data/dependencies/libpng/png.5 +0 -74
- data/dependencies/libpng/png.c +0 -798
- data/dependencies/libpng/png.h +0 -3569
- data/dependencies/libpng/pngbar.jpg +0 -0
- data/dependencies/libpng/pngbar.png +0 -0
- data/dependencies/libpng/pngconf.h +0 -1481
- data/dependencies/libpng/pngerror.c +0 -343
- data/dependencies/libpng/pnggccrd.c +0 -103
- data/dependencies/libpng/pngget.c +0 -901
- data/dependencies/libpng/pngmem.c +0 -608
- data/dependencies/libpng/pngnow.png +0 -0
- data/dependencies/libpng/pngpread.c +0 -1598
- data/dependencies/libpng/pngread.c +0 -1479
- data/dependencies/libpng/pngrio.c +0 -167
- data/dependencies/libpng/pngrtran.c +0 -4292
- data/dependencies/libpng/pngrutil.c +0 -3183
- data/dependencies/libpng/pngset.c +0 -1268
- data/dependencies/libpng/pngtest.c +0 -1563
- data/dependencies/libpng/pngtest.png +0 -0
- data/dependencies/libpng/pngtrans.c +0 -662
- data/dependencies/libpng/pngvcrd.c +0 -1
- data/dependencies/libpng/pngwio.c +0 -234
- data/dependencies/libpng/pngwrite.c +0 -1532
- data/dependencies/libpng/pngwtran.c +0 -572
- data/dependencies/libpng/pngwutil.c +0 -2802
- data/dependencies/libpng/projects/beos/x86-shared.proj +0 -0
- data/dependencies/libpng/projects/beos/x86-shared.txt +0 -22
- data/dependencies/libpng/projects/beos/x86-static.proj +0 -0
- data/dependencies/libpng/projects/beos/x86-static.txt +0 -22
- data/dependencies/libpng/projects/cbuilder5/libpng.bpf +0 -22
- data/dependencies/libpng/projects/cbuilder5/libpng.bpg +0 -25
- data/dependencies/libpng/projects/cbuilder5/libpng.bpr +0 -157
- data/dependencies/libpng/projects/cbuilder5/libpng.cpp +0 -29
- data/dependencies/libpng/projects/cbuilder5/libpng.readme.txt +0 -25
- data/dependencies/libpng/projects/cbuilder5/libpngstat.bpf +0 -22
- data/dependencies/libpng/projects/cbuilder5/libpngstat.bpr +0 -109
- data/dependencies/libpng/projects/cbuilder5/zlib.readme.txt +0 -14
- data/dependencies/libpng/projects/netware.txt +0 -6
- data/dependencies/libpng/projects/visualc6/README.txt +0 -57
- data/dependencies/libpng/projects/visualc6/libpng.dsp +0 -472
- data/dependencies/libpng/projects/visualc6/libpng.dsw +0 -59
- data/dependencies/libpng/projects/visualc6/pngtest.dsp +0 -314
- data/dependencies/libpng/projects/visualc71/PRJ0041.mak +0 -21
- data/dependencies/libpng/projects/visualc71/README.txt +0 -57
- data/dependencies/libpng/projects/visualc71/README_zlib.txt +0 -44
- data/dependencies/libpng/projects/visualc71/libpng.sln +0 -88
- data/dependencies/libpng/projects/visualc71/libpng.vcproj +0 -702
- data/dependencies/libpng/projects/visualc71/pngtest.vcproj +0 -459
- data/dependencies/libpng/projects/visualc71/zlib.vcproj +0 -670
- data/dependencies/libpng/projects/wince.txt +0 -6
- data/dependencies/libpng/scripts/CMakeLists.txt +0 -210
- data/dependencies/libpng/scripts/SCOPTIONS.ppc +0 -7
- data/dependencies/libpng/scripts/descrip.mms +0 -52
- data/dependencies/libpng/scripts/libpng-config-body.in +0 -96
- data/dependencies/libpng/scripts/libpng-config-head.in +0 -21
- data/dependencies/libpng/scripts/libpng-config.in +0 -124
- data/dependencies/libpng/scripts/libpng.icc +0 -44
- data/dependencies/libpng/scripts/libpng.pc-configure.in +0 -10
- data/dependencies/libpng/scripts/libpng.pc.in +0 -10
- data/dependencies/libpng/scripts/makefile.32sunu +0 -254
- data/dependencies/libpng/scripts/makefile.64sunu +0 -254
- data/dependencies/libpng/scripts/makefile.acorn +0 -51
- data/dependencies/libpng/scripts/makefile.aix +0 -113
- data/dependencies/libpng/scripts/makefile.amiga +0 -48
- data/dependencies/libpng/scripts/makefile.atari +0 -51
- data/dependencies/libpng/scripts/makefile.bc32 +0 -152
- data/dependencies/libpng/scripts/makefile.beos +0 -226
- data/dependencies/libpng/scripts/makefile.bor +0 -162
- data/dependencies/libpng/scripts/makefile.cygwin +0 -299
- data/dependencies/libpng/scripts/makefile.darwin +0 -234
- data/dependencies/libpng/scripts/makefile.dec +0 -214
- data/dependencies/libpng/scripts/makefile.dj2 +0 -55
- data/dependencies/libpng/scripts/makefile.elf +0 -275
- data/dependencies/libpng/scripts/makefile.freebsd +0 -48
- data/dependencies/libpng/scripts/makefile.gcc +0 -79
- data/dependencies/libpng/scripts/makefile.gcmmx +0 -271
- data/dependencies/libpng/scripts/makefile.hp64 +0 -235
- data/dependencies/libpng/scripts/makefile.hpgcc +0 -245
- data/dependencies/libpng/scripts/makefile.hpux +0 -232
- data/dependencies/libpng/scripts/makefile.ibmc +0 -71
- data/dependencies/libpng/scripts/makefile.intel +0 -102
- data/dependencies/libpng/scripts/makefile.knr +0 -99
- data/dependencies/libpng/scripts/makefile.linux +0 -249
- data/dependencies/libpng/scripts/makefile.mingw +0 -289
- data/dependencies/libpng/scripts/makefile.mips +0 -83
- data/dependencies/libpng/scripts/makefile.msc +0 -86
- data/dependencies/libpng/scripts/makefile.ne12bsd +0 -45
- data/dependencies/libpng/scripts/makefile.netbsd +0 -45
- data/dependencies/libpng/scripts/makefile.nommx +0 -252
- data/dependencies/libpng/scripts/makefile.openbsd +0 -73
- data/dependencies/libpng/scripts/makefile.os2 +0 -69
- data/dependencies/libpng/scripts/makefile.sco +0 -229
- data/dependencies/libpng/scripts/makefile.sggcc +0 -242
- data/dependencies/libpng/scripts/makefile.sgi +0 -245
- data/dependencies/libpng/scripts/makefile.so9 +0 -251
- data/dependencies/libpng/scripts/makefile.solaris +0 -249
- data/dependencies/libpng/scripts/makefile.solaris-x86 +0 -248
- data/dependencies/libpng/scripts/makefile.std +0 -92
- data/dependencies/libpng/scripts/makefile.sunos +0 -97
- data/dependencies/libpng/scripts/makefile.tc3 +0 -89
- data/dependencies/libpng/scripts/makefile.vcawin32 +0 -99
- data/dependencies/libpng/scripts/makefile.vcwin32 +0 -99
- data/dependencies/libpng/scripts/makefile.watcom +0 -109
- data/dependencies/libpng/scripts/makevms.com +0 -144
- data/dependencies/libpng/scripts/pngos2.def +0 -257
- data/dependencies/libpng/scripts/pngw32.def +0 -238
- data/dependencies/libpng/scripts/pngw32.rc +0 -112
- data/dependencies/libpng/scripts/smakefile.ppc +0 -30
- data/dependencies/libvorbis/AUTHORS +0 -3
- data/dependencies/libvorbis/CHANGES +0 -48
- data/dependencies/libvorbis/COPYING +0 -28
- data/dependencies/libvorbis/Makefile.am +0 -41
- data/dependencies/libvorbis/Makefile.in +0 -759
- data/dependencies/libvorbis/README +0 -132
- data/dependencies/libvorbis/acinclude.m4 +0 -161
- data/dependencies/libvorbis/aclocal.m4 +0 -7273
- data/dependencies/libvorbis/autogen.sh +0 -127
- data/dependencies/libvorbis/config.guess +0 -1500
- data/dependencies/libvorbis/config.h.in +0 -78
- data/dependencies/libvorbis/config.sub +0 -1616
- data/dependencies/libvorbis/configure +0 -22114
- data/dependencies/libvorbis/configure.in +0 -246
- data/dependencies/libvorbis/depcomp +0 -584
- data/dependencies/libvorbis/doc/Makefile +0 -665
- data/dependencies/libvorbis/doc/Makefile.am +0 -137
- data/dependencies/libvorbis/doc/Makefile.in +0 -665
- data/dependencies/libvorbis/doc/Vorbis_I_spec.html +0 -2292
- 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 +0 -1401
- data/dependencies/libvorbis/doc/draft-ietf-avt-rtp-vorbis-06.xml +0 -1388
- 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 +0 -154
- data/dependencies/libvorbis/doc/floorval.png +0 -0
- data/dependencies/libvorbis/doc/fourphase.png +0 -0
- data/dependencies/libvorbis/doc/framing.html +0 -431
- data/dependencies/libvorbis/doc/helper.html +0 -239
- data/dependencies/libvorbis/doc/hufftree-under.png +0 -0
- data/dependencies/libvorbis/doc/hufftree.png +0 -0
- data/dependencies/libvorbis/doc/index.html +0 -114
- data/dependencies/libvorbis/doc/lspmap.png +0 -0
- data/dependencies/libvorbis/doc/oddlsp.png +0 -0
- data/dependencies/libvorbis/doc/oggstream.html +0 -234
- data/dependencies/libvorbis/doc/programming.html +0 -554
- 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 +0 -418
- data/dependencies/libvorbis/doc/stream.png +0 -0
- data/dependencies/libvorbis/doc/v-comment.html +0 -285
- data/dependencies/libvorbis/doc/vorbis-clip.txt +0 -139
- data/dependencies/libvorbis/doc/vorbis-errors.txt +0 -103
- data/dependencies/libvorbis/doc/vorbis-fidelity.html +0 -180
- data/dependencies/libvorbis/doc/vorbis.html +0 -234
- data/dependencies/libvorbis/doc/vorbisenc/Makefile +0 -382
- data/dependencies/libvorbis/doc/vorbisenc/Makefile.am +0 -9
- data/dependencies/libvorbis/doc/vorbisenc/Makefile.in +0 -382
- data/dependencies/libvorbis/doc/vorbisenc/changes.html +0 -104
- data/dependencies/libvorbis/doc/vorbisenc/examples.html +0 -133
- data/dependencies/libvorbis/doc/vorbisenc/index.html +0 -40
- data/dependencies/libvorbis/doc/vorbisenc/ov_ectl_ratemanage2_arg.html +0 -92
- data/dependencies/libvorbis/doc/vorbisenc/ov_ectl_ratemanage_arg.html +0 -92
- data/dependencies/libvorbis/doc/vorbisenc/overview.html +0 -382
- data/dependencies/libvorbis/doc/vorbisenc/reference.html +0 -48
- data/dependencies/libvorbis/doc/vorbisenc/style.css +0 -7
- data/dependencies/libvorbis/doc/vorbisenc/vorbis_encode_ctl.html +0 -169
- data/dependencies/libvorbis/doc/vorbisenc/vorbis_encode_init.html +0 -88
- data/dependencies/libvorbis/doc/vorbisenc/vorbis_encode_init_vbr.html +0 -81
- data/dependencies/libvorbis/doc/vorbisenc/vorbis_encode_setup_init.html +0 -88
- data/dependencies/libvorbis/doc/vorbisenc/vorbis_encode_setup_managed.html +0 -102
- data/dependencies/libvorbis/doc/vorbisenc/vorbis_encode_setup_vbr.html +0 -90
- data/dependencies/libvorbis/doc/vorbisenc/vorbis_info.html +0 -81
- data/dependencies/libvorbis/doc/vorbisfile/Makefile +0 -396
- data/dependencies/libvorbis/doc/vorbisfile/Makefile.am +0 -23
- data/dependencies/libvorbis/doc/vorbisfile/Makefile.in +0 -396
- data/dependencies/libvorbis/doc/vorbisfile/OggVorbis_File.html +0 -137
- data/dependencies/libvorbis/doc/vorbisfile/callbacks.html +0 -121
- data/dependencies/libvorbis/doc/vorbisfile/chaining_example_c.html +0 -90
- data/dependencies/libvorbis/doc/vorbisfile/chainingexample.html +0 -175
- data/dependencies/libvorbis/doc/vorbisfile/crosslap.html +0 -121
- data/dependencies/libvorbis/doc/vorbisfile/datastructures.html +0 -61
- data/dependencies/libvorbis/doc/vorbisfile/decoding.html +0 -87
- data/dependencies/libvorbis/doc/vorbisfile/example.html +0 -208
- data/dependencies/libvorbis/doc/vorbisfile/exampleindex.html +0 -39
- data/dependencies/libvorbis/doc/vorbisfile/fileinfo.html +0 -95
- data/dependencies/libvorbis/doc/vorbisfile/index.html +0 -49
- data/dependencies/libvorbis/doc/vorbisfile/initialization.html +0 -118
- data/dependencies/libvorbis/doc/vorbisfile/ov_bitrate.html +0 -72
- data/dependencies/libvorbis/doc/vorbisfile/ov_bitrate_instant.html +0 -65
- data/dependencies/libvorbis/doc/vorbisfile/ov_callbacks.html +0 -117
- data/dependencies/libvorbis/doc/vorbisfile/ov_clear.html +0 -64
- data/dependencies/libvorbis/doc/vorbisfile/ov_comment.html +0 -66
- data/dependencies/libvorbis/doc/vorbisfile/ov_crosslap.html +0 -100
- data/dependencies/libvorbis/doc/vorbisfile/ov_fopen.html +0 -124
- data/dependencies/libvorbis/doc/vorbisfile/ov_info.html +0 -64
- data/dependencies/libvorbis/doc/vorbisfile/ov_open.html +0 -183
- data/dependencies/libvorbis/doc/vorbisfile/ov_open_callbacks.html +0 -147
- data/dependencies/libvorbis/doc/vorbisfile/ov_pcm_seek.html +0 -83
- data/dependencies/libvorbis/doc/vorbisfile/ov_pcm_seek_lap.html +0 -103
- data/dependencies/libvorbis/doc/vorbisfile/ov_pcm_seek_page.html +0 -84
- data/dependencies/libvorbis/doc/vorbisfile/ov_pcm_seek_page_lap.html +0 -112
- data/dependencies/libvorbis/doc/vorbisfile/ov_pcm_tell.html +0 -63
- data/dependencies/libvorbis/doc/vorbisfile/ov_pcm_total.html +0 -67
- data/dependencies/libvorbis/doc/vorbisfile/ov_raw_seek.html +0 -83
- data/dependencies/libvorbis/doc/vorbisfile/ov_raw_seek_lap.html +0 -110
- data/dependencies/libvorbis/doc/vorbisfile/ov_raw_tell.html +0 -65
- data/dependencies/libvorbis/doc/vorbisfile/ov_raw_total.html +0 -68
- data/dependencies/libvorbis/doc/vorbisfile/ov_read.html +0 -123
- data/dependencies/libvorbis/doc/vorbisfile/ov_read_float.html +0 -101
- data/dependencies/libvorbis/doc/vorbisfile/ov_seekable.html +0 -63
- data/dependencies/libvorbis/doc/vorbisfile/ov_serialnumber.html +0 -67
- data/dependencies/libvorbis/doc/vorbisfile/ov_streams.html +0 -64
- data/dependencies/libvorbis/doc/vorbisfile/ov_test.html +0 -101
- data/dependencies/libvorbis/doc/vorbisfile/ov_test_callbacks.html +0 -111
- data/dependencies/libvorbis/doc/vorbisfile/ov_test_open.html +0 -82
- data/dependencies/libvorbis/doc/vorbisfile/ov_time_seek.html +0 -82
- data/dependencies/libvorbis/doc/vorbisfile/ov_time_seek_lap.html +0 -105
- data/dependencies/libvorbis/doc/vorbisfile/ov_time_seek_page.html +0 -83
- data/dependencies/libvorbis/doc/vorbisfile/ov_time_seek_page_lap.html +0 -112
- data/dependencies/libvorbis/doc/vorbisfile/ov_time_tell.html +0 -63
- data/dependencies/libvorbis/doc/vorbisfile/ov_time_total.html +0 -67
- data/dependencies/libvorbis/doc/vorbisfile/overview.html +0 -61
- data/dependencies/libvorbis/doc/vorbisfile/reference.html +0 -83
- data/dependencies/libvorbis/doc/vorbisfile/return.html +0 -77
- data/dependencies/libvorbis/doc/vorbisfile/seekexample.html +0 -152
- data/dependencies/libvorbis/doc/vorbisfile/seeking.html +0 -107
- data/dependencies/libvorbis/doc/vorbisfile/seeking_example_c.html +0 -86
- data/dependencies/libvorbis/doc/vorbisfile/seeking_test_c.html +0 -86
- data/dependencies/libvorbis/doc/vorbisfile/seekingexample.html +0 -203
- data/dependencies/libvorbis/doc/vorbisfile/style.css +0 -7
- data/dependencies/libvorbis/doc/vorbisfile/threads.html +0 -50
- data/dependencies/libvorbis/doc/vorbisfile/vorbis_comment.html +0 -70
- data/dependencies/libvorbis/doc/vorbisfile/vorbis_info.html +0 -80
- data/dependencies/libvorbis/doc/vorbisfile/vorbisfile_example_c.html +0 -106
- 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 +0 -665
- data/dependencies/libvorbis/doc/xml/02-bitpacking.xml +0 -280
- data/dependencies/libvorbis/doc/xml/03-codebook.xml +0 -458
- data/dependencies/libvorbis/doc/xml/04-codec.xml +0 -711
- data/dependencies/libvorbis/doc/xml/05-comment.xml +0 -284
- data/dependencies/libvorbis/doc/xml/06-floor0.xml +0 -257
- data/dependencies/libvorbis/doc/xml/07-floor1.xml +0 -450
- data/dependencies/libvorbis/doc/xml/08-residue.xml +0 -492
- data/dependencies/libvorbis/doc/xml/09-helper.xml +0 -211
- data/dependencies/libvorbis/doc/xml/10-tables.xml +0 -94
- data/dependencies/libvorbis/doc/xml/TODO +0 -28
- data/dependencies/libvorbis/doc/xml/Vorbis_I_spec.xml +0 -30
- data/dependencies/libvorbis/doc/xml/a1-encapsulation_ogg.xml +0 -201
- data/dependencies/libvorbis/doc/xml/a2-encapsulation_rtp.xml +0 -31
- data/dependencies/libvorbis/doc/xml/footer.xml +0 -60
- data/dependencies/libvorbis/doc/xml/spec-common.xsl +0 -24
- data/dependencies/libvorbis/doc/xml/spec-fo.xsl +0 -16
- data/dependencies/libvorbis/doc/xml/spec-html.xsl +0 -5
- data/dependencies/libvorbis/examples/Makefile +0 -515
- data/dependencies/libvorbis/examples/Makefile.am +0 -28
- data/dependencies/libvorbis/examples/Makefile.in +0 -515
- data/dependencies/libvorbis/examples/chaining_example.c +0 -72
- data/dependencies/libvorbis/examples/decoder_example.c +0 -307
- data/dependencies/libvorbis/examples/encoder_example.c +0 -253
- data/dependencies/libvorbis/examples/frameview.pl +0 -630
- data/dependencies/libvorbis/examples/seeking_example.c +0 -256
- data/dependencies/libvorbis/examples/vorbisfile_example.c +0 -87
- data/dependencies/libvorbis/include/Makefile.am +0 -3
- data/dependencies/libvorbis/include/Makefile.in +0 -506
- data/dependencies/libvorbis/include/vorbis/Makefile.am +0 -7
- data/dependencies/libvorbis/include/vorbis/Makefile.in +0 -426
- data/dependencies/libvorbis/include/vorbis/codec.h +0 -241
- data/dependencies/libvorbis/include/vorbis/vorbisenc.h +0 -112
- data/dependencies/libvorbis/include/vorbis/vorbisfile.h +0 -183
- data/dependencies/libvorbis/install-sh +0 -507
- data/dependencies/libvorbis/lib/Makefile.am +0 -44
- data/dependencies/libvorbis/lib/Makefile.in +0 -706
- data/dependencies/libvorbis/lib/analysis.c +0 -121
- data/dependencies/libvorbis/lib/backends.h +0 -146
- data/dependencies/libvorbis/lib/barkmel.c +0 -64
- data/dependencies/libvorbis/lib/bitrate.c +0 -253
- data/dependencies/libvorbis/lib/bitrate.h +0 -59
- data/dependencies/libvorbis/lib/block.c +0 -993
- data/dependencies/libvorbis/lib/books/Makefile.am +0 -3
- data/dependencies/libvorbis/lib/books/Makefile.in +0 -506
- data/dependencies/libvorbis/lib/books/coupled/Makefile.am +0 -3
- data/dependencies/libvorbis/lib/books/coupled/Makefile.in +0 -347
- data/dependencies/libvorbis/lib/books/coupled/res_books_stereo.h +0 -20681
- data/dependencies/libvorbis/lib/books/floor/Makefile.am +0 -3
- data/dependencies/libvorbis/lib/books/floor/Makefile.in +0 -347
- data/dependencies/libvorbis/lib/books/floor/floor_books.h +0 -1838
- data/dependencies/libvorbis/lib/books/uncoupled/Makefile.am +0 -3
- data/dependencies/libvorbis/lib/books/uncoupled/Makefile.in +0 -347
- data/dependencies/libvorbis/lib/books/uncoupled/res_books_uncoupled.h +0 -11517
- data/dependencies/libvorbis/lib/codebook.c +0 -634
- data/dependencies/libvorbis/lib/codebook.h +0 -160
- data/dependencies/libvorbis/lib/codec_internal.h +0 -137
- data/dependencies/libvorbis/lib/envelope.c +0 -382
- data/dependencies/libvorbis/lib/envelope.h +0 -81
- data/dependencies/libvorbis/lib/floor0.c +0 -223
- data/dependencies/libvorbis/lib/floor1.c +0 -1094
- data/dependencies/libvorbis/lib/highlevel.h +0 -57
- data/dependencies/libvorbis/lib/info.c +0 -644
- data/dependencies/libvorbis/lib/lookup.c +0 -94
- data/dependencies/libvorbis/lib/lookup.h +0 -32
- data/dependencies/libvorbis/lib/lookup_data.h +0 -189
- data/dependencies/libvorbis/lib/lookups.pl +0 -142
- data/dependencies/libvorbis/lib/lpc.c +0 -149
- data/dependencies/libvorbis/lib/lpc.h +0 -29
- data/dependencies/libvorbis/lib/lsp.c +0 -455
- data/dependencies/libvorbis/lib/lsp.h +0 -28
- data/dependencies/libvorbis/lib/mapping0.c +0 -844
- data/dependencies/libvorbis/lib/masking.h +0 -785
- data/dependencies/libvorbis/lib/mdct.c +0 -564
- data/dependencies/libvorbis/lib/mdct.h +0 -83
- data/dependencies/libvorbis/lib/misc.h +0 -52
- data/dependencies/libvorbis/lib/modes/Makefile.am +0 -6
- data/dependencies/libvorbis/lib/modes/Makefile.in +0 -351
- data/dependencies/libvorbis/lib/modes/floor_all.h +0 -248
- data/dependencies/libvorbis/lib/modes/psych_11.h +0 -51
- data/dependencies/libvorbis/lib/modes/psych_16.h +0 -136
- data/dependencies/libvorbis/lib/modes/psych_44.h +0 -666
- data/dependencies/libvorbis/lib/modes/psych_8.h +0 -102
- data/dependencies/libvorbis/lib/modes/residue_16.h +0 -163
- data/dependencies/libvorbis/lib/modes/residue_44.h +0 -294
- data/dependencies/libvorbis/lib/modes/residue_44u.h +0 -318
- data/dependencies/libvorbis/lib/modes/residue_8.h +0 -109
- data/dependencies/libvorbis/lib/modes/setup_11.h +0 -141
- data/dependencies/libvorbis/lib/modes/setup_16.h +0 -149
- data/dependencies/libvorbis/lib/modes/setup_22.h +0 -128
- data/dependencies/libvorbis/lib/modes/setup_32.h +0 -132
- data/dependencies/libvorbis/lib/modes/setup_44.h +0 -107
- data/dependencies/libvorbis/lib/modes/setup_44u.h +0 -74
- data/dependencies/libvorbis/lib/modes/setup_8.h +0 -146
- data/dependencies/libvorbis/lib/modes/setup_X.h +0 -226
- data/dependencies/libvorbis/lib/os.h +0 -156
- data/dependencies/libvorbis/lib/psy.c +0 -1227
- data/dependencies/libvorbis/lib/psy.h +0 -186
- data/dependencies/libvorbis/lib/psytune.c +0 -524
- data/dependencies/libvorbis/lib/registry.c +0 -46
- data/dependencies/libvorbis/lib/registry.h +0 -32
- data/dependencies/libvorbis/lib/res0.c +0 -919
- data/dependencies/libvorbis/lib/scales.h +0 -86
- data/dependencies/libvorbis/lib/sharedbook.c +0 -735
- data/dependencies/libvorbis/lib/smallft.c +0 -1255
- data/dependencies/libvorbis/lib/smallft.h +0 -34
- data/dependencies/libvorbis/lib/synthesis.c +0 -170
- data/dependencies/libvorbis/lib/tone.c +0 -54
- data/dependencies/libvorbis/lib/vorbisenc.c +0 -1184
- data/dependencies/libvorbis/lib/vorbisfile.c +0 -2194
- data/dependencies/libvorbis/lib/window.c +0 -2136
- data/dependencies/libvorbis/lib/window.h +0 -26
- data/dependencies/libvorbis/libvorbis.spec +0 -118
- data/dependencies/libvorbis/libvorbis.spec.in +0 -118
- data/dependencies/libvorbis/ltmain.sh +0 -6871
- data/dependencies/libvorbis/macos/compat/strdup.c +0 -21
- data/dependencies/libvorbis/macos/compat/sys/types.h +0 -1
- 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 +0 -45
- data/dependencies/libvorbis/macos/libvorbisenc.mcp +0 -0
- data/dependencies/libvorbis/macos/libvorbisenc.mcp.exp +0 -8
- data/dependencies/libvorbis/macos/libvorbisfile.mcp +0 -0
- data/dependencies/libvorbis/macos/libvorbisfile.mcp.exp +0 -45
- data/dependencies/libvorbis/macos/vorbis.mcp +0 -0
- data/dependencies/libvorbis/macosx/English.lproj/InfoPlist.strings +0 -0
- data/dependencies/libvorbis/macosx/Info.plist +0 -30
- data/dependencies/libvorbis/macosx/Vorbis.xcodeproj/project.pbxproj +0 -893
- data/dependencies/libvorbis/missing +0 -367
- data/dependencies/libvorbis/symbian/bld.inf +0 -35
- data/dependencies/libvorbis/symbian/config.h +0 -54
- data/dependencies/libvorbis/symbian/vorbis.mmp +0 -43
- data/dependencies/libvorbis/todo.txt +0 -22
- data/dependencies/libvorbis/vorbis-uninstalled.pc.in +0 -14
- data/dependencies/libvorbis/vorbis.m4 +0 -122
- data/dependencies/libvorbis/vorbis.pc.in +0 -14
- data/dependencies/libvorbis/vorbisenc-uninstalled.pc.in +0 -14
- data/dependencies/libvorbis/vorbisenc.pc.in +0 -14
- data/dependencies/libvorbis/vorbisfile-uninstalled.pc.in +0 -14
- data/dependencies/libvorbis/vorbisfile.pc.in +0 -14
- data/dependencies/libvorbis/vq/16.vqs +0 -77
- data/dependencies/libvorbis/vq/16u.vqs +0 -71
- data/dependencies/libvorbis/vq/44c-1.vqs +0 -63
- data/dependencies/libvorbis/vq/44c0.vqs +0 -65
- data/dependencies/libvorbis/vq/44c1.vqs +0 -66
- data/dependencies/libvorbis/vq/44c2.vqs +0 -37
- data/dependencies/libvorbis/vq/44c3.vqs +0 -36
- data/dependencies/libvorbis/vq/44c4.vqs +0 -36
- data/dependencies/libvorbis/vq/44c5.vqs +0 -37
- data/dependencies/libvorbis/vq/44c6.vqs +0 -37
- data/dependencies/libvorbis/vq/44c7.vqs +0 -38
- data/dependencies/libvorbis/vq/44c8.vqs +0 -39
- data/dependencies/libvorbis/vq/44c9.vqs +0 -37
- data/dependencies/libvorbis/vq/44u0.vqs +0 -33
- data/dependencies/libvorbis/vq/44u1.vqs +0 -33
- data/dependencies/libvorbis/vq/44u2.vqs +0 -32
- data/dependencies/libvorbis/vq/44u3.vqs +0 -33
- data/dependencies/libvorbis/vq/44u4.vqs +0 -33
- data/dependencies/libvorbis/vq/44u5.vqs +0 -35
- data/dependencies/libvorbis/vq/44u6.vqs +0 -35
- data/dependencies/libvorbis/vq/44u7.vqs +0 -34
- data/dependencies/libvorbis/vq/44u8.vqs +0 -35
- data/dependencies/libvorbis/vq/44u9.vqs +0 -36
- data/dependencies/libvorbis/vq/8.vqs +0 -43
- data/dependencies/libvorbis/vq/8u.vqs +0 -41
- data/dependencies/libvorbis/vq/Makefile +0 -532
- data/dependencies/libvorbis/vq/Makefile.am +0 -34
- data/dependencies/libvorbis/vq/Makefile.in +0 -532
- data/dependencies/libvorbis/vq/auxpartition.pl +0 -71
- data/dependencies/libvorbis/vq/bookutil.c +0 -717
- data/dependencies/libvorbis/vq/bookutil.h +0 -43
- data/dependencies/libvorbis/vq/build.c +0 -195
- data/dependencies/libvorbis/vq/cascade.c +0 -91
- data/dependencies/libvorbis/vq/distribution.c +0 -248
- data/dependencies/libvorbis/vq/floor_11.vqs +0 -10
- data/dependencies/libvorbis/vq/floor_22.vqs +0 -27
- data/dependencies/libvorbis/vq/floor_44.vqs +0 -83
- data/dependencies/libvorbis/vq/genericdata.c +0 -61
- data/dependencies/libvorbis/vq/huffbuild.c +0 -201
- data/dependencies/libvorbis/vq/latticebuild.c +0 -177
- data/dependencies/libvorbis/vq/latticehint.c +0 -430
- data/dependencies/libvorbis/vq/latticepare.c +0 -595
- data/dependencies/libvorbis/vq/latticetune.c +0 -164
- data/dependencies/libvorbis/vq/localcodebook.h +0 -160
- data/dependencies/libvorbis/vq/lspdata.c +0 -157
- data/dependencies/libvorbis/vq/make_floor_books.pl +0 -108
- data/dependencies/libvorbis/vq/make_residue_books.pl +0 -187
- data/dependencies/libvorbis/vq/metrics.c +0 -295
- data/dependencies/libvorbis/vq/residue_entropy +0 -58
- data/dependencies/libvorbis/vq/residuedata.c +0 -160
- data/dependencies/libvorbis/vq/residuesplit.c +0 -282
- data/dependencies/libvorbis/vq/run.c +0 -216
- data/dependencies/libvorbis/vq/train.c +0 -364
- data/dependencies/libvorbis/vq/vqext.h +0 -34
- data/dependencies/libvorbis/vq/vqgen.c +0 -567
- data/dependencies/libvorbis/vq/vqgen.h +0 -85
- data/dependencies/libvorbis/vq/vqsplit.c +0 -612
- data/dependencies/libvorbis/vq/vqsplit.h +0 -37
- data/dependencies/libvorbis/win32/VS2003/libvorbis/libvorbis.vcproj +0 -467
- data/dependencies/libvorbis/win32/VS2003/libvorbisfile/libvorbisfile.def +0 -47
- data/dependencies/libvorbis/win32/VS2003/libvorbisfile/libvorbisfile.vcproj +0 -147
- data/dependencies/libvorbis/win32/VS2003/vorbisdec/vorbisdec.vcproj +0 -268
- data/dependencies/libvorbis/win32/VS2003/vorbisenc/vorbisenc.vcproj +0 -268
- data/dependencies/libvorbis/win32/VS2005/libvorbis/libvorbis.vcproj +0 -653
- data/dependencies/libvorbis/win32/VS2005/libvorbisfile/libvorbisfile.def +0 -47
- data/dependencies/libvorbis/win32/VS2005/libvorbisfile/libvorbisfile.vcproj +0 -219
- data/dependencies/libvorbis/win32/VS2005/vorbisdec/vorbisdec.vcproj +0 -389
- data/dependencies/libvorbis/win32/VS2005/vorbisenc/vorbisenc.vcproj +0 -390
- data/dependencies/libvorbis/win32/build_vorbis_dynamic.bat +0 -19
- data/dependencies/libvorbis/win32/build_vorbis_dynamic_debug.bat +0 -19
- data/dependencies/libvorbis/win32/build_vorbis_static.bat +0 -19
- data/dependencies/libvorbis/win32/build_vorbis_static_debug.bat +0 -19
- data/dependencies/libvorbis/win32/build_vorbisenc_dynamic.bat +0 -19
- data/dependencies/libvorbis/win32/build_vorbisenc_dynamic_debug.bat +0 -19
- data/dependencies/libvorbis/win32/build_vorbisenc_static.bat +0 -19
- data/dependencies/libvorbis/win32/build_vorbisenc_static_debug.bat +0 -19
- data/dependencies/libvorbis/win32/build_vorbisfile_dynamic.bat +0 -19
- data/dependencies/libvorbis/win32/build_vorbisfile_dynamic_debug.bat +0 -19
- data/dependencies/libvorbis/win32/build_vorbisfile_static.bat +0 -19
- data/dependencies/libvorbis/win32/build_vorbisfile_static_debug.bat +0 -19
- data/dependencies/libvorbis/win32/vorbis.def +0 -57
- data/dependencies/libvorbis/win32/vorbis.dsw +0 -101
- data/dependencies/libvorbis/win32/vorbis_dynamic.dsp +0 -281
- data/dependencies/libvorbis/win32/vorbis_static.dsp +0 -257
- data/dependencies/libvorbis/win32/vorbisenc.def +0 -13
- data/dependencies/libvorbis/win32/vorbisenc_dynamic.dsp +0 -121
- data/dependencies/libvorbis/win32/vorbisenc_static.dsp +0 -100
- data/dependencies/libvorbis/win32/vorbisfile.def +0 -41
- data/dependencies/libvorbis/win32/vorbisfile_dynamic.dsp +0 -119
- data/dependencies/libvorbis/win32/vorbisfile_static.dsp +0 -100
- data/dependencies/zlib/ChangeLog +0 -855
- data/dependencies/zlib/FAQ +0 -339
- data/dependencies/zlib/INDEX +0 -51
- data/dependencies/zlib/Makefile +0 -154
- data/dependencies/zlib/Makefile.in +0 -154
- data/dependencies/zlib/README +0 -125
- data/dependencies/zlib/adler32.c +0 -149
- data/dependencies/zlib/algorithm.txt +0 -209
- data/dependencies/zlib/amiga/Makefile.pup +0 -66
- data/dependencies/zlib/amiga/Makefile.sas +0 -65
- data/dependencies/zlib/as400/bndsrc +0 -132
- data/dependencies/zlib/as400/compile.clp +0 -123
- data/dependencies/zlib/as400/readme.txt +0 -111
- data/dependencies/zlib/as400/zlib.inc +0 -331
- data/dependencies/zlib/compress.c +0 -79
- data/dependencies/zlib/configure +0 -459
- data/dependencies/zlib/contrib/README.contrib +0 -71
- data/dependencies/zlib/contrib/ada/buffer_demo.adb +0 -106
- data/dependencies/zlib/contrib/ada/mtest.adb +0 -156
- data/dependencies/zlib/contrib/ada/read.adb +0 -156
- data/dependencies/zlib/contrib/ada/readme.txt +0 -65
- data/dependencies/zlib/contrib/ada/test.adb +0 -463
- data/dependencies/zlib/contrib/ada/zlib-streams.adb +0 -225
- data/dependencies/zlib/contrib/ada/zlib-streams.ads +0 -114
- data/dependencies/zlib/contrib/ada/zlib-thin.adb +0 -141
- data/dependencies/zlib/contrib/ada/zlib-thin.ads +0 -450
- data/dependencies/zlib/contrib/ada/zlib.adb +0 -701
- data/dependencies/zlib/contrib/ada/zlib.ads +0 -328
- data/dependencies/zlib/contrib/ada/zlib.gpr +0 -20
- data/dependencies/zlib/contrib/asm586/README.586 +0 -43
- data/dependencies/zlib/contrib/asm586/match.S +0 -364
- data/dependencies/zlib/contrib/asm686/README.686 +0 -34
- data/dependencies/zlib/contrib/asm686/match.S +0 -329
- data/dependencies/zlib/contrib/blast/Makefile +0 -8
- data/dependencies/zlib/contrib/blast/README +0 -4
- data/dependencies/zlib/contrib/blast/blast.c +0 -444
- data/dependencies/zlib/contrib/blast/blast.h +0 -71
- data/dependencies/zlib/contrib/blast/test.pk +0 -0
- data/dependencies/zlib/contrib/blast/test.txt +0 -1
- data/dependencies/zlib/contrib/delphi/ZLib.pas +0 -557
- data/dependencies/zlib/contrib/delphi/ZLibConst.pas +0 -11
- data/dependencies/zlib/contrib/delphi/readme.txt +0 -76
- data/dependencies/zlib/contrib/delphi/zlibd32.mak +0 -93
- data/dependencies/zlib/contrib/dotzlib/DotZLib.build +0 -33
- data/dependencies/zlib/contrib/dotzlib/DotZLib.chm +0 -0
- data/dependencies/zlib/contrib/dotzlib/DotZLib.sln +0 -21
- data/dependencies/zlib/contrib/dotzlib/DotZLib/AssemblyInfo.cs +0 -58
- data/dependencies/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs +0 -202
- data/dependencies/zlib/contrib/dotzlib/DotZLib/CircularBuffer.cs +0 -83
- data/dependencies/zlib/contrib/dotzlib/DotZLib/CodecBase.cs +0 -198
- data/dependencies/zlib/contrib/dotzlib/DotZLib/Deflater.cs +0 -106
- data/dependencies/zlib/contrib/dotzlib/DotZLib/DotZLib.cs +0 -288
- data/dependencies/zlib/contrib/dotzlib/DotZLib/DotZLib.csproj +0 -141
- data/dependencies/zlib/contrib/dotzlib/DotZLib/GZipStream.cs +0 -301
- data/dependencies/zlib/contrib/dotzlib/DotZLib/Inflater.cs +0 -105
- data/dependencies/zlib/contrib/dotzlib/DotZLib/UnitTests.cs +0 -274
- data/dependencies/zlib/contrib/dotzlib/LICENSE_1_0.txt +0 -23
- data/dependencies/zlib/contrib/dotzlib/readme.txt +0 -58
- data/dependencies/zlib/contrib/infback9/README +0 -1
- data/dependencies/zlib/contrib/infback9/infback9.c +0 -608
- data/dependencies/zlib/contrib/infback9/infback9.h +0 -37
- data/dependencies/zlib/contrib/infback9/inffix9.h +0 -107
- data/dependencies/zlib/contrib/infback9/inflate9.h +0 -47
- data/dependencies/zlib/contrib/infback9/inftree9.c +0 -323
- data/dependencies/zlib/contrib/infback9/inftree9.h +0 -55
- data/dependencies/zlib/contrib/inflate86/inffas86.c +0 -1157
- data/dependencies/zlib/contrib/inflate86/inffast.S +0 -1368
- data/dependencies/zlib/contrib/iostream/test.cpp +0 -24
- data/dependencies/zlib/contrib/iostream/zfstream.cpp +0 -329
- data/dependencies/zlib/contrib/iostream/zfstream.h +0 -128
- data/dependencies/zlib/contrib/iostream2/zstream.h +0 -307
- data/dependencies/zlib/contrib/iostream2/zstream_test.cpp +0 -25
- data/dependencies/zlib/contrib/iostream3/README +0 -35
- data/dependencies/zlib/contrib/iostream3/TODO +0 -17
- data/dependencies/zlib/contrib/iostream3/test.cc +0 -50
- data/dependencies/zlib/contrib/iostream3/zfstream.cc +0 -479
- data/dependencies/zlib/contrib/iostream3/zfstream.h +0 -466
- data/dependencies/zlib/contrib/masm686/match.asm +0 -413
- data/dependencies/zlib/contrib/masmx64/bld_ml64.bat +0 -2
- data/dependencies/zlib/contrib/masmx64/gvmat64.asm +0 -513
- data/dependencies/zlib/contrib/masmx64/gvmat64.obj +0 -0
- data/dependencies/zlib/contrib/masmx64/inffas8664.c +0 -186
- data/dependencies/zlib/contrib/masmx64/inffasx64.asm +0 -392
- data/dependencies/zlib/contrib/masmx64/inffasx64.obj +0 -0
- data/dependencies/zlib/contrib/masmx64/readme.txt +0 -28
- data/dependencies/zlib/contrib/masmx86/bld_ml32.bat +0 -2
- data/dependencies/zlib/contrib/masmx86/gvmat32.asm +0 -972
- data/dependencies/zlib/contrib/masmx86/gvmat32.obj +0 -0
- data/dependencies/zlib/contrib/masmx86/gvmat32c.c +0 -62
- data/dependencies/zlib/contrib/masmx86/inffas32.asm +0 -1083
- data/dependencies/zlib/contrib/masmx86/inffas32.obj +0 -0
- data/dependencies/zlib/contrib/masmx86/mkasm.bat +0 -3
- data/dependencies/zlib/contrib/masmx86/readme.txt +0 -21
- data/dependencies/zlib/contrib/minizip/ChangeLogUnzip +0 -67
- data/dependencies/zlib/contrib/minizip/Makefile +0 -25
- data/dependencies/zlib/contrib/minizip/crypt.h +0 -132
- data/dependencies/zlib/contrib/minizip/ioapi.c +0 -177
- data/dependencies/zlib/contrib/minizip/ioapi.h +0 -75
- data/dependencies/zlib/contrib/minizip/iowin32.c +0 -270
- data/dependencies/zlib/contrib/minizip/iowin32.h +0 -21
- data/dependencies/zlib/contrib/minizip/miniunz.c +0 -585
- data/dependencies/zlib/contrib/minizip/minizip.c +0 -420
- data/dependencies/zlib/contrib/minizip/mztools.c +0 -281
- data/dependencies/zlib/contrib/minizip/mztools.h +0 -31
- data/dependencies/zlib/contrib/minizip/unzip.c +0 -1598
- data/dependencies/zlib/contrib/minizip/unzip.h +0 -354
- data/dependencies/zlib/contrib/minizip/zip.c +0 -1219
- data/dependencies/zlib/contrib/minizip/zip.h +0 -235
- data/dependencies/zlib/contrib/pascal/example.pas +0 -599
- data/dependencies/zlib/contrib/pascal/readme.txt +0 -76
- data/dependencies/zlib/contrib/pascal/zlibd32.mak +0 -93
- data/dependencies/zlib/contrib/pascal/zlibpas.pas +0 -236
- data/dependencies/zlib/contrib/puff/Makefile +0 -8
- data/dependencies/zlib/contrib/puff/README +0 -63
- data/dependencies/zlib/contrib/puff/puff.c +0 -837
- data/dependencies/zlib/contrib/puff/puff.h +0 -31
- data/dependencies/zlib/contrib/puff/zeros.raw +0 -0
- data/dependencies/zlib/contrib/testzlib/testzlib.c +0 -275
- data/dependencies/zlib/contrib/testzlib/testzlib.txt +0 -10
- data/dependencies/zlib/contrib/untgz/Makefile +0 -14
- data/dependencies/zlib/contrib/untgz/Makefile.msc +0 -17
- data/dependencies/zlib/contrib/untgz/untgz.c +0 -674
- data/dependencies/zlib/contrib/vstudio/readme.txt +0 -73
- data/dependencies/zlib/contrib/vstudio/vc7/miniunz.vcproj +0 -126
- data/dependencies/zlib/contrib/vstudio/vc7/minizip.vcproj +0 -126
- data/dependencies/zlib/contrib/vstudio/vc7/testzlib.vcproj +0 -126
- data/dependencies/zlib/contrib/vstudio/vc7/zlib.rc +0 -32
- data/dependencies/zlib/contrib/vstudio/vc7/zlibstat.vcproj +0 -246
- data/dependencies/zlib/contrib/vstudio/vc7/zlibvc.def +0 -92
- data/dependencies/zlib/contrib/vstudio/vc7/zlibvc.sln +0 -78
- data/dependencies/zlib/contrib/vstudio/vc7/zlibvc.vcproj +0 -445
- data/dependencies/zlib/contrib/vstudio/vc8/miniunz.vcproj +0 -566
- data/dependencies/zlib/contrib/vstudio/vc8/minizip.vcproj +0 -563
- data/dependencies/zlib/contrib/vstudio/vc8/testzlib.vcproj +0 -948
- data/dependencies/zlib/contrib/vstudio/vc8/testzlibdll.vcproj +0 -567
- data/dependencies/zlib/contrib/vstudio/vc8/zlib.rc +0 -32
- data/dependencies/zlib/contrib/vstudio/vc8/zlibstat.vcproj +0 -870
- data/dependencies/zlib/contrib/vstudio/vc8/zlibvc.def +0 -92
- data/dependencies/zlib/contrib/vstudio/vc8/zlibvc.sln +0 -144
- data/dependencies/zlib/contrib/vstudio/vc8/zlibvc.vcproj +0 -1219
- data/dependencies/zlib/crc32.c +0 -423
- data/dependencies/zlib/crc32.h +0 -441
- data/dependencies/zlib/deflate.c +0 -1736
- data/dependencies/zlib/deflate.h +0 -331
- data/dependencies/zlib/example.c +0 -565
- data/dependencies/zlib/examples/README.examples +0 -42
- data/dependencies/zlib/examples/fitblk.c +0 -233
- data/dependencies/zlib/examples/gun.c +0 -693
- data/dependencies/zlib/examples/gzappend.c +0 -500
- data/dependencies/zlib/examples/gzjoin.c +0 -448
- data/dependencies/zlib/examples/gzlog.c +0 -413
- data/dependencies/zlib/examples/gzlog.h +0 -58
- data/dependencies/zlib/examples/zlib_how.html +0 -523
- data/dependencies/zlib/examples/zpipe.c +0 -191
- data/dependencies/zlib/examples/zran.c +0 -404
- data/dependencies/zlib/gzio.c +0 -1026
- data/dependencies/zlib/infback.c +0 -623
- data/dependencies/zlib/inffast.c +0 -318
- data/dependencies/zlib/inffast.h +0 -11
- data/dependencies/zlib/inffixed.h +0 -94
- data/dependencies/zlib/inflate.c +0 -1368
- data/dependencies/zlib/inflate.h +0 -115
- data/dependencies/zlib/inftrees.c +0 -329
- data/dependencies/zlib/inftrees.h +0 -55
- data/dependencies/zlib/make_vms.com +0 -461
- data/dependencies/zlib/minigzip.c +0 -322
- data/dependencies/zlib/msdos/Makefile.bor +0 -109
- data/dependencies/zlib/msdos/Makefile.dj2 +0 -104
- data/dependencies/zlib/msdos/Makefile.emx +0 -69
- data/dependencies/zlib/msdos/Makefile.msc +0 -106
- data/dependencies/zlib/msdos/Makefile.tc +0 -94
- data/dependencies/zlib/old/Makefile.riscos +0 -151
- data/dependencies/zlib/old/README +0 -3
- data/dependencies/zlib/old/descrip.mms +0 -48
- data/dependencies/zlib/old/os2/Makefile.os2 +0 -136
- data/dependencies/zlib/old/os2/zlib.def +0 -51
- data/dependencies/zlib/old/visual-basic.txt +0 -160
- data/dependencies/zlib/old/zlib.html +0 -971
- data/dependencies/zlib/projects/README.projects +0 -41
- data/dependencies/zlib/projects/visualc6/README.txt +0 -73
- data/dependencies/zlib/projects/visualc6/example.dsp +0 -278
- data/dependencies/zlib/projects/visualc6/minigzip.dsp +0 -278
- data/dependencies/zlib/projects/visualc6/zlib.dsp +0 -609
- data/dependencies/zlib/projects/visualc6/zlib.dsw +0 -59
- data/dependencies/zlib/qnx/package.qpg +0 -141
- data/dependencies/zlib/trees.c +0 -1219
- data/dependencies/zlib/trees.h +0 -128
- data/dependencies/zlib/uncompr.c +0 -61
- data/dependencies/zlib/win32/DLL_FAQ.txt +0 -397
- data/dependencies/zlib/win32/Makefile.bor +0 -107
- data/dependencies/zlib/win32/Makefile.emx +0 -69
- data/dependencies/zlib/win32/Makefile.gcc +0 -141
- data/dependencies/zlib/win32/Makefile.msc +0 -126
- data/dependencies/zlib/win32/VisualC.txt +0 -3
- data/dependencies/zlib/win32/zlib.def +0 -60
- data/dependencies/zlib/win32/zlib1.rc +0 -39
- data/dependencies/zlib/zconf.h +0 -332
- data/dependencies/zlib/zconf.in.h +0 -332
- data/dependencies/zlib/zlib.3 +0 -159
- data/dependencies/zlib/zlib.h +0 -1357
- data/dependencies/zlib/zutil.c +0 -318
- data/dependencies/zlib/zutil.h +0 -269
- data/mac/English.lproj/InfoPlist.strings +0 -0
- data/mac/Gosu-Info.plist +0 -26
- data/mac/Gosu.icns +0 -0
- data/mac/Gosu.xcodeproj/jlnr.mode1v3 +0 -1420
- data/mac/Gosu.xcodeproj/jlnr.mode2v3 +0 -1464
- data/mac/Gosu.xcodeproj/jlnr.pbxuser +0 -1407
- data/mac/Gosu.xcodeproj/jlnr.perspectivev3 +0 -1573
- data/mac/Gosu.xcodeproj/project.pbxproj +0 -2758
- data/mac/RubyGosu App-Info.plist +0 -26
- data/windows/Gosu.sln +0 -34
- data/windows/Gosu.vcproj +0 -553
- data/windows/RubyGosu.vcproj +0 -241
@@ -1,343 +0,0 @@
|
|
1
|
-
|
2
|
-
/* pngerror.c - stub functions for i/o and memory allocation
|
3
|
-
*
|
4
|
-
* Last changed in libpng 1.2.22 [October 13, 2007]
|
5
|
-
* For conditions of distribution and use, see copyright notice in png.h
|
6
|
-
* Copyright (c) 1998-2007 Glenn Randers-Pehrson
|
7
|
-
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
8
|
-
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
9
|
-
*
|
10
|
-
* This file provides a location for all error handling. Users who
|
11
|
-
* need special error handling are expected to write replacement functions
|
12
|
-
* and use png_set_error_fn() to use those functions. See the instructions
|
13
|
-
* at each function.
|
14
|
-
*/
|
15
|
-
|
16
|
-
#define PNG_INTERNAL
|
17
|
-
#include "png.h"
|
18
|
-
|
19
|
-
#if defined(PNG_READ_SUPPORTED) || defined(PNG_WRITE_SUPPORTED)
|
20
|
-
static void /* PRIVATE */
|
21
|
-
png_default_error PNGARG((png_structp png_ptr,
|
22
|
-
png_const_charp error_message));
|
23
|
-
#ifndef PNG_NO_WARNINGS
|
24
|
-
static void /* PRIVATE */
|
25
|
-
png_default_warning PNGARG((png_structp png_ptr,
|
26
|
-
png_const_charp warning_message));
|
27
|
-
#endif /* PNG_NO_WARNINGS */
|
28
|
-
|
29
|
-
/* This function is called whenever there is a fatal error. This function
|
30
|
-
* should not be changed. If there is a need to handle errors differently,
|
31
|
-
* you should supply a replacement error function and use png_set_error_fn()
|
32
|
-
* to replace the error function at run-time.
|
33
|
-
*/
|
34
|
-
#ifndef PNG_NO_ERROR_TEXT
|
35
|
-
void PNGAPI
|
36
|
-
png_error(png_structp png_ptr, png_const_charp error_message)
|
37
|
-
{
|
38
|
-
#ifdef PNG_ERROR_NUMBERS_SUPPORTED
|
39
|
-
char msg[16];
|
40
|
-
if (png_ptr != NULL)
|
41
|
-
{
|
42
|
-
if (png_ptr->flags&
|
43
|
-
(PNG_FLAG_STRIP_ERROR_NUMBERS|PNG_FLAG_STRIP_ERROR_TEXT))
|
44
|
-
{
|
45
|
-
if (*error_message == '#')
|
46
|
-
{
|
47
|
-
int offset;
|
48
|
-
for (offset=1; offset<15; offset++)
|
49
|
-
if (*(error_message+offset) == ' ')
|
50
|
-
break;
|
51
|
-
if (png_ptr->flags&PNG_FLAG_STRIP_ERROR_TEXT)
|
52
|
-
{
|
53
|
-
int i;
|
54
|
-
for (i=0; i<offset-1; i++)
|
55
|
-
msg[i]=error_message[i+1];
|
56
|
-
msg[i]='\0';
|
57
|
-
error_message=msg;
|
58
|
-
}
|
59
|
-
else
|
60
|
-
error_message+=offset;
|
61
|
-
}
|
62
|
-
else
|
63
|
-
{
|
64
|
-
if (png_ptr->flags&PNG_FLAG_STRIP_ERROR_TEXT)
|
65
|
-
{
|
66
|
-
msg[0]='0';
|
67
|
-
msg[1]='\0';
|
68
|
-
error_message=msg;
|
69
|
-
}
|
70
|
-
}
|
71
|
-
}
|
72
|
-
}
|
73
|
-
#endif
|
74
|
-
if (png_ptr != NULL && png_ptr->error_fn != NULL)
|
75
|
-
(*(png_ptr->error_fn))(png_ptr, error_message);
|
76
|
-
|
77
|
-
/* If the custom handler doesn't exist, or if it returns,
|
78
|
-
use the default handler, which will not return. */
|
79
|
-
png_default_error(png_ptr, error_message);
|
80
|
-
}
|
81
|
-
#else
|
82
|
-
void PNGAPI
|
83
|
-
png_err(png_structp png_ptr)
|
84
|
-
{
|
85
|
-
if (png_ptr != NULL && png_ptr->error_fn != NULL)
|
86
|
-
(*(png_ptr->error_fn))(png_ptr, '\0');
|
87
|
-
|
88
|
-
/* If the custom handler doesn't exist, or if it returns,
|
89
|
-
use the default handler, which will not return. */
|
90
|
-
png_default_error(png_ptr, '\0');
|
91
|
-
}
|
92
|
-
#endif /* PNG_NO_ERROR_TEXT */
|
93
|
-
|
94
|
-
#ifndef PNG_NO_WARNINGS
|
95
|
-
/* This function is called whenever there is a non-fatal error. This function
|
96
|
-
* should not be changed. If there is a need to handle warnings differently,
|
97
|
-
* you should supply a replacement warning function and use
|
98
|
-
* png_set_error_fn() to replace the warning function at run-time.
|
99
|
-
*/
|
100
|
-
void PNGAPI
|
101
|
-
png_warning(png_structp png_ptr, png_const_charp warning_message)
|
102
|
-
{
|
103
|
-
int offset = 0;
|
104
|
-
if (png_ptr != NULL)
|
105
|
-
{
|
106
|
-
#ifdef PNG_ERROR_NUMBERS_SUPPORTED
|
107
|
-
if (png_ptr->flags&
|
108
|
-
(PNG_FLAG_STRIP_ERROR_NUMBERS|PNG_FLAG_STRIP_ERROR_TEXT))
|
109
|
-
#endif
|
110
|
-
{
|
111
|
-
if (*warning_message == '#')
|
112
|
-
{
|
113
|
-
for (offset=1; offset<15; offset++)
|
114
|
-
if (*(warning_message+offset) == ' ')
|
115
|
-
break;
|
116
|
-
}
|
117
|
-
}
|
118
|
-
if (png_ptr != NULL && png_ptr->warning_fn != NULL)
|
119
|
-
(*(png_ptr->warning_fn))(png_ptr, warning_message+offset);
|
120
|
-
}
|
121
|
-
else
|
122
|
-
png_default_warning(png_ptr, warning_message+offset);
|
123
|
-
}
|
124
|
-
#endif /* PNG_NO_WARNINGS */
|
125
|
-
|
126
|
-
|
127
|
-
/* These utilities are used internally to build an error message that relates
|
128
|
-
* to the current chunk. The chunk name comes from png_ptr->chunk_name,
|
129
|
-
* this is used to prefix the message. The message is limited in length
|
130
|
-
* to 63 bytes, the name characters are output as hex digits wrapped in []
|
131
|
-
* if the character is invalid.
|
132
|
-
*/
|
133
|
-
#define isnonalpha(c) ((c) < 65 || (c) > 122 || ((c) > 90 && (c) < 97))
|
134
|
-
static PNG_CONST char png_digit[16] = {
|
135
|
-
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
|
136
|
-
'A', 'B', 'C', 'D', 'E', 'F'
|
137
|
-
};
|
138
|
-
|
139
|
-
#define PNG_MAX_ERROR_TEXT 64
|
140
|
-
|
141
|
-
#if !defined(PNG_NO_WARNINGS) || !defined(PNG_NO_ERROR_TEXT)
|
142
|
-
static void /* PRIVATE */
|
143
|
-
png_format_buffer(png_structp png_ptr, png_charp buffer, png_const_charp
|
144
|
-
error_message)
|
145
|
-
{
|
146
|
-
int iout = 0, iin = 0;
|
147
|
-
|
148
|
-
while (iin < 4)
|
149
|
-
{
|
150
|
-
int c = png_ptr->chunk_name[iin++];
|
151
|
-
if (isnonalpha(c))
|
152
|
-
{
|
153
|
-
buffer[iout++] = '[';
|
154
|
-
buffer[iout++] = png_digit[(c & 0xf0) >> 4];
|
155
|
-
buffer[iout++] = png_digit[c & 0x0f];
|
156
|
-
buffer[iout++] = ']';
|
157
|
-
}
|
158
|
-
else
|
159
|
-
{
|
160
|
-
buffer[iout++] = (png_byte)c;
|
161
|
-
}
|
162
|
-
}
|
163
|
-
|
164
|
-
if (error_message == NULL)
|
165
|
-
buffer[iout] = '\0';
|
166
|
-
else
|
167
|
-
{
|
168
|
-
buffer[iout++] = ':';
|
169
|
-
buffer[iout++] = ' ';
|
170
|
-
png_memcpy(buffer+iout, error_message, PNG_MAX_ERROR_TEXT);
|
171
|
-
buffer[iout+PNG_MAX_ERROR_TEXT-1] = '\0';
|
172
|
-
}
|
173
|
-
}
|
174
|
-
|
175
|
-
#ifdef PNG_READ_SUPPORTED
|
176
|
-
void PNGAPI
|
177
|
-
png_chunk_error(png_structp png_ptr, png_const_charp error_message)
|
178
|
-
{
|
179
|
-
char msg[18+PNG_MAX_ERROR_TEXT];
|
180
|
-
if (png_ptr == NULL)
|
181
|
-
png_error(png_ptr, error_message);
|
182
|
-
else
|
183
|
-
{
|
184
|
-
png_format_buffer(png_ptr, msg, error_message);
|
185
|
-
png_error(png_ptr, msg);
|
186
|
-
}
|
187
|
-
}
|
188
|
-
#endif /* PNG_READ_SUPPORTED */
|
189
|
-
#endif /* !defined(PNG_NO_WARNINGS) || !defined(PNG_NO_ERROR_TEXT) */
|
190
|
-
|
191
|
-
#ifndef PNG_NO_WARNINGS
|
192
|
-
void PNGAPI
|
193
|
-
png_chunk_warning(png_structp png_ptr, png_const_charp warning_message)
|
194
|
-
{
|
195
|
-
char msg[18+PNG_MAX_ERROR_TEXT];
|
196
|
-
if (png_ptr == NULL)
|
197
|
-
png_warning(png_ptr, warning_message);
|
198
|
-
else
|
199
|
-
{
|
200
|
-
png_format_buffer(png_ptr, msg, warning_message);
|
201
|
-
png_warning(png_ptr, msg);
|
202
|
-
}
|
203
|
-
}
|
204
|
-
#endif /* PNG_NO_WARNINGS */
|
205
|
-
|
206
|
-
|
207
|
-
/* This is the default error handling function. Note that replacements for
|
208
|
-
* this function MUST NOT RETURN, or the program will likely crash. This
|
209
|
-
* function is used by default, or if the program supplies NULL for the
|
210
|
-
* error function pointer in png_set_error_fn().
|
211
|
-
*/
|
212
|
-
static void /* PRIVATE */
|
213
|
-
png_default_error(png_structp png_ptr, png_const_charp error_message)
|
214
|
-
{
|
215
|
-
#ifndef PNG_NO_CONSOLE_IO
|
216
|
-
#ifdef PNG_ERROR_NUMBERS_SUPPORTED
|
217
|
-
if (*error_message == '#')
|
218
|
-
{
|
219
|
-
int offset;
|
220
|
-
char error_number[16];
|
221
|
-
for (offset=0; offset<15; offset++)
|
222
|
-
{
|
223
|
-
error_number[offset] = *(error_message+offset+1);
|
224
|
-
if (*(error_message+offset) == ' ')
|
225
|
-
break;
|
226
|
-
}
|
227
|
-
if((offset > 1) && (offset < 15))
|
228
|
-
{
|
229
|
-
error_number[offset-1]='\0';
|
230
|
-
fprintf(stderr, "libpng error no. %s: %s\n", error_number,
|
231
|
-
error_message+offset);
|
232
|
-
}
|
233
|
-
else
|
234
|
-
fprintf(stderr, "libpng error: %s, offset=%d\n", error_message,offset);
|
235
|
-
}
|
236
|
-
else
|
237
|
-
#endif
|
238
|
-
fprintf(stderr, "libpng error: %s\n", error_message);
|
239
|
-
#endif
|
240
|
-
|
241
|
-
#ifdef PNG_SETJMP_SUPPORTED
|
242
|
-
if (png_ptr)
|
243
|
-
{
|
244
|
-
# ifdef USE_FAR_KEYWORD
|
245
|
-
{
|
246
|
-
jmp_buf jmpbuf;
|
247
|
-
png_memcpy(jmpbuf, png_ptr->jmpbuf, png_sizeof(jmp_buf));
|
248
|
-
longjmp(jmpbuf, 1);
|
249
|
-
}
|
250
|
-
# else
|
251
|
-
longjmp(png_ptr->jmpbuf, 1);
|
252
|
-
# endif
|
253
|
-
}
|
254
|
-
#else
|
255
|
-
PNG_ABORT();
|
256
|
-
#endif
|
257
|
-
#ifdef PNG_NO_CONSOLE_IO
|
258
|
-
error_message = error_message; /* make compiler happy */
|
259
|
-
#endif
|
260
|
-
}
|
261
|
-
|
262
|
-
#ifndef PNG_NO_WARNINGS
|
263
|
-
/* This function is called when there is a warning, but the library thinks
|
264
|
-
* it can continue anyway. Replacement functions don't have to do anything
|
265
|
-
* here if you don't want them to. In the default configuration, png_ptr is
|
266
|
-
* not used, but it is passed in case it may be useful.
|
267
|
-
*/
|
268
|
-
static void /* PRIVATE */
|
269
|
-
png_default_warning(png_structp png_ptr, png_const_charp warning_message)
|
270
|
-
{
|
271
|
-
#ifndef PNG_NO_CONSOLE_IO
|
272
|
-
# ifdef PNG_ERROR_NUMBERS_SUPPORTED
|
273
|
-
if (*warning_message == '#')
|
274
|
-
{
|
275
|
-
int offset;
|
276
|
-
char warning_number[16];
|
277
|
-
for (offset=0; offset<15; offset++)
|
278
|
-
{
|
279
|
-
warning_number[offset]=*(warning_message+offset+1);
|
280
|
-
if (*(warning_message+offset) == ' ')
|
281
|
-
break;
|
282
|
-
}
|
283
|
-
if((offset > 1) && (offset < 15))
|
284
|
-
{
|
285
|
-
warning_number[offset-1]='\0';
|
286
|
-
fprintf(stderr, "libpng warning no. %s: %s\n", warning_number,
|
287
|
-
warning_message+offset);
|
288
|
-
}
|
289
|
-
else
|
290
|
-
fprintf(stderr, "libpng warning: %s\n", warning_message);
|
291
|
-
}
|
292
|
-
else
|
293
|
-
# endif
|
294
|
-
fprintf(stderr, "libpng warning: %s\n", warning_message);
|
295
|
-
#else
|
296
|
-
warning_message = warning_message; /* make compiler happy */
|
297
|
-
#endif
|
298
|
-
png_ptr = png_ptr; /* make compiler happy */
|
299
|
-
}
|
300
|
-
#endif /* PNG_NO_WARNINGS */
|
301
|
-
|
302
|
-
/* This function is called when the application wants to use another method
|
303
|
-
* of handling errors and warnings. Note that the error function MUST NOT
|
304
|
-
* return to the calling routine or serious problems will occur. The return
|
305
|
-
* method used in the default routine calls longjmp(png_ptr->jmpbuf, 1)
|
306
|
-
*/
|
307
|
-
void PNGAPI
|
308
|
-
png_set_error_fn(png_structp png_ptr, png_voidp error_ptr,
|
309
|
-
png_error_ptr error_fn, png_error_ptr warning_fn)
|
310
|
-
{
|
311
|
-
if (png_ptr == NULL)
|
312
|
-
return;
|
313
|
-
png_ptr->error_ptr = error_ptr;
|
314
|
-
png_ptr->error_fn = error_fn;
|
315
|
-
png_ptr->warning_fn = warning_fn;
|
316
|
-
}
|
317
|
-
|
318
|
-
|
319
|
-
/* This function returns a pointer to the error_ptr associated with the user
|
320
|
-
* functions. The application should free any memory associated with this
|
321
|
-
* pointer before png_write_destroy and png_read_destroy are called.
|
322
|
-
*/
|
323
|
-
png_voidp PNGAPI
|
324
|
-
png_get_error_ptr(png_structp png_ptr)
|
325
|
-
{
|
326
|
-
if (png_ptr == NULL)
|
327
|
-
return NULL;
|
328
|
-
return ((png_voidp)png_ptr->error_ptr);
|
329
|
-
}
|
330
|
-
|
331
|
-
|
332
|
-
#ifdef PNG_ERROR_NUMBERS_SUPPORTED
|
333
|
-
void PNGAPI
|
334
|
-
png_set_strip_error_numbers(png_structp png_ptr, png_uint_32 strip_mode)
|
335
|
-
{
|
336
|
-
if(png_ptr != NULL)
|
337
|
-
{
|
338
|
-
png_ptr->flags &=
|
339
|
-
((~(PNG_FLAG_STRIP_ERROR_NUMBERS|PNG_FLAG_STRIP_ERROR_TEXT))&strip_mode);
|
340
|
-
}
|
341
|
-
}
|
342
|
-
#endif
|
343
|
-
#endif /* PNG_READ_SUPPORTED || PNG_WRITE_SUPPORTED */
|
@@ -1,103 +0,0 @@
|
|
1
|
-
/* pnggccrd.c was removed from libpng-1.2.20. */
|
2
|
-
|
3
|
-
/* This code snippet is for use by configure's compilation test. */
|
4
|
-
|
5
|
-
#if (!defined _MSC_VER) && \
|
6
|
-
defined(PNG_ASSEMBLER_CODE_SUPPORTED) && \
|
7
|
-
defined(PNG_MMX_CODE_SUPPORTED)
|
8
|
-
|
9
|
-
int PNGAPI png_dummy_mmx_support(void);
|
10
|
-
|
11
|
-
static int _mmx_supported = 2; // 0: no MMX; 1: MMX supported; 2: not tested
|
12
|
-
|
13
|
-
int PNGAPI
|
14
|
-
png_dummy_mmx_support(void) __attribute__((noinline));
|
15
|
-
|
16
|
-
int PNGAPI
|
17
|
-
png_dummy_mmx_support(void)
|
18
|
-
{
|
19
|
-
int result;
|
20
|
-
#if defined(PNG_MMX_CODE_SUPPORTED) // superfluous, but what the heck
|
21
|
-
__asm__ __volatile__ (
|
22
|
-
#if defined(__x86_64__)
|
23
|
-
"pushq %%rbx \n\t" // rbx gets clobbered by CPUID instruction
|
24
|
-
"pushq %%rcx \n\t" // so does rcx...
|
25
|
-
"pushq %%rdx \n\t" // ...and rdx (but rcx & rdx safe on Linux)
|
26
|
-
"pushfq \n\t" // save Eflag to stack
|
27
|
-
"popq %%rax \n\t" // get Eflag from stack into rax
|
28
|
-
"movq %%rax, %%rcx \n\t" // make another copy of Eflag in rcx
|
29
|
-
"xorl $0x200000, %%eax \n\t" // toggle ID bit in Eflag (i.e., bit 21)
|
30
|
-
"pushq %%rax \n\t" // save modified Eflag back to stack
|
31
|
-
"popfq \n\t" // restore modified value to Eflag reg
|
32
|
-
"pushfq \n\t" // save Eflag to stack
|
33
|
-
"popq %%rax \n\t" // get Eflag from stack
|
34
|
-
"pushq %%rcx \n\t" // save original Eflag to stack
|
35
|
-
"popfq \n\t" // restore original Eflag
|
36
|
-
#else
|
37
|
-
"pushl %%ebx \n\t" // ebx gets clobbered by CPUID instruction
|
38
|
-
"pushl %%ecx \n\t" // so does ecx...
|
39
|
-
"pushl %%edx \n\t" // ...and edx (but ecx & edx safe on Linux)
|
40
|
-
"pushfl \n\t" // save Eflag to stack
|
41
|
-
"popl %%eax \n\t" // get Eflag from stack into eax
|
42
|
-
"movl %%eax, %%ecx \n\t" // make another copy of Eflag in ecx
|
43
|
-
"xorl $0x200000, %%eax \n\t" // toggle ID bit in Eflag (i.e., bit 21)
|
44
|
-
"pushl %%eax \n\t" // save modified Eflag back to stack
|
45
|
-
"popfl \n\t" // restore modified value to Eflag reg
|
46
|
-
"pushfl \n\t" // save Eflag to stack
|
47
|
-
"popl %%eax \n\t" // get Eflag from stack
|
48
|
-
"pushl %%ecx \n\t" // save original Eflag to stack
|
49
|
-
"popfl \n\t" // restore original Eflag
|
50
|
-
#endif
|
51
|
-
"xorl %%ecx, %%eax \n\t" // compare new Eflag with original Eflag
|
52
|
-
"jz 0f \n\t" // if same, CPUID instr. is not supported
|
53
|
-
|
54
|
-
"xorl %%eax, %%eax \n\t" // set eax to zero
|
55
|
-
// ".byte 0x0f, 0xa2 \n\t" // CPUID instruction (two-byte opcode)
|
56
|
-
"cpuid \n\t" // get the CPU identification info
|
57
|
-
"cmpl $1, %%eax \n\t" // make sure eax return non-zero value
|
58
|
-
"jl 0f \n\t" // if eax is zero, MMX is not supported
|
59
|
-
|
60
|
-
"xorl %%eax, %%eax \n\t" // set eax to zero and...
|
61
|
-
"incl %%eax \n\t" // ...increment eax to 1. This pair is
|
62
|
-
// faster than the instruction "mov eax, 1"
|
63
|
-
"cpuid \n\t" // get the CPU identification info again
|
64
|
-
"andl $0x800000, %%edx \n\t" // mask out all bits but MMX bit (23)
|
65
|
-
"cmpl $0, %%edx \n\t" // 0 = MMX not supported
|
66
|
-
"jz 0f \n\t" // non-zero = yes, MMX IS supported
|
67
|
-
|
68
|
-
"movl $1, %%eax \n\t" // set return value to 1
|
69
|
-
"jmp 1f \n\t" // DONE: have MMX support
|
70
|
-
|
71
|
-
"0: \n\t" // .NOT_SUPPORTED: target label for jump instructions
|
72
|
-
"movl $0, %%eax \n\t" // set return value to 0
|
73
|
-
"1: \n\t" // .RETURN: target label for jump instructions
|
74
|
-
#if defined(__x86_64__)
|
75
|
-
"popq %%rdx \n\t" // restore rdx
|
76
|
-
"popq %%rcx \n\t" // restore rcx
|
77
|
-
"popq %%rbx \n\t" // restore rbx
|
78
|
-
#else
|
79
|
-
"popl %%edx \n\t" // restore edx
|
80
|
-
"popl %%ecx \n\t" // restore ecx
|
81
|
-
"popl %%ebx \n\t" // restore ebx
|
82
|
-
#endif
|
83
|
-
|
84
|
-
// "ret \n\t" // DONE: no MMX support
|
85
|
-
// (fall through to standard C "ret")
|
86
|
-
|
87
|
-
: "=a" (result) // output list
|
88
|
-
|
89
|
-
: // any variables used on input (none)
|
90
|
-
|
91
|
-
// no clobber list
|
92
|
-
// , "%ebx", "%ecx", "%edx" // GRR: we handle these manually
|
93
|
-
// , "memory" // if write to a variable gcc thought was in a reg
|
94
|
-
// , "cc" // "condition codes" (flag bits)
|
95
|
-
);
|
96
|
-
_mmx_supported = result;
|
97
|
-
#else
|
98
|
-
_mmx_supported = 0;
|
99
|
-
#endif /* PNG_MMX_CODE_SUPPORTED */
|
100
|
-
|
101
|
-
return _mmx_supported;
|
102
|
-
}
|
103
|
-
#endif
|
@@ -1,901 +0,0 @@
|
|
1
|
-
|
2
|
-
/* pngget.c - retrieval of values from info struct
|
3
|
-
*
|
4
|
-
* Last changed in libpng 1.2.15 January 5, 2007
|
5
|
-
* For conditions of distribution and use, see copyright notice in png.h
|
6
|
-
* Copyright (c) 1998-2007 Glenn Randers-Pehrson
|
7
|
-
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
8
|
-
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
9
|
-
*/
|
10
|
-
|
11
|
-
#define PNG_INTERNAL
|
12
|
-
#include "png.h"
|
13
|
-
|
14
|
-
#if defined(PNG_READ_SUPPORTED) || defined(PNG_WRITE_SUPPORTED)
|
15
|
-
|
16
|
-
png_uint_32 PNGAPI
|
17
|
-
png_get_valid(png_structp png_ptr, png_infop info_ptr, png_uint_32 flag)
|
18
|
-
{
|
19
|
-
if (png_ptr != NULL && info_ptr != NULL)
|
20
|
-
return(info_ptr->valid & flag);
|
21
|
-
else
|
22
|
-
return(0);
|
23
|
-
}
|
24
|
-
|
25
|
-
png_uint_32 PNGAPI
|
26
|
-
png_get_rowbytes(png_structp png_ptr, png_infop info_ptr)
|
27
|
-
{
|
28
|
-
if (png_ptr != NULL && info_ptr != NULL)
|
29
|
-
return(info_ptr->rowbytes);
|
30
|
-
else
|
31
|
-
return(0);
|
32
|
-
}
|
33
|
-
|
34
|
-
#if defined(PNG_INFO_IMAGE_SUPPORTED)
|
35
|
-
png_bytepp PNGAPI
|
36
|
-
png_get_rows(png_structp png_ptr, png_infop info_ptr)
|
37
|
-
{
|
38
|
-
if (png_ptr != NULL && info_ptr != NULL)
|
39
|
-
return(info_ptr->row_pointers);
|
40
|
-
else
|
41
|
-
return(0);
|
42
|
-
}
|
43
|
-
#endif
|
44
|
-
|
45
|
-
#ifdef PNG_EASY_ACCESS_SUPPORTED
|
46
|
-
/* easy access to info, added in libpng-0.99 */
|
47
|
-
png_uint_32 PNGAPI
|
48
|
-
png_get_image_width(png_structp png_ptr, png_infop info_ptr)
|
49
|
-
{
|
50
|
-
if (png_ptr != NULL && info_ptr != NULL)
|
51
|
-
{
|
52
|
-
return info_ptr->width;
|
53
|
-
}
|
54
|
-
return (0);
|
55
|
-
}
|
56
|
-
|
57
|
-
png_uint_32 PNGAPI
|
58
|
-
png_get_image_height(png_structp png_ptr, png_infop info_ptr)
|
59
|
-
{
|
60
|
-
if (png_ptr != NULL && info_ptr != NULL)
|
61
|
-
{
|
62
|
-
return info_ptr->height;
|
63
|
-
}
|
64
|
-
return (0);
|
65
|
-
}
|
66
|
-
|
67
|
-
png_byte PNGAPI
|
68
|
-
png_get_bit_depth(png_structp png_ptr, png_infop info_ptr)
|
69
|
-
{
|
70
|
-
if (png_ptr != NULL && info_ptr != NULL)
|
71
|
-
{
|
72
|
-
return info_ptr->bit_depth;
|
73
|
-
}
|
74
|
-
return (0);
|
75
|
-
}
|
76
|
-
|
77
|
-
png_byte PNGAPI
|
78
|
-
png_get_color_type(png_structp png_ptr, png_infop info_ptr)
|
79
|
-
{
|
80
|
-
if (png_ptr != NULL && info_ptr != NULL)
|
81
|
-
{
|
82
|
-
return info_ptr->color_type;
|
83
|
-
}
|
84
|
-
return (0);
|
85
|
-
}
|
86
|
-
|
87
|
-
png_byte PNGAPI
|
88
|
-
png_get_filter_type(png_structp png_ptr, png_infop info_ptr)
|
89
|
-
{
|
90
|
-
if (png_ptr != NULL && info_ptr != NULL)
|
91
|
-
{
|
92
|
-
return info_ptr->filter_type;
|
93
|
-
}
|
94
|
-
return (0);
|
95
|
-
}
|
96
|
-
|
97
|
-
png_byte PNGAPI
|
98
|
-
png_get_interlace_type(png_structp png_ptr, png_infop info_ptr)
|
99
|
-
{
|
100
|
-
if (png_ptr != NULL && info_ptr != NULL)
|
101
|
-
{
|
102
|
-
return info_ptr->interlace_type;
|
103
|
-
}
|
104
|
-
return (0);
|
105
|
-
}
|
106
|
-
|
107
|
-
png_byte PNGAPI
|
108
|
-
png_get_compression_type(png_structp png_ptr, png_infop info_ptr)
|
109
|
-
{
|
110
|
-
if (png_ptr != NULL && info_ptr != NULL)
|
111
|
-
{
|
112
|
-
return info_ptr->compression_type;
|
113
|
-
}
|
114
|
-
return (0);
|
115
|
-
}
|
116
|
-
|
117
|
-
png_uint_32 PNGAPI
|
118
|
-
png_get_x_pixels_per_meter(png_structp png_ptr, png_infop info_ptr)
|
119
|
-
{
|
120
|
-
if (png_ptr != NULL && info_ptr != NULL)
|
121
|
-
#if defined(PNG_pHYs_SUPPORTED)
|
122
|
-
if (info_ptr->valid & PNG_INFO_pHYs)
|
123
|
-
{
|
124
|
-
png_debug1(1, "in %s retrieval function\n", "png_get_x_pixels_per_meter");
|
125
|
-
if(info_ptr->phys_unit_type != PNG_RESOLUTION_METER)
|
126
|
-
return (0);
|
127
|
-
else return (info_ptr->x_pixels_per_unit);
|
128
|
-
}
|
129
|
-
#else
|
130
|
-
return (0);
|
131
|
-
#endif
|
132
|
-
return (0);
|
133
|
-
}
|
134
|
-
|
135
|
-
png_uint_32 PNGAPI
|
136
|
-
png_get_y_pixels_per_meter(png_structp png_ptr, png_infop info_ptr)
|
137
|
-
{
|
138
|
-
if (png_ptr != NULL && info_ptr != NULL)
|
139
|
-
#if defined(PNG_pHYs_SUPPORTED)
|
140
|
-
if (info_ptr->valid & PNG_INFO_pHYs)
|
141
|
-
{
|
142
|
-
png_debug1(1, "in %s retrieval function\n", "png_get_y_pixels_per_meter");
|
143
|
-
if(info_ptr->phys_unit_type != PNG_RESOLUTION_METER)
|
144
|
-
return (0);
|
145
|
-
else return (info_ptr->y_pixels_per_unit);
|
146
|
-
}
|
147
|
-
#else
|
148
|
-
return (0);
|
149
|
-
#endif
|
150
|
-
return (0);
|
151
|
-
}
|
152
|
-
|
153
|
-
png_uint_32 PNGAPI
|
154
|
-
png_get_pixels_per_meter(png_structp png_ptr, png_infop info_ptr)
|
155
|
-
{
|
156
|
-
if (png_ptr != NULL && info_ptr != NULL)
|
157
|
-
#if defined(PNG_pHYs_SUPPORTED)
|
158
|
-
if (info_ptr->valid & PNG_INFO_pHYs)
|
159
|
-
{
|
160
|
-
png_debug1(1, "in %s retrieval function\n", "png_get_pixels_per_meter");
|
161
|
-
if(info_ptr->phys_unit_type != PNG_RESOLUTION_METER ||
|
162
|
-
info_ptr->x_pixels_per_unit != info_ptr->y_pixels_per_unit)
|
163
|
-
return (0);
|
164
|
-
else return (info_ptr->x_pixels_per_unit);
|
165
|
-
}
|
166
|
-
#else
|
167
|
-
return (0);
|
168
|
-
#endif
|
169
|
-
return (0);
|
170
|
-
}
|
171
|
-
|
172
|
-
#ifdef PNG_FLOATING_POINT_SUPPORTED
|
173
|
-
float PNGAPI
|
174
|
-
png_get_pixel_aspect_ratio(png_structp png_ptr, png_infop info_ptr)
|
175
|
-
{
|
176
|
-
if (png_ptr != NULL && info_ptr != NULL)
|
177
|
-
#if defined(PNG_pHYs_SUPPORTED)
|
178
|
-
if (info_ptr->valid & PNG_INFO_pHYs)
|
179
|
-
{
|
180
|
-
png_debug1(1, "in %s retrieval function\n", "png_get_aspect_ratio");
|
181
|
-
if (info_ptr->x_pixels_per_unit == 0)
|
182
|
-
return ((float)0.0);
|
183
|
-
else
|
184
|
-
return ((float)((float)info_ptr->y_pixels_per_unit
|
185
|
-
/(float)info_ptr->x_pixels_per_unit));
|
186
|
-
}
|
187
|
-
#else
|
188
|
-
return (0.0);
|
189
|
-
#endif
|
190
|
-
return ((float)0.0);
|
191
|
-
}
|
192
|
-
#endif
|
193
|
-
|
194
|
-
png_int_32 PNGAPI
|
195
|
-
png_get_x_offset_microns(png_structp png_ptr, png_infop info_ptr)
|
196
|
-
{
|
197
|
-
if (png_ptr != NULL && info_ptr != NULL)
|
198
|
-
#if defined(PNG_oFFs_SUPPORTED)
|
199
|
-
if (info_ptr->valid & PNG_INFO_oFFs)
|
200
|
-
{
|
201
|
-
png_debug1(1, "in %s retrieval function\n", "png_get_x_offset_microns");
|
202
|
-
if(info_ptr->offset_unit_type != PNG_OFFSET_MICROMETER)
|
203
|
-
return (0);
|
204
|
-
else return (info_ptr->x_offset);
|
205
|
-
}
|
206
|
-
#else
|
207
|
-
return (0);
|
208
|
-
#endif
|
209
|
-
return (0);
|
210
|
-
}
|
211
|
-
|
212
|
-
png_int_32 PNGAPI
|
213
|
-
png_get_y_offset_microns(png_structp png_ptr, png_infop info_ptr)
|
214
|
-
{
|
215
|
-
if (png_ptr != NULL && info_ptr != NULL)
|
216
|
-
#if defined(PNG_oFFs_SUPPORTED)
|
217
|
-
if (info_ptr->valid & PNG_INFO_oFFs)
|
218
|
-
{
|
219
|
-
png_debug1(1, "in %s retrieval function\n", "png_get_y_offset_microns");
|
220
|
-
if(info_ptr->offset_unit_type != PNG_OFFSET_MICROMETER)
|
221
|
-
return (0);
|
222
|
-
else return (info_ptr->y_offset);
|
223
|
-
}
|
224
|
-
#else
|
225
|
-
return (0);
|
226
|
-
#endif
|
227
|
-
return (0);
|
228
|
-
}
|
229
|
-
|
230
|
-
png_int_32 PNGAPI
|
231
|
-
png_get_x_offset_pixels(png_structp png_ptr, png_infop info_ptr)
|
232
|
-
{
|
233
|
-
if (png_ptr != NULL && info_ptr != NULL)
|
234
|
-
#if defined(PNG_oFFs_SUPPORTED)
|
235
|
-
if (info_ptr->valid & PNG_INFO_oFFs)
|
236
|
-
{
|
237
|
-
png_debug1(1, "in %s retrieval function\n", "png_get_x_offset_microns");
|
238
|
-
if(info_ptr->offset_unit_type != PNG_OFFSET_PIXEL)
|
239
|
-
return (0);
|
240
|
-
else return (info_ptr->x_offset);
|
241
|
-
}
|
242
|
-
#else
|
243
|
-
return (0);
|
244
|
-
#endif
|
245
|
-
return (0);
|
246
|
-
}
|
247
|
-
|
248
|
-
png_int_32 PNGAPI
|
249
|
-
png_get_y_offset_pixels(png_structp png_ptr, png_infop info_ptr)
|
250
|
-
{
|
251
|
-
if (png_ptr != NULL && info_ptr != NULL)
|
252
|
-
#if defined(PNG_oFFs_SUPPORTED)
|
253
|
-
if (info_ptr->valid & PNG_INFO_oFFs)
|
254
|
-
{
|
255
|
-
png_debug1(1, "in %s retrieval function\n", "png_get_y_offset_microns");
|
256
|
-
if(info_ptr->offset_unit_type != PNG_OFFSET_PIXEL)
|
257
|
-
return (0);
|
258
|
-
else return (info_ptr->y_offset);
|
259
|
-
}
|
260
|
-
#else
|
261
|
-
return (0);
|
262
|
-
#endif
|
263
|
-
return (0);
|
264
|
-
}
|
265
|
-
|
266
|
-
#if defined(PNG_INCH_CONVERSIONS) && defined(PNG_FLOATING_POINT_SUPPORTED)
|
267
|
-
png_uint_32 PNGAPI
|
268
|
-
png_get_pixels_per_inch(png_structp png_ptr, png_infop info_ptr)
|
269
|
-
{
|
270
|
-
return ((png_uint_32)((float)png_get_pixels_per_meter(png_ptr, info_ptr)
|
271
|
-
*.0254 +.5));
|
272
|
-
}
|
273
|
-
|
274
|
-
png_uint_32 PNGAPI
|
275
|
-
png_get_x_pixels_per_inch(png_structp png_ptr, png_infop info_ptr)
|
276
|
-
{
|
277
|
-
return ((png_uint_32)((float)png_get_x_pixels_per_meter(png_ptr, info_ptr)
|
278
|
-
*.0254 +.5));
|
279
|
-
}
|
280
|
-
|
281
|
-
png_uint_32 PNGAPI
|
282
|
-
png_get_y_pixels_per_inch(png_structp png_ptr, png_infop info_ptr)
|
283
|
-
{
|
284
|
-
return ((png_uint_32)((float)png_get_y_pixels_per_meter(png_ptr, info_ptr)
|
285
|
-
*.0254 +.5));
|
286
|
-
}
|
287
|
-
|
288
|
-
float PNGAPI
|
289
|
-
png_get_x_offset_inches(png_structp png_ptr, png_infop info_ptr)
|
290
|
-
{
|
291
|
-
return ((float)png_get_x_offset_microns(png_ptr, info_ptr)
|
292
|
-
*.00003937);
|
293
|
-
}
|
294
|
-
|
295
|
-
float PNGAPI
|
296
|
-
png_get_y_offset_inches(png_structp png_ptr, png_infop info_ptr)
|
297
|
-
{
|
298
|
-
return ((float)png_get_y_offset_microns(png_ptr, info_ptr)
|
299
|
-
*.00003937);
|
300
|
-
}
|
301
|
-
|
302
|
-
#if defined(PNG_pHYs_SUPPORTED)
|
303
|
-
png_uint_32 PNGAPI
|
304
|
-
png_get_pHYs_dpi(png_structp png_ptr, png_infop info_ptr,
|
305
|
-
png_uint_32 *res_x, png_uint_32 *res_y, int *unit_type)
|
306
|
-
{
|
307
|
-
png_uint_32 retval = 0;
|
308
|
-
|
309
|
-
if (png_ptr != NULL && info_ptr != NULL && (info_ptr->valid & PNG_INFO_pHYs))
|
310
|
-
{
|
311
|
-
png_debug1(1, "in %s retrieval function\n", "pHYs");
|
312
|
-
if (res_x != NULL)
|
313
|
-
{
|
314
|
-
*res_x = info_ptr->x_pixels_per_unit;
|
315
|
-
retval |= PNG_INFO_pHYs;
|
316
|
-
}
|
317
|
-
if (res_y != NULL)
|
318
|
-
{
|
319
|
-
*res_y = info_ptr->y_pixels_per_unit;
|
320
|
-
retval |= PNG_INFO_pHYs;
|
321
|
-
}
|
322
|
-
if (unit_type != NULL)
|
323
|
-
{
|
324
|
-
*unit_type = (int)info_ptr->phys_unit_type;
|
325
|
-
retval |= PNG_INFO_pHYs;
|
326
|
-
if(*unit_type == 1)
|
327
|
-
{
|
328
|
-
if (res_x != NULL) *res_x = (png_uint_32)(*res_x * .0254 + .50);
|
329
|
-
if (res_y != NULL) *res_y = (png_uint_32)(*res_y * .0254 + .50);
|
330
|
-
}
|
331
|
-
}
|
332
|
-
}
|
333
|
-
return (retval);
|
334
|
-
}
|
335
|
-
#endif /* PNG_pHYs_SUPPORTED */
|
336
|
-
#endif /* PNG_INCH_CONVERSIONS && PNG_FLOATING_POINT_SUPPORTED */
|
337
|
-
|
338
|
-
/* png_get_channels really belongs in here, too, but it's been around longer */
|
339
|
-
|
340
|
-
#endif /* PNG_EASY_ACCESS_SUPPORTED */
|
341
|
-
|
342
|
-
png_byte PNGAPI
|
343
|
-
png_get_channels(png_structp png_ptr, png_infop info_ptr)
|
344
|
-
{
|
345
|
-
if (png_ptr != NULL && info_ptr != NULL)
|
346
|
-
return(info_ptr->channels);
|
347
|
-
else
|
348
|
-
return (0);
|
349
|
-
}
|
350
|
-
|
351
|
-
png_bytep PNGAPI
|
352
|
-
png_get_signature(png_structp png_ptr, png_infop info_ptr)
|
353
|
-
{
|
354
|
-
if (png_ptr != NULL && info_ptr != NULL)
|
355
|
-
return(info_ptr->signature);
|
356
|
-
else
|
357
|
-
return (NULL);
|
358
|
-
}
|
359
|
-
|
360
|
-
#if defined(PNG_bKGD_SUPPORTED)
|
361
|
-
png_uint_32 PNGAPI
|
362
|
-
png_get_bKGD(png_structp png_ptr, png_infop info_ptr,
|
363
|
-
png_color_16p *background)
|
364
|
-
{
|
365
|
-
if (png_ptr != NULL && info_ptr != NULL && (info_ptr->valid & PNG_INFO_bKGD)
|
366
|
-
&& background != NULL)
|
367
|
-
{
|
368
|
-
png_debug1(1, "in %s retrieval function\n", "bKGD");
|
369
|
-
*background = &(info_ptr->background);
|
370
|
-
return (PNG_INFO_bKGD);
|
371
|
-
}
|
372
|
-
return (0);
|
373
|
-
}
|
374
|
-
#endif
|
375
|
-
|
376
|
-
#if defined(PNG_cHRM_SUPPORTED)
|
377
|
-
#ifdef PNG_FLOATING_POINT_SUPPORTED
|
378
|
-
png_uint_32 PNGAPI
|
379
|
-
png_get_cHRM(png_structp png_ptr, png_infop info_ptr,
|
380
|
-
double *white_x, double *white_y, double *red_x, double *red_y,
|
381
|
-
double *green_x, double *green_y, double *blue_x, double *blue_y)
|
382
|
-
{
|
383
|
-
if (png_ptr != NULL && info_ptr != NULL && (info_ptr->valid & PNG_INFO_cHRM))
|
384
|
-
{
|
385
|
-
png_debug1(1, "in %s retrieval function\n", "cHRM");
|
386
|
-
if (white_x != NULL)
|
387
|
-
*white_x = (double)info_ptr->x_white;
|
388
|
-
if (white_y != NULL)
|
389
|
-
*white_y = (double)info_ptr->y_white;
|
390
|
-
if (red_x != NULL)
|
391
|
-
*red_x = (double)info_ptr->x_red;
|
392
|
-
if (red_y != NULL)
|
393
|
-
*red_y = (double)info_ptr->y_red;
|
394
|
-
if (green_x != NULL)
|
395
|
-
*green_x = (double)info_ptr->x_green;
|
396
|
-
if (green_y != NULL)
|
397
|
-
*green_y = (double)info_ptr->y_green;
|
398
|
-
if (blue_x != NULL)
|
399
|
-
*blue_x = (double)info_ptr->x_blue;
|
400
|
-
if (blue_y != NULL)
|
401
|
-
*blue_y = (double)info_ptr->y_blue;
|
402
|
-
return (PNG_INFO_cHRM);
|
403
|
-
}
|
404
|
-
return (0);
|
405
|
-
}
|
406
|
-
#endif
|
407
|
-
#ifdef PNG_FIXED_POINT_SUPPORTED
|
408
|
-
png_uint_32 PNGAPI
|
409
|
-
png_get_cHRM_fixed(png_structp png_ptr, png_infop info_ptr,
|
410
|
-
png_fixed_point *white_x, png_fixed_point *white_y, png_fixed_point *red_x,
|
411
|
-
png_fixed_point *red_y, png_fixed_point *green_x, png_fixed_point *green_y,
|
412
|
-
png_fixed_point *blue_x, png_fixed_point *blue_y)
|
413
|
-
{
|
414
|
-
if (png_ptr != NULL && info_ptr != NULL && (info_ptr->valid & PNG_INFO_cHRM))
|
415
|
-
{
|
416
|
-
png_debug1(1, "in %s retrieval function\n", "cHRM");
|
417
|
-
if (white_x != NULL)
|
418
|
-
*white_x = info_ptr->int_x_white;
|
419
|
-
if (white_y != NULL)
|
420
|
-
*white_y = info_ptr->int_y_white;
|
421
|
-
if (red_x != NULL)
|
422
|
-
*red_x = info_ptr->int_x_red;
|
423
|
-
if (red_y != NULL)
|
424
|
-
*red_y = info_ptr->int_y_red;
|
425
|
-
if (green_x != NULL)
|
426
|
-
*green_x = info_ptr->int_x_green;
|
427
|
-
if (green_y != NULL)
|
428
|
-
*green_y = info_ptr->int_y_green;
|
429
|
-
if (blue_x != NULL)
|
430
|
-
*blue_x = info_ptr->int_x_blue;
|
431
|
-
if (blue_y != NULL)
|
432
|
-
*blue_y = info_ptr->int_y_blue;
|
433
|
-
return (PNG_INFO_cHRM);
|
434
|
-
}
|
435
|
-
return (0);
|
436
|
-
}
|
437
|
-
#endif
|
438
|
-
#endif
|
439
|
-
|
440
|
-
#if defined(PNG_gAMA_SUPPORTED)
|
441
|
-
#ifdef PNG_FLOATING_POINT_SUPPORTED
|
442
|
-
png_uint_32 PNGAPI
|
443
|
-
png_get_gAMA(png_structp png_ptr, png_infop info_ptr, double *file_gamma)
|
444
|
-
{
|
445
|
-
if (png_ptr != NULL && info_ptr != NULL && (info_ptr->valid & PNG_INFO_gAMA)
|
446
|
-
&& file_gamma != NULL)
|
447
|
-
{
|
448
|
-
png_debug1(1, "in %s retrieval function\n", "gAMA");
|
449
|
-
*file_gamma = (double)info_ptr->gamma;
|
450
|
-
return (PNG_INFO_gAMA);
|
451
|
-
}
|
452
|
-
return (0);
|
453
|
-
}
|
454
|
-
#endif
|
455
|
-
#ifdef PNG_FIXED_POINT_SUPPORTED
|
456
|
-
png_uint_32 PNGAPI
|
457
|
-
png_get_gAMA_fixed(png_structp png_ptr, png_infop info_ptr,
|
458
|
-
png_fixed_point *int_file_gamma)
|
459
|
-
{
|
460
|
-
if (png_ptr != NULL && info_ptr != NULL && (info_ptr->valid & PNG_INFO_gAMA)
|
461
|
-
&& int_file_gamma != NULL)
|
462
|
-
{
|
463
|
-
png_debug1(1, "in %s retrieval function\n", "gAMA");
|
464
|
-
*int_file_gamma = info_ptr->int_gamma;
|
465
|
-
return (PNG_INFO_gAMA);
|
466
|
-
}
|
467
|
-
return (0);
|
468
|
-
}
|
469
|
-
#endif
|
470
|
-
#endif
|
471
|
-
|
472
|
-
#if defined(PNG_sRGB_SUPPORTED)
|
473
|
-
png_uint_32 PNGAPI
|
474
|
-
png_get_sRGB(png_structp png_ptr, png_infop info_ptr, int *file_srgb_intent)
|
475
|
-
{
|
476
|
-
if (png_ptr != NULL && info_ptr != NULL && (info_ptr->valid & PNG_INFO_sRGB)
|
477
|
-
&& file_srgb_intent != NULL)
|
478
|
-
{
|
479
|
-
png_debug1(1, "in %s retrieval function\n", "sRGB");
|
480
|
-
*file_srgb_intent = (int)info_ptr->srgb_intent;
|
481
|
-
return (PNG_INFO_sRGB);
|
482
|
-
}
|
483
|
-
return (0);
|
484
|
-
}
|
485
|
-
#endif
|
486
|
-
|
487
|
-
#if defined(PNG_iCCP_SUPPORTED)
|
488
|
-
png_uint_32 PNGAPI
|
489
|
-
png_get_iCCP(png_structp png_ptr, png_infop info_ptr,
|
490
|
-
png_charpp name, int *compression_type,
|
491
|
-
png_charpp profile, png_uint_32 *proflen)
|
492
|
-
{
|
493
|
-
if (png_ptr != NULL && info_ptr != NULL && (info_ptr->valid & PNG_INFO_iCCP)
|
494
|
-
&& name != NULL && profile != NULL && proflen != NULL)
|
495
|
-
{
|
496
|
-
png_debug1(1, "in %s retrieval function\n", "iCCP");
|
497
|
-
*name = info_ptr->iccp_name;
|
498
|
-
*profile = info_ptr->iccp_profile;
|
499
|
-
/* compression_type is a dummy so the API won't have to change
|
500
|
-
if we introduce multiple compression types later. */
|
501
|
-
*proflen = (int)info_ptr->iccp_proflen;
|
502
|
-
*compression_type = (int)info_ptr->iccp_compression;
|
503
|
-
return (PNG_INFO_iCCP);
|
504
|
-
}
|
505
|
-
return (0);
|
506
|
-
}
|
507
|
-
#endif
|
508
|
-
|
509
|
-
#if defined(PNG_sPLT_SUPPORTED)
|
510
|
-
png_uint_32 PNGAPI
|
511
|
-
png_get_sPLT(png_structp png_ptr, png_infop info_ptr,
|
512
|
-
png_sPLT_tpp spalettes)
|
513
|
-
{
|
514
|
-
if (png_ptr != NULL && info_ptr != NULL && spalettes != NULL)
|
515
|
-
{
|
516
|
-
*spalettes = info_ptr->splt_palettes;
|
517
|
-
return ((png_uint_32)info_ptr->splt_palettes_num);
|
518
|
-
}
|
519
|
-
return (0);
|
520
|
-
}
|
521
|
-
#endif
|
522
|
-
|
523
|
-
#if defined(PNG_hIST_SUPPORTED)
|
524
|
-
png_uint_32 PNGAPI
|
525
|
-
png_get_hIST(png_structp png_ptr, png_infop info_ptr, png_uint_16p *hist)
|
526
|
-
{
|
527
|
-
if (png_ptr != NULL && info_ptr != NULL && (info_ptr->valid & PNG_INFO_hIST)
|
528
|
-
&& hist != NULL)
|
529
|
-
{
|
530
|
-
png_debug1(1, "in %s retrieval function\n", "hIST");
|
531
|
-
*hist = info_ptr->hist;
|
532
|
-
return (PNG_INFO_hIST);
|
533
|
-
}
|
534
|
-
return (0);
|
535
|
-
}
|
536
|
-
#endif
|
537
|
-
|
538
|
-
png_uint_32 PNGAPI
|
539
|
-
png_get_IHDR(png_structp png_ptr, png_infop info_ptr,
|
540
|
-
png_uint_32 *width, png_uint_32 *height, int *bit_depth,
|
541
|
-
int *color_type, int *interlace_type, int *compression_type,
|
542
|
-
int *filter_type)
|
543
|
-
|
544
|
-
{
|
545
|
-
if (png_ptr != NULL && info_ptr != NULL && width != NULL && height != NULL &&
|
546
|
-
bit_depth != NULL && color_type != NULL)
|
547
|
-
{
|
548
|
-
png_debug1(1, "in %s retrieval function\n", "IHDR");
|
549
|
-
*width = info_ptr->width;
|
550
|
-
*height = info_ptr->height;
|
551
|
-
*bit_depth = info_ptr->bit_depth;
|
552
|
-
if (info_ptr->bit_depth < 1 || info_ptr->bit_depth > 16)
|
553
|
-
png_error(png_ptr, "Invalid bit depth");
|
554
|
-
*color_type = info_ptr->color_type;
|
555
|
-
if (info_ptr->color_type > 6)
|
556
|
-
png_error(png_ptr, "Invalid color type");
|
557
|
-
if (compression_type != NULL)
|
558
|
-
*compression_type = info_ptr->compression_type;
|
559
|
-
if (filter_type != NULL)
|
560
|
-
*filter_type = info_ptr->filter_type;
|
561
|
-
if (interlace_type != NULL)
|
562
|
-
*interlace_type = info_ptr->interlace_type;
|
563
|
-
|
564
|
-
/* check for potential overflow of rowbytes */
|
565
|
-
if (*width == 0 || *width > PNG_UINT_31_MAX)
|
566
|
-
png_error(png_ptr, "Invalid image width");
|
567
|
-
if (*height == 0 || *height > PNG_UINT_31_MAX)
|
568
|
-
png_error(png_ptr, "Invalid image height");
|
569
|
-
if (info_ptr->width > (PNG_UINT_32_MAX
|
570
|
-
>> 3) /* 8-byte RGBA pixels */
|
571
|
-
- 64 /* bigrowbuf hack */
|
572
|
-
- 1 /* filter byte */
|
573
|
-
- 7*8 /* rounding of width to multiple of 8 pixels */
|
574
|
-
- 8) /* extra max_pixel_depth pad */
|
575
|
-
{
|
576
|
-
png_warning(png_ptr,
|
577
|
-
"Width too large for libpng to process image data.");
|
578
|
-
}
|
579
|
-
return (1);
|
580
|
-
}
|
581
|
-
return (0);
|
582
|
-
}
|
583
|
-
|
584
|
-
#if defined(PNG_oFFs_SUPPORTED)
|
585
|
-
png_uint_32 PNGAPI
|
586
|
-
png_get_oFFs(png_structp png_ptr, png_infop info_ptr,
|
587
|
-
png_int_32 *offset_x, png_int_32 *offset_y, int *unit_type)
|
588
|
-
{
|
589
|
-
if (png_ptr != NULL && info_ptr != NULL && (info_ptr->valid & PNG_INFO_oFFs)
|
590
|
-
&& offset_x != NULL && offset_y != NULL && unit_type != NULL)
|
591
|
-
{
|
592
|
-
png_debug1(1, "in %s retrieval function\n", "oFFs");
|
593
|
-
*offset_x = info_ptr->x_offset;
|
594
|
-
*offset_y = info_ptr->y_offset;
|
595
|
-
*unit_type = (int)info_ptr->offset_unit_type;
|
596
|
-
return (PNG_INFO_oFFs);
|
597
|
-
}
|
598
|
-
return (0);
|
599
|
-
}
|
600
|
-
#endif
|
601
|
-
|
602
|
-
#if defined(PNG_pCAL_SUPPORTED)
|
603
|
-
png_uint_32 PNGAPI
|
604
|
-
png_get_pCAL(png_structp png_ptr, png_infop info_ptr,
|
605
|
-
png_charp *purpose, png_int_32 *X0, png_int_32 *X1, int *type, int *nparams,
|
606
|
-
png_charp *units, png_charpp *params)
|
607
|
-
{
|
608
|
-
if (png_ptr != NULL && info_ptr != NULL && (info_ptr->valid & PNG_INFO_pCAL)
|
609
|
-
&& purpose != NULL && X0 != NULL && X1 != NULL && type != NULL &&
|
610
|
-
nparams != NULL && units != NULL && params != NULL)
|
611
|
-
{
|
612
|
-
png_debug1(1, "in %s retrieval function\n", "pCAL");
|
613
|
-
*purpose = info_ptr->pcal_purpose;
|
614
|
-
*X0 = info_ptr->pcal_X0;
|
615
|
-
*X1 = info_ptr->pcal_X1;
|
616
|
-
*type = (int)info_ptr->pcal_type;
|
617
|
-
*nparams = (int)info_ptr->pcal_nparams;
|
618
|
-
*units = info_ptr->pcal_units;
|
619
|
-
*params = info_ptr->pcal_params;
|
620
|
-
return (PNG_INFO_pCAL);
|
621
|
-
}
|
622
|
-
return (0);
|
623
|
-
}
|
624
|
-
#endif
|
625
|
-
|
626
|
-
#if defined(PNG_sCAL_SUPPORTED)
|
627
|
-
#ifdef PNG_FLOATING_POINT_SUPPORTED
|
628
|
-
png_uint_32 PNGAPI
|
629
|
-
png_get_sCAL(png_structp png_ptr, png_infop info_ptr,
|
630
|
-
int *unit, double *width, double *height)
|
631
|
-
{
|
632
|
-
if (png_ptr != NULL && info_ptr != NULL &&
|
633
|
-
(info_ptr->valid & PNG_INFO_sCAL))
|
634
|
-
{
|
635
|
-
*unit = info_ptr->scal_unit;
|
636
|
-
*width = info_ptr->scal_pixel_width;
|
637
|
-
*height = info_ptr->scal_pixel_height;
|
638
|
-
return (PNG_INFO_sCAL);
|
639
|
-
}
|
640
|
-
return(0);
|
641
|
-
}
|
642
|
-
#else
|
643
|
-
#ifdef PNG_FIXED_POINT_SUPPORTED
|
644
|
-
png_uint_32 PNGAPI
|
645
|
-
png_get_sCAL_s(png_structp png_ptr, png_infop info_ptr,
|
646
|
-
int *unit, png_charpp width, png_charpp height)
|
647
|
-
{
|
648
|
-
if (png_ptr != NULL && info_ptr != NULL &&
|
649
|
-
(info_ptr->valid & PNG_INFO_sCAL))
|
650
|
-
{
|
651
|
-
*unit = info_ptr->scal_unit;
|
652
|
-
*width = info_ptr->scal_s_width;
|
653
|
-
*height = info_ptr->scal_s_height;
|
654
|
-
return (PNG_INFO_sCAL);
|
655
|
-
}
|
656
|
-
return(0);
|
657
|
-
}
|
658
|
-
#endif
|
659
|
-
#endif
|
660
|
-
#endif
|
661
|
-
|
662
|
-
#if defined(PNG_pHYs_SUPPORTED)
|
663
|
-
png_uint_32 PNGAPI
|
664
|
-
png_get_pHYs(png_structp png_ptr, png_infop info_ptr,
|
665
|
-
png_uint_32 *res_x, png_uint_32 *res_y, int *unit_type)
|
666
|
-
{
|
667
|
-
png_uint_32 retval = 0;
|
668
|
-
|
669
|
-
if (png_ptr != NULL && info_ptr != NULL &&
|
670
|
-
(info_ptr->valid & PNG_INFO_pHYs))
|
671
|
-
{
|
672
|
-
png_debug1(1, "in %s retrieval function\n", "pHYs");
|
673
|
-
if (res_x != NULL)
|
674
|
-
{
|
675
|
-
*res_x = info_ptr->x_pixels_per_unit;
|
676
|
-
retval |= PNG_INFO_pHYs;
|
677
|
-
}
|
678
|
-
if (res_y != NULL)
|
679
|
-
{
|
680
|
-
*res_y = info_ptr->y_pixels_per_unit;
|
681
|
-
retval |= PNG_INFO_pHYs;
|
682
|
-
}
|
683
|
-
if (unit_type != NULL)
|
684
|
-
{
|
685
|
-
*unit_type = (int)info_ptr->phys_unit_type;
|
686
|
-
retval |= PNG_INFO_pHYs;
|
687
|
-
}
|
688
|
-
}
|
689
|
-
return (retval);
|
690
|
-
}
|
691
|
-
#endif
|
692
|
-
|
693
|
-
png_uint_32 PNGAPI
|
694
|
-
png_get_PLTE(png_structp png_ptr, png_infop info_ptr, png_colorp *palette,
|
695
|
-
int *num_palette)
|
696
|
-
{
|
697
|
-
if (png_ptr != NULL && info_ptr != NULL && (info_ptr->valid & PNG_INFO_PLTE)
|
698
|
-
&& palette != NULL)
|
699
|
-
{
|
700
|
-
png_debug1(1, "in %s retrieval function\n", "PLTE");
|
701
|
-
*palette = info_ptr->palette;
|
702
|
-
*num_palette = info_ptr->num_palette;
|
703
|
-
png_debug1(3, "num_palette = %d\n", *num_palette);
|
704
|
-
return (PNG_INFO_PLTE);
|
705
|
-
}
|
706
|
-
return (0);
|
707
|
-
}
|
708
|
-
|
709
|
-
#if defined(PNG_sBIT_SUPPORTED)
|
710
|
-
png_uint_32 PNGAPI
|
711
|
-
png_get_sBIT(png_structp png_ptr, png_infop info_ptr, png_color_8p *sig_bit)
|
712
|
-
{
|
713
|
-
if (png_ptr != NULL && info_ptr != NULL && (info_ptr->valid & PNG_INFO_sBIT)
|
714
|
-
&& sig_bit != NULL)
|
715
|
-
{
|
716
|
-
png_debug1(1, "in %s retrieval function\n", "sBIT");
|
717
|
-
*sig_bit = &(info_ptr->sig_bit);
|
718
|
-
return (PNG_INFO_sBIT);
|
719
|
-
}
|
720
|
-
return (0);
|
721
|
-
}
|
722
|
-
#endif
|
723
|
-
|
724
|
-
#if defined(PNG_TEXT_SUPPORTED)
|
725
|
-
png_uint_32 PNGAPI
|
726
|
-
png_get_text(png_structp png_ptr, png_infop info_ptr, png_textp *text_ptr,
|
727
|
-
int *num_text)
|
728
|
-
{
|
729
|
-
if (png_ptr != NULL && info_ptr != NULL && info_ptr->num_text > 0)
|
730
|
-
{
|
731
|
-
png_debug1(1, "in %s retrieval function\n",
|
732
|
-
(png_ptr->chunk_name[0] == '\0' ? "text"
|
733
|
-
: (png_const_charp)png_ptr->chunk_name));
|
734
|
-
if (text_ptr != NULL)
|
735
|
-
*text_ptr = info_ptr->text;
|
736
|
-
if (num_text != NULL)
|
737
|
-
*num_text = info_ptr->num_text;
|
738
|
-
return ((png_uint_32)info_ptr->num_text);
|
739
|
-
}
|
740
|
-
if (num_text != NULL)
|
741
|
-
*num_text = 0;
|
742
|
-
return(0);
|
743
|
-
}
|
744
|
-
#endif
|
745
|
-
|
746
|
-
#if defined(PNG_tIME_SUPPORTED)
|
747
|
-
png_uint_32 PNGAPI
|
748
|
-
png_get_tIME(png_structp png_ptr, png_infop info_ptr, png_timep *mod_time)
|
749
|
-
{
|
750
|
-
if (png_ptr != NULL && info_ptr != NULL && (info_ptr->valid & PNG_INFO_tIME)
|
751
|
-
&& mod_time != NULL)
|
752
|
-
{
|
753
|
-
png_debug1(1, "in %s retrieval function\n", "tIME");
|
754
|
-
*mod_time = &(info_ptr->mod_time);
|
755
|
-
return (PNG_INFO_tIME);
|
756
|
-
}
|
757
|
-
return (0);
|
758
|
-
}
|
759
|
-
#endif
|
760
|
-
|
761
|
-
#if defined(PNG_tRNS_SUPPORTED)
|
762
|
-
png_uint_32 PNGAPI
|
763
|
-
png_get_tRNS(png_structp png_ptr, png_infop info_ptr,
|
764
|
-
png_bytep *trans, int *num_trans, png_color_16p *trans_values)
|
765
|
-
{
|
766
|
-
png_uint_32 retval = 0;
|
767
|
-
if (png_ptr != NULL && info_ptr != NULL && (info_ptr->valid & PNG_INFO_tRNS))
|
768
|
-
{
|
769
|
-
png_debug1(1, "in %s retrieval function\n", "tRNS");
|
770
|
-
if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE)
|
771
|
-
{
|
772
|
-
if (trans != NULL)
|
773
|
-
{
|
774
|
-
*trans = info_ptr->trans;
|
775
|
-
retval |= PNG_INFO_tRNS;
|
776
|
-
}
|
777
|
-
if (trans_values != NULL)
|
778
|
-
*trans_values = &(info_ptr->trans_values);
|
779
|
-
}
|
780
|
-
else /* if (info_ptr->color_type != PNG_COLOR_TYPE_PALETTE) */
|
781
|
-
{
|
782
|
-
if (trans_values != NULL)
|
783
|
-
{
|
784
|
-
*trans_values = &(info_ptr->trans_values);
|
785
|
-
retval |= PNG_INFO_tRNS;
|
786
|
-
}
|
787
|
-
if(trans != NULL)
|
788
|
-
*trans = NULL;
|
789
|
-
}
|
790
|
-
if(num_trans != NULL)
|
791
|
-
{
|
792
|
-
*num_trans = info_ptr->num_trans;
|
793
|
-
retval |= PNG_INFO_tRNS;
|
794
|
-
}
|
795
|
-
}
|
796
|
-
return (retval);
|
797
|
-
}
|
798
|
-
#endif
|
799
|
-
|
800
|
-
#if defined(PNG_UNKNOWN_CHUNKS_SUPPORTED)
|
801
|
-
png_uint_32 PNGAPI
|
802
|
-
png_get_unknown_chunks(png_structp png_ptr, png_infop info_ptr,
|
803
|
-
png_unknown_chunkpp unknowns)
|
804
|
-
{
|
805
|
-
if (png_ptr != NULL && info_ptr != NULL && unknowns != NULL)
|
806
|
-
{
|
807
|
-
*unknowns = info_ptr->unknown_chunks;
|
808
|
-
return ((png_uint_32)info_ptr->unknown_chunks_num);
|
809
|
-
}
|
810
|
-
return (0);
|
811
|
-
}
|
812
|
-
#endif
|
813
|
-
|
814
|
-
#if defined(PNG_READ_RGB_TO_GRAY_SUPPORTED)
|
815
|
-
png_byte PNGAPI
|
816
|
-
png_get_rgb_to_gray_status (png_structp png_ptr)
|
817
|
-
{
|
818
|
-
return (png_byte)(png_ptr? png_ptr->rgb_to_gray_status : 0);
|
819
|
-
}
|
820
|
-
#endif
|
821
|
-
|
822
|
-
#if defined(PNG_USER_CHUNKS_SUPPORTED)
|
823
|
-
png_voidp PNGAPI
|
824
|
-
png_get_user_chunk_ptr(png_structp png_ptr)
|
825
|
-
{
|
826
|
-
return (png_ptr? png_ptr->user_chunk_ptr : NULL);
|
827
|
-
}
|
828
|
-
#endif
|
829
|
-
|
830
|
-
#ifdef PNG_WRITE_SUPPORTED
|
831
|
-
png_uint_32 PNGAPI
|
832
|
-
png_get_compression_buffer_size(png_structp png_ptr)
|
833
|
-
{
|
834
|
-
return (png_uint_32)(png_ptr? png_ptr->zbuf_size : 0L);
|
835
|
-
}
|
836
|
-
#endif
|
837
|
-
|
838
|
-
#ifdef PNG_ASSEMBLER_CODE_SUPPORTED
|
839
|
-
#ifndef PNG_1_0_X
|
840
|
-
/* this function was added to libpng 1.2.0 and should exist by default */
|
841
|
-
png_uint_32 PNGAPI
|
842
|
-
png_get_asm_flags (png_structp png_ptr)
|
843
|
-
{
|
844
|
-
/* obsolete, to be removed from libpng-1.4.0 */
|
845
|
-
return (png_ptr? 0L: 0L);
|
846
|
-
}
|
847
|
-
|
848
|
-
/* this function was added to libpng 1.2.0 and should exist by default */
|
849
|
-
png_uint_32 PNGAPI
|
850
|
-
png_get_asm_flagmask (int flag_select)
|
851
|
-
{
|
852
|
-
/* obsolete, to be removed from libpng-1.4.0 */
|
853
|
-
flag_select=flag_select;
|
854
|
-
return 0L;
|
855
|
-
}
|
856
|
-
|
857
|
-
/* GRR: could add this: && defined(PNG_MMX_CODE_SUPPORTED) */
|
858
|
-
/* this function was added to libpng 1.2.0 */
|
859
|
-
png_uint_32 PNGAPI
|
860
|
-
png_get_mmx_flagmask (int flag_select, int *compilerID)
|
861
|
-
{
|
862
|
-
/* obsolete, to be removed from libpng-1.4.0 */
|
863
|
-
flag_select=flag_select;
|
864
|
-
*compilerID = -1; /* unknown (i.e., no asm/MMX code compiled) */
|
865
|
-
return 0L;
|
866
|
-
}
|
867
|
-
|
868
|
-
/* this function was added to libpng 1.2.0 */
|
869
|
-
png_byte PNGAPI
|
870
|
-
png_get_mmx_bitdepth_threshold (png_structp png_ptr)
|
871
|
-
{
|
872
|
-
/* obsolete, to be removed from libpng-1.4.0 */
|
873
|
-
return (png_ptr? 0: 0);
|
874
|
-
}
|
875
|
-
|
876
|
-
/* this function was added to libpng 1.2.0 */
|
877
|
-
png_uint_32 PNGAPI
|
878
|
-
png_get_mmx_rowbytes_threshold (png_structp png_ptr)
|
879
|
-
{
|
880
|
-
/* obsolete, to be removed from libpng-1.4.0 */
|
881
|
-
return (png_ptr? 0L: 0L);
|
882
|
-
}
|
883
|
-
#endif /* ?PNG_1_0_X */
|
884
|
-
#endif /* ?PNG_ASSEMBLER_CODE_SUPPORTED */
|
885
|
-
|
886
|
-
#ifdef PNG_SET_USER_LIMITS_SUPPORTED
|
887
|
-
/* these functions were added to libpng 1.2.6 */
|
888
|
-
png_uint_32 PNGAPI
|
889
|
-
png_get_user_width_max (png_structp png_ptr)
|
890
|
-
{
|
891
|
-
return (png_ptr? png_ptr->user_width_max : 0);
|
892
|
-
}
|
893
|
-
png_uint_32 PNGAPI
|
894
|
-
png_get_user_height_max (png_structp png_ptr)
|
895
|
-
{
|
896
|
-
return (png_ptr? png_ptr->user_height_max : 0);
|
897
|
-
}
|
898
|
-
#endif /* ?PNG_SET_USER_LIMITS_SUPPORTED */
|
899
|
-
|
900
|
-
|
901
|
-
#endif /* PNG_READ_SUPPORTED || PNG_WRITE_SUPPORTED */
|