heif.dll, libde265.dll, kvazaar.dll — source code and how to replace them
==========================================================================

These three DLLs read and write HEIC / HEIF pictures (the "High Efficiency" photos of an iPhone, with their HDR gain
map) when Windows does not have the HEIF and HEVC extensions, and whenever Lighthouse needs a part of the file that
Windows does not hand out.

  * heif.dll      — libheif 1.23.7, by Dirk Farin and struktur AG — GNU Lesser General Public License, version 3 or
                    later (licenses/libheif-COPYING.txt)
  * libde265.dll  — libde265 1.1.3 (the HEVC decoder), by struktur AG — GNU Lesser General Public License, version 3
                    or later (licenses/libde265-COPYING.txt)
  * kvazaar.dll   — kvazaar 2.3.2 (the HEVC encoder, 8 bit), by Tampere University and the kvazaar contributors —
                    BSD 3-Clause (licenses/kvazaar-LICENSE.txt)

No GPL code is included: libheif is built without x265 and without any other codec.

Lighthouse uses them only as separate, dynamically loaded DLLs. You may replace them with your own builds of the same
libraries: Lighthouse loads whatever heif.dll is next to lighthouse.exe (libheif 1.20 or later), with the libde265.dll
and kvazaar.dll next to it, and without them it reads HEIC through Windows only.

Complete corresponding source — the unmodified official releases:

  * libheif 1.23.7   https://github.com/strukturag/libheif/releases/download/v1.23.7/libheif-1.23.7.tar.gz
                     SHA-256 f7483e818503ea6224c8863e4a56ac02c7089021a98472c811c12aa19faf2475
  * libde265 1.1.3   https://github.com/strukturag/libde265/releases/download/v1.1.3/libde265-1.1.3.tar.gz
                     SHA-256 554228bd17788c99a7e63b37ab5634722190e6e2bf60c1dcb01cef328e133905
  * kvazaar 2.3.2    https://github.com/ultravideo/kvazaar/releases/download/v2.3.2/kvazaar-2.3.2.tar.gz
                     SHA-256 b95d2e20f2b0d8d7ed320055740be2e7a730abe28b153b5a788cfca371cc38b2

To rebuild (Visual Studio 2022 with CMake and Ninja; shared libraries, static C runtime):

    libde265   cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON
                     -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded
                     -DENABLE_DECODER=OFF -DENABLE_ENCODER=OFF -DENABLE_SDL=OFF
    kvazaar    the same first four options, with -DBUILD_TESTS=OFF -DBUILD_KVAZAAR_BINARY=OFF -DUSE_CRYPTO=OFF
    libheif    the same first four options, with -DWITH_LIBDE265=ON -DWITH_LIBDE265_PLUGIN=OFF -DWITH_KVAZAAR=ON
                     -DWITH_KVAZAAR_PLUGIN=OFF -DENABLE_PLUGIN_LOADING=OFF and every other codec switched off
                     (-DWITH_X265=OFF, -DWITH_AOM_DECODER=OFF, -DWITH_AOM_ENCODER=OFF, -DWITH_DAV1D=OFF, ...)

and copy heif.dll, libde265.dll and kvazaar.dll next to lighthouse.exe.

If you cannot download the sources, write to Rainbow Factory LTD (https://rainbowfactory.uk) and we will send them,
for at least three years from the date you received this copy.
