MIT License

Copyright (c) 2026 CROSSROAD LAB

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


-------------------------------------------------------------------------------
サードパーティについて / Third-party notices
-------------------------------------------------------------------------------

AllThumb 本体（AllThumb.dll / AllThumbConfig.exe / ThumbTest.exe）は
Windows 標準の API のみを使用しており、外部ライブラリをリンクしていません。
上の MIT ライセンスが適用されるのは、この本体だけです。

* AllThumbDecoder.exe（動画・画像の読み取り部品）
  CROSSROAD LAB が作ったプログラム（この LICENSE の MIT License）に、
  次のソフトウェアを静的に組み込んだ、本体とは別のプログラムです。
  AllThumb.dll はこれを別プロセスとして起動するだけで、リンクはしていません。

    FFmpeg 8.1.2   https://ffmpeg.org/
                   GNU Lesser General Public License 2.1 以降（LGPL）
    dav1d 1.5.4    https://code.videolan.org/videolan/dav1d
                   BSD 2-Clause License
    zlib 1.3.2     https://zlib.net/
                   zlib License

* AllThumbSvg.exe（SVG の読み取り部品）
  CROSSROAD LAB が作ったプログラム（この LICENSE の MIT License）に、
  resvg（Apache License 2.0 または MIT License）と、それが使う Rust のライブラリ
  （いずれも Apache-2.0 / MIT / BSD / Zlib などの寛容なライセンス）を静的に組み込んだ、
  本体とは別のプログラムです。一覧と各ライブラリのライセンス文は licenses\svg\ にあります
  （licenses\svg\CRATES.txt）。

  - ライセンス全文   licenses\FFmpeg-LGPL-2.1.txt / licenses\dav1d-BSD-2-Clause.txt /
                     licenses\zlib-License.txt / licenses\svg\
  - ビルドの設定     licenses\BUILDINFO.txt（GPL の部品とネットワーク機能は含みません）
  - 対応するソース   FFmpeg・dav1d・zlib の元のソース、SVG の部品が使う Rust のライブラリのソース、
                     2 つの部品のソース（src と svg）、ビルド手順を
                     AllThumbDecoder-r3-source.zip として、配布 ZIP と同じ場所
                     （https://crossroad-lab.pages.dev/allthumb/）で配布しています。
                     ライブラリのソースに手は加えていません。組み込んだライブラリを
                     差し替えたい場合は、同じ手順で作り直したものと差し替えて使えます。

* ビルドには Zig (MIT License) を使用していますが、生成されたバイナリに
  Zig の再頒布物は含まれません。

* ffmpeg（上とは別の、利用者が入れる完全版）および ImageMagick は同梱していません。
  利用者が別途インストールしている場合に、保険として外部プロセスで呼び出すだけです。
  それぞれのライセンスは配布元の条件に従います。

-- English summary --
AllThumbDecoder.exe is a separate program (our own code, MIT License) that statically
links FFmpeg 8.1.2 (LGPL-2.1-or-later), dav1d 1.5.4 (BSD-2-Clause) and zlib 1.3.2 (zlib License).
AllThumbSvg.exe is a separate program (our own code, MIT License) that statically links
resvg (Apache-2.0 OR MIT) and the Rust crates it depends on (permissive licenses; see
licenses\svg\CRATES.txt). AllThumb.dll only runs them as separate processes.
License texts are in the "licenses" folder. The complete corresponding source code
(unmodified upstream sources including the Rust crates, the source of both programs, and
the build script) is distributed as AllThumbDecoder-r3-source.zip from the same place as
this package, so the linked libraries can be replaced by rebuilding:
https://crossroad-lab.pages.dev/allthumb/
