Replaceable AVIF fallback, v893. LGPL-3.0-or-later.

Download avif-corresponding-source-v893.bin as a ZIP archive. It contains this
file, stroy-avif.c, rebuild-avif.py and the complete existing HEIF source/relink
offer under materials/stroy-heif-corresponding-source-v892.bin (also a ZIP).
That nested offer contains libheif 1.23.6, libde265 1.1.3, dav1d 1.5.4,
zlib 1.3.2 sources, object libraries, licenses, upstream patches and build recipe.

Activate Emscripten 4.0.23. Extract the original wasm-libheif package and
zlib-1.3.2 source tarball from the nested offer. The package directory must
contain lib/libheif.a, lib/libde265.a, lib/libdav1d.a and include/.

Run:
python rebuild-avif.py --emscripten /path/to/emsdk/upstream/emscripten
  --package /path/to/extracted/package --zlib /path/to/zlib-1.3.2
  --output /path/to/rebuilt-avif
(Combine the lines into one command.)

The script compiles zlib from source and relinks the supplied C bridge into
stroy-avif.js and stroy-avif.wasm. The module export is StroyAvif. The bridge
selects dav1d, applies container transforms and converts HDR to 8-bit SDR.
Limits: 24,000,000 pixels, 12,000 pixels per side, one sequence frame,
256 MiB libheif tracked allocations and 512 MiB maximum WASM heap. Separate
RGBA/canvas memory is additional; this is not a total browser memory claim.
The parent worker owner can terminate decoding immediately on cancellation.

No install lifecycle scripts or runtime external conversion services are used.
You may modify, replace and relink the library under the component licenses.
