imgA: codecs/Lzw (GIF LSB + TIFF MSB early-change, old-style TIFF LZW) with Pillow / libtiff fixtures; api passes opts.decodeImage / encodeImage hooks to formats (embedded PNG in ICO, JPEG in TIFF)
Change outside the ws folders: src/Formats/init.luau gains withHooks(): F.load / F.save hand decoders / encoders opts.decodeImage(buf) and opts.encodeImage(img, format) unless the caller passed its own, so a format can decode an embedded image of another format without requiring it (LAYERS). Backward compatible: formats ignore unknown opts.
This commit is contained in:
1 parent
ccb06775c5
commit
2eee0bc1a6
5 files changed
+496
-2
No files matched your search
@@ -10,3 +10,4 @@ is tested under both runtimes (luau `--codegen -O2` and LuaJIT through the build
|
||||
Codecs (layer 1, shared by formats; not loadable on their own):
|
||||
|
||||
- codecs/Deflate: DEFLATE (RFC 1951) decoder and compressor, with the zlib (RFC 1950) and gzip (RFC 1952) wrappers.
|
||||
- codecs/Lzw: LZW decoder and encoder in the two variants file formats use. A codec (layer 1): image/gif and
|
||||
Reference in new issue
Block a user