@patleeman/pi-boy 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +189 -0
- package/index.ts +1 -0
- package/mgba-bridge/build.sh +31 -0
- package/mgba-bridge/src/main.c +740 -0
- package/mgba-bridge/vendor/mgba/.clang-format +34 -0
- package/mgba-bridge/vendor/mgba/.gitlab-ci.yml +267 -0
- package/mgba-bridge/vendor/mgba/CHANGES +2094 -0
- package/mgba-bridge/vendor/mgba/CMakeLists.txt +1373 -0
- package/mgba-bridge/vendor/mgba/CMakePresets.json +21 -0
- package/mgba-bridge/vendor/mgba/CONTRIBUTING.md +196 -0
- package/mgba-bridge/vendor/mgba/LICENSE +373 -0
- package/mgba-bridge/vendor/mgba/Makefile +1 -0
- package/mgba-bridge/vendor/mgba/Makefile.libretro +490 -0
- package/mgba-bridge/vendor/mgba/PORTING.md +21 -0
- package/mgba-bridge/vendor/mgba/README.md +270 -0
- package/mgba-bridge/vendor/mgba/README_DE.md +255 -0
- package/mgba-bridge/vendor/mgba/README_ES.md +255 -0
- package/mgba-bridge/vendor/mgba/README_JP.md +268 -0
- package/mgba-bridge/vendor/mgba/README_ZH_CN.md +268 -0
- package/mgba-bridge/vendor/mgba/Tupfile +3 -0
- package/mgba-bridge/vendor/mgba/include/mgba/core/bitmap-cache.h +64 -0
- package/mgba-bridge/vendor/mgba/include/mgba/core/cache-set.h +38 -0
- package/mgba-bridge/vendor/mgba/include/mgba/core/cheats.h +130 -0
- package/mgba-bridge/vendor/mgba/include/mgba/core/config.h +118 -0
- package/mgba-bridge/vendor/mgba/include/mgba/core/core.h +232 -0
- package/mgba-bridge/vendor/mgba/include/mgba/core/cpu.h +40 -0
- package/mgba-bridge/vendor/mgba/include/mgba/core/directories.h +42 -0
- package/mgba-bridge/vendor/mgba/include/mgba/core/input.h +91 -0
- package/mgba-bridge/vendor/mgba/include/mgba/core/interface.h +199 -0
- package/mgba-bridge/vendor/mgba/include/mgba/core/library.h +62 -0
- package/mgba-bridge/vendor/mgba/include/mgba/core/lockstep.h +77 -0
- package/mgba-bridge/vendor/mgba/include/mgba/core/log.h +88 -0
- package/mgba-bridge/vendor/mgba/include/mgba/core/map-cache.h +82 -0
- package/mgba-bridge/vendor/mgba/include/mgba/core/mem-search.h +62 -0
- package/mgba-bridge/vendor/mgba/include/mgba/core/rewind.h +47 -0
- package/mgba-bridge/vendor/mgba/include/mgba/core/scripting.h +65 -0
- package/mgba-bridge/vendor/mgba/include/mgba/core/serialize.h +61 -0
- package/mgba-bridge/vendor/mgba/include/mgba/core/sync.h +44 -0
- package/mgba-bridge/vendor/mgba/include/mgba/core/thread.h +135 -0
- package/mgba-bridge/vendor/mgba/include/mgba/core/tile-cache.h +63 -0
- package/mgba-bridge/vendor/mgba/include/mgba/core/timing.h +55 -0
- package/mgba-bridge/vendor/mgba/include/mgba/core/version.h +27 -0
- package/mgba-bridge/vendor/mgba/include/mgba/debugger/debugger.h +267 -0
- package/mgba-bridge/vendor/mgba/include/mgba/feature/commandline.h +71 -0
- package/mgba-bridge/vendor/mgba/include/mgba/feature/proxy-backend.h +83 -0
- package/mgba-bridge/vendor/mgba/include/mgba/feature/thread-proxy.h +41 -0
- package/mgba-bridge/vendor/mgba/include/mgba/feature/updater.h +51 -0
- package/mgba-bridge/vendor/mgba/include/mgba/feature/video-backend.h +81 -0
- package/mgba-bridge/vendor/mgba/include/mgba/feature/video-logger.h +145 -0
- package/mgba-bridge/vendor/mgba/include/mgba/gb/core.h +21 -0
- package/mgba-bridge/vendor/mgba/include/mgba/gb/interface.h +112 -0
- package/mgba-bridge/vendor/mgba/include/mgba/gba/core.h +21 -0
- package/mgba-bridge/vendor/mgba/include/mgba/gba/interface.h +168 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/arm/arm.h +217 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/arm/debugger/cli-debugger.h +18 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/arm/debugger/debugger.h +52 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/arm/debugger/memory-debugger.h +20 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/arm/decoder-inlines.h +37 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/arm/decoder.h +231 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/arm/emitter-arm.h +336 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/arm/emitter-inlines.h +32 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/arm/emitter-thumb.h +113 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/arm/isa-arm.h +22 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/arm/isa-inlines.h +186 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/arm/isa-thumb.h +20 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/arm/macros.h +18 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/debugger/access-logger.h +57 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/debugger/cli-debugger.h +108 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/debugger/cli-el-backend.h +21 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/debugger/gdb-stub.h +62 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/debugger/parser.h +81 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/debugger/stack-trace.h +32 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/debugger/symbols.h +29 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/defines.h +31 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gb/audio.h +257 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gb/cheats.h +26 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gb/debugger/cli.h +28 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gb/debugger/debugger.h +20 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gb/debugger/symbols.h +19 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gb/gb.h +202 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gb/input.h +31 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gb/io.h +127 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gb/mbc.h +72 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gb/memory.h +385 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gb/overrides.h +21 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gb/renderers/cache-set.h +23 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gb/renderers/proxy.h +29 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gb/renderers/software.h +72 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gb/serialize.h +536 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gb/sio/lockstep.h +49 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gb/sio/printer.h +74 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gb/sio.h +52 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gb/timer.h +45 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gb/video.h +201 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/audio.h +291 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/bios.h +73 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/cart/ereader.h +127 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/cart/gpio.h +110 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/cart/matrix.h +35 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/cart/unlicensed.h +77 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/cheats.h +175 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/debugger/cli.h +30 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/dma.h +73 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/gba.h +194 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/input.h +34 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/io.h +190 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/memory.h +184 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/overrides.h +21 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/renderers/cache-set.h +22 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/renderers/common.h +27 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/renderers/gl.h +218 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/renderers/proxy.h +29 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/renderers/video-software.h +160 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/savedata.h +130 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/serialize.h +496 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/sharkport.h +27 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/sio/dolphin.h +41 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/sio/gbp.h +38 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/sio/lockstep.h +95 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/sio.h +98 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/timer.h +36 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/gba/video.h +251 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/script/lua.h +12 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/script/socket.h +31 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/script/types.h +20 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/sm83/debugger/cli-debugger.h +18 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/sm83/debugger/debugger.h +43 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/sm83/debugger/memory-debugger.h +20 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/sm83/decoder.h +113 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/sm83/emitter-sm83.h +528 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/sm83/isa-sm83.h +20 -0
- package/mgba-bridge/vendor/mgba/include/mgba/internal/sm83/sm83.h +174 -0
- package/mgba-bridge/vendor/mgba/include/mgba/script/base.h +28 -0
- package/mgba-bridge/vendor/mgba/include/mgba/script/canvas.h +24 -0
- package/mgba-bridge/vendor/mgba/include/mgba/script/console.h +51 -0
- package/mgba-bridge/vendor/mgba/include/mgba/script/context.h +126 -0
- package/mgba-bridge/vendor/mgba/include/mgba/script/input.h +272 -0
- package/mgba-bridge/vendor/mgba/include/mgba/script/macros.h +680 -0
- package/mgba-bridge/vendor/mgba/include/mgba/script/storage.h +28 -0
- package/mgba-bridge/vendor/mgba/include/mgba/script/types.h +400 -0
- package/mgba-bridge/vendor/mgba/include/mgba/script.h +18 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/audio-buffer.h +34 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/audio-resampler.h +42 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/circle-buffer.h +39 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/common.h +352 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/configuration.h +50 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/convolve.h +33 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/crc32.h +26 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/dllexports.h +19 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/elf-read.h +45 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/formatting.h +36 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/geometry.h +31 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/gui/file-select.h +21 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/gui/font-metrics.h +15 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/gui/font.h +149 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/gui/menu.h +126 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/gui.h +136 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/hash.h +17 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/image/export.h +20 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/image/png-io.h +54 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/image.h +442 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/interpolator.h +51 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/macros.h +92 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/math.h +145 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/md5.h +34 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/memory.h +18 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/patch/fast.h +38 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/patch/ips.h +19 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/patch/ups.h +19 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/patch.h +26 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/platform/3ds/3ds-vfs.h +17 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/platform/3ds/threading.h +88 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/platform/posix/threading.h +125 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/platform/psp2/sce-vfs.h +18 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/platform/psp2/threading.h +161 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/platform/switch/threading.h +88 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/platform/windows/getopt.h +609 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/platform/windows/threading.h +106 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/ring-fifo.h +30 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/sfo.h +30 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/sha1.h +33 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/socket.h +542 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/string.h +55 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/table.h +93 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/text-codec.h +36 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/threading.h +123 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/vector.h +128 -0
- package/mgba-bridge/vendor/mgba/include/mgba-util/vfs.h +125 -0
- package/mgba-bridge/vendor/mgba/intl/activate.py +70 -0
- package/mgba-bridge/vendor/mgba/intl/core_option_regex.py +95 -0
- package/mgba-bridge/vendor/mgba/intl/core_option_translation.py +633 -0
- package/mgba-bridge/vendor/mgba/intl/crowdin.yaml +13 -0
- package/mgba-bridge/vendor/mgba/intl/crowdin_prep.py +30 -0
- package/mgba-bridge/vendor/mgba/intl/crowdin_source_upload.py +93 -0
- package/mgba-bridge/vendor/mgba/intl/crowdin_translate.py +39 -0
- package/mgba-bridge/vendor/mgba/intl/crowdin_translation_download.py +93 -0
- package/mgba-bridge/vendor/mgba/intl/download_workflow.py +16 -0
- package/mgba-bridge/vendor/mgba/intl/initial_sync.py +125 -0
- package/mgba-bridge/vendor/mgba/intl/remove_initial_cycle.py +30 -0
- package/mgba-bridge/vendor/mgba/intl/upload_workflow.py +15 -0
- package/mgba-bridge/vendor/mgba/intl/v1_to_v2_converter.py +483 -0
- package/mgba-bridge/vendor/mgba/libretro-build/Makefile.android_arm64-v8a +96 -0
- package/mgba-bridge/vendor/mgba/libretro-build/Makefile.android_armeabi +96 -0
- package/mgba-bridge/vendor/mgba/libretro-build/Makefile.android_armeabi-v7a +96 -0
- package/mgba-bridge/vendor/mgba/libretro-build/Makefile.android_mips +96 -0
- package/mgba-bridge/vendor/mgba/libretro-build/Makefile.android_mips64 +96 -0
- package/mgba-bridge/vendor/mgba/libretro-build/Makefile.android_x86 +96 -0
- package/mgba-bridge/vendor/mgba/libretro-build/Makefile.android_x86_64 +96 -0
- package/mgba-bridge/vendor/mgba/libretro-build/Makefile.common +156 -0
- package/mgba-bridge/vendor/mgba/libretro-build/Makefile.linux-portable_x86 +96 -0
- package/mgba-bridge/vendor/mgba/libretro-build/Makefile.linux-portable_x86_64 +96 -0
- package/mgba-bridge/vendor/mgba/libretro-build/Makefile.linux_x86 +96 -0
- package/mgba-bridge/vendor/mgba/libretro-build/Makefile.linux_x86_64 +96 -0
- package/mgba-bridge/vendor/mgba/libretro-build/Makefile.mingw_x86 +96 -0
- package/mgba-bridge/vendor/mgba/libretro-build/Makefile.mingw_x86_64 +96 -0
- package/mgba-bridge/vendor/mgba/libretro-build/Makefile.osx_x86 +96 -0
- package/mgba-bridge/vendor/mgba/libretro-build/Makefile.osx_x86_64 +96 -0
- package/mgba-bridge/vendor/mgba/libretro-build/Makefile.rules +45 -0
- package/mgba-bridge/vendor/mgba/libretro-build/Makefile.vita_arm +96 -0
- package/mgba-bridge/vendor/mgba/libretro-build/Makefile.wii_ppc +96 -0
- package/mgba-bridge/vendor/mgba/libretro-build/Makefile.windows_x86 +96 -0
- package/mgba-bridge/vendor/mgba/libretro-build/Makefile.windows_x86_64 +96 -0
- package/mgba-bridge/vendor/mgba/libretro-build/include/libz/zconf.h +511 -0
- package/mgba-bridge/vendor/mgba/libretro-build/jni/Android.mk +23 -0
- package/mgba-bridge/vendor/mgba/libretro-build/jni/Application.mk +2 -0
- package/mgba-bridge/vendor/mgba/libretro-build/link.T +5 -0
- package/mgba-bridge/vendor/mgba/link.T +4 -0
- package/mgba-bridge/vendor/mgba/opt/libgba/mgba.c +94 -0
- package/mgba-bridge/vendor/mgba/opt/libgba/mgba.h +46 -0
- package/mgba-bridge/vendor/mgba/src/arm/CMakeLists.txt +19 -0
- package/mgba-bridge/vendor/mgba/src/arm/arm.c +264 -0
- package/mgba-bridge/vendor/mgba/src/arm/debugger/cli-debugger.c +187 -0
- package/mgba-bridge/vendor/mgba/src/arm/debugger/debugger.c +588 -0
- package/mgba-bridge/vendor/mgba/src/arm/debugger/memory-debugger.c +158 -0
- package/mgba-bridge/vendor/mgba/src/arm/decoder-arm.c +466 -0
- package/mgba-bridge/vendor/mgba/src/arm/decoder-thumb.c +344 -0
- package/mgba-bridge/vendor/mgba/src/arm/decoder.c +601 -0
- package/mgba-bridge/vendor/mgba/src/arm/isa-arm.c +784 -0
- package/mgba-bridge/vendor/mgba/src/arm/isa-thumb.c +417 -0
- package/mgba-bridge/vendor/mgba/src/core/CMakeLists.txt +47 -0
- package/mgba-bridge/vendor/mgba/src/core/bitmap-cache.c +187 -0
- package/mgba-bridge/vendor/mgba/src/core/cache-set.c +83 -0
- package/mgba-bridge/vendor/mgba/src/core/cheats.c +807 -0
- package/mgba-bridge/vendor/mgba/src/core/config.c +548 -0
- package/mgba-bridge/vendor/mgba/src/core/core-serialize.c +585 -0
- package/mgba-bridge/vendor/mgba/src/core/core.c +539 -0
- package/mgba-bridge/vendor/mgba/src/core/directories.c +196 -0
- package/mgba-bridge/vendor/mgba/src/core/flags.h.in +204 -0
- package/mgba-bridge/vendor/mgba/src/core/input.c +677 -0
- package/mgba-bridge/vendor/mgba/src/core/interface.c +154 -0
- package/mgba-bridge/vendor/mgba/src/core/library.c +584 -0
- package/mgba-bridge/vendor/mgba/src/core/lockstep.c +43 -0
- package/mgba-bridge/vendor/mgba/src/core/log.c +294 -0
- package/mgba-bridge/vendor/mgba/src/core/map-cache.c +219 -0
- package/mgba-bridge/vendor/mgba/src/core/mem-search.c +342 -0
- package/mgba-bridge/vendor/mgba/src/core/rewind.c +186 -0
- package/mgba-bridge/vendor/mgba/src/core/scripting.c +1481 -0
- package/mgba-bridge/vendor/mgba/src/core/sync.c +121 -0
- package/mgba-bridge/vendor/mgba/src/core/thread.c +726 -0
- package/mgba-bridge/vendor/mgba/src/core/tile-cache.c +283 -0
- package/mgba-bridge/vendor/mgba/src/core/timing.c +137 -0
- package/mgba-bridge/vendor/mgba/src/core/version.c.in +14 -0
- package/mgba-bridge/vendor/mgba/src/debugger/CMakeLists.txt +30 -0
- package/mgba-bridge/vendor/mgba/src/debugger/access-logger.c +592 -0
- package/mgba-bridge/vendor/mgba/src/debugger/cli-debugger-scripting.c +137 -0
- package/mgba-bridge/vendor/mgba/src/debugger/cli-debugger.c +1482 -0
- package/mgba-bridge/vendor/mgba/src/debugger/cli-el-backend.c +248 -0
- package/mgba-bridge/vendor/mgba/src/debugger/debugger.c +327 -0
- package/mgba-bridge/vendor/mgba/src/debugger/gdb-stub.c +918 -0
- package/mgba-bridge/vendor/mgba/src/debugger/parser.c +902 -0
- package/mgba-bridge/vendor/mgba/src/debugger/stack-trace.c +133 -0
- package/mgba-bridge/vendor/mgba/src/debugger/symbols.c +109 -0
- package/mgba-bridge/vendor/mgba/src/feature/CMakeLists.txt +24 -0
- package/mgba-bridge/vendor/mgba/src/feature/commandline.c +404 -0
- package/mgba-bridge/vendor/mgba/src/feature/ffmpeg/ffmpeg-common.h +95 -0
- package/mgba-bridge/vendor/mgba/src/feature/ffmpeg/ffmpeg-decoder.c +204 -0
- package/mgba-bridge/vendor/mgba/src/feature/ffmpeg/ffmpeg-decoder.h +45 -0
- package/mgba-bridge/vendor/mgba/src/feature/ffmpeg/ffmpeg-encoder.c +960 -0
- package/mgba-bridge/vendor/mgba/src/feature/ffmpeg/ffmpeg-encoder.h +91 -0
- package/mgba-bridge/vendor/mgba/src/feature/ffmpeg/ffmpeg-scale.c +36 -0
- package/mgba-bridge/vendor/mgba/src/feature/ffmpeg/ffmpeg-scale.h +21 -0
- package/mgba-bridge/vendor/mgba/src/feature/gui/cheats.c +195 -0
- package/mgba-bridge/vendor/mgba/src/feature/gui/cheats.h +18 -0
- package/mgba-bridge/vendor/mgba/src/feature/gui/gui-config.c +438 -0
- package/mgba-bridge/vendor/mgba/src/feature/gui/gui-config.h +19 -0
- package/mgba-bridge/vendor/mgba/src/feature/gui/gui-runner.c +853 -0
- package/mgba-bridge/vendor/mgba/src/feature/gui/gui-runner.h +114 -0
- package/mgba-bridge/vendor/mgba/src/feature/gui/remap.c +88 -0
- package/mgba-bridge/vendor/mgba/src/feature/gui/remap.h +27 -0
- package/mgba-bridge/vendor/mgba/src/feature/proxy-backend.c +286 -0
- package/mgba-bridge/vendor/mgba/src/feature/thread-proxy.c +213 -0
- package/mgba-bridge/vendor/mgba/src/feature/updater.c +227 -0
- package/mgba-bridge/vendor/mgba/src/feature/video-backend.c +45 -0
- package/mgba-bridge/vendor/mgba/src/feature/video-logger.c +1092 -0
- package/mgba-bridge/vendor/mgba/src/gb/CMakeLists.txt +53 -0
- package/mgba-bridge/vendor/mgba/src/gb/audio.c +1149 -0
- package/mgba-bridge/vendor/mgba/src/gb/cheats.c +190 -0
- package/mgba-bridge/vendor/mgba/src/gb/core.c +1539 -0
- package/mgba-bridge/vendor/mgba/src/gb/debugger/cli.c +115 -0
- package/mgba-bridge/vendor/mgba/src/gb/debugger/debugger.c +46 -0
- package/mgba-bridge/vendor/mgba/src/gb/debugger/symbols.c +61 -0
- package/mgba-bridge/vendor/mgba/src/gb/extra/proxy.c +328 -0
- package/mgba-bridge/vendor/mgba/src/gb/gb.c +1261 -0
- package/mgba-bridge/vendor/mgba/src/gb/input.c +29 -0
- package/mgba-bridge/vendor/mgba/src/gb/io.c +735 -0
- package/mgba-bridge/vendor/mgba/src/gb/mbc/huc-3.c +218 -0
- package/mgba-bridge/vendor/mgba/src/gb/mbc/licensed.c +84 -0
- package/mgba-bridge/vendor/mgba/src/gb/mbc/mbc-private.h +66 -0
- package/mgba-bridge/vendor/mgba/src/gb/mbc/mbc.c +583 -0
- package/mgba-bridge/vendor/mgba/src/gb/mbc/pocket-cam.c +142 -0
- package/mgba-bridge/vendor/mgba/src/gb/mbc/tama5.c +433 -0
- package/mgba-bridge/vendor/mgba/src/gb/mbc/unlicensed.c +601 -0
- package/mgba-bridge/vendor/mgba/src/gb/mbc.c +650 -0
- package/mgba-bridge/vendor/mgba/src/gb/memory.c +1079 -0
- package/mgba-bridge/vendor/mgba/src/gb/overrides.c +939 -0
- package/mgba-bridge/vendor/mgba/src/gb/renderers/cache-set.c +129 -0
- package/mgba-bridge/vendor/mgba/src/gb/renderers/software.c +1169 -0
- package/mgba-bridge/vendor/mgba/src/gb/serialize.c +310 -0
- package/mgba-bridge/vendor/mgba/src/gb/sio/lockstep.c +284 -0
- package/mgba-bridge/vendor/mgba/src/gb/sio/printer.c +237 -0
- package/mgba-bridge/vendor/mgba/src/gb/sio.c +106 -0
- package/mgba-bridge/vendor/mgba/src/gb/timer.c +150 -0
- package/mgba-bridge/vendor/mgba/src/gb/video.c +1216 -0
- package/mgba-bridge/vendor/mgba/src/gba/CMakeLists.txt +62 -0
- package/mgba-bridge/vendor/mgba/src/gba/audio.c +555 -0
- package/mgba-bridge/vendor/mgba/src/gba/bios.c +981 -0
- package/mgba-bridge/vendor/mgba/src/gba/cart/ereader.c +1639 -0
- package/mgba-bridge/vendor/mgba/src/gba/cart/gpio.c +584 -0
- package/mgba-bridge/vendor/mgba/src/gba/cart/matrix.c +134 -0
- package/mgba-bridge/vendor/mgba/src/gba/cart/unlicensed.c +255 -0
- package/mgba-bridge/vendor/mgba/src/gba/cart/vfame.c +320 -0
- package/mgba-bridge/vendor/mgba/src/gba/cheats/codebreaker.c +323 -0
- package/mgba-bridge/vendor/mgba/src/gba/cheats/gameshark.c +318 -0
- package/mgba-bridge/vendor/mgba/src/gba/cheats/gameshark.h +32 -0
- package/mgba-bridge/vendor/mgba/src/gba/cheats/parv3.c +442 -0
- package/mgba-bridge/vendor/mgba/src/gba/cheats/parv3.h +21 -0
- package/mgba-bridge/vendor/mgba/src/gba/cheats.c +386 -0
- package/mgba-bridge/vendor/mgba/src/gba/core.c +1822 -0
- package/mgba-bridge/vendor/mgba/src/gba/debugger/cli.c +116 -0
- package/mgba-bridge/vendor/mgba/src/gba/dma.c +363 -0
- package/mgba-bridge/vendor/mgba/src/gba/extra/battlechip.c +171 -0
- package/mgba-bridge/vendor/mgba/src/gba/extra/proxy.c +408 -0
- package/mgba-bridge/vendor/mgba/src/gba/gba.c +1095 -0
- package/mgba-bridge/vendor/mgba/src/gba/hle-bios-src.s +400 -0
- package/mgba-bridge/vendor/mgba/src/gba/hle-bios.c +103 -0
- package/mgba-bridge/vendor/mgba/src/gba/hle-bios.h +17 -0
- package/mgba-bridge/vendor/mgba/src/gba/hle-bios.make +18 -0
- package/mgba-bridge/vendor/mgba/src/gba/input.c +31 -0
- package/mgba-bridge/vendor/mgba/src/gba/io.c +1085 -0
- package/mgba-bridge/vendor/mgba/src/gba/memory.c +1974 -0
- package/mgba-bridge/vendor/mgba/src/gba/overrides.c +435 -0
- package/mgba-bridge/vendor/mgba/src/gba/renderers/cache-set.c +219 -0
- package/mgba-bridge/vendor/mgba/src/gba/renderers/common.c +59 -0
- package/mgba-bridge/vendor/mgba/src/gba/renderers/gl.c +2137 -0
- package/mgba-bridge/vendor/mgba/src/gba/renderers/software-bg.c +228 -0
- package/mgba-bridge/vendor/mgba/src/gba/renderers/software-mode0.c +576 -0
- package/mgba-bridge/vendor/mgba/src/gba/renderers/software-obj.c +431 -0
- package/mgba-bridge/vendor/mgba/src/gba/renderers/software-private.h +283 -0
- package/mgba-bridge/vendor/mgba/src/gba/renderers/video-software.c +1117 -0
- package/mgba-bridge/vendor/mgba/src/gba/savedata.c +792 -0
- package/mgba-bridge/vendor/mgba/src/gba/serialize.c +242 -0
- package/mgba-bridge/vendor/mgba/src/gba/sharkport.c +389 -0
- package/mgba-bridge/vendor/mgba/src/gba/sio/dolphin.c +217 -0
- package/mgba-bridge/vendor/mgba/src/gba/sio/gbp.c +150 -0
- package/mgba-bridge/vendor/mgba/src/gba/sio/lockstep.c +1063 -0
- package/mgba-bridge/vendor/mgba/src/gba/sio.c +493 -0
- package/mgba-bridge/vendor/mgba/src/gba/timer.c +153 -0
- package/mgba-bridge/vendor/mgba/src/gba/video.c +470 -0
- package/mgba-bridge/vendor/mgba/src/platform/cmake/DMGOverrides.cmake.in +6 -0
- package/mgba-bridge/vendor/mgba/src/platform/cmake/DebugStrip.cmake +12 -0
- package/mgba-bridge/vendor/mgba/src/platform/cmake/ExportDirectory.cmake +7 -0
- package/mgba-bridge/vendor/mgba/src/platform/cmake/FindFeature.cmake +88 -0
- package/mgba-bridge/vendor/mgba/src/platform/cmake/FindFunction.cmake +14 -0
- package/mgba-bridge/vendor/mgba/src/platform/cmake/FindSDL2.cmake +164 -0
- package/mgba-bridge/vendor/mgba/src/platform/cmake/Findepoxy.cmake +10 -0
- package/mgba-bridge/vendor/mgba/src/platform/cmake/devkitPro.cmake +44 -0
- package/mgba-bridge/vendor/mgba/src/platform/example/client-server/client.c +160 -0
- package/mgba-bridge/vendor/mgba/src/platform/example/client-server/server.c +168 -0
- package/mgba-bridge/vendor/mgba/src/platform/headless-main.c +379 -0
- package/mgba-bridge/vendor/mgba/src/platform/libretro/libretro.c +2611 -0
- package/mgba-bridge/vendor/mgba/src/platform/libretro/libretro.h +7846 -0
- package/mgba-bridge/vendor/mgba/src/platform/libretro/libretro_core_options.h +721 -0
- package/mgba-bridge/vendor/mgba/src/platform/libretro/libretro_core_options_intl.h +17798 -0
- package/mgba-bridge/vendor/mgba/src/platform/libretro/memory.c +22 -0
- package/mgba-bridge/vendor/mgba/src/platform/libretro/retro_inline.h +39 -0
- package/mgba-bridge/vendor/mgba/src/platform/opengl/gl.c +304 -0
- package/mgba-bridge/vendor/mgba/src/platform/opengl/gl.h +40 -0
- package/mgba-bridge/vendor/mgba/src/platform/opengl/gles2.c +1230 -0
- package/mgba-bridge/vendor/mgba/src/platform/opengl/gles2.h +117 -0
- package/mgba-bridge/vendor/mgba/src/platform/posix/memory.c +37 -0
- package/mgba-bridge/vendor/mgba/src/script/CMakeLists.txt +38 -0
- package/mgba-bridge/vendor/mgba/src/script/canvas.c +292 -0
- package/mgba-bridge/vendor/mgba/src/script/console.c +141 -0
- package/mgba-bridge/vendor/mgba/src/script/context.c +492 -0
- package/mgba-bridge/vendor/mgba/src/script/engines/lua.c +1617 -0
- package/mgba-bridge/vendor/mgba/src/script/image.c +338 -0
- package/mgba-bridge/vendor/mgba/src/script/input.c +612 -0
- package/mgba-bridge/vendor/mgba/src/script/socket.c +284 -0
- package/mgba-bridge/vendor/mgba/src/script/stdlib.c +306 -0
- package/mgba-bridge/vendor/mgba/src/script/storage.c +557 -0
- package/mgba-bridge/vendor/mgba/src/script/test.h +29 -0
- package/mgba-bridge/vendor/mgba/src/script/types.c +1886 -0
- package/mgba-bridge/vendor/mgba/src/sm83/CMakeLists.txt +16 -0
- package/mgba-bridge/vendor/mgba/src/sm83/debugger/cli-debugger.c +110 -0
- package/mgba-bridge/vendor/mgba/src/sm83/debugger/debugger.c +266 -0
- package/mgba-bridge/vendor/mgba/src/sm83/debugger/memory-debugger.c +84 -0
- package/mgba-bridge/vendor/mgba/src/sm83/decoder.c +608 -0
- package/mgba-bridge/vendor/mgba/src/sm83/isa-sm83.c +817 -0
- package/mgba-bridge/vendor/mgba/src/sm83/sm83.c +199 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/.clang-format +92 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/CMakeLists.txt +18 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/LICENSE +19 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/README.md +152 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/discord_register.h +26 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/discord_rpc.h +87 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/mingw-std-threads/LICENSE +24 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/mingw-std-threads/README.md +41 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/mingw-std-threads/condition_variable +549 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/mingw-std-threads/mutex +474 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/mingw-std-threads/shared_mutex +497 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/mingw-std-threads/thread +410 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/allocators.h +271 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/document.h +2573 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/encodedstream.h +299 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/encodings.h +716 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/error/en.h +74 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/error/error.h +155 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/filereadstream.h +99 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/filewritestream.h +104 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/fwd.h +151 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/internal/biginteger.h +290 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/internal/diyfp.h +258 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/internal/dtoa.h +245 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/internal/ieee754.h +78 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/internal/itoa.h +304 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/internal/meta.h +181 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/internal/pow10.h +55 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/internal/regex.h +701 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/internal/stack.h +230 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/internal/strfunc.h +55 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/internal/strtod.h +269 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/internal/swap.h +46 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/istreamwrapper.h +115 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/license.txt +57 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/memorybuffer.h +70 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/memorystream.h +71 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/msinttypes/inttypes.h +316 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/msinttypes/stdint.h +300 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/ostreamwrapper.h +81 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/pointer.h +1358 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/prettywriter.h +255 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/rapidjson.h +615 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/reader.h +1879 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/schema.h +2006 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/stream.h +179 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/stringbuffer.h +117 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/include/rapidjson/writer.h +610 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/src/CMakeLists.txt +90 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/src/backoff.h +40 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/src/connection.h +19 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/src/connection_unix.cpp +125 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/src/connection_win.cpp +128 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/src/discord_register_linux.cpp +102 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/src/discord_register_osx.m +80 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/src/discord_register_win.cpp +185 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/src/discord_rpc.cpp +504 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/src/dllmain.cpp +8 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/src/msg_queue.h +36 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/src/rpc_connection.cpp +137 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/src/rpc_connection.h +59 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/src/serialization.cpp +245 -0
- package/mgba-bridge/vendor/mgba/src/third-party/discord-rpc/src/serialization.h +215 -0
- package/mgba-bridge/vendor/mgba/src/third-party/inih/LICENSE.txt +27 -0
- package/mgba-bridge/vendor/mgba/src/third-party/inih/README.md +157 -0
- package/mgba-bridge/vendor/mgba/src/third-party/inih/ini.c +288 -0
- package/mgba-bridge/vendor/mgba/src/third-party/inih/ini.h +148 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/ANNOUNCE +47 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/AUTHORS +45 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/CHANGES +6109 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/CMakeLists.txt +931 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/INSTALL +465 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/LICENSE +134 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/Makefile.am +393 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/Makefile.in +2428 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/README +183 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/TODO +23 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/TRADEMARK +8 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/aclocal.m4 +1196 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/arm/arm_init.c +136 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/arm/filter_neon.S +253 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/arm/filter_neon_intrinsics.c +402 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/arm/palette_neon_intrinsics.c +149 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/autogen.sh +225 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/compile +348 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/config.guess +1476 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/config.h.in +126 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/config.sub +1801 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/configure +16116 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/configure.ac +532 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/README.txt +5 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/arm-neon/README +83 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/arm-neon/android-ndk.c +39 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/arm-neon/linux-auxv.c +120 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/arm-neon/linux.c +161 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/conftest/README +49 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/conftest/pngcp.dfa +57 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/conftest/read.dfa +58 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/conftest/s_read.dfa +35 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/conftest/s_write.dfa +33 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/conftest/simple.dfa +36 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/conftest/write.dfa +45 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/examples/README.txt +24 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/examples/iccfrompng.c +185 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/examples/pngpixel.c +371 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/examples/pngtopng.c +98 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/examples/simpleover.c +648 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/gregbook/COPYING +340 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/gregbook/LICENSE +50 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/gregbook/Makefile.mingw32 +131 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/gregbook/Makefile.sgi +105 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/gregbook/Makefile.unx +134 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/gregbook/Makefile.w32 +114 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/gregbook/README +186 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/gregbook/makevms.com +132 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/gregbook/readpng.c +323 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/gregbook/readpng.h +88 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/gregbook/readpng2.c +521 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/gregbook/readpng2.h +116 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/gregbook/readppm.c +188 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/gregbook/rpng-win.c +735 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/gregbook/rpng-x.c +911 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/gregbook/rpng2-win.c +1261 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/gregbook/rpng2-x.c +2143 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/gregbook/toucan.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/gregbook/wpng.c +865 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/gregbook/writepng.c +401 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/gregbook/writepng.h +133 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/libtests/fakepng.c +65 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/libtests/gentests.sh +102 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/libtests/makepng.c +1941 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/libtests/pngimage.c +1712 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/libtests/pngstest-errors.h +165 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/libtests/pngstest.c +3828 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/libtests/pngunknown.c +1294 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/libtests/pngvalid.c +12230 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/libtests/readpng.c +115 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/libtests/tarith.c +999 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/libtests/timepng.c +608 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/mips-msa/README +83 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/mips-msa/linux.c +64 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/oss-fuzz/Dockerfile +25 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/oss-fuzz/README.txt +37 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/oss-fuzz/build.sh +51 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/oss-fuzz/libpng_read_fuzzer.cc +190 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/oss-fuzz/libpng_read_fuzzer.options +2 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/oss-fuzz/png.dict +39 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminim/README +5 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminim/decoder/README +10 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminim/decoder/makefile +151 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminim/decoder/pngusr.dfa +40 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminim/decoder/pngusr.h +23 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminim/encoder/README +10 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminim/encoder/makefile +150 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminim/encoder/pngusr.dfa +39 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminim/encoder/pngusr.h +23 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminim/preader/README +15 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminim/preader/makefile +166 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminim/preader/pngusr.dfa +40 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminim/preader/pngusr.h +23 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminus/CHANGES.txt +13 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminus/CMakeLists.txt +24 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminus/LICENSE.txt +22 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminus/Makefile +62 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminus/README.txt +120 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminus/makevms.com +92 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminus/png2pnm.bat +41 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminus/png2pnm.c +427 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminus/png2pnm.sh +42 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminus/pngminus.bat +4 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminus/pngminus.sh +5 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminus/pnm2png.bat +41 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminus/pnm2png.c +620 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngminus/pnm2png.sh +42 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/README +107 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/bad_interlace_conversions.txt +9 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/basn0g01.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/basn0g02.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/basn0g04.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/basn0g08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/basn0g16.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/basn2c08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/basn2c16.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/basn3p01.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/basn3p02.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/basn3p04.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/basn3p08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/basn4a08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/basn4a16.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/basn6a08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/basn6a16.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/ftbbn0g01.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/ftbbn0g02.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/ftbbn0g04.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/ftbbn2c16.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/ftbbn3p08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/ftbgn2c16.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/ftbgn3p08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/ftbrn2c08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/ftbwn0g16.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/ftbwn3p08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/ftbyn3p08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/ftp0n0g08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/ftp0n2c08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/ftp0n3p08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/ftp1n3p08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/ibasn0g08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/ibasn0g16.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/ibasn2c08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/ibasn2c16.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/ibasn3p08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/ibasn4a08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/ibasn4a16.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/ibasn6a08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/ibasn6a16.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/iftbbn2c16.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/iftbbn3p08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/iftbgn2c16.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/iftbgn3p08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/iftbrn2c08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/iftbwn0g16.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/iftbwn3p08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/iftbyn3p08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/iftp0n0g08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/iftp0n2c08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/iftp0n3p08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/iftp1n3p08.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/interlaced/README +2 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/interlaced/ibasn0g01.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/interlaced/ibasn0g02.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/interlaced/ibasn0g04.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/interlaced/ibasn3p01.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/interlaced/ibasn3p02.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/interlaced/ibasn3p04.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/interlaced/iftbbn0g01.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/interlaced/iftbbn0g02.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/pngsuite/interlaced/iftbbn0g04.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/powerpc-vsx/README +81 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/powerpc-vsx/linux.c +57 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/powerpc-vsx/linux_aux.c +34 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/crashers/bad_iCCP.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/crashers/badadler.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/crashers/badcrc.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/crashers/empty_ancillary_chunks.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/crashers/huge_IDAT.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/crashers/huge_bKGD_chunk.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/crashers/huge_cHRM_chunk.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/crashers/huge_eXIf_chunk.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/crashers/huge_gAMA_chunk.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/crashers/huge_hIST_chunk.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/crashers/huge_iCCP_chunk.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/crashers/huge_iTXt_chunk.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/crashers/huge_juNK_unsafe_to_copy.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/crashers/huge_juNk_safe_to_copy.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/crashers/huge_pCAL_chunk.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/crashers/huge_pHYs_chunk.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/crashers/huge_sCAL_chunk.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/crashers/huge_sPLT_chunk.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/crashers/huge_sRGB_chunk.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/crashers/huge_sTER_chunk.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/crashers/huge_tEXt_chunk.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/crashers/huge_tIME_chunk.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/crashers/huge_zTXt_chunk.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-1-1.8-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-1-1.8.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-1-linear-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-1-linear.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-1-sRGB-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-1-sRGB.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-1-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-1.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-16-1.8-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-16-1.8.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-16-linear-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-16-linear.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-16-sRGB-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-16-sRGB.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-16-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-16.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-2-1.8-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-2-1.8.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-2-linear-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-2-linear.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-2-sRGB-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-2-sRGB.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-2-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-2.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-4-1.8-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-4-1.8.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-4-linear-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-4-linear.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-4-sRGB-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-4-sRGB.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-4-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-4.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-8-1.8-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-8-1.8.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-8-linear-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-8-linear.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-8-sRGB-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-8-sRGB.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-8-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-8.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-alpha-16-1.8.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-alpha-16-linear.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-alpha-16-sRGB.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-alpha-16.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-alpha-8-1.8.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-alpha-8-linear.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-alpha-8-sRGB.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/gray-alpha-8.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/makepngs.sh +94 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-1-1.8-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-1-1.8.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-1-linear-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-1-linear.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-1-sRGB-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-1-sRGB.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-1-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-1.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-2-1.8-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-2-1.8.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-2-linear-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-2-linear.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-2-sRGB-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-2-sRGB.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-2-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-2.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-4-1.8-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-4-1.8.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-4-linear-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-4-linear.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-4-sRGB-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-4-sRGB.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-4-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-4.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-8-1.8-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-8-1.8.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-8-linear-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-8-linear.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-8-sRGB-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-8-sRGB.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-8-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/palette-8.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/rgb-16-1.8-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/rgb-16-1.8.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/rgb-16-linear-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/rgb-16-linear.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/rgb-16-sRGB-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/rgb-16-sRGB.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/rgb-16-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/rgb-16.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/rgb-8-1.8-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/rgb-8-1.8.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/rgb-8-linear-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/rgb-8-linear.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/rgb-8-sRGB-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/rgb-8-sRGB.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/rgb-8-tRNS.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/rgb-8.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/rgb-alpha-16-1.8.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/rgb-alpha-16-linear.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/rgb-alpha-16-sRGB.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/rgb-alpha-16.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/rgb-alpha-8-1.8.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/rgb-alpha-8-linear.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/rgb-alpha-8-sRGB.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/testpngs/rgb-alpha-8.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/tools/README.txt +27 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/tools/checksum-icc.c +102 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/tools/chkfmt +144 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/tools/cvtcolor.c +188 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/tools/genpng.c +881 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/tools/intgamma.sh +110 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/tools/makesRGB.c +430 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/tools/png-fix-itxt.c +164 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/tools/pngcp.c +2453 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/tools/pngfix.c +4049 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/tools/reindent +25 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/tools/sRGB.h +48 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/visupng/PngFile.c +454 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/visupng/PngFile.h +30 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/visupng/README.txt +61 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/visupng/VisualPng.c +978 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/visupng/VisualPng.dsp +147 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/visupng/VisualPng.dsw +29 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/visupng/VisualPng.ico +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/visupng/VisualPng.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/visupng/VisualPng.rc +152 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/visupng/cexcept.h +248 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/contrib/visupng/resource.h +23 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/depcomp +791 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/example.c +1040 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/install-sh +518 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/intel/filter_sse2_intrinsics.c +391 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/intel/intel_init.c +52 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/libpng-config.in +127 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/libpng-manual.txt +5409 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/libpng.3 +6052 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/libpng.pc.in +12 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/libpngpf.3 +24 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/ltmain.sh +11147 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/mips/filter_msa_intrinsics.c +808 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/mips/mips_init.c +130 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/missing +215 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/png.5 +84 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/png.c +4607 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/png.h +3247 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/pngbar.jpg +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/pngbar.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/pngconf.h +623 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/pngdebug.h +153 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/pngerror.c +963 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/pngget.c +1249 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/pnginfo.h +267 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/pngmem.c +284 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/pngnow.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/pngpread.c +1096 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/pngpriv.h +2152 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/pngread.c +4225 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/pngrio.c +120 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/pngrtran.c +5044 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/pngrutil.c +4681 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/pngset.c +1802 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/pngstruct.h +489 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/pngtest.c +2158 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/pngtest.png +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/pngtrans.c +864 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/pngusr.dfa +14 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/pngwio.c +168 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/pngwrite.c +2395 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/pngwtran.c +575 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/pngwutil.c +2781 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/powerpc/filter_vsx_intrinsics.c +768 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/powerpc/powerpc_init.c +126 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/projects/owatcom/libpng.tgt +383 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/projects/owatcom/libpng.wpj +112 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/projects/owatcom/pngconfig.mak +160 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/projects/owatcom/pngstest.tgt +219 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/projects/owatcom/pngtest.tgt +179 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/projects/owatcom/pngvalid.tgt +210 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/projects/visualc71/PRJ0041.mak +21 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/projects/visualc71/README.txt +58 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/projects/visualc71/README_zlib.txt +44 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/projects/visualc71/libpng.sln +60 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/projects/visualc71/libpng.vcproj +419 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/projects/visualc71/pngtest.vcproj +267 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/projects/visualc71/zlib.vcproj +391 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/projects/vstudio/libpng/libpng.vcxproj +234 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/projects/vstudio/pnglibconf/pnglibconf.vcxproj +61 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/projects/vstudio/pngstest/pngstest.vcxproj +219 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/projects/vstudio/pngtest/pngtest.vcxproj +220 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/projects/vstudio/pngunknown/pngunknown.vcxproj +219 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/projects/vstudio/pngvalid/pngvalid.vcxproj +219 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/projects/vstudio/vstudio.sln +109 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/projects/vstudio/zlib/zlib.vcxproj +175 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/projects/vstudio/zlib.props +57 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/README.txt +79 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/SCOPTIONS.ppc +7 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/checksym.awk +173 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/descrip.mms +52 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/dfn.awk +203 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/genchk.cmake.in +37 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/genout.cmake.in +93 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/gensrc.cmake.in +138 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/intprefix.c +22 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/libpng-config-body.in +96 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/libpng-config-head.in +24 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/libpng.pc.in +10 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/libtool.m4 +8369 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/ltoptions.m4 +437 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/ltsugar.m4 +124 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/ltversion.m4 +23 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/lt~obsolete.m4 +99 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/macro.lst +3 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.32sunu +244 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.64sunu +244 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.acorn +57 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.aix +116 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.amiga +58 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.atari +71 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.bc32 +158 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.beos +222 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.cegcc +116 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.clang +87 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.clang-asan +87 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.darwin +225 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.dec +210 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.dj2 +72 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.freebsd +69 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.gcc +87 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.gcc-asan +87 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.hp64 +231 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.hpgcc +234 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.hpux +229 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.ibmc +90 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.intel +115 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.linux +246 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.linux-opt +265 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.mips +103 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.msys +202 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.netbsd +55 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.openbsd +86 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.sco +226 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.sggcc +236 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.sgi +237 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.so9 +247 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.solaris +243 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.std +134 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.sunos +115 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makefile.vcwin32 +113 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/makevms.com +142 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/options.awk +898 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/pnglibconf.dfa +920 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/pnglibconf.h.prebuilt +219 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/pnglibconf.mak +55 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/pngwin.rc +112 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/prefix.c +24 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/smakefile.ppc +34 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/sym.c +15 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/symbols.c +58 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/symbols.def +255 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/test.cmake.in +31 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/scripts/vers.c +19 -0
- package/mgba-bridge/vendor/mgba/src/third-party/libpng/test-driver +148 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/7z.h +202 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/7zAlloc.c +80 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/7zAlloc.h +19 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/7zArcIn.c +1771 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/7zBuf.c +36 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/7zBuf.h +35 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/7zBuf2.c +52 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/7zCrc.c +128 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/7zCrc.h +25 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/7zCrcOpt.c +115 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/7zDec.c +591 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/7zFile.c +286 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/7zFile.h +83 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/7zStream.c +176 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/7zTypes.h +375 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/7zVersion.h +27 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/7zVersion.rc +55 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Aes.c +306 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Aes.h +38 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/AesOpt.c +184 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Alloc.c +455 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Alloc.h +51 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Bcj2.c +257 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Bcj2.h +146 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Bcj2Enc.c +311 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Bra.c +230 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Bra.h +64 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Bra86.c +82 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/BraIA64.c +53 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Compiler.h +33 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/CpuArch.c +218 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/CpuArch.h +336 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Delta.c +64 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Delta.h +19 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/DllSecur.c +108 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/DllSecur.h +20 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/LzFind.c +1127 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/LzFind.h +121 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/LzFindMt.c +853 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/LzFindMt.h +101 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/LzHash.h +57 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Lzma2Dec.c +488 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Lzma2Dec.h +120 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Lzma2DecMt.c +1082 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Lzma2DecMt.h +79 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Lzma2Enc.c +803 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Lzma2Enc.h +55 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Lzma86.h +111 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Lzma86Dec.c +54 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Lzma86Enc.c +106 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/LzmaDec.c +1185 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/LzmaDec.h +234 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/LzmaEnc.c +2976 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/LzmaEnc.h +76 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/LzmaLib.c +40 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/LzmaLib.h +131 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/MtCoder.c +601 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/MtCoder.h +141 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/MtDec.c +1138 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/MtDec.h +201 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Ppmd.h +85 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Ppmd7.c +712 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Ppmd7.h +142 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Ppmd7Dec.c +191 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Ppmd7Enc.c +187 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Precomp.h +10 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/RotateDefs.h +30 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Sha256.c +248 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Sha256.h +26 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Sort.c +141 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Sort.h +18 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Threads.c +95 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Threads.h +68 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/7z/7z.dsp +241 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/7z/7z.dsw +29 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/7z/7zMain.c +686 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/7z/Precomp.c +4 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/7z/Precomp.h +10 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/7z/makefile +40 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/7z/makefile.gcc +75 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/Lzma/LzmaUtil.c +258 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/Lzma/LzmaUtil.dsp +168 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/Lzma/LzmaUtil.dsw +29 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/Lzma/makefile +28 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/Lzma/makefile.gcc +44 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/LzmaLib/LzmaLib.def +4 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/LzmaLib/LzmaLib.dsp +178 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/LzmaLib/LzmaLib.dsw +29 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/LzmaLib/LzmaLibExports.c +14 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/LzmaLib/makefile +34 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/LzmaLib/resource.rc +3 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/SfxSetup/Precomp.c +4 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/SfxSetup/Precomp.h +10 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/SfxSetup/SfxSetup.c +640 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/SfxSetup/SfxSetup.dsp +231 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/SfxSetup/SfxSetup.dsw +29 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/SfxSetup/makefile +37 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/SfxSetup/makefile_con +38 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/SfxSetup/resource.rc +5 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Util/SfxSetup/setup.ico +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Xz.c +90 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/Xz.h +460 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/XzCrc64.c +86 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/XzCrc64.h +26 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/XzCrc64Opt.c +69 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/XzDec.c +2766 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/XzEnc.c +1329 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/XzEnc.h +60 -0
- package/mgba-bridge/vendor/mgba/src/third-party/lzma/XzIn.c +319 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/CMakeLists.txt +249 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/ChangeLog +1578 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/FAQ +368 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/INDEX +68 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/Makefile +5 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/Makefile.in +408 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/README +118 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/adler32.c +186 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/amiga/Makefile.pup +69 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/amiga/Makefile.sas +68 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/compress.c +86 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/configure +927 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/README.contrib +57 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/ada/buffer_demo.adb +106 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/ada/mtest.adb +156 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/ada/read.adb +156 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/ada/readme.txt +65 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/ada/test.adb +463 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/ada/zlib-streams.adb +225 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/ada/zlib-streams.ads +114 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/ada/zlib-thin.adb +141 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/ada/zlib-thin.ads +450 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/ada/zlib.adb +701 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/ada/zlib.ads +328 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/ada/zlib.gpr +20 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/blast/Makefile +8 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/blast/README +4 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/blast/blast.c +466 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/blast/blast.h +83 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/blast/test.pk +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/blast/test.txt +1 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/delphi/ZLib.pas +557 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/delphi/ZLibConst.pas +11 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/delphi/readme.txt +76 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/delphi/zlibd32.mak +99 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/dotzlib/DotZLib/AssemblyInfo.cs +58 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs +202 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/dotzlib/DotZLib/CircularBuffer.cs +83 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/dotzlib/DotZLib/CodecBase.cs +198 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/dotzlib/DotZLib/Deflater.cs +106 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/dotzlib/DotZLib/DotZLib.cs +288 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/dotzlib/DotZLib/DotZLib.csproj +141 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/dotzlib/DotZLib/GZipStream.cs +301 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/dotzlib/DotZLib/Inflater.cs +105 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/dotzlib/DotZLib/UnitTests.cs +274 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/dotzlib/DotZLib.build +33 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/dotzlib/DotZLib.chm +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/dotzlib/DotZLib.sln +21 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/dotzlib/LICENSE_1_0.txt +23 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/dotzlib/readme.txt +58 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/gcc_gvmat64/gvmat64.S +574 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/infback9/README +1 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/infback9/infback9.c +615 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/infback9/infback9.h +37 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/infback9/inffix9.h +107 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/infback9/inflate9.h +47 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/infback9/inftree9.c +324 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/infback9/inftree9.h +61 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/iostream/test.cpp +24 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/iostream/zfstream.cpp +329 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/iostream/zfstream.h +128 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/iostream2/zstream.h +307 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/iostream2/zstream_test.cpp +25 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/iostream3/README +35 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/iostream3/TODO +17 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/iostream3/test.cc +50 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/iostream3/zfstream.cc +479 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/iostream3/zfstream.h +466 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/minizip/Makefile +29 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/minizip/Makefile.am +45 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/minizip/MiniZip64_Changes.txt +6 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/minizip/MiniZip64_info.txt +74 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/minizip/configure.ac +32 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/minizip/crypt.h +132 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/minizip/ioapi.c +257 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/minizip/ioapi.h +210 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/minizip/iowin32.c +462 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/minizip/iowin32.h +28 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/minizip/make_vms.com +25 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/minizip/miniunz.c +659 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/minizip/miniunzip.1 +63 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/minizip/minizip.1 +46 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/minizip/minizip.c +521 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/minizip/minizip.pc.in +12 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/minizip/mztools.c +291 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/minizip/mztools.h +37 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/minizip/unzip.c +2128 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/minizip/unzip.h +437 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/minizip/zip.c +2007 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/minizip/zip.h +367 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/pascal/example.pas +599 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/pascal/readme.txt +76 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/pascal/zlibd32.mak +99 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/pascal/zlibpas.pas +276 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/puff/Makefile +42 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/puff/README +63 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/puff/puff.c +840 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/puff/puff.h +35 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/puff/pufftest.c +165 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/puff/zeros.raw +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/testzlib/testzlib.c +275 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/testzlib/testzlib.txt +10 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/untgz/Makefile +14 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/untgz/Makefile.msc +17 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/untgz/untgz.c +674 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/readme.txt +78 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc10/miniunz.vcxproj +310 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc10/miniunz.vcxproj.filters +22 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc10/minizip.vcxproj +307 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc10/minizip.vcxproj.filters +22 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc10/testzlib.vcxproj +420 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc10/testzlib.vcxproj.filters +58 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc10/testzlibdll.vcxproj +310 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc10/testzlibdll.vcxproj.filters +22 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc10/zlib.rc +32 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc10/zlibstat.vcxproj +473 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc10/zlibstat.vcxproj.filters +77 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc10/zlibvc.def +158 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc10/zlibvc.sln +135 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc10/zlibvc.vcxproj +657 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc10/zlibvc.vcxproj.filters +118 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc11/miniunz.vcxproj +314 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc11/minizip.vcxproj +311 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc11/testzlib.vcxproj +426 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc11/testzlibdll.vcxproj +314 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc11/zlib.rc +32 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc11/zlibstat.vcxproj +464 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc11/zlibvc.def +158 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc11/zlibvc.sln +117 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc11/zlibvc.vcxproj +688 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc12/miniunz.vcxproj +316 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc12/minizip.vcxproj +313 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc12/testzlib.vcxproj +430 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc12/testzlibdll.vcxproj +316 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc12/zlib.rc +32 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc12/zlibstat.vcxproj +467 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc12/zlibvc.def +158 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc12/zlibvc.sln +119 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc12/zlibvc.vcxproj +692 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc14/miniunz.vcxproj +316 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc14/minizip.vcxproj +313 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc14/testzlib.vcxproj +430 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc14/testzlibdll.vcxproj +316 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc14/zlib.rc +32 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc14/zlibstat.vcxproj +467 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc14/zlibvc.def +158 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc14/zlibvc.sln +119 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc14/zlibvc.vcxproj +692 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc9/miniunz.vcproj +565 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc9/minizip.vcproj +562 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc9/testzlib.vcproj +852 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc9/testzlibdll.vcproj +565 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc9/zlib.rc +32 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc9/zlibstat.vcproj +835 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc9/zlibvc.def +158 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc9/zlibvc.sln +144 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/contrib/vstudio/vc9/zlibvc.vcproj +1156 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/crc32.c +1116 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/crc32.h +9446 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/deflate.c +2211 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/deflate.h +346 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/doc/algorithm.txt +209 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/doc/crc-doc.1.0.pdf +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/doc/rfc1950.txt +619 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/doc/rfc1951.txt +955 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/doc/rfc1952.txt +675 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/doc/txtvsbin.txt +107 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/examples/README.examples +54 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/examples/enough.c +597 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/examples/fitblk.c +233 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/examples/gun.c +702 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/examples/gzappend.c +504 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/examples/gzjoin.c +449 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/examples/gzlog.c +1061 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/examples/gzlog.h +91 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/examples/gznorm.c +470 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/examples/zlib_how.html +545 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/examples/zpipe.c +205 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/examples/zran.c +479 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/examples/zran.h +40 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/gzclose.c +25 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/gzguts.h +219 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/gzlib.c +639 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/gzread.c +652 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/gzwrite.c +677 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/infback.c +641 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/inffast.c +323 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/inffast.h +11 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/inffixed.h +94 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/inflate.c +1592 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/inflate.h +126 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/inftrees.c +304 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/inftrees.h +62 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/make_vms.com +867 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/msdos/Makefile.bor +115 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/msdos/Makefile.dj2 +104 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/msdos/Makefile.emx +69 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/msdos/Makefile.msc +112 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/msdos/Makefile.tc +100 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/nintendods/Makefile +126 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/nintendods/README +5 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/old/Makefile.emx +69 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/old/Makefile.riscos +151 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/old/README +3 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/old/descrip.mms +48 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/old/os2/Makefile.os2 +136 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/old/os2/zlib.def +51 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/old/visual-basic.txt +160 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/os400/README400 +48 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/os400/bndsrc +119 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/os400/make.sh +366 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/os400/zlib.inc +527 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/qnx/package.qpg +141 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/treebuild.xml +116 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/trees.c +1182 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/trees.h +128 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/uncompr.c +93 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/watcom/watcom_f.mak +43 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/watcom/watcom_l.mak +43 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/win32/DLL_FAQ.txt +397 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/win32/Makefile.bor +109 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/win32/Makefile.gcc +177 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/win32/Makefile.msc +159 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/win32/README-WIN32.txt +103 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/win32/VisualC.txt +3 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/win32/zlib.def +97 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/win32/zlib1.rc +40 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/zconf.h +534 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/zconf.h.cmakein +536 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/zconf.h.in +534 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/zlib.3 +149 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/zlib.3.pdf +0 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/zlib.h +1935 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/zlib.map +100 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/zlib.pc.cmakein +13 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/zlib.pc.in +13 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/zlib2ansi +152 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/zutil.c +325 -0
- package/mgba-bridge/vendor/mgba/src/third-party/zlib/zutil.h +274 -0
- package/mgba-bridge/vendor/mgba/src/tools/docgen.c +541 -0
- package/mgba-bridge/vendor/mgba/src/tools/font-sdf.c +136 -0
- package/mgba-bridge/vendor/mgba/src/tools/updater-main.c +377 -0
- package/mgba-bridge/vendor/mgba/src/util/CMakeLists.txt +68 -0
- package/mgba-bridge/vendor/mgba/src/util/audio-buffer.c +62 -0
- package/mgba-bridge/vendor/mgba/src/util/audio-resampler.c +109 -0
- package/mgba-bridge/vendor/mgba/src/util/circle-buffer.c +274 -0
- package/mgba-bridge/vendor/mgba/src/util/configuration.c +233 -0
- package/mgba-bridge/vendor/mgba/src/util/convolve.c +182 -0
- package/mgba-bridge/vendor/mgba/src/util/crc32.c +138 -0
- package/mgba-bridge/vendor/mgba/src/util/elf-read.c +128 -0
- package/mgba-bridge/vendor/mgba/src/util/formatting.c +87 -0
- package/mgba-bridge/vendor/mgba/src/util/gbk-table.c +129 -0
- package/mgba-bridge/vendor/mgba/src/util/geometry.c +94 -0
- package/mgba-bridge/vendor/mgba/src/util/gui/file-select.c +236 -0
- package/mgba-bridge/vendor/mgba/src/util/gui/font-metrics.c +199 -0
- package/mgba-bridge/vendor/mgba/src/util/gui/font.c +169 -0
- package/mgba-bridge/vendor/mgba/src/util/gui/menu.c +412 -0
- package/mgba-bridge/vendor/mgba/src/util/gui.c +81 -0
- package/mgba-bridge/vendor/mgba/src/util/hash.c +108 -0
- package/mgba-bridge/vendor/mgba/src/util/image/export.c +81 -0
- package/mgba-bridge/vendor/mgba/src/util/image/font.c +274 -0
- package/mgba-bridge/vendor/mgba/src/util/image/png-io.c +730 -0
- package/mgba-bridge/vendor/mgba/src/util/image.c +1109 -0
- package/mgba-bridge/vendor/mgba/src/util/interpolator.c +116 -0
- package/mgba-bridge/vendor/mgba/src/util/md5.c +228 -0
- package/mgba-bridge/vendor/mgba/src/util/memory.c +15 -0
- package/mgba-bridge/vendor/mgba/src/util/patch-fast.c +130 -0
- package/mgba-bridge/vendor/mgba/src/util/patch-ips.c +93 -0
- package/mgba-bridge/vendor/mgba/src/util/patch-ups.c +254 -0
- package/mgba-bridge/vendor/mgba/src/util/patch.c +25 -0
- package/mgba-bridge/vendor/mgba/src/util/ring-fifo.c +104 -0
- package/mgba-bridge/vendor/mgba/src/util/sfo.c +229 -0
- package/mgba-bridge/vendor/mgba/src/util/sha1.c +258 -0
- package/mgba-bridge/vendor/mgba/src/util/string.c +652 -0
- package/mgba-bridge/vendor/mgba/src/util/table.c +682 -0
- package/mgba-bridge/vendor/mgba/src/util/text-codec.c +197 -0
- package/mgba-bridge/vendor/mgba/src/util/vector.c +18 -0
- package/mgba-bridge/vendor/mgba/src/util/vfs/vfs-devlist.c +104 -0
- package/mgba-bridge/vendor/mgba/src/util/vfs/vfs-dirent.c +173 -0
- package/mgba-bridge/vendor/mgba/src/util/vfs/vfs-fd.c +282 -0
- package/mgba-bridge/vendor/mgba/src/util/vfs/vfs-fifo.c +102 -0
- package/mgba-bridge/vendor/mgba/src/util/vfs/vfs-file.c +159 -0
- package/mgba-bridge/vendor/mgba/src/util/vfs/vfs-lzma.c +404 -0
- package/mgba-bridge/vendor/mgba/src/util/vfs/vfs-mem.c +331 -0
- package/mgba-bridge/vendor/mgba/src/util/vfs/vfs-zip.c +804 -0
- package/mgba-bridge/vendor/mgba/src/util/vfs.c +320 -0
- package/mgba-bridge/vendor/mgba/tools/deploy-mac.py +178 -0
- package/mgba-bridge/vendor/mgba/tools/deploy-win.sh +27 -0
- package/mgba-bridge/vendor/mgba/tools/dlls.gdb +3 -0
- package/mgba-bridge/vendor/mgba/tools/make-dotcode.py +154 -0
- package/mgba-bridge/vendor/mgba/tools/perf.py +230 -0
- package/mgba-bridge/vendor/mgba/tools/sanitize-deb.sh +74 -0
- package/mgba-bridge/vendor/mgba/tools/snes-tile.py +94 -0
- package/mgba-bridge/vendor/mgba/version.cmake +62 -0
- package/package.json +47 -0
- package/src/audio-output.ts +387 -0
- package/src/config.ts +114 -0
- package/src/constants.ts +37 -0
- package/src/extension.ts +570 -0
- package/src/gameboy-mgba.ts +133 -0
- package/src/gameboy-types.ts +24 -0
- package/src/gameboy.ts +33 -0
- package/src/index.ts +1 -0
- package/src/mgba/bridge-bin.ts +66 -0
- package/src/mgba/bridge.ts +145 -0
- package/src/mgba/protocol.ts +30 -0
- package/src/mgba/stdio.ts +74 -0
- package/src/notify.ts +12 -0
- package/src/pi-boy-component.ts +372 -0
- package/src/render/ansi.ts +239 -0
- package/src/render/kitty.ts +154 -0
- package/src/roms.ts +163 -0
- package/src/runtime.ts +36 -0
- package/src/save-state.ts +94 -0
- package/src/terminal.ts +18 -0
- package/tsconfig.json +11 -0
- package/types/shims.d.ts +121 -0
|
@@ -0,0 +1,881 @@
|
|
|
1
|
+
/*- genpng
|
|
2
|
+
*
|
|
3
|
+
* COPYRIGHT: Written by John Cunningham Bowler, 2015.
|
|
4
|
+
* Revised by Glenn Randers-Pehrson, 2017, to add buffer-size check.
|
|
5
|
+
* To the extent possible under law, the authors have waived all copyright and
|
|
6
|
+
* related or neighboring rights to this work. This work is published from:
|
|
7
|
+
* United States.
|
|
8
|
+
*
|
|
9
|
+
* Generate a PNG with an alpha channel, correctly.
|
|
10
|
+
*
|
|
11
|
+
* This is a test case generator; the resultant PNG files are only of interest
|
|
12
|
+
* to those of us who care about whether the edges of circles are green, red,
|
|
13
|
+
* or yellow.
|
|
14
|
+
*
|
|
15
|
+
* The program generates an RGB+Alpha PNG of a given size containing the given
|
|
16
|
+
* shapes on a transparent background:
|
|
17
|
+
*
|
|
18
|
+
* genpng width height { shape }
|
|
19
|
+
* shape ::= color width shape x1 y1 x2 y2
|
|
20
|
+
*
|
|
21
|
+
* 'color' is:
|
|
22
|
+
*
|
|
23
|
+
* black white red green yellow blue brown purple pink orange gray cyan
|
|
24
|
+
*
|
|
25
|
+
* The point is to have colors that are linguistically meaningful plus that old
|
|
26
|
+
* bugbear of the department store dress murders, Cyan, the only color we argue
|
|
27
|
+
* about.
|
|
28
|
+
*
|
|
29
|
+
* 'shape' is:
|
|
30
|
+
*
|
|
31
|
+
* circle: an ellipse
|
|
32
|
+
* square: a rectangle
|
|
33
|
+
* line: a straight line
|
|
34
|
+
*
|
|
35
|
+
* Each shape is followed by four numbers, these are two points in the output
|
|
36
|
+
* coordinate space (as real numbers) which describe the circle, square, or
|
|
37
|
+
* line. The shape is filled if it is preceded by 'filled' (not valid for
|
|
38
|
+
* 'line') or is drawn with a line, in which case the width of the line must
|
|
39
|
+
* precede the shape.
|
|
40
|
+
*
|
|
41
|
+
* The whole set of information can be repeated as many times as desired:
|
|
42
|
+
*
|
|
43
|
+
* shape ::= color width shape x1 y1 x2 y2
|
|
44
|
+
*
|
|
45
|
+
* color ::= black|white|red|green|yellow|blue
|
|
46
|
+
* color ::= brown|purple|pink|orange|gray|cyan
|
|
47
|
+
* width ::= filled
|
|
48
|
+
* width ::= <number>
|
|
49
|
+
* shape ::= circle|square|line
|
|
50
|
+
* x1 ::= <number>
|
|
51
|
+
* x2 ::= <number>
|
|
52
|
+
* y1 ::= <number>
|
|
53
|
+
* y2 ::= <number>
|
|
54
|
+
*
|
|
55
|
+
* The output PNG is generated by down-sampling a 4x supersampled image using
|
|
56
|
+
* a bi-cubic filter. The bi-cubic has a 2 (output) pixel width, so an 8x8
|
|
57
|
+
* array of super-sampled points contribute to each output pixel. The value of
|
|
58
|
+
* a super-sampled point is found using an unfiltered, aliased, infinite
|
|
59
|
+
* precision image: Each shape from the last to the first is checked to see if
|
|
60
|
+
* the point is in the drawn area and, if it is, the color of the point is the
|
|
61
|
+
* color of the shape and the alpha is 1, if not the previous shape is checked.
|
|
62
|
+
*
|
|
63
|
+
* This is an aliased algorithm because no filtering is done; a point is either
|
|
64
|
+
* inside or outside each shape and 'close' points do not contribute to the
|
|
65
|
+
* sample. The down-sampling is relied on to correct the error of not using
|
|
66
|
+
* a filter.
|
|
67
|
+
*
|
|
68
|
+
* The line end-caps are 'flat'; they go through the points. The square line
|
|
69
|
+
* joins are mitres; the outside of the lines are continued to the point of
|
|
70
|
+
* intersection.
|
|
71
|
+
*/
|
|
72
|
+
#include <stddef.h>
|
|
73
|
+
#include <stdlib.h>
|
|
74
|
+
#include <string.h>
|
|
75
|
+
#include <stdio.h>
|
|
76
|
+
#include <math.h>
|
|
77
|
+
|
|
78
|
+
/* Normally use <png.h> here to get the installed libpng, but this is done to
|
|
79
|
+
* ensure the code picks up the local libpng implementation:
|
|
80
|
+
*/
|
|
81
|
+
#include "../../png.h"
|
|
82
|
+
|
|
83
|
+
#if defined(PNG_SIMPLIFIED_WRITE_SUPPORTED) && defined(PNG_STDIO_SUPPORTED)
|
|
84
|
+
|
|
85
|
+
static const struct color
|
|
86
|
+
{
|
|
87
|
+
const char *name;
|
|
88
|
+
double red;
|
|
89
|
+
double green;
|
|
90
|
+
double blue;
|
|
91
|
+
} colors[] =
|
|
92
|
+
/* color ::= black|white|red|green|yellow|blue
|
|
93
|
+
* color ::= brown|purple|pink|orange|gray|cyan
|
|
94
|
+
*/
|
|
95
|
+
{
|
|
96
|
+
{ "black", 0, 0, 0 },
|
|
97
|
+
{ "white", 1, 1, 1 },
|
|
98
|
+
{ "red", 1, 0, 0 },
|
|
99
|
+
{ "green", 0, 1, 0 },
|
|
100
|
+
{ "yellow", 1, 1, 0 },
|
|
101
|
+
{ "blue", 0, 0, 1 },
|
|
102
|
+
{ "brown", .5, .125, 0 },
|
|
103
|
+
{ "purple", 1, 0, 1 },
|
|
104
|
+
{ "pink", 1, .5, .5 },
|
|
105
|
+
{ "orange", 1, .5, 0 },
|
|
106
|
+
{ "gray", 0, .5, .5 },
|
|
107
|
+
{ "cyan", 0, 1, 1 }
|
|
108
|
+
};
|
|
109
|
+
#define color_count ((sizeof colors)/(sizeof colors[0]))
|
|
110
|
+
|
|
111
|
+
static const struct color *
|
|
112
|
+
color_of(const char *arg)
|
|
113
|
+
{
|
|
114
|
+
int icolor = color_count;
|
|
115
|
+
|
|
116
|
+
while (--icolor >= 0)
|
|
117
|
+
{
|
|
118
|
+
if (strcmp(colors[icolor].name, arg) == 0)
|
|
119
|
+
return colors+icolor;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
fprintf(stderr, "genpng: invalid color %s\n", arg);
|
|
123
|
+
exit(1);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
static double
|
|
127
|
+
width_of(const char *arg)
|
|
128
|
+
{
|
|
129
|
+
if (strcmp(arg, "filled") == 0)
|
|
130
|
+
return 0;
|
|
131
|
+
|
|
132
|
+
else
|
|
133
|
+
{
|
|
134
|
+
char *ep = NULL;
|
|
135
|
+
double w = strtod(arg, &ep);
|
|
136
|
+
|
|
137
|
+
if (ep != NULL && *ep == 0 && w > 0)
|
|
138
|
+
return w;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
fprintf(stderr, "genpng: invalid line width %s\n", arg);
|
|
142
|
+
exit(1);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
static double
|
|
146
|
+
coordinate_of(const char *arg)
|
|
147
|
+
{
|
|
148
|
+
char *ep = NULL;
|
|
149
|
+
double w = strtod(arg, &ep);
|
|
150
|
+
|
|
151
|
+
if (ep != NULL && *ep == 0)
|
|
152
|
+
return w;
|
|
153
|
+
|
|
154
|
+
fprintf(stderr, "genpng: invalid coordinate value %s\n", arg);
|
|
155
|
+
exit(1);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
struct arg; /* forward declaration */
|
|
159
|
+
|
|
160
|
+
typedef int (*shape_fn_ptr)(const struct arg *arg, double x, double y);
|
|
161
|
+
/* A function to determine if (x,y) is inside the shape.
|
|
162
|
+
*
|
|
163
|
+
* There are two implementations:
|
|
164
|
+
*
|
|
165
|
+
* inside_fn: returns true if the point is inside
|
|
166
|
+
* check_fn: returns;
|
|
167
|
+
* -1: the point is outside the shape by more than the filter width (2)
|
|
168
|
+
* 0: the point may be inside the shape
|
|
169
|
+
* +1: the point is inside the shape by more than the filter width
|
|
170
|
+
*/
|
|
171
|
+
#define OUTSIDE (-1)
|
|
172
|
+
#define INSIDE (1)
|
|
173
|
+
|
|
174
|
+
struct arg
|
|
175
|
+
{
|
|
176
|
+
const struct color *color;
|
|
177
|
+
shape_fn_ptr inside_fn;
|
|
178
|
+
shape_fn_ptr check_fn;
|
|
179
|
+
double width; /* line width, 0 for 'filled' */
|
|
180
|
+
double x1, y1, x2, y2;
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
/* IMPLEMENTATION NOTE:
|
|
184
|
+
*
|
|
185
|
+
* We want the contribution of each shape to the sample corresponding to each
|
|
186
|
+
* pixel. This could be obtained by super sampling the image to infinite
|
|
187
|
+
* dimensions, finding each point within the shape and assigning that a value
|
|
188
|
+
* '1' while leaving every point outside the shape with value '0' then
|
|
189
|
+
* downsampling to the image size with sinc; computationally very expensive.
|
|
190
|
+
*
|
|
191
|
+
* Approximations are as follows:
|
|
192
|
+
*
|
|
193
|
+
* 1) If the pixel coordinate is within the shape assume the sample has the
|
|
194
|
+
* shape color and is opaque, else assume there is no contribution from
|
|
195
|
+
* the shape.
|
|
196
|
+
*
|
|
197
|
+
* This is the equivalent of aliased rendering or resampling an image with
|
|
198
|
+
* a block filter. The maximum error in the calculated alpha (which will
|
|
199
|
+
* always be 0 or 1) is 0.5.
|
|
200
|
+
*
|
|
201
|
+
* 2) If the shape is within a square of size 1x1 centered on the pixel assume
|
|
202
|
+
* that the shape obscures an amount of the pixel equal to its area within
|
|
203
|
+
* that square.
|
|
204
|
+
*
|
|
205
|
+
* This is the equivalent of 'pixel coverage' alpha calculation or resampling
|
|
206
|
+
* an image with a bi-linear filter. The maximum error is over 0.2, but the
|
|
207
|
+
* results are often acceptable.
|
|
208
|
+
*
|
|
209
|
+
* This can be approximated by applying (1) to a super-sampled image then
|
|
210
|
+
* downsampling with a bi-linear filter. The error in the super-sampled
|
|
211
|
+
* image is 0.5 per sample, but the resampling reduces this.
|
|
212
|
+
*
|
|
213
|
+
* 3) Use a better filter with a super-sampled image; in the limit this is the
|
|
214
|
+
* sinc() approach.
|
|
215
|
+
*
|
|
216
|
+
* 4) Do the geometric calculation; a bivariate definite integral across the
|
|
217
|
+
* shape, unfortunately this means evaluating Si(x), the integral of sinc(x),
|
|
218
|
+
* which is still a lot of math.
|
|
219
|
+
*
|
|
220
|
+
* This code uses approach (3) with a bi-cubic filter and 8x super-sampling
|
|
221
|
+
* and method (1) for the super-samples. This means that the sample is either
|
|
222
|
+
* 0 or 1, depending on whether the sub-pixel is within or outside the shape.
|
|
223
|
+
* The bi-cubic weights are also fixed and the 16 required weights are
|
|
224
|
+
* pre-computed here (note that the 'scale' setting will need to be changed if
|
|
225
|
+
* 'super' is increased).
|
|
226
|
+
*
|
|
227
|
+
* The code also calculates a sum to the edge of the filter. This is not
|
|
228
|
+
* currently used by could be used to optimize the calculation.
|
|
229
|
+
*/
|
|
230
|
+
#if 0 /* bc code */
|
|
231
|
+
scale=10
|
|
232
|
+
super=8
|
|
233
|
+
define bicubic(x) {
|
|
234
|
+
if (x <= 1) return (1.5*x - 2.5)*x*x + 1;
|
|
235
|
+
if (x < 2) return (((2.5 - 0.5*x)*x - 4)*x + 2);
|
|
236
|
+
return 0;
|
|
237
|
+
}
|
|
238
|
+
define sum(x) {
|
|
239
|
+
auto s;
|
|
240
|
+
s = 0;
|
|
241
|
+
while (x < 2*super) {
|
|
242
|
+
s = s + bicubic(x/super);
|
|
243
|
+
x = x + 1;
|
|
244
|
+
}
|
|
245
|
+
return s;
|
|
246
|
+
}
|
|
247
|
+
define results(x) {
|
|
248
|
+
auto b, s;
|
|
249
|
+
b = bicubic(x/super);
|
|
250
|
+
s = sum(x);
|
|
251
|
+
|
|
252
|
+
print " /*", x, "*/ { ", b, ", ", s, " }";
|
|
253
|
+
return 1;
|
|
254
|
+
}
|
|
255
|
+
x=0
|
|
256
|
+
while (x<2*super) {
|
|
257
|
+
x = x + results(x)
|
|
258
|
+
if (x < 2*super) print ","
|
|
259
|
+
print "\n"
|
|
260
|
+
}
|
|
261
|
+
quit
|
|
262
|
+
#endif
|
|
263
|
+
|
|
264
|
+
#define BICUBIC1(x) /* |x| <= 1 */ ((1.5*(x)* - 2.5)*(x)*(x) + 1)
|
|
265
|
+
#define BICUBIC2(x) /* 1 < |x| < 2 */ (((2.5 - 0.5*(x))*(x) - 4)*(x) + 2)
|
|
266
|
+
#define FILTER_WEIGHT 9 /* Twice the first sum below */
|
|
267
|
+
#define FILTER_WIDTH 2 /* Actually half the width; -2..+2 */
|
|
268
|
+
#define FILTER_STEPS 8 /* steps per filter unit */
|
|
269
|
+
static const double
|
|
270
|
+
bicubic[16][2] =
|
|
271
|
+
{
|
|
272
|
+
/* These numbers are exact; the weight for the filter is 1/9, but this
|
|
273
|
+
* would make the numbers inexact, so it is not included here.
|
|
274
|
+
*/
|
|
275
|
+
/* bicubic sum */
|
|
276
|
+
/* 0*/ { 1.0000000000, 4.5000000000 },
|
|
277
|
+
/* 1*/ { .9638671875, 3.5000000000 },
|
|
278
|
+
/* 2*/ { .8671875000, 2.5361328125 },
|
|
279
|
+
/* 3*/ { .7275390625, 1.6689453125 },
|
|
280
|
+
/* 4*/ { .5625000000, .9414062500 },
|
|
281
|
+
/* 5*/ { .3896484375, .3789062500 },
|
|
282
|
+
/* 6*/ { .2265625000, -.0107421875 },
|
|
283
|
+
/* 7*/ { .0908203125, -.2373046875 },
|
|
284
|
+
/* 8*/ { 0, -.3281250000 },
|
|
285
|
+
/* 9*/ { -.0478515625, -.3281250000 },
|
|
286
|
+
/*10*/ { -.0703125000, -.2802734375 },
|
|
287
|
+
/*11*/ { -.0732421875, -.2099609375 },
|
|
288
|
+
/*12*/ { -.0625000000, -.1367187500 },
|
|
289
|
+
/*13*/ { -.0439453125, -.0742187500 },
|
|
290
|
+
/*14*/ { -.0234375000, -.0302734375 },
|
|
291
|
+
/*15*/ { -.0068359375, -.0068359375 }
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
static double
|
|
295
|
+
alpha_calc(const struct arg *arg, double x, double y)
|
|
296
|
+
{
|
|
297
|
+
/* For [x-2..x+2],[y-2,y+2] calculate the weighted bicubic given a function
|
|
298
|
+
* which tells us whether a point is inside or outside the shape. First
|
|
299
|
+
* check if we need to do this at all:
|
|
300
|
+
*/
|
|
301
|
+
switch (arg->check_fn(arg, x, y))
|
|
302
|
+
{
|
|
303
|
+
case OUTSIDE:
|
|
304
|
+
return 0; /* all samples outside the shape */
|
|
305
|
+
|
|
306
|
+
case INSIDE:
|
|
307
|
+
return 1; /* all samples inside the shape */
|
|
308
|
+
|
|
309
|
+
default:
|
|
310
|
+
{
|
|
311
|
+
int dy;
|
|
312
|
+
double alpha = 0;
|
|
313
|
+
|
|
314
|
+
# define FILTER_D (FILTER_WIDTH*FILTER_STEPS-1)
|
|
315
|
+
for (dy=-FILTER_D; dy<=FILTER_D; ++dy)
|
|
316
|
+
{
|
|
317
|
+
double wy = bicubic[abs(dy)][0];
|
|
318
|
+
|
|
319
|
+
if (wy != 0)
|
|
320
|
+
{
|
|
321
|
+
double alphay = 0;
|
|
322
|
+
int dx;
|
|
323
|
+
|
|
324
|
+
for (dx=-FILTER_D; dx<=FILTER_D; ++dx)
|
|
325
|
+
{
|
|
326
|
+
double wx = bicubic[abs(dx)][0];
|
|
327
|
+
|
|
328
|
+
if (wx != 0 && arg->inside_fn(arg, x+dx/16, y+dy/16))
|
|
329
|
+
alphay += wx;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
alpha += wy * alphay;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/* This needs to be weighted for each dimension: */
|
|
337
|
+
return alpha / (FILTER_WEIGHT*FILTER_WEIGHT);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/* These are the shape functions. */
|
|
343
|
+
/* "square",
|
|
344
|
+
* { inside_square_filled, check_square_filled },
|
|
345
|
+
* { inside_square, check_square }
|
|
346
|
+
*/
|
|
347
|
+
static int
|
|
348
|
+
square_check(double x, double y, double x1, double y1, double x2, double y2)
|
|
349
|
+
/* Is x,y inside the square (x1,y1)..(x2,y2)? */
|
|
350
|
+
{
|
|
351
|
+
/* Do a modified Cohen-Sutherland on one point, bit patterns that indicate
|
|
352
|
+
* 'outside' are:
|
|
353
|
+
*
|
|
354
|
+
* x<x1 | x<y1 | x<x2 | x<y2
|
|
355
|
+
* 0 x 0 x To the right
|
|
356
|
+
* 1 x 1 x To the left
|
|
357
|
+
* x 0 x 0 Below
|
|
358
|
+
* x 1 x 1 Above
|
|
359
|
+
*
|
|
360
|
+
* So 'inside' is (x<x1) != (x<x2) && (y<y1) != (y<y2);
|
|
361
|
+
*/
|
|
362
|
+
return ((x<x1) ^ (x<x2)) & ((y<y1) ^ (y<y2));
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
static int
|
|
366
|
+
inside_square_filled(const struct arg *arg, double x, double y)
|
|
367
|
+
{
|
|
368
|
+
return square_check(x, y, arg->x1, arg->y1, arg->x2, arg->y2);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
static int
|
|
372
|
+
square_check_line(const struct arg *arg, double x, double y, double w)
|
|
373
|
+
/* Check for a point being inside the boundaries implied by the given arg
|
|
374
|
+
* and assuming a width 2*w each side of the boundaries. This returns the
|
|
375
|
+
* 'check' INSIDE/OUTSIDE/0 result but note the semantics:
|
|
376
|
+
*
|
|
377
|
+
* +--------------+
|
|
378
|
+
* | | OUTSIDE
|
|
379
|
+
* | INSIDE |
|
|
380
|
+
* | |
|
|
381
|
+
* +--------------+
|
|
382
|
+
*
|
|
383
|
+
* And '0' means within the line boundaries.
|
|
384
|
+
*/
|
|
385
|
+
{
|
|
386
|
+
double cx = (arg->x1+arg->x2)/2;
|
|
387
|
+
double wx = fabs(arg->x1-arg->x2)/2;
|
|
388
|
+
double cy = (arg->y1+arg->y2)/2;
|
|
389
|
+
double wy = fabs(arg->y1-arg->y2)/2;
|
|
390
|
+
|
|
391
|
+
if (square_check(x, y, cx-wx-w, cy-wy-w, cx+wx+w, cy+wy+w))
|
|
392
|
+
{
|
|
393
|
+
/* Inside, but maybe too far; check for the redundant case where
|
|
394
|
+
* the lines overlap:
|
|
395
|
+
*/
|
|
396
|
+
wx -= w;
|
|
397
|
+
wy -= w;
|
|
398
|
+
if (wx > 0 && wy > 0 && square_check(x, y, cx-wx, cy-wy, cx+wx, cy+wy))
|
|
399
|
+
return INSIDE; /* between (inside) the boundary lines. */
|
|
400
|
+
|
|
401
|
+
return 0; /* inside the lines themselves. */
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
return OUTSIDE; /* outside the boundary lines. */
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
static int
|
|
408
|
+
check_square_filled(const struct arg *arg, double x, double y)
|
|
409
|
+
{
|
|
410
|
+
/* The filter extends +/-FILTER_WIDTH each side of each output point, so
|
|
411
|
+
* the check has to expand and contract the square by that amount; '0'
|
|
412
|
+
* means close enough to the edge of the square that the bicubic filter has
|
|
413
|
+
* to be run, OUTSIDE means alpha==0, INSIDE means alpha==1.
|
|
414
|
+
*/
|
|
415
|
+
return square_check_line(arg, x, y, FILTER_WIDTH);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
static int
|
|
419
|
+
inside_square(const struct arg *arg, double x, double y)
|
|
420
|
+
{
|
|
421
|
+
/* Return true if within the drawn lines, else false, no need to distinguish
|
|
422
|
+
* INSIDE vs OUTSIDE here:
|
|
423
|
+
*/
|
|
424
|
+
return square_check_line(arg, x, y, arg->width/2) == 0;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
static int
|
|
428
|
+
check_square(const struct arg *arg, double x, double y)
|
|
429
|
+
{
|
|
430
|
+
/* So for this function a result of 'INSIDE' means inside the actual lines.
|
|
431
|
+
*/
|
|
432
|
+
double w = arg->width/2;
|
|
433
|
+
|
|
434
|
+
if (square_check_line(arg, x, y, w+FILTER_WIDTH) == 0)
|
|
435
|
+
{
|
|
436
|
+
/* Somewhere close to the boundary lines. If far enough inside one of
|
|
437
|
+
* them then we can return INSIDE:
|
|
438
|
+
*/
|
|
439
|
+
w -= FILTER_WIDTH;
|
|
440
|
+
|
|
441
|
+
if (w > 0 && square_check_line(arg, x, y, w) == 0)
|
|
442
|
+
return INSIDE;
|
|
443
|
+
|
|
444
|
+
/* Point is somewhere in the filter region: */
|
|
445
|
+
return 0;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
else /* Inside or outside the square by more than w+FILTER_WIDTH. */
|
|
449
|
+
return OUTSIDE;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/* "circle",
|
|
453
|
+
* { inside_circle_filled, check_circle_filled },
|
|
454
|
+
* { inside_circle, check_circle }
|
|
455
|
+
*
|
|
456
|
+
* The functions here are analoguous to the square ones; however, they check
|
|
457
|
+
* the corresponding ellipse as opposed to the rectangle.
|
|
458
|
+
*/
|
|
459
|
+
static int
|
|
460
|
+
circle_check(double x, double y, double x1, double y1, double x2, double y2)
|
|
461
|
+
{
|
|
462
|
+
if (square_check(x, y, x1, y1, x2, y2))
|
|
463
|
+
{
|
|
464
|
+
/* Inside the square, so maybe inside the circle too: */
|
|
465
|
+
const double cx = (x1 + x2)/2;
|
|
466
|
+
const double cy = (y1 + y2)/2;
|
|
467
|
+
const double dx = x1 - x2;
|
|
468
|
+
const double dy = y1 - y2;
|
|
469
|
+
|
|
470
|
+
x = (x - cx)/dx;
|
|
471
|
+
y = (y - cy)/dy;
|
|
472
|
+
|
|
473
|
+
/* It is outside if the distance from the center is more than half the
|
|
474
|
+
* diameter:
|
|
475
|
+
*/
|
|
476
|
+
return x*x+y*y < .25;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
return 0; /* outside */
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
static int
|
|
483
|
+
inside_circle_filled(const struct arg *arg, double x, double y)
|
|
484
|
+
{
|
|
485
|
+
return circle_check(x, y, arg->x1, arg->y1, arg->x2, arg->y2);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
static int
|
|
489
|
+
circle_check_line(const struct arg *arg, double x, double y, double w)
|
|
490
|
+
/* Check for a point being inside the boundaries implied by the given arg
|
|
491
|
+
* and assuming a width 2*w each side of the boundaries. This function has
|
|
492
|
+
* the same semantic as square_check_line but tests the circle.
|
|
493
|
+
*/
|
|
494
|
+
{
|
|
495
|
+
double cx = (arg->x1+arg->x2)/2;
|
|
496
|
+
double wx = fabs(arg->x1-arg->x2)/2;
|
|
497
|
+
double cy = (arg->y1+arg->y2)/2;
|
|
498
|
+
double wy = fabs(arg->y1-arg->y2)/2;
|
|
499
|
+
|
|
500
|
+
if (circle_check(x, y, cx-wx-w, cy-wy-w, cx+wx+w, cy+wy+w))
|
|
501
|
+
{
|
|
502
|
+
/* Inside, but maybe too far; check for the redundant case where
|
|
503
|
+
* the lines overlap:
|
|
504
|
+
*/
|
|
505
|
+
wx -= w;
|
|
506
|
+
wy -= w;
|
|
507
|
+
if (wx > 0 && wy > 0 && circle_check(x, y, cx-wx, cy-wy, cx+wx, cy+wy))
|
|
508
|
+
return INSIDE; /* between (inside) the boundary lines. */
|
|
509
|
+
|
|
510
|
+
return 0; /* inside the lines themselves. */
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
return OUTSIDE; /* outside the boundary lines. */
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
static int
|
|
517
|
+
check_circle_filled(const struct arg *arg, double x, double y)
|
|
518
|
+
{
|
|
519
|
+
return circle_check_line(arg, x, y, FILTER_WIDTH);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
static int
|
|
523
|
+
inside_circle(const struct arg *arg, double x, double y)
|
|
524
|
+
{
|
|
525
|
+
return circle_check_line(arg, x, y, arg->width/2) == 0;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
static int
|
|
529
|
+
check_circle(const struct arg *arg, double x, double y)
|
|
530
|
+
{
|
|
531
|
+
/* Exactly as the 'square' code. */
|
|
532
|
+
double w = arg->width/2;
|
|
533
|
+
|
|
534
|
+
if (circle_check_line(arg, x, y, w+FILTER_WIDTH) == 0)
|
|
535
|
+
{
|
|
536
|
+
w -= FILTER_WIDTH;
|
|
537
|
+
|
|
538
|
+
if (w > 0 && circle_check_line(arg, x, y, w) == 0)
|
|
539
|
+
return INSIDE;
|
|
540
|
+
|
|
541
|
+
/* Point is somewhere in the filter region: */
|
|
542
|
+
return 0;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
else /* Inside or outside the square by more than w+FILTER_WIDTH. */
|
|
546
|
+
return OUTSIDE;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
/* "line",
|
|
550
|
+
* { NULL, NULL }, There is no 'filled' line.
|
|
551
|
+
* { inside_line, check_line }
|
|
552
|
+
*/
|
|
553
|
+
static int
|
|
554
|
+
line_check(double x, double y, double x1, double y1, double x2, double y2,
|
|
555
|
+
double w, double expand)
|
|
556
|
+
{
|
|
557
|
+
/* Shift all the points to (arg->x1, arg->y1) */
|
|
558
|
+
double lx = x2 - x1;
|
|
559
|
+
double ly = y2 - y1;
|
|
560
|
+
double len2 = lx*lx + ly*ly;
|
|
561
|
+
double cross, dot;
|
|
562
|
+
|
|
563
|
+
x -= x1;
|
|
564
|
+
y -= y1;
|
|
565
|
+
|
|
566
|
+
/* The dot product is the distance down the line, the cross product is
|
|
567
|
+
* the distance away from the line:
|
|
568
|
+
*
|
|
569
|
+
* distance = |cross| / sqrt(len2)
|
|
570
|
+
*/
|
|
571
|
+
cross = x * ly - y * lx;
|
|
572
|
+
|
|
573
|
+
/* If 'distance' is more than w the point is definitely outside the line:
|
|
574
|
+
*
|
|
575
|
+
* distance >= w
|
|
576
|
+
* |cross| >= w * sqrt(len2)
|
|
577
|
+
* cross^2 >= w^2 * len2:
|
|
578
|
+
*/
|
|
579
|
+
if (cross*cross >= (w+expand)*(w+expand)*len2)
|
|
580
|
+
return 0; /* outside */
|
|
581
|
+
|
|
582
|
+
/* Now find the distance *along* the line; this comes from the dot product
|
|
583
|
+
* lx.x+ly.y. The actual distance (in pixels) is:
|
|
584
|
+
*
|
|
585
|
+
* distance = dot / sqrt(len2)
|
|
586
|
+
*/
|
|
587
|
+
dot = lx * x + ly * y;
|
|
588
|
+
|
|
589
|
+
/* The test for 'outside' is:
|
|
590
|
+
*
|
|
591
|
+
* distance < 0 || distance > sqrt(len2)
|
|
592
|
+
* -> dot / sqrt(len2) > sqrt(len2)
|
|
593
|
+
* -> dot > len2
|
|
594
|
+
*
|
|
595
|
+
* But 'expand' is used for the filter width and needs to be handled too:
|
|
596
|
+
*/
|
|
597
|
+
return dot > -expand && dot < len2+expand;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
static int
|
|
601
|
+
inside_line(const struct arg *arg, double x, double y)
|
|
602
|
+
{
|
|
603
|
+
return line_check(x, y, arg->x1, arg->y1, arg->x2, arg->y2, arg->width/2, 0);
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
static int
|
|
607
|
+
check_line(const struct arg *arg, double x, double y)
|
|
608
|
+
{
|
|
609
|
+
/* The end caps of the line must be checked too; it's not enough just to
|
|
610
|
+
* widen the line by FILTER_WIDTH; 'expand' exists for this purpose:
|
|
611
|
+
*/
|
|
612
|
+
if (line_check(x, y, arg->x1, arg->y1, arg->x2, arg->y2, arg->width/2,
|
|
613
|
+
FILTER_WIDTH))
|
|
614
|
+
{
|
|
615
|
+
/* Inside the line+filter; far enough inside that the filter isn't
|
|
616
|
+
* required?
|
|
617
|
+
*/
|
|
618
|
+
if (arg->width > 2*FILTER_WIDTH &&
|
|
619
|
+
line_check(x, y, arg->x1, arg->y1, arg->x2, arg->y2, arg->width/2,
|
|
620
|
+
-FILTER_WIDTH))
|
|
621
|
+
return INSIDE;
|
|
622
|
+
|
|
623
|
+
return 0;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
return OUTSIDE;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
static const struct
|
|
630
|
+
{
|
|
631
|
+
const char *name;
|
|
632
|
+
shape_fn_ptr function[2/*fill,line*/][2];
|
|
633
|
+
# define FN_INSIDE 0
|
|
634
|
+
# define FN_CHECK 1
|
|
635
|
+
} shape_defs[] =
|
|
636
|
+
{
|
|
637
|
+
{ "square",
|
|
638
|
+
{ { inside_square_filled, check_square_filled },
|
|
639
|
+
{ inside_square, check_square } }
|
|
640
|
+
},
|
|
641
|
+
{ "circle",
|
|
642
|
+
{ { inside_circle_filled, check_circle_filled },
|
|
643
|
+
{ inside_circle, check_circle } }
|
|
644
|
+
},
|
|
645
|
+
{ "line",
|
|
646
|
+
{ { NULL, NULL },
|
|
647
|
+
{ inside_line, check_line } }
|
|
648
|
+
}
|
|
649
|
+
};
|
|
650
|
+
|
|
651
|
+
#define shape_count ((sizeof shape_defs)/(sizeof shape_defs[0]))
|
|
652
|
+
|
|
653
|
+
static shape_fn_ptr
|
|
654
|
+
shape_of(const char *arg, double width, int f)
|
|
655
|
+
{
|
|
656
|
+
unsigned int i;
|
|
657
|
+
|
|
658
|
+
for (i=0; i<shape_count; ++i) if (strcmp(shape_defs[i].name, arg) == 0)
|
|
659
|
+
{
|
|
660
|
+
shape_fn_ptr fn = shape_defs[i].function[width != 0][f];
|
|
661
|
+
|
|
662
|
+
if (fn != NULL)
|
|
663
|
+
return fn;
|
|
664
|
+
|
|
665
|
+
fprintf(stderr, "genpng: %s %s not supported\n",
|
|
666
|
+
width == 0 ? "filled" : "unfilled", arg);
|
|
667
|
+
exit(1);
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
fprintf(stderr, "genpng: %s: not a valid shape name\n", arg);
|
|
671
|
+
exit(1);
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
static void
|
|
675
|
+
parse_arg(struct arg *arg, const char **argv/*7 arguments*/)
|
|
676
|
+
{
|
|
677
|
+
/* shape ::= color width shape x1 y1 x2 y2 */
|
|
678
|
+
arg->color = color_of(argv[0]);
|
|
679
|
+
arg->width = width_of(argv[1]);
|
|
680
|
+
arg->inside_fn = shape_of(argv[2], arg->width, FN_INSIDE);
|
|
681
|
+
arg->check_fn = shape_of(argv[2], arg->width, FN_CHECK);
|
|
682
|
+
arg->x1 = coordinate_of(argv[3]);
|
|
683
|
+
arg->y1 = coordinate_of(argv[4]);
|
|
684
|
+
arg->x2 = coordinate_of(argv[5]);
|
|
685
|
+
arg->y2 = coordinate_of(argv[6]);
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
static png_uint_32
|
|
689
|
+
read_wh(const char *name, const char *str)
|
|
690
|
+
/* read a PNG width or height */
|
|
691
|
+
{
|
|
692
|
+
char *ep = NULL;
|
|
693
|
+
unsigned long ul = strtoul(str, &ep, 10);
|
|
694
|
+
|
|
695
|
+
if (ep != NULL && *ep == 0 && ul > 0 && ul <= 0x7fffffff)
|
|
696
|
+
return (png_uint_32)/*SAFE*/ul;
|
|
697
|
+
|
|
698
|
+
fprintf(stderr, "genpng: %s: invalid number %s\n", name, str);
|
|
699
|
+
exit(1);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
static void
|
|
703
|
+
pixel(png_uint_16p p, struct arg *args, int nargs, double x, double y)
|
|
704
|
+
{
|
|
705
|
+
/* Fill in the pixel by checking each shape (args[nargs]) for effects on
|
|
706
|
+
* the corresponding sample:
|
|
707
|
+
*/
|
|
708
|
+
double r=0, g=0, b=0, a=0;
|
|
709
|
+
|
|
710
|
+
while (--nargs >= 0 && a != 1)
|
|
711
|
+
{
|
|
712
|
+
/* NOTE: alpha_calc can return a value outside the range 0..1 with the
|
|
713
|
+
* bicubic filter.
|
|
714
|
+
*/
|
|
715
|
+
const double alpha = alpha_calc(args+nargs, x, y) * (1-a);
|
|
716
|
+
|
|
717
|
+
r += alpha * args[nargs].color->red;
|
|
718
|
+
g += alpha * args[nargs].color->green;
|
|
719
|
+
b += alpha * args[nargs].color->blue;
|
|
720
|
+
a += alpha;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
/* 'a' may be negative or greater than 1; if it is, negative clamp the
|
|
724
|
+
* pixel to 0 if >1 clamp r/g/b:
|
|
725
|
+
*/
|
|
726
|
+
if (a > 0)
|
|
727
|
+
{
|
|
728
|
+
if (a > 1)
|
|
729
|
+
{
|
|
730
|
+
if (r > 1) r = 1;
|
|
731
|
+
if (g > 1) g = 1;
|
|
732
|
+
if (b > 1) b = 1;
|
|
733
|
+
a = 1;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
/* And fill in the pixel: */
|
|
737
|
+
p[0] = (png_uint_16)/*SAFE*/round(r * 65535);
|
|
738
|
+
p[1] = (png_uint_16)/*SAFE*/round(g * 65535);
|
|
739
|
+
p[2] = (png_uint_16)/*SAFE*/round(b * 65535);
|
|
740
|
+
p[3] = (png_uint_16)/*SAFE*/round(a * 65535);
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
else
|
|
744
|
+
p[3] = p[2] = p[1] = p[0] = 0;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
int
|
|
748
|
+
main(int argc, const char **argv)
|
|
749
|
+
{
|
|
750
|
+
int convert_to_8bit = 0;
|
|
751
|
+
|
|
752
|
+
/* There is one option: --8bit: */
|
|
753
|
+
if (argc > 1 && strcmp(argv[1], "--8bit") == 0)
|
|
754
|
+
--argc, ++argv, convert_to_8bit = 1;
|
|
755
|
+
|
|
756
|
+
if (argc >= 3)
|
|
757
|
+
{
|
|
758
|
+
png_uint_16p buffer;
|
|
759
|
+
int nshapes;
|
|
760
|
+
png_image image;
|
|
761
|
+
# define max_shapes 256
|
|
762
|
+
struct arg arg_list[max_shapes];
|
|
763
|
+
|
|
764
|
+
/* The libpng Simplified API write code requires a fully initialized
|
|
765
|
+
* structure.
|
|
766
|
+
*/
|
|
767
|
+
memset(&image, 0, sizeof image);
|
|
768
|
+
image.version = PNG_IMAGE_VERSION;
|
|
769
|
+
image.opaque = NULL;
|
|
770
|
+
image.width = read_wh("width", argv[1]);
|
|
771
|
+
image.height = read_wh("height", argv[2]);
|
|
772
|
+
image.format = PNG_FORMAT_LINEAR_RGB_ALPHA;
|
|
773
|
+
image.flags = 0;
|
|
774
|
+
image.colormap_entries = 0;
|
|
775
|
+
|
|
776
|
+
/* Check the remainder of the arguments */
|
|
777
|
+
for (nshapes=0; 3+7*(nshapes+1) <= argc && nshapes < max_shapes;
|
|
778
|
+
++nshapes)
|
|
779
|
+
parse_arg(arg_list+nshapes, argv+3+7*nshapes);
|
|
780
|
+
|
|
781
|
+
if (3+7*nshapes != argc)
|
|
782
|
+
{
|
|
783
|
+
fprintf(stderr, "genpng: %s: too many arguments\n", argv[3+7*nshapes]);
|
|
784
|
+
return 1;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
#if 1
|
|
788
|
+
/* TO do: determine whether this guard against overflow is necessary.
|
|
789
|
+
* This comment in png.h indicates that it should be safe: "libpng will
|
|
790
|
+
* refuse to process an image where such an overflow would occur", but
|
|
791
|
+
* I don't see where the image gets rejected when the buffer is too
|
|
792
|
+
* large before the malloc is attempted.
|
|
793
|
+
*/
|
|
794
|
+
if (image.height > ((size_t)(-1))/(8*image.width)) {
|
|
795
|
+
fprintf(stderr, "genpng: image buffer would be too big");
|
|
796
|
+
return 1;
|
|
797
|
+
}
|
|
798
|
+
#endif
|
|
799
|
+
|
|
800
|
+
/* Create the buffer: */
|
|
801
|
+
buffer = malloc(PNG_IMAGE_SIZE(image));
|
|
802
|
+
|
|
803
|
+
if (buffer != NULL)
|
|
804
|
+
{
|
|
805
|
+
png_uint_32 y;
|
|
806
|
+
|
|
807
|
+
/* Write each row... */
|
|
808
|
+
for (y=0; y<image.height; ++y)
|
|
809
|
+
{
|
|
810
|
+
png_uint_32 x;
|
|
811
|
+
|
|
812
|
+
/* Each pixel in each row: */
|
|
813
|
+
for (x=0; x<image.width; ++x)
|
|
814
|
+
pixel(buffer + 4*(x + y*image.width), arg_list, nshapes, x, y);
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
/* Write the result (to stdout) */
|
|
818
|
+
if (png_image_write_to_stdio(&image, stdout, convert_to_8bit,
|
|
819
|
+
buffer, 0/*row_stride*/, NULL/*colormap*/))
|
|
820
|
+
{
|
|
821
|
+
free(buffer);
|
|
822
|
+
return 0; /* success */
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
else
|
|
826
|
+
fprintf(stderr, "genpng: write stdout: %s\n", image.message);
|
|
827
|
+
|
|
828
|
+
free(buffer);
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
else
|
|
832
|
+
fprintf(stderr, "genpng: out of memory: %lu bytes\n",
|
|
833
|
+
(unsigned long)PNG_IMAGE_SIZE(image));
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
else
|
|
837
|
+
{
|
|
838
|
+
/* Wrong number of arguments */
|
|
839
|
+
fprintf(stderr, "genpng: usage: genpng [--8bit] width height {shape}\n"
|
|
840
|
+
" Generate a transparent PNG in RGBA (truecolor+alpha) format\n"
|
|
841
|
+
" containing the given shape or shapes. Shapes are defined:\n"
|
|
842
|
+
"\n"
|
|
843
|
+
" shape ::= color width shape x1 y1 x2 y2\n"
|
|
844
|
+
" color ::= black|white|red|green|yellow|blue\n"
|
|
845
|
+
" color ::= brown|purple|pink|orange|gray|cyan\n"
|
|
846
|
+
" width ::= filled|<number>\n"
|
|
847
|
+
" shape ::= circle|square|line\n"
|
|
848
|
+
" x1,x2 ::= <number>\n"
|
|
849
|
+
" y1,y2 ::= <number>\n"
|
|
850
|
+
"\n"
|
|
851
|
+
" Numbers are floating point numbers describing points relative to\n"
|
|
852
|
+
" the top left of the output PNG as pixel coordinates. The 'width'\n"
|
|
853
|
+
" parameter is either the width of the line (in output pixels) used\n"
|
|
854
|
+
" to draw the shape or 'filled' to indicate that the shape should\n"
|
|
855
|
+
" be filled with the color.\n"
|
|
856
|
+
"\n"
|
|
857
|
+
" Colors are interpreted loosely to give access to the eight full\n"
|
|
858
|
+
" intensity RGB values:\n"
|
|
859
|
+
"\n"
|
|
860
|
+
" black, red, green, blue, yellow, cyan, purple, white,\n"
|
|
861
|
+
"\n"
|
|
862
|
+
" Cyan is full intensity blue+green; RGB(0,1,1), plus the following\n"
|
|
863
|
+
" lower intensity values:\n"
|
|
864
|
+
"\n"
|
|
865
|
+
" brown: red+orange: RGB(0.5, 0.125, 0) (dark red+orange)\n"
|
|
866
|
+
" pink: red+white: RGB(1.0, 0.5, 0.5)\n"
|
|
867
|
+
" orange: red+yellow: RGB(1.0, 0.5, 0)\n"
|
|
868
|
+
" gray: black+white: RGB(0.5, 0.5, 0.5)\n"
|
|
869
|
+
"\n"
|
|
870
|
+
" The RGB values are selected to make detection of aliasing errors\n"
|
|
871
|
+
" easy. The names are selected to make the description of errors\n"
|
|
872
|
+
" easy.\n"
|
|
873
|
+
"\n"
|
|
874
|
+
" The PNG is written to stdout, if --8bit is given a 32bpp RGBA sRGB\n"
|
|
875
|
+
" file is produced, otherwise a 64bpp RGBA linear encoded file is\n"
|
|
876
|
+
" written.\n");
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
return 1;
|
|
880
|
+
}
|
|
881
|
+
#endif /* SIMPLIFIED_WRITE && STDIO */
|