Compare commits

..
37 Commits
Author SHA1 Message Date
4DBug 3de6cd81cd merge ws/blendparent 2026-11-03 05:26:06 -06:00
4DBug 2c2a52e4b3 model/blend: vertex and triangle parents, parent_type / parent_bone / parent_vertices / matrix_parent_inverse, widget flags, modifier stacks with Blender's type names and the armature modifier's settings 2026-11-03 04:57:53 -06:00
4DBug a9874e9f54 merge ws/rbxchunks2 2026-11-03 03:32:28 -06:00
4DBug 91371121d9 build: regenerate the LuaJIT bundle 2026-11-03 03:20:41 -06:00
4DBug cfa137730b merge ws/blendmat 2026-11-03 02:52:28 -06:00
4DBug 3f0a0df9c7 H.264: Cabac / Cavlc resolved once per process (upvalue), not per slice; AAC: SBR / PS required with the first SBR element (AacSbr chunk: an AAC-LC open compiles 55 KB, not 203 KB); m4a: Alac required for an ALAC track; chunked build: Vp8 / Vp8L and the Opus CELT encoder in chunks of their own; load check: AAC-LC and HE-AACv2 m4a opens 2026-11-03 02:51:47 -06:00
4DBug 05a44e1193 chunked build: one chunk per unit (no neighbour packing: host/Roblox alone, PNG no longer pulls Blend / Cpio); H.264 entropy coders in chunks of their own (Decoder requires CABAC or CAVLC on the first slice; Cabac / Cavlc tables out of Tables); Brotli dictionary in Brotli/Dictionary (its own chunk, on the first dictionary reference); load check: unknown detect, PNG load, H.264 CAVLC / CABAC open each require exactly their chunks 2026-11-03 02:28:48 -06:00
4DBug 3a56a66ac1 model/blend: material inputs traced through reroutes, mix, colour adjustments, colour ramps and node groups; unresolved links flagged with neutral values; roughness / metallic image textures with their channel; vertex colours; bump; UDIM images with the <UDIM> token and their tiles 2026-11-03 02:22:45 -06:00
4DBug 8fd5a4c3f2 merge ws/rbxchunks 2026-11-03 02:05:59 -06:00
4DBug 45f6cbc7a8 chunked build: detect check (F.detect on common headers loads the Detect chunk only, Detect under 160 KB); sniff extraction skips table and type keys (Aac.adts no longer pulls core/Bits into Detect); guide: chunk layout 2026-11-03 01:54:24 -06:00
4DBug 62fcfa7e93 merge master 2026-11-03 01:25:32 -06:00
4DBug 5b2605f514 root: Video, AudioWrap, Rbx, ImageOps required on first use (F.Rbx, F.video.codecs through __index); chunked build: one chunk per unit (format folder, codec, container), small family neighbours packed to 32 KB; Sniffs copies typed as in their module 2026-11-03 01:24:44 -06:00
4DBug 3468bfb49a Sniffs: fields the sniffs read from codecs / containers (Aac.adts, IsoBmff.sniff, Zstd.MAGIC, ...) copied once onto shared proxies, so detection loads no codec chunk; chunked build: a Detect chunk (Sniffs + what it requires); Brotli: static dictionary inflated on first reference (a trial decode no longer loads Deflate) 2026-11-03 01:19:07 -06:00
4DBug 6b6a1501df model/blend: Anim.split type annotation 2026-11-03 01:14:12 -06:00
4DBug d64adc978f model/blend: bone / path split ends at the first unescaped '"]' (constraint paths kept whole in path) 2026-11-03 00:57:28 -06:00
4DBug 888ff212c3 merge ws/blendrig3 2026-11-03 00:45:25 -06:00
4DBug a1a3971207 model/blend: drivers (object, object data, shape keys: variables, targets, keys, f-curve modifiers) and custom properties (objects, pose bones, bones) as data; f-curve modifiers on raw action curves; limit rotation use_legacy_behavior; 5.0 bone hide driver move for older files 2026-11-03 00:16:12 -06:00
4DBug b4e1ffebd4 merge ws/blendrig2 2026-11-02 23:58:36 -06:00
4DBug f1d98ec904 merge ws/downscale 2026-11-02 23:41:47 -06:00
4DBug 8d7f3e4d34 png / jpeg: maxSide + yield docs (guide, API) and tested snippet; jpeg destuff calls the yield hook per 64 KB; F.model.loadTextures passes maxSide / yield / yieldRows / maxPixels to the image decoders; bench lines (4096^2 16-bit PNG full vs maxSide 1024, JPEG 1/4); build/ regenerated
init.luau (small, backward compatible): loadTextures forwards those four options to F.load.
2026-11-02 23:39:52 -06:00
4DBug 56e1449b97 model/blend: action / transform / stretch to / armature / floor / limit distance / track to / locked track constraint fields, copy scale add / uniform; bone inheritance and b-bone fields; stored pose basis; every action raw in meta.blend.actions (first layer / strip / channel bag for layered actions) 2026-11-02 23:18:18 -06:00
4DBug 64a2553c0c png: tests for maxSide / reduce (every PngSuite and generated image, APNG frames, a 2048x2048 16-bit fixture), yield; paeth for 16-bit RGB rows; jpeg: opts.maxSide (scale 1..8) and opts.yield reach the codec; Deflate.zlibStream tests 2026-11-02 23:01:59 -06:00
4DBug e3e6273799 png: row-streaming decode through a streaming inflate (no whole inflated buffer, no IDAT concatenation); opts.maxSide / reduce (power-of-two box reduction), opts.yield / yieldRows
codecs/compress/Deflate: Inflate.raw takes an optional sink (output window: 32 KB history + a chunk) and feed (input
window over split ranges); Deflate.zlibStream(buf, ranges, sink, window?). The existing entry points are unchanged
(bench: no regression under luau -O2 or LuaJIT).
2026-11-02 22:48:27 -06:00
4DBug d1e2e25bdf merge ws/videoctl 2026-11-02 22:46:27 -06:00
4DBug 1eb3055df2 merge ws/blendrig 2026-11-02 22:44:57 -06:00
4DBug f7c8abc1b4 merge master into ws/videoctl 2026-11-02 22:17:23 -06:00
4DBug f9e2e6a455 merge master 2026-11-02 22:17:13 -06:00
4DBug 7ea8498f78 video: yields before the rgba / scale conversion and between a new H.264 picture's planes; build/ regenerated 2026-11-02 22:05:24 -06:00
4DBug 89b363af78 merge ws/lazydetect 2026-11-02 21:59:42 -06:00
4DBug e05392ee8e api: lazy format detection (Sniffs.luau): F.detect loads no format module
tools/gen_registry.py now also writes src/Rosetta/Sniffs.luau: each format's sniff copied
(tools/sniff_extract.py) with the top-level locals, types and load-time loops it reaches;
requires outside core/ become proxies that require on first field access. 198 of 199
sniffs are copied (model/fbx reads Binary.MAGIC at load time: its module sniffs).
Registry entries gain sniff (0 copy, 1 copy reaching a codec / container, 2 module) and
variant (the module has variant(r)).

init.luau detect: the extension's formats first, then by sniff cost and registry order;
a sniff runs only while its cap (1, or LATE) could still win, ties to registry order, so
results equal the eager path. F.detect loads the winner only when it has variant().

tests/detect.luau: every copied sniff against its module's on samples of every fixture
module (tools/fixtures/detect.py), scores within 0..1, and F.detect against the eager
reference with no name, the right / wrong / unknown extension and per category.

Outside init / Registry / gen_registry: tools/fixtures.py (LAST generators run after
the others and rerun when their outputs change), tools/lint_rules.py (Sniffs is api
layer, skipped by DUP), docs/STYLE.md and docs/API.md notes, build/ regenerated.
2026-11-02 21:58:10 -06:00
4DBug 9a15a71b4a model/blend: rig data docs section and snippet (docs_blend: control bone, collection, damped track, widget), header; type fixes; rebuild 2026-11-02 21:57:10 -06:00
4DBug 4231149f3e model/gltf: mesh.extras.targetNames from and to glTF mesh extras; ops/MeshOps.merge: targets = true concatenates morph targets by name 2026-11-02 21:53:22 -06:00
4DBug 835ddde65b model/blend: rig data (bone head / tail / roll, deform, collections and layers, colours, custom shapes and widgets, pose locks and IK settings, constraint stacks), shape key fields and targetNames, relative keys and vertex groups in morph targets, muted keys, loose edges as lines 2026-11-02 21:49:19 -06:00
4DBug 0b2d8774b9 video: frame reuse (opts.reuse, v:release, decoder:release) and the control tests
- codecs/video/Video/Pool: Images a decoder made, handed back and reused (only its own; fresh meta)
- H264 / Vp8 / Mpeg2 output Images come from a Pool; H264 / Vp8 decoder:release, VideoCodecDecoder.release
- Video.open: opts.reuse recycles the previous frame's Image at the next nextFrame; v:release(frame); the yuv Image
  under an rgba / scaled frame (never seen by the caller) goes back to the codec at once
- tests/video/control.luau: yield hook (identical frames, H.264 / VP8 / MPEG-1, conversions), disposable packets in
  every container, skipDisposable bit-exact at the right index, reuse identical and recycled, fuzz
- docs/guide/video.md: Skipping and reusing frames; docs/API.md
2026-11-02 21:46:59 -06:00
4DBug 15e0dfcc86 video: yield points in H.264 picture setup and VP8 rows, rgba / scale conversion; disposable packets and skipDisposable
- H264: picture and grid allocations split between yield calls (a 1080p picture's tables are 1.6 M slots)
- Vp8: Decode.decodeFrame hook three times per macroblock row and once per loop filter row; Options.yield
- Yuv.toRgba / Yuv.scale: optional hook every 16 rows; imageToRgba / imageScale take an out Image and the hook
- Video.open passes opts.yield to the conversions, the VP8 and MPEG-1/2 decoders
- codecs/video/Video/Disposable: H.264 nal_ref_idc 0 (avcC length-prefixed / Annex B), VP8 frames refreshing no
  reference; containers/Demux sets packet.disposable for h264 / vp8 tracks; Video.isDisposable(track, packet)
- skipDisposable: H.264 keeps skipped pictures in output order (pts pool / POC bookkeeping), VP8 applies the header
  state then skips; receive() returns false for a skipped picture, VideoFrame.index counts it
- Types: Packet.disposable, VideoCodecDecoder.receive may return false
- tools/fixtures/videoctl.py: VP8 two temporal layers (IVF + WebM)
2026-11-02 21:35:33 -06:00
4DBug 03e7b21eca merge ws/perf-jit 2026-11-02 21:28:49 -06:00
4DBug a87ad99410 perf (LuaJIT): stop cross-codec trace pollution in long mixed processes; bench.sh mixed
- compat math.clamp is vararg: LuaJIT never starts a root trace at a vararg function but still inlines it. The plain
  shim, called from interpreted code, collected aborted root traces until it was blacklisted, after which every trace
  through it aborted: in one process, png (or anything earlier) left jpeg / webp / tiff / ImageOps 2-10x slower.
- Dct.fdctQuantize: branch-free quantiser and a divisor table (q * 8) from Jpeg.Encode; the sign branch among the column
  pass's live values made LuaJIT retry side traces it could not compile (register coalescing) forever. Also faster
  in luau -O2 (~5%) and native (~10%). Outputs unchanged.
- tools/bench_mixed.luau + bash tools/bench.sh mixed: core, audio, video, image in one LuaJIT process against the
  per-codec benches, marking lines more than 1.3x slower mixed.
2026-11-02 21:12:36 -06:00
88 changed files with 48352 additions and 12931 deletions

No files matched your search

+7582 -489
View File
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
Binary file not shown.
+306 -44
View File
@@ -1,25 +1,31 @@
{
"Core_1": [[8, "src/Rosetta/init.luau"], [892, "src/Rosetta/Registry.luau"], [3301, "src/Rosetta/Types.luau"], [4414, "src/Rosetta/codecs/audio/Adpcm/init.luau"], [5168, "src/Rosetta/codecs/image/Yuv.luau"], [5473, "src/Rosetta/codecs/model/Rbx/init.luau"], [5710, "src/Rosetta/codecs/video/Video/init.luau"], [6268, "src/Rosetta/containers/AudioWrap.luau"], [6778, "src/Rosetta/containers/Ogg/Mux.luau"], [6967, "src/Rosetta/core/Bytes.luau"], [7494, "src/Rosetta/core/Crc32.luau"], [7645, "src/Rosetta/core/Err.luau"], [7727, "src/Rosetta/core/Input.luau"], [7803, "src/Rosetta/host/init.luau"]],
"Core_2": [[8, "src/Rosetta/ops/ImageOps/init.luau"], [656, "src/Rosetta/ops/ImageOps/Kernels.luau"]],
"Mpeg2": [[8, "src/Rosetta/codecs/video/Dsp.luau"], [846, "src/Rosetta/codecs/video/Mpeg1/init.luau"], [859, "src/Rosetta/codecs/video/Mpeg2/init.luau"], [1227, "src/Rosetta/codecs/video/Mpeg2/Decoder.luau"], [2754, "src/Rosetta/codecs/video/Mpeg2/Tables.luau"], [2894, "src/Rosetta/codecs/video/Mpeg2/Vlc.luau"]],
"Core": [[8, "src/Rosetta/init.luau"], [941, "src/Rosetta/Registry.luau"], [3558, "src/Rosetta/Types.luau"], [4675, "src/Rosetta/core/Bytes.luau"], [5202, "src/Rosetta/core/Err.luau"], [5284, "src/Rosetta/core/Input.luau"], [5360, "src/Rosetta/host/init.luau"]],
"Detect": [[8, "src/Rosetta/Sniffs.luau"], [4239, "src/Rosetta/core/Crc16.luau"], [4291, "src/Rosetta/core/Sniff.luau"]],
"Mpeg2": [[8, "src/Rosetta/codecs/video/Dsp.luau"], [846, "src/Rosetta/codecs/video/Mpeg1/init.luau"], [859, "src/Rosetta/codecs/video/Mpeg2/init.luau"], [1233, "src/Rosetta/codecs/video/Mpeg2/Decoder.luau"], [2760, "src/Rosetta/codecs/video/Mpeg2/Tables.luau"], [2900, "src/Rosetta/codecs/video/Mpeg2/Vlc.luau"]],
"H263": [[8, "src/Rosetta/codecs/video/H263/init.luau"], [165, "src/Rosetta/codecs/video/H263/Decoder.luau"], [1023, "src/Rosetta/codecs/video/H263/Tables.luau"]],
"H264": [[8, "src/Rosetta/codecs/video/H264/init.luau"], [382, "src/Rosetta/codecs/video/H264/Bitstream.luau"], [657, "src/Rosetta/codecs/video/H264/Cabac.luau"], [1788, "src/Rosetta/codecs/video/H264/Cavlc.luau"], [2556, "src/Rosetta/codecs/video/H264/Deblock.luau"], [2818, "src/Rosetta/codecs/video/H264/Decoder.luau"], [3828, "src/Rosetta/codecs/video/H264/Inter.luau"], [4154, "src/Rosetta/codecs/video/H264/Intra.luau"], [4561, "src/Rosetta/codecs/video/H264/Mb.luau"], [5500, "src/Rosetta/codecs/video/H264/Params.luau"], [5948, "src/Rosetta/codecs/video/H264/Slice.luau"], [6200, "src/Rosetta/codecs/video/H264/Tables.luau"], [6242, "src/Rosetta/codecs/video/H264/Transform.luau"]],
"H264Cabac": [[8, "src/Rosetta/codecs/video/H264/Cabac.luau"], [1140, "src/Rosetta/codecs/video/H264/CabacTables.luau"]],
"H264Cavlc": [[8, "src/Rosetta/codecs/video/H264/Cavlc.luau"], [777, "src/Rosetta/codecs/video/H264/CavlcTables.luau"]],
"H264": [[8, "src/Rosetta/codecs/video/H264/init.luau"], [398, "src/Rosetta/codecs/video/H264/Bitstream.luau"], [673, "src/Rosetta/codecs/video/H264/Deblock.luau"], [935, "src/Rosetta/codecs/video/H264/Decoder.luau"], [2006, "src/Rosetta/codecs/video/H264/Inter.luau"], [2332, "src/Rosetta/codecs/video/H264/Intra.luau"], [2739, "src/Rosetta/codecs/video/H264/Mb.luau"], [3693, "src/Rosetta/codecs/video/H264/Params.luau"], [4141, "src/Rosetta/codecs/video/H264/Slice.luau"], [4393, "src/Rosetta/codecs/video/H264/Tables.luau"], [4415, "src/Rosetta/codecs/video/H264/Transform.luau"]],
"Theora": [[8, "src/Rosetta/codecs/video/Theora/init.luau"], [272, "src/Rosetta/codecs/video/Theora/Decoder.luau"], [1536, "src/Rosetta/codecs/video/Theora/Header.luau"]],
"Legacy": [[8, "src/Rosetta/codecs/video/Legacy/init.luau"], [207, "src/Rosetta/codecs/video/Legacy/Cinepak.luau"], [504, "src/Rosetta/codecs/video/Legacy/Flic.luau"], [871, "src/Rosetta/codecs/video/Legacy/Msvideo1.luau"], [989, "src/Rosetta/codecs/video/Legacy/Picture.luau"], [1097, "src/Rosetta/codecs/video/Legacy/QtRle.luau"], [1370, "src/Rosetta/codecs/video/Legacy/Smacker.luau"], [1765, "src/Rosetta/codecs/video/Legacy/Smc.luau"]],
"MpegTs": [[8, "src/Rosetta/containers/MpegEs.luau"], [175, "src/Rosetta/containers/MpegPs/init.luau"], [396, "src/Rosetta/containers/MpegTs/init.luau"]],
"Dct": [[8, "src/Rosetta/codecs/image/Dct/init.luau"]],
"Jpeg": [[8, "src/Rosetta/codecs/image/Jpeg/init.luau"], [362, "src/Rosetta/codecs/image/Jpeg/Arith.luau"], [770, "src/Rosetta/codecs/image/Jpeg/Color.luau"], [1135, "src/Rosetta/codecs/image/Jpeg/Decode.luau"], [1900, "src/Rosetta/codecs/image/Jpeg/Encode.luau"], [2781, "src/Rosetta/codecs/image/Jpeg/Scan.luau"], [3250, "src/Rosetta/codecs/image/Jpeg/Tables.luau"], [3328, "src/Rosetta/codecs/image/Jpeg/Yuv.luau"]],
"Vp8": [[8, "src/Rosetta/codecs/image/Vp8/init.luau"], [139, "src/Rosetta/codecs/image/Vp8/Decode.luau"], [2095, "src/Rosetta/codecs/image/Vp8/Predict.luau"], [2358, "src/Rosetta/codecs/image/Vp8/Tables.luau"], [2608, "src/Rosetta/codecs/image/Vp8/Yuv.luau"], [2750, "src/Rosetta/codecs/image/Vp8L/init.luau"], [2854, "src/Rosetta/codecs/image/Vp8L/Decode.luau"], [3794, "src/Rosetta/codecs/image/Vp8L/Encode.luau"]],
"Jpeg": [[8, "src/Rosetta/codecs/image/Jpeg/init.luau"], [362, "src/Rosetta/codecs/image/Jpeg/Arith.luau"], [770, "src/Rosetta/codecs/image/Jpeg/Color.luau"], [1135, "src/Rosetta/codecs/image/Jpeg/Decode.luau"], [1900, "src/Rosetta/codecs/image/Jpeg/Encode.luau"], [2781, "src/Rosetta/codecs/image/Jpeg/Scan.luau"], [3258, "src/Rosetta/codecs/image/Jpeg/Tables.luau"], [3336, "src/Rosetta/codecs/image/Jpeg/Yuv.luau"]],
"Vp8": [[8, "src/Rosetta/codecs/image/Vp8/init.luau"], [150, "src/Rosetta/codecs/image/Vp8/Decode.luau"], [2130, "src/Rosetta/codecs/image/Vp8/Predict.luau"], [2393, "src/Rosetta/codecs/image/Vp8/Tables.luau"], [2643, "src/Rosetta/codecs/image/Vp8/Yuv.luau"]],
"Vp8L": [[8, "src/Rosetta/codecs/image/Vp8L/init.luau"], [112, "src/Rosetta/codecs/image/Vp8L/Decode.luau"], [1052, "src/Rosetta/codecs/image/Vp8L/Encode.luau"]],
"Bcn": [[8, "src/Rosetta/codecs/image/Bcn/init.luau"], [115, "src/Rosetta/codecs/image/Bcn/Decode.luau"], [599, "src/Rosetta/codecs/image/Bcn/Encode.luau"]],
"Png": [[8, "src/Rosetta/image/png/init.luau"], [588, "src/Rosetta/image/png/Apng.luau"], [668, "src/Rosetta/image/png/Decode.luau"], [1041, "src/Rosetta/image/png/Encode.luau"]],
"Deflate": [[8, "src/Rosetta/codecs/compress/Deflate/init.luau"], [334, "src/Rosetta/codecs/compress/Deflate/Compress.luau"], [816, "src/Rosetta/codecs/compress/Deflate/Inflate.luau"]],
"Brotli": [[8, "src/Rosetta/codecs/compress/Brotli/init.luau"], [95, "src/Rosetta/codecs/compress/Brotli/Decode.luau"], [1071, "src/Rosetta/codecs/compress/Brotli/Static.luau"]],
"Png": [[8, "src/Rosetta/image/png/init.luau"], [643, "src/Rosetta/image/png/Apng.luau"], [723, "src/Rosetta/image/png/Decode.luau"], [1268, "src/Rosetta/image/png/Encode.luau"]],
"Deflate": [[8, "src/Rosetta/codecs/compress/Deflate/init.luau"], [421, "src/Rosetta/codecs/compress/Deflate/Compress.luau"], [903, "src/Rosetta/codecs/compress/Deflate/Inflate.luau"]],
"BrotliDictionary": [[8, "src/Rosetta/codecs/compress/Brotli/Dictionary.luau"]],
"Brotli": [[8, "src/Rosetta/codecs/compress/Brotli/init.luau"], [107, "src/Rosetta/codecs/compress/Brotli/Decode.luau"], [1091, "src/Rosetta/codecs/compress/Brotli/Static.luau"]],
"Lzma": [[8, "src/Rosetta/codecs/compress/Lzma/init.luau"], [548, "src/Rosetta/codecs/compress/Lzma/Crc64.luau"], [615, "src/Rosetta/codecs/compress/Lzma/Decode.luau"], [1088, "src/Rosetta/codecs/compress/Lzma/Filters.luau"]],
"Zstd": [[8, "src/Rosetta/codecs/compress/Zstd/init.luau"], [65, "src/Rosetta/codecs/compress/Zstd/Decode.luau"], [1049, "src/Rosetta/codecs/compress/Zstd/Xxh64.luau"]],
"Mpa": [[8, "src/Rosetta/codecs/audio/Mpa/init.luau"], [23, "src/Rosetta/codecs/audio/Mpa/Analysis.luau"], [82, "src/Rosetta/codecs/audio/Mpa/Core.luau"], [1740, "src/Rosetta/codecs/audio/Mpa/EncTables.luau"], [2033, "src/Rosetta/codecs/audio/Mpa/Encode2.luau"], [2418, "src/Rosetta/codecs/audio/Mpa/Encode3.luau"], [3059, "src/Rosetta/codecs/audio/Mpa/Header.luau"], [3200, "src/Rosetta/codecs/audio/Mpa/Tables.luau"]],
"Opus": [[8, "src/Rosetta/codecs/audio/Opus/init.luau"], [23, "src/Rosetta/codecs/audio/Opus/Celt.luau"], [1895, "src/Rosetta/codecs/audio/Opus/CeltEncoder.luau"], [2960, "src/Rosetta/codecs/audio/Opus/CeltTables.luau"], [3021, "src/Rosetta/codecs/audio/Opus/Decoder.luau"], [3485, "src/Rosetta/codecs/audio/Opus/Mdct.luau"], [3836, "src/Rosetta/codecs/audio/Opus/Packet.luau"], [4069, "src/Rosetta/codecs/audio/Opus/Silk.luau"], [6111, "src/Rosetta/codecs/audio/Opus/SilkTables.luau"]],
"OpusEncoder": [[8, "src/Rosetta/codecs/audio/Opus/CeltEncoder.luau"]],
"Opus": [[8, "src/Rosetta/codecs/audio/Opus/init.luau"], [23, "src/Rosetta/codecs/audio/Opus/Celt.luau"], [1895, "src/Rosetta/codecs/audio/Opus/CeltTables.luau"], [1956, "src/Rosetta/codecs/audio/Opus/Decoder.luau"], [2420, "src/Rosetta/codecs/audio/Opus/Mdct.luau"], [2771, "src/Rosetta/codecs/audio/Opus/Packet.luau"], [3004, "src/Rosetta/codecs/audio/Opus/Silk.luau"], [5046, "src/Rosetta/codecs/audio/Opus/SilkTables.luau"]],
"Vorbis": [[8, "src/Rosetta/codecs/audio/Vorbis/init.luau"], [22, "src/Rosetta/codecs/audio/Vorbis/Codebook.luau"], [406, "src/Rosetta/codecs/audio/Vorbis/Packet.luau"], [979, "src/Rosetta/codecs/audio/Vorbis/Setup.luau"], [1401, "src/Rosetta/codecs/audio/Vorbis/Tables.luau"]],
"Aac": [[8, "src/Rosetta/codecs/audio/Aac/init.luau"], [416, "src/Rosetta/codecs/audio/Aac/Decode.luau"], [1392, "src/Rosetta/codecs/audio/Aac/Ps.luau"], [1982, "src/Rosetta/codecs/audio/Aac/Sbr.luau"], [3049, "src/Rosetta/codecs/audio/Aac/SbrBits.luau"], [3168, "src/Rosetta/codecs/audio/Aac/SbrDct.luau"], [4410, "src/Rosetta/codecs/audio/Aac/SbrHf.luau"], [4902, "src/Rosetta/codecs/audio/Aac/SbrQmf.luau"], [5019, "src/Rosetta/codecs/audio/Aac/SbrTables.luau"], [5432, "src/Rosetta/codecs/audio/Aac/Tables.luau"]],
"AacSbr": [[8, "src/Rosetta/codecs/audio/Aac/Ps.luau"], [598, "src/Rosetta/codecs/audio/Aac/Sbr.luau"], [1665, "src/Rosetta/codecs/audio/Aac/SbrBits.luau"], [1784, "src/Rosetta/codecs/audio/Aac/SbrDct.luau"], [3026, "src/Rosetta/codecs/audio/Aac/SbrHf.luau"], [3518, "src/Rosetta/codecs/audio/Aac/SbrQmf.luau"], [3635, "src/Rosetta/codecs/audio/Aac/SbrTables.luau"]],
"Aac": [[8, "src/Rosetta/codecs/audio/Aac/init.luau"], [415, "src/Rosetta/codecs/audio/Aac/Decode.luau"], [1395, "src/Rosetta/codecs/audio/Aac/Tables.luau"]],
"Flac": [[8, "src/Rosetta/codecs/audio/Flac/init.luau"], [20, "src/Rosetta/codecs/audio/Flac/Encode.luau"], [969, "src/Rosetta/codecs/audio/Flac/Frame.luau"]],
"Musepack": [[8, "src/Rosetta/codecs/audio/Musepack/init.luau"], [354, "src/Rosetta/codecs/audio/Musepack/Decode.luau"], [1248, "src/Rosetta/codecs/audio/Musepack/Tables.luau"]],
"WavPack": [[8, "src/Rosetta/codecs/audio/WavPack/init.luau"], [231, "src/Rosetta/codecs/audio/WavPack/Block.luau"], [1686, "src/Rosetta/codecs/audio/WavPack/Tables.luau"]],
@@ -27,37 +33,293 @@
"Hively": [[8, "src/Rosetta/codecs/audio/Hively/init.luau"], [205, "src/Rosetta/codecs/audio/Hively/Load.luau"], [455, "src/Rosetta/codecs/audio/Hively/Player.luau"], [1414, "src/Rosetta/codecs/audio/Hively/Tables.luau"]],
"SoundFont": [[8, "src/Rosetta/codecs/audio/SoundFont/init.luau"], [63, "src/Rosetta/codecs/audio/SoundFont/Fallback.luau"], [207, "src/Rosetta/codecs/audio/SoundFont/Parse.luau"], [721, "src/Rosetta/codecs/audio/SoundFont/Synth.luau"]],
"Draco": [[8, "src/Rosetta/codecs/model/Draco/init.luau"], [340, "src/Rosetta/codecs/model/Draco/Attributes.luau"], [809, "src/Rosetta/codecs/model/Draco/Connectivity.luau"], [1998, "src/Rosetta/codecs/model/Draco/Int64.luau"], [2147, "src/Rosetta/codecs/model/Draco/KdTree.luau"], [2506, "src/Rosetta/codecs/model/Draco/Predict.luau"], [3468, "src/Rosetta/codecs/model/Draco/Reader.luau"]],
"archive_1": [[8, "src/Rosetta/archive/7z/init.luau"], [393, "src/Rosetta/archive/7z/Header.luau"], [920, "src/Rosetta/archive/adf/init.luau"], [1202, "src/Rosetta/archive/applesingle/init.luau"], [1388, "src/Rosetta/archive/ar/init.luau"], [1791, "src/Rosetta/archive/arj/init.luau"], [2001, "src/Rosetta/archive/binhex/init.luau"], [2250, "src/Rosetta/archive/br/init.luau"], [2325, "src/Rosetta/archive/bz2/init.luau"], [2389, "src/Rosetta/archive/cab/init.luau"], [2802, "src/Rosetta/archive/cab/Sum.luau"], [2843, "src/Rosetta/archive/cpio/init.luau"], [3011, "src/Rosetta/archive/d64/init.luau"], [3425, "src/Rosetta/archive/fat/init.luau"], [3547, "src/Rosetta/archive/grp/init.luau"], [3661, "src/Rosetta/archive/gzip/init.luau"], [3846, "src/Rosetta/archive/iso/init.luau"], [3918, "src/Rosetta/archive/lha/init.luau"], [4343, "src/Rosetta/archive/lz4/init.luau"], [4687, "src/Rosetta/archive/macbinary/init.luau"], [4885, "src/Rosetta/archive/mpq/init.luau"], [5291, "src/Rosetta/archive/mpq/Crypt.luau"], [5356, "src/Rosetta/archive/pak/init.luau"], [5490, "src/Rosetta/archive/rpm/init.luau"], [5814, "src/Rosetta/archive/tar/init.luau"], [5932, "src/Rosetta/archive/unitypackage/init.luau"], [6168, "src/Rosetta/archive/uu/init.luau"], [6438, "src/Rosetta/archive/vpk/init.luau"], [6749, "src/Rosetta/archive/vswap/init.luau"], [7019, "src/Rosetta/archive/wad/init.luau"], [7473, "src/Rosetta/archive/wad/Picture.luau"], [7575, "src/Rosetta/archive/wad2/init.luau"], [7857, "src/Rosetta/archive/xz/init.luau"]],
"archive_2": [[8, "src/Rosetta/archive/yenc/init.luau"], [280, "src/Rosetta/archive/z/init.luau"], [376, "src/Rosetta/archive/zip/init.luau"], [595, "src/Rosetta/archive/zoo/init.luau"], [791, "src/Rosetta/archive/zst/init.luau"]],
"audio": [[8, "src/Rosetta/audio/aac/init.luau"], [221, "src/Rosetta/audio/ac3/init.luau"], [368, "src/Rosetta/audio/adpcm/init.luau"], [514, "src/Rosetta/audio/adx/init.luau"], [746, "src/Rosetta/audio/aiff/init.luau"], [1138, "src/Rosetta/audio/ape/init.luau"], [1267, "src/Rosetta/audio/au/init.luau"], [1429, "src/Rosetta/audio/brstm/init.luau"], [1721, "src/Rosetta/audio/caf/init.luau"], [2388, "src/Rosetta/audio/flac/init.luau"], [2537, "src/Rosetta/audio/flac/Meta.luau"], [2759, "src/Rosetta/audio/flac/Stream.luau"], [3129, "src/Rosetta/audio/m4a/init.luau"], [3472, "src/Rosetta/audio/mp3/init.luau"], [3733, "src/Rosetta/audio/mp3/Index.luau"], [3924, "src/Rosetta/audio/mp3/Stream.luau"], [4151, "src/Rosetta/audio/mp3/Tags.luau"], [4463, "src/Rosetta/audio/mpc/init.luau"], [4558, "src/Rosetta/audio/opus/init.luau"], [4937, "src/Rosetta/audio/opus/Encode.luau"], [5049, "src/Rosetta/audio/qoa/init.luau"], [5230, "src/Rosetta/audio/tta/init.luau"], [5349, "src/Rosetta/audio/vag/init.luau"], [5573, "src/Rosetta/audio/voc/init.luau"], [5849, "src/Rosetta/audio/vorbis/init.luau"], [6304, "src/Rosetta/audio/vorbis/Encode.luau"], [7117, "src/Rosetta/audio/wav/init.luau"], [7738, "src/Rosetta/audio/wav/Codecs.luau"], [7917, "src/Rosetta/audio/wavpack/init.luau"]],
"cad": [[8, "src/Rosetta/cad/step/init.luau"], [390, "src/Rosetta/cad/step/Brep.luau"], [625, "src/Rosetta/cad/step/Parse.luau"], [1182, "src/Rosetta/cad/step/Write.luau"]],
"codecs_audio": [[8, "src/Rosetta/codecs/audio/Ac3/init.luau"], [168, "src/Rosetta/codecs/audio/Ac3/Decode.luau"], [1053, "src/Rosetta/codecs/audio/Ac3/Tables.luau"], [1155, "src/Rosetta/codecs/audio/Adpcm/Decoder.luau"], [1458, "src/Rosetta/codecs/audio/Alac/init.luau"], [1693, "src/Rosetta/codecs/audio/Alac/Decode.luau"], [2112, "src/Rosetta/codecs/audio/Alac/Encode.luau"], [2524, "src/Rosetta/codecs/audio/Ape/init.luau"], [2740, "src/Rosetta/codecs/audio/Ape/Decode.luau"], [3501, "src/Rosetta/codecs/audio/ApeTag.luau"], [3599, "src/Rosetta/codecs/audio/Mdct/init.luau"], [3819, "src/Rosetta/codecs/audio/Mdct/Fft.luau"], [4073, "src/Rosetta/codecs/audio/MidiRender.luau"], [4420, "src/Rosetta/codecs/audio/Pcm/init.luau"], [4684, "src/Rosetta/codecs/audio/Pcm/Convert.luau"], [4981, "src/Rosetta/codecs/audio/Qoa/init.luau"], [5263, "src/Rosetta/codecs/audio/Resample/init.luau"], [5658, "src/Rosetta/codecs/audio/Stream.luau"], [5820, "src/Rosetta/codecs/audio/Tta/init.luau"], [5938, "src/Rosetta/codecs/audio/Tta/Decode.luau"], [6190, "src/Rosetta/codecs/audio/VorbisComment.luau"]],
"codecs_compress": [[8, "src/Rosetta/codecs/compress/Bzip2/init.luau"], [52, "src/Rosetta/codecs/compress/Bzip2/Decode.luau"], [565, "src/Rosetta/codecs/compress/Explode.luau"], [761, "src/Rosetta/codecs/compress/Lz4.luau"], [1030, "src/Rosetta/codecs/compress/Lzh/init.luau"], [1634, "src/Rosetta/codecs/compress/Lzw/init.luau"], [1902, "src/Rosetta/codecs/compress/Lzx.luau"], [2336, "src/Rosetta/codecs/compress/PackBits.luau"], [2426, "src/Rosetta/codecs/compress/Quantum.luau"], [2663, "src/Rosetta/codecs/compress/UnixCompress.luau"], [2967, "src/Rosetta/codecs/compress/Xxh32.luau"]],
"codecs_entropy": [[8, "src/Rosetta/codecs/entropy/Huffman.luau"], [295, "src/Rosetta/codecs/entropy/RangeCoder/init.luau"], [306, "src/Rosetta/codecs/entropy/RangeCoder/Decoder.luau"], [527, "src/Rosetta/codecs/entropy/RangeCoder/Encoder.luau"]],
"codecs_font": [[8, "src/Rosetta/codecs/font/Bitmap.luau"], [209, "src/Rosetta/codecs/font/Cff/init.luau"], [850, "src/Rosetta/codecs/font/GlyphNames.luau"], [1000, "src/Rosetta/codecs/font/TrueType/init.luau"], [1314, "src/Rosetta/codecs/font/TrueType/Glyf.luau"], [1706, "src/Rosetta/codecs/font/TrueType/Tables.luau"]],
"codecs_image": [[8, "src/Rosetta/codecs/image/Blend.luau"], [387, "src/Rosetta/codecs/image/Etc.luau"], [685, "src/Rosetta/codecs/image/Half.luau"], [754, "src/Rosetta/codecs/image/Miptex.luau"], [1054, "src/Rosetta/codecs/image/Pixels.luau"], [1374, "src/Rosetta/codecs/image/Quantize/init.luau"], [1835, "src/Rosetta/codecs/image/Raster.luau"], [2532, "src/Rosetta/codecs/image/Texel.luau"], [2905, "src/Rosetta/codecs/image/Texture.luau"]],
"codecs_model": [[8, "src/Rosetta/codecs/model/Brush.luau"], [648, "src/Rosetta/codecs/model/Displacement.luau"], [797, "src/Rosetta/codecs/model/DoomMap/init.luau"], [1242, "src/Rosetta/codecs/model/DoomMap/Udmf.luau"], [1492, "src/Rosetta/codecs/model/Mat4.luau"], [1751, "src/Rosetta/codecs/model/MeshFlatten.luau"], [2279, "src/Rosetta/codecs/model/Minecraft/init.luau"], [2831, "src/Rosetta/codecs/model/Minecraft/Colors.luau"], [2910, "src/Rosetta/codecs/model/Minecraft/Legacy.luau"], [3017, "src/Rosetta/codecs/model/Minecraft/Packed.luau"], [3223, "src/Rosetta/codecs/model/Patch.luau"], [3347, "src/Rosetta/codecs/model/Polygon.luau"], [3581, "src/Rosetta/codecs/model/Rbx/Binary.luau"], [4335, "src/Rosetta/codecs/model/Rig.luau"], [4578, "src/Rosetta/codecs/model/Sampler.luau"], [4738, "src/Rosetta/codecs/model/SourceAnim.luau"], [4959, "src/Rosetta/codecs/model/Vrml/init.luau"], [5107, "src/Rosetta/codecs/model/Vrml/Build.luau"], [5681, "src/Rosetta/codecs/model/Vrml/Fields.luau"], [5844, "src/Rosetta/codecs/model/Vrml/Geometry.luau"], [6593, "src/Rosetta/codecs/model/Vrml/Parse.luau"], [7115, "src/Rosetta/codecs/model/Vrml/Write.luau"], [7842, "src/Rosetta/codecs/model/Vrml/Xml.luau"]],
"codecs_text": [[8, "src/Rosetta/codecs/text/GodotVariant.luau"], [667, "src/Rosetta/codecs/text/Json/init.luau"], [936, "src/Rosetta/codecs/text/Json/Decode.luau"], [1371, "src/Rosetta/codecs/text/Json/Encode.luau"], [1716, "src/Rosetta/codecs/text/KeyValues/init.luau"], [2286, "src/Rosetta/codecs/text/KeyValues/Binary.luau"], [2592, "src/Rosetta/codecs/text/Lexer/init.luau"], [2724, "src/Rosetta/codecs/text/Nbt/init.luau"], [3077, "src/Rosetta/codecs/text/Nbt/Binary.luau"], [3769, "src/Rosetta/codecs/text/Nbt/Snbt.luau"], [4409, "src/Rosetta/codecs/text/Nbt/Value.luau"], [4647, "src/Rosetta/codecs/text/Text/init.luau"], [4738, "src/Rosetta/codecs/text/Url/init.luau"], [4943, "src/Rosetta/codecs/text/Xml/init.luau"], [5393, "src/Rosetta/codecs/text/Xml/Parse.luau"]],
"codecs_video": [[8, "src/Rosetta/codecs/video/Video/Source.luau"]],
"containers": [[8, "src/Rosetta/containers/Archive.luau"], [275, "src/Rosetta/containers/Avi/init.luau"], [828, "src/Rosetta/containers/Blend.luau"], [1567, "src/Rosetta/containers/Chunks.luau"], [1702, "src/Rosetta/containers/Cpio.luau"], [2130, "src/Rosetta/containers/Demux.luau"], [2405, "src/Rosetta/containers/Ebml/init.luau"], [2719, "src/Rosetta/containers/Fat.luau"], [3407, "src/Rosetta/containers/Iso9660.luau"], [3912, "src/Rosetta/containers/IsoBmff/init.luau"], [4083, "src/Rosetta/containers/IsoBmff/Box.luau"], [4272, "src/Rosetta/containers/IsoBmff/Demux.luau"], [5118, "src/Rosetta/containers/IsoBmff/Meta.luau"], [5640, "src/Rosetta/containers/IsoBmff/Mux.luau"], [6157, "src/Rosetta/containers/IsoBmff/QtPalette.luau"], [6275, "src/Rosetta/containers/MacFile.luau"], [6424, "src/Rosetta/containers/Ogg/init.luau"], [6849, "src/Rosetta/containers/Ogg/Page.luau"], [7015, "src/Rosetta/containers/Riff/init.luau"], [7332, "src/Rosetta/containers/Tar.luau"], [7746, "src/Rosetta/containers/Zip/init.luau"]],
"core": [[8, "src/Rosetta/core/Adler32.luau"], [68, "src/Rosetta/core/Base64.luau"], [296, "src/Rosetta/core/Bits.luau"], [589, "src/Rosetta/core/Crc16.luau"], [641, "src/Rosetta/core/Md5.luau"], [799, "src/Rosetta/core/Sniff.luau"]],
"data": [[8, "src/Rosetta/data/cbor/init.luau"], [107, "src/Rosetta/data/cbor/Codec.luau"], [676, "src/Rosetta/data/csv/init.luau"], [988, "src/Rosetta/data/ini/init.luau"], [1234, "src/Rosetta/data/json/init.luau"], [1326, "src/Rosetta/data/msgpack/init.luau"], [1415, "src/Rosetta/data/msgpack/Codec.luau"], [1857, "src/Rosetta/data/nbt/init.luau"], [1916, "src/Rosetta/data/plist/init.luau"], [2222, "src/Rosetta/data/plist/Binary.luau"], [2489, "src/Rosetta/data/q3shader/init.luau"], [2728, "src/Rosetta/data/q3skin/init.luau"], [2824, "src/Rosetta/data/snbt/init.luau"], [2887, "src/Rosetta/data/toml/init.luau"], [2954, "src/Rosetta/data/toml/Decode.luau"], [3582, "src/Rosetta/data/toml/Encode.luau"], [3791, "src/Rosetta/data/tres/init.luau"], [3936, "src/Rosetta/data/vdf/init.luau"], [4037, "src/Rosetta/data/xml/init.luau"], [4093, "src/Rosetta/data/yaml/init.luau"], [4166, "src/Rosetta/data/yaml/Emit.luau"], [4456, "src/Rosetta/data/yaml/Parse.luau"]],
"font": [[8, "src/Rosetta/font/bdf/init.luau"], [297, "src/Rosetta/font/bmfont/init.luau"], [724, "src/Rosetta/font/bmfont/Parse.luau"], [1177, "src/Rosetta/font/eot/init.luau"], [1409, "src/Rosetta/font/fon/init.luau"], [1692, "src/Rosetta/font/hershey/init.luau"], [1887, "src/Rosetta/font/pcf/init.luau"], [2167, "src/Rosetta/font/psf/init.luau"], [2487, "src/Rosetta/font/ttf/init.luau"], [2538, "src/Rosetta/font/type1/init.luau"], [2897, "src/Rosetta/font/type1/Charstring.luau"], [3175, "src/Rosetta/font/woff/init.luau"], [3307, "src/Rosetta/font/woff2/init.luau"], [3364, "src/Rosetta/font/woff2/Rebuild.luau"]],
"host": [[8, "src/Rosetta/host/Love.luau"], [151, "src/Rosetta/host/LuaJIT.luau"], [201, "src/Rosetta/host/Luau.luau"], [224, "src/Rosetta/host/Roblox.luau"]],
"image_1": [[8, "src/Rosetta/image/ani/init.luau"], [188, "src/Rosetta/image/art/init.luau"], [676, "src/Rosetta/image/blp/init.luau"], [934, "src/Rosetta/image/bmp/init.luau"], [1349, "src/Rosetta/image/dds/init.luau"], [1832, "src/Rosetta/image/exr/init.luau"], [2592, "src/Rosetta/image/exr/Codec.luau"], [2703, "src/Rosetta/image/exr/Piz.luau"], [3060, "src/Rosetta/image/gif/init.luau"], [3576, "src/Rosetta/image/gif/Decode.luau"], [3652, "src/Rosetta/image/hdr/init.luau"], [3881, "src/Rosetta/image/hdr/Codec.luau"], [4092, "src/Rosetta/image/icns/init.luau"], [4423, "src/Rosetta/image/ico/init.luau"], [4700, "src/Rosetta/image/ico/Dib.luau"], [4795, "src/Rosetta/image/ilbm/init.luau"], [5114, "src/Rosetta/image/jpeg/init.luau"], [5250, "src/Rosetta/image/ktx/init.luau"], [5910, "src/Rosetta/image/lmp/init.luau"], [6043, "src/Rosetta/image/pcx/init.luau"], [6307, "src/Rosetta/image/pnm/init.luau"], [6685, "src/Rosetta/image/pnm/Codec.luau"], [6962, "src/Rosetta/image/qoi/init.luau"], [7084, "src/Rosetta/image/qoi/Codec.luau"], [7241, "src/Rosetta/image/sgi/init.luau"], [7526, "src/Rosetta/image/spr/init.luau"]],
"image_2": [[8, "src/Rosetta/image/sunras/init.luau"], [254, "src/Rosetta/image/tga/init.luau"], [524, "src/Rosetta/image/tga/Codec.luau"], [724, "src/Rosetta/image/tiff/init.luau"], [1551, "src/Rosetta/image/tiff/Pixels.luau"], [1941, "src/Rosetta/image/tim/init.luau"], [2183, "src/Rosetta/image/vtf/init.luau"], [2418, "src/Rosetta/image/webp/init.luau"], [3028, "src/Rosetta/image/webp/Alpha.luau"], [3104, "src/Rosetta/image/webp/Anim.luau"], [3259, "src/Rosetta/image/xbm/init.luau"], [3420, "src/Rosetta/image/xpm/init.luau"], [3688, "src/Rosetta/image/xpm/Names.luau"]],
"layered": [[8, "src/Rosetta/layered/aseprite/init.luau"], [746, "src/Rosetta/layered/ora/init.luau"], [1033, "src/Rosetta/layered/psd/init.luau"], [1768, "src/Rosetta/layered/psd/Channels.luau"]],
"model_1": [[8, "src/Rosetta/model/3ds/init.luau"], [91, "src/Rosetta/model/3ds/Build.luau"], [738, "src/Rosetta/model/3ds/Read.luau"], [1234, "src/Rosetta/model/3ds/Write.luau"], [2039, "src/Rosetta/model/3mf/init.luau"], [2121, "src/Rosetta/model/3mf/Read.luau"], [2709, "src/Rosetta/model/3mf/Write.luau"], [3114, "src/Rosetta/model/ase/init.luau"], [3237, "src/Rosetta/model/ase/Build.luau"], [3811, "src/Rosetta/model/ase/Parse.luau"], [3880, "src/Rosetta/model/ase/Write.luau"], [4343, "src/Rosetta/model/b3d/init.luau"], [4398, "src/Rosetta/model/b3d/Read.luau"], [4969, "src/Rosetta/model/blend/init.luau"], [5065, "src/Rosetta/model/blend/Anim.luau"], [5411, "src/Rosetta/model/blend/Material.luau"], [5763, "src/Rosetta/model/blend/Mesh.luau"], [6398, "src/Rosetta/model/blend/Normals.luau"], [6559, "src/Rosetta/model/blend/Prim.luau"]],
"model_2": [[8, "src/Rosetta/model/blend/Read.luau"], [908, "src/Rosetta/model/bsp/init.luau"], [1099, "src/Rosetta/model/bsp/Lightmap.luau"], [1165, "src/Rosetta/model/bsp/Quake.luau"], [1554, "src/Rosetta/model/bsp/Quake3.luau"], [1783, "src/Rosetta/model/bsp/Tree.luau"], [2171, "src/Rosetta/model/buildmap/init.luau"], [2443, "src/Rosetta/model/buildmap/Geometry.luau"], [2846, "src/Rosetta/model/d3map/init.luau"], [3128, "src/Rosetta/model/d3map/Parse.luau"], [3326, "src/Rosetta/model/dae/init.luau"], [3515, "src/Rosetta/model/dae/Math.luau"], [3562, "src/Rosetta/model/dae/Read.luau"], [5412, "src/Rosetta/model/dae/Write.luau"], [5781, "src/Rosetta/model/fbx/init.luau"], [5929, "src/Rosetta/model/fbx/Ascii.luau"], [6199, "src/Rosetta/model/fbx/Binary.luau"]],
"model_3": [[8, "src/Rosetta/model/fbx/Read.luau"], [1370, "src/Rosetta/model/fbx/Write.luau"], [2355, "src/Rosetta/model/fbx/Xform.luau"], [2396, "src/Rosetta/model/gltf/init.luau"], [2633, "src/Rosetta/model/gltf/Pack.luau"], [2702, "src/Rosetta/model/gltf/Read.luau"], [3433, "src/Rosetta/model/gltf/Write.luau"], [4113, "src/Rosetta/model/godot/init.luau"], [4204, "src/Rosetta/model/godot/Build.luau"], [4746, "src/Rosetta/model/godot/Primitives.luau"], [5021, "src/Rosetta/model/godot/Surface.luau"], [5506, "src/Rosetta/model/godot/Write.luau"], [5835, "src/Rosetta/model/iqm/init.luau"], [5911, "src/Rosetta/model/iqm/Read.luau"], [6266, "src/Rosetta/model/iqm/Write.luau"], [6953, "src/Rosetta/model/ldraw/init.luau"], [7031, "src/Rosetta/model/ldraw/Colors.luau"]],
"model_4": [[8, "src/Rosetta/model/ldraw/Read.luau"], [585, "src/Rosetta/model/lwo/init.luau"], [661, "src/Rosetta/model/lwo/Build.luau"], [1123, "src/Rosetta/model/lwo/Parse.luau"], [1666, "src/Rosetta/model/map/init.luau"], [1983, "src/Rosetta/model/map/Build.luau"], [2227, "src/Rosetta/model/map/Parse.luau"], [2612, "src/Rosetta/model/map/Write.luau"], [2758, "src/Rosetta/model/mca/init.luau"], [3100, "src/Rosetta/model/mca/Chunk.luau"], [3233, "src/Rosetta/model/mca/Lz4Block.luau"], [3303, "src/Rosetta/model/md2/init.luau"], [3502, "src/Rosetta/model/md3/init.luau"], [3730, "src/Rosetta/model/md5/init.luau"], [3811, "src/Rosetta/model/md5/Read.luau"], [4244, "src/Rosetta/model/mdl/init.luau"], [4326, "src/Rosetta/model/mdl/HalfLife.luau"], [4630, "src/Rosetta/model/mdl/Quake.luau"], [4848, "src/Rosetta/model/ms3d/init.luau"], [4920, "src/Rosetta/model/ms3d/Read.luau"], [5366, "src/Rosetta/model/ms3d/Write.luau"], [5835, "src/Rosetta/model/obj/init.luau"], [6653, "src/Rosetta/model/obj/Mtl.luau"], [6941, "src/Rosetta/model/off/init.luau"]],
"model_5": [[8, "src/Rosetta/model/ply/init.luau"], [1113, "src/Rosetta/model/ply/Binary.luau"], [1314, "src/Rosetta/model/pmx/init.luau"], [1383, "src/Rosetta/model/pmx/Build.luau"], [1679, "src/Rosetta/model/pmx/Pmd.luau"], [2014, "src/Rosetta/model/pmx/Read.luau"], [2418, "src/Rosetta/model/proc/init.luau"], [2800, "src/Rosetta/model/qb/init.luau"], [3193, "src/Rosetta/model/rbxm/init.luau"], [3786, "src/Rosetta/model/rbxmx/init.luau"], [4462, "src/Rosetta/model/robloxmesh/init.luau"], [5121, "src/Rosetta/model/robloxmesh/Parse.luau"], [5578, "src/Rosetta/model/robloxmesh/Write.luau"], [5687, "src/Rosetta/model/schematic/init.luau"], [6008, "src/Rosetta/model/schematic/Common.luau"], [6128, "src/Rosetta/model/schematic/Litematic.luau"], [6339, "src/Rosetta/model/schematic/Mcedit.luau"], [6583, "src/Rosetta/model/schematic/Sponge.luau"], [6712, "src/Rosetta/model/smd/init.luau"], [6779, "src/Rosetta/model/smd/Read.luau"], [7048, "src/Rosetta/model/smd/Write.luau"], [7291, "src/Rosetta/model/sourcemdl/init.luau"], [7462, "src/Rosetta/model/sourcemdl/Build.luau"], [7892, "src/Rosetta/model/sourcemdl/Material.luau"]],
"model_6": [[8, "src/Rosetta/model/sourcemdl/Mdl.luau"], [535, "src/Rosetta/model/sourcemdl/Phy.luau"], [658, "src/Rosetta/model/sourcemdl/Vtx.luau"], [840, "src/Rosetta/model/sourcemdl/Vvd.luau"], [934, "src/Rosetta/model/stl/init.luau"], [1384, "src/Rosetta/model/stl/Decode.luau"], [1458, "src/Rosetta/model/t3d/init.luau"], [1552, "src/Rosetta/model/t3d/Build.luau"], [1957, "src/Rosetta/model/t3d/Parse.luau"], [2125, "src/Rosetta/model/udmf/init.luau"], [2208, "src/Rosetta/model/usda/init.luau"], [2417, "src/Rosetta/model/usda/Build.luau"], [3695, "src/Rosetta/model/usda/Parse.luau"], [4493, "src/Rosetta/model/usda/Write.luau"], [5310, "src/Rosetta/model/vbsp/init.luau"], [5756, "src/Rosetta/model/vbsp/Faces.luau"], [5980, "src/Rosetta/model/vbsp/Props.luau"], [6072, "src/Rosetta/model/vmf/init.luau"], [6397, "src/Rosetta/model/vmf/Build.luau"], [6821, "src/Rosetta/model/vox/init.luau"], [7707, "src/Rosetta/model/vox/Grid.luau"], [7764, "src/Rosetta/model/vrml/init.luau"], [7830, "src/Rosetta/model/x/init.luau"]],
"model_7": [[8, "src/Rosetta/model/x/Build.luau"], [571, "src/Rosetta/model/x/Parse.luau"], [868, "src/Rosetta/model/x3d/init.luau"]],
"music": [[8, "src/Rosetta/music/669/init.luau"], [215, "src/Rosetta/music/ahx/init.luau"], [267, "src/Rosetta/music/far/init.luau"], [497, "src/Rosetta/music/hmp/init.luau"], [762, "src/Rosetta/music/hvl/init.luau"], [814, "src/Rosetta/music/it/init.luau"], [1233, "src/Rosetta/music/it/Itsex.luau"], [1350, "src/Rosetta/music/med/init.luau"], [1998, "src/Rosetta/music/midi/init.luau"], [2142, "src/Rosetta/music/midi/Smf.luau"], [2554, "src/Rosetta/music/mod/init.luau"], [2908, "src/Rosetta/music/mtm/init.luau"], [3131, "src/Rosetta/music/mus/init.luau"], [3289, "src/Rosetta/music/okt/init.luau"], [3571, "src/Rosetta/music/ptm/init.luau"], [3794, "src/Rosetta/music/s3m/init.luau"], [4031, "src/Rosetta/music/sf2/init.luau"], [4075, "src/Rosetta/music/stm/init.luau"], [4307, "src/Rosetta/music/ult/init.luau"], [4612, "src/Rosetta/music/umx/init.luau"], [4829, "src/Rosetta/music/xm/init.luau"], [5391, "src/Rosetta/music/xmi/init.luau"]],
"ops": [[8, "src/Rosetta/ops/AudioOps.luau"], [487, "src/Rosetta/ops/LayerOps.luau"], [580, "src/Rosetta/ops/MeshOps/init.luau"], [1632, "src/Rosetta/ops/MeshOps/Greedy.luau"], [1799, "src/Rosetta/ops/MusicOps.luau"]],
"playlist": [[8, "src/Rosetta/playlist/m3u/init.luau"], [361, "src/Rosetta/playlist/pls/init.luau"], [539, "src/Rosetta/playlist/xspf/init.luau"]],
"subtitle": [[8, "src/Rosetta/subtitle/ass/init.luau"], [452, "src/Rosetta/subtitle/srt/init.luau"], [625, "src/Rosetta/subtitle/vtt/init.luau"]],
"vector": [[8, "src/Rosetta/vector/gamemaps/init.luau"], [195, "src/Rosetta/vector/gamemaps/Expand.luau"], [292, "src/Rosetta/vector/ldtk/init.luau"], [384, "src/Rosetta/vector/ldtk/Read.luau"], [720, "src/Rosetta/vector/ldtk/Write.luau"], [1368, "src/Rosetta/vector/ogmo/init.luau"], [1487, "src/Rosetta/vector/ogmo/Read.luau"], [1892, "src/Rosetta/vector/ogmo/Write.luau"], [2246, "src/Rosetta/vector/svg/init.luau"], [2332, "src/Rosetta/vector/svg/Parse.luau"], [3078, "src/Rosetta/vector/svg/PathData.luau"], [3446, "src/Rosetta/vector/svg/Render.luau"], [3863, "src/Rosetta/vector/svg/Style.luau"], [4235, "src/Rosetta/vector/svg/Write.luau"], [4435, "src/Rosetta/vector/tiled/init.luau"], [4615, "src/Rosetta/vector/tiled/Data.luau"], [4766, "src/Rosetta/vector/tiled/Tmj.luau"], [5397, "src/Rosetta/vector/tiled/Tmx.luau"]],
"video": [[8, "src/Rosetta/video/avi/init.luau"], [302, "src/Rosetta/video/fli/init.luau"], [453, "src/Rosetta/video/flv/init.luau"], [837, "src/Rosetta/video/flv/Amf.luau"], [995, "src/Rosetta/video/flv/Mux.luau"], [1276, "src/Rosetta/video/h264/init.luau"], [1415, "src/Rosetta/video/mkv/init.luau"], [1571, "src/Rosetta/video/mkv/Mux.luau"], [1850, "src/Rosetta/video/mkv/Parse.luau"], [2571, "src/Rosetta/video/mp4/init.luau"], [2899, "src/Rosetta/video/mpegps/init.luau"], [3086, "src/Rosetta/video/mpegts/init.luau"], [3332, "src/Rosetta/video/ogv/init.luau"], [3727, "src/Rosetta/video/smk/init.luau"], [4036, "src/Rosetta/video/smk/Audio.luau"], [4156, "src/Rosetta/video/y4m/init.luau"]]
"archive_7z": [[8, "src/Rosetta/archive/7z/init.luau"], [393, "src/Rosetta/archive/7z/Header.luau"]],
"archive_adf": [[8, "src/Rosetta/archive/adf/init.luau"]],
"archive_applesingle": [[8, "src/Rosetta/archive/applesingle/init.luau"]],
"archive_ar": [[8, "src/Rosetta/archive/ar/init.luau"]],
"archive_arj": [[8, "src/Rosetta/archive/arj/init.luau"]],
"archive_binhex": [[8, "src/Rosetta/archive/binhex/init.luau"]],
"archive_br": [[8, "src/Rosetta/archive/br/init.luau"]],
"archive_bz2": [[8, "src/Rosetta/archive/bz2/init.luau"]],
"archive_cab": [[8, "src/Rosetta/archive/cab/init.luau"], [421, "src/Rosetta/archive/cab/Sum.luau"]],
"archive_cpio": [[8, "src/Rosetta/archive/cpio/init.luau"]],
"archive_d64": [[8, "src/Rosetta/archive/d64/init.luau"]],
"archive_fat": [[8, "src/Rosetta/archive/fat/init.luau"]],
"archive_grp": [[8, "src/Rosetta/archive/grp/init.luau"]],
"archive_gzip": [[8, "src/Rosetta/archive/gzip/init.luau"]],
"archive_iso": [[8, "src/Rosetta/archive/iso/init.luau"]],
"archive_lha": [[8, "src/Rosetta/archive/lha/init.luau"]],
"archive_lz4": [[8, "src/Rosetta/archive/lz4/init.luau"]],
"archive_macbinary": [[8, "src/Rosetta/archive/macbinary/init.luau"]],
"archive_mpq": [[8, "src/Rosetta/archive/mpq/init.luau"], [414, "src/Rosetta/archive/mpq/Crypt.luau"]],
"archive_pak": [[8, "src/Rosetta/archive/pak/init.luau"]],
"archive_rpm": [[8, "src/Rosetta/archive/rpm/init.luau"]],
"archive_tar": [[8, "src/Rosetta/archive/tar/init.luau"]],
"archive_unitypackage": [[8, "src/Rosetta/archive/unitypackage/init.luau"]],
"archive_uu": [[8, "src/Rosetta/archive/uu/init.luau"]],
"archive_vpk": [[8, "src/Rosetta/archive/vpk/init.luau"]],
"archive_vswap": [[8, "src/Rosetta/archive/vswap/init.luau"]],
"archive_wad": [[8, "src/Rosetta/archive/wad/init.luau"], [462, "src/Rosetta/archive/wad/Picture.luau"]],
"archive_wad2": [[8, "src/Rosetta/archive/wad2/init.luau"]],
"archive_xz": [[8, "src/Rosetta/archive/xz/init.luau"]],
"archive_yenc": [[8, "src/Rosetta/archive/yenc/init.luau"]],
"archive_z": [[8, "src/Rosetta/archive/z/init.luau"]],
"archive_zip": [[8, "src/Rosetta/archive/zip/init.luau"]],
"archive_zoo": [[8, "src/Rosetta/archive/zoo/init.luau"]],
"archive_zst": [[8, "src/Rosetta/archive/zst/init.luau"]],
"audio_aac": [[8, "src/Rosetta/audio/aac/init.luau"]],
"audio_ac3": [[8, "src/Rosetta/audio/ac3/init.luau"]],
"audio_adpcm": [[8, "src/Rosetta/audio/adpcm/init.luau"]],
"audio_adx": [[8, "src/Rosetta/audio/adx/init.luau"]],
"audio_aiff": [[8, "src/Rosetta/audio/aiff/init.luau"]],
"audio_ape": [[8, "src/Rosetta/audio/ape/init.luau"]],
"audio_au": [[8, "src/Rosetta/audio/au/init.luau"]],
"audio_brstm": [[8, "src/Rosetta/audio/brstm/init.luau"]],
"audio_caf": [[8, "src/Rosetta/audio/caf/init.luau"]],
"audio_flac": [[8, "src/Rosetta/audio/flac/init.luau"], [157, "src/Rosetta/audio/flac/Meta.luau"], [379, "src/Rosetta/audio/flac/Stream.luau"]],
"audio_m4a": [[8, "src/Rosetta/audio/m4a/init.luau"]],
"audio_mp3": [[8, "src/Rosetta/audio/mp3/init.luau"], [269, "src/Rosetta/audio/mp3/Index.luau"], [460, "src/Rosetta/audio/mp3/Stream.luau"], [687, "src/Rosetta/audio/mp3/Tags.luau"]],
"audio_mpc": [[8, "src/Rosetta/audio/mpc/init.luau"]],
"audio_opus": [[8, "src/Rosetta/audio/opus/init.luau"], [387, "src/Rosetta/audio/opus/Encode.luau"]],
"audio_qoa": [[8, "src/Rosetta/audio/qoa/init.luau"]],
"audio_tta": [[8, "src/Rosetta/audio/tta/init.luau"]],
"audio_vag": [[8, "src/Rosetta/audio/vag/init.luau"]],
"audio_voc": [[8, "src/Rosetta/audio/voc/init.luau"]],
"audio_vorbis": [[8, "src/Rosetta/audio/vorbis/init.luau"], [463, "src/Rosetta/audio/vorbis/Encode.luau"]],
"audio_wav": [[8, "src/Rosetta/audio/wav/init.luau"], [629, "src/Rosetta/audio/wav/Codecs.luau"]],
"audio_wavpack": [[8, "src/Rosetta/audio/wavpack/init.luau"]],
"cad_step": [[8, "src/Rosetta/cad/step/init.luau"], [390, "src/Rosetta/cad/step/Brep.luau"], [625, "src/Rosetta/cad/step/Parse.luau"], [1182, "src/Rosetta/cad/step/Write.luau"]],
"codecs_audio_Ac3": [[8, "src/Rosetta/codecs/audio/Ac3/init.luau"], [168, "src/Rosetta/codecs/audio/Ac3/Decode.luau"], [1053, "src/Rosetta/codecs/audio/Ac3/Tables.luau"]],
"codecs_audio_Adpcm": [[8, "src/Rosetta/codecs/audio/Adpcm/init.luau"], [762, "src/Rosetta/codecs/audio/Adpcm/Decoder.luau"]],
"codecs_audio_Alac": [[8, "src/Rosetta/codecs/audio/Alac/init.luau"], [243, "src/Rosetta/codecs/audio/Alac/Decode.luau"], [662, "src/Rosetta/codecs/audio/Alac/Encode.luau"]],
"codecs_audio_Ape": [[8, "src/Rosetta/codecs/audio/Ape/init.luau"], [224, "src/Rosetta/codecs/audio/Ape/Decode.luau"]],
"codecs_audio_ApeTag": [[8, "src/Rosetta/codecs/audio/ApeTag.luau"]],
"codecs_audio_Mdct": [[8, "src/Rosetta/codecs/audio/Mdct/init.luau"], [228, "src/Rosetta/codecs/audio/Mdct/Fft.luau"]],
"codecs_audio_MidiRender": [[8, "src/Rosetta/codecs/audio/MidiRender.luau"]],
"codecs_audio_Pcm": [[8, "src/Rosetta/codecs/audio/Pcm/init.luau"], [272, "src/Rosetta/codecs/audio/Pcm/Convert.luau"]],
"codecs_audio_Qoa": [[8, "src/Rosetta/codecs/audio/Qoa/init.luau"]],
"codecs_audio_Resample": [[8, "src/Rosetta/codecs/audio/Resample/init.luau"]],
"codecs_audio_Stream": [[8, "src/Rosetta/codecs/audio/Stream.luau"]],
"codecs_audio_Tta": [[8, "src/Rosetta/codecs/audio/Tta/init.luau"], [126, "src/Rosetta/codecs/audio/Tta/Decode.luau"]],
"codecs_audio_VorbisComment": [[8, "src/Rosetta/codecs/audio/VorbisComment.luau"]],
"codecs_compress_Bzip2": [[8, "src/Rosetta/codecs/compress/Bzip2/init.luau"], [52, "src/Rosetta/codecs/compress/Bzip2/Decode.luau"]],
"codecs_compress_Explode": [[8, "src/Rosetta/codecs/compress/Explode.luau"]],
"codecs_compress_Lz4": [[8, "src/Rosetta/codecs/compress/Lz4.luau"]],
"codecs_compress_Lzh": [[8, "src/Rosetta/codecs/compress/Lzh/init.luau"]],
"codecs_compress_Lzw": [[8, "src/Rosetta/codecs/compress/Lzw/init.luau"]],
"codecs_compress_Lzx": [[8, "src/Rosetta/codecs/compress/Lzx.luau"]],
"codecs_compress_PackBits": [[8, "src/Rosetta/codecs/compress/PackBits.luau"]],
"codecs_compress_Quantum": [[8, "src/Rosetta/codecs/compress/Quantum.luau"]],
"codecs_compress_UnixCompress": [[8, "src/Rosetta/codecs/compress/UnixCompress.luau"]],
"codecs_compress_Xxh32": [[8, "src/Rosetta/codecs/compress/Xxh32.luau"]],
"codecs_entropy_Huffman": [[8, "src/Rosetta/codecs/entropy/Huffman.luau"]],
"codecs_entropy_RangeCoder": [[8, "src/Rosetta/codecs/entropy/RangeCoder/init.luau"], [19, "src/Rosetta/codecs/entropy/RangeCoder/Decoder.luau"], [240, "src/Rosetta/codecs/entropy/RangeCoder/Encoder.luau"]],
"codecs_font_Bitmap": [[8, "src/Rosetta/codecs/font/Bitmap.luau"]],
"codecs_font_Cff": [[8, "src/Rosetta/codecs/font/Cff/init.luau"]],
"codecs_font_GlyphNames": [[8, "src/Rosetta/codecs/font/GlyphNames.luau"]],
"codecs_font_TrueType": [[8, "src/Rosetta/codecs/font/TrueType/init.luau"], [322, "src/Rosetta/codecs/font/TrueType/Glyf.luau"], [714, "src/Rosetta/codecs/font/TrueType/Tables.luau"]],
"codecs_image_Blend": [[8, "src/Rosetta/codecs/image/Blend.luau"]],
"codecs_image_Etc": [[8, "src/Rosetta/codecs/image/Etc.luau"]],
"codecs_image_Half": [[8, "src/Rosetta/codecs/image/Half.luau"]],
"codecs_image_Miptex": [[8, "src/Rosetta/codecs/image/Miptex.luau"]],
"codecs_image_Pixels": [[8, "src/Rosetta/codecs/image/Pixels.luau"]],
"codecs_image_Quantize": [[8, "src/Rosetta/codecs/image/Quantize/init.luau"]],
"codecs_image_Raster": [[8, "src/Rosetta/codecs/image/Raster.luau"]],
"codecs_image_Texel": [[8, "src/Rosetta/codecs/image/Texel.luau"]],
"codecs_image_Texture": [[8, "src/Rosetta/codecs/image/Texture.luau"]],
"codecs_image_Yuv": [[8, "src/Rosetta/codecs/image/Yuv.luau"]],
"codecs_model_Brush": [[8, "src/Rosetta/codecs/model/Brush.luau"]],
"codecs_model_Displacement": [[8, "src/Rosetta/codecs/model/Displacement.luau"]],
"codecs_model_DoomMap": [[8, "src/Rosetta/codecs/model/DoomMap/init.luau"], [453, "src/Rosetta/codecs/model/DoomMap/Udmf.luau"]],
"codecs_model_Mat4": [[8, "src/Rosetta/codecs/model/Mat4.luau"]],
"codecs_model_MeshFlatten": [[8, "src/Rosetta/codecs/model/MeshFlatten.luau"]],
"codecs_model_Minecraft": [[8, "src/Rosetta/codecs/model/Minecraft/init.luau"], [560, "src/Rosetta/codecs/model/Minecraft/Colors.luau"], [639, "src/Rosetta/codecs/model/Minecraft/Legacy.luau"], [746, "src/Rosetta/codecs/model/Minecraft/Packed.luau"]],
"codecs_model_Patch": [[8, "src/Rosetta/codecs/model/Patch.luau"]],
"codecs_model_Polygon": [[8, "src/Rosetta/codecs/model/Polygon.luau"]],
"codecs_model_Rbx": [[8, "src/Rosetta/codecs/model/Rbx/init.luau"], [245, "src/Rosetta/codecs/model/Rbx/Binary.luau"]],
"codecs_model_Rig": [[8, "src/Rosetta/codecs/model/Rig.luau"]],
"codecs_model_Sampler": [[8, "src/Rosetta/codecs/model/Sampler.luau"]],
"codecs_model_SourceAnim": [[8, "src/Rosetta/codecs/model/SourceAnim.luau"]],
"codecs_model_Vrml": [[8, "src/Rosetta/codecs/model/Vrml/init.luau"], [156, "src/Rosetta/codecs/model/Vrml/Build.luau"], [730, "src/Rosetta/codecs/model/Vrml/Fields.luau"], [893, "src/Rosetta/codecs/model/Vrml/Geometry.luau"], [1642, "src/Rosetta/codecs/model/Vrml/Parse.luau"], [2164, "src/Rosetta/codecs/model/Vrml/Write.luau"], [2891, "src/Rosetta/codecs/model/Vrml/Xml.luau"]],
"codecs_text_GodotVariant": [[8, "src/Rosetta/codecs/text/GodotVariant.luau"]],
"codecs_text_Json": [[8, "src/Rosetta/codecs/text/Json/init.luau"], [277, "src/Rosetta/codecs/text/Json/Decode.luau"], [712, "src/Rosetta/codecs/text/Json/Encode.luau"]],
"codecs_text_KeyValues": [[8, "src/Rosetta/codecs/text/KeyValues/init.luau"], [578, "src/Rosetta/codecs/text/KeyValues/Binary.luau"]],
"codecs_text_Lexer": [[8, "src/Rosetta/codecs/text/Lexer/init.luau"]],
"codecs_text_Nbt": [[8, "src/Rosetta/codecs/text/Nbt/init.luau"], [361, "src/Rosetta/codecs/text/Nbt/Binary.luau"], [1053, "src/Rosetta/codecs/text/Nbt/Snbt.luau"], [1693, "src/Rosetta/codecs/text/Nbt/Value.luau"]],
"codecs_text_Text": [[8, "src/Rosetta/codecs/text/Text/init.luau"]],
"codecs_text_Url": [[8, "src/Rosetta/codecs/text/Url/init.luau"]],
"codecs_text_Xml": [[8, "src/Rosetta/codecs/text/Xml/init.luau"], [458, "src/Rosetta/codecs/text/Xml/Parse.luau"]],
"codecs_video_Video": [[8, "src/Rosetta/codecs/video/Video/init.luau"], [623, "src/Rosetta/codecs/video/Video/Disposable.luau"], [834, "src/Rosetta/codecs/video/Video/Pool.luau"], [886, "src/Rosetta/codecs/video/Video/Source.luau"]],
"containers_Archive": [[8, "src/Rosetta/containers/Archive.luau"]],
"containers_AudioWrap": [[8, "src/Rosetta/containers/AudioWrap.luau"]],
"containers_Avi": [[8, "src/Rosetta/containers/Avi/init.luau"]],
"containers_Blend": [[8, "src/Rosetta/containers/Blend.luau"]],
"containers_Chunks": [[8, "src/Rosetta/containers/Chunks.luau"]],
"containers_Cpio": [[8, "src/Rosetta/containers/Cpio.luau"]],
"containers_Demux": [[8, "src/Rosetta/containers/Demux.luau"]],
"containers_Ebml": [[8, "src/Rosetta/containers/Ebml/init.luau"]],
"containers_Fat": [[8, "src/Rosetta/containers/Fat.luau"]],
"containers_Iso9660": [[8, "src/Rosetta/containers/Iso9660.luau"]],
"containers_IsoBmff": [[8, "src/Rosetta/containers/IsoBmff/init.luau"], [179, "src/Rosetta/containers/IsoBmff/Box.luau"], [368, "src/Rosetta/containers/IsoBmff/Demux.luau"], [1214, "src/Rosetta/containers/IsoBmff/Meta.luau"], [1736, "src/Rosetta/containers/IsoBmff/Mux.luau"], [2253, "src/Rosetta/containers/IsoBmff/QtPalette.luau"]],
"containers_MacFile": [[8, "src/Rosetta/containers/MacFile.luau"]],
"containers_Ogg": [[8, "src/Rosetta/containers/Ogg/init.luau"], [433, "src/Rosetta/containers/Ogg/Mux.luau"], [622, "src/Rosetta/containers/Ogg/Page.luau"]],
"containers_Riff": [[8, "src/Rosetta/containers/Riff/init.luau"]],
"containers_Tar": [[8, "src/Rosetta/containers/Tar.luau"]],
"containers_Zip": [[8, "src/Rosetta/containers/Zip/init.luau"]],
"core_Adler32": [[8, "src/Rosetta/core/Adler32.luau"]],
"core_Base64": [[8, "src/Rosetta/core/Base64.luau"]],
"core_Bits": [[8, "src/Rosetta/core/Bits.luau"]],
"core_Crc32": [[8, "src/Rosetta/core/Crc32.luau"]],
"core_Md5": [[8, "src/Rosetta/core/Md5.luau"]],
"data_cbor": [[8, "src/Rosetta/data/cbor/init.luau"], [107, "src/Rosetta/data/cbor/Codec.luau"]],
"data_csv": [[8, "src/Rosetta/data/csv/init.luau"]],
"data_ini": [[8, "src/Rosetta/data/ini/init.luau"]],
"data_json": [[8, "src/Rosetta/data/json/init.luau"]],
"data_msgpack": [[8, "src/Rosetta/data/msgpack/init.luau"], [97, "src/Rosetta/data/msgpack/Codec.luau"]],
"data_nbt": [[8, "src/Rosetta/data/nbt/init.luau"]],
"data_plist": [[8, "src/Rosetta/data/plist/init.luau"], [314, "src/Rosetta/data/plist/Binary.luau"]],
"data_q3shader": [[8, "src/Rosetta/data/q3shader/init.luau"]],
"data_q3skin": [[8, "src/Rosetta/data/q3skin/init.luau"]],
"data_snbt": [[8, "src/Rosetta/data/snbt/init.luau"]],
"data_toml": [[8, "src/Rosetta/data/toml/init.luau"], [75, "src/Rosetta/data/toml/Decode.luau"], [703, "src/Rosetta/data/toml/Encode.luau"]],
"data_tres": [[8, "src/Rosetta/data/tres/init.luau"]],
"data_vdf": [[8, "src/Rosetta/data/vdf/init.luau"]],
"data_xml": [[8, "src/Rosetta/data/xml/init.luau"]],
"data_yaml": [[8, "src/Rosetta/data/yaml/init.luau"], [81, "src/Rosetta/data/yaml/Emit.luau"], [371, "src/Rosetta/data/yaml/Parse.luau"]],
"font_bdf": [[8, "src/Rosetta/font/bdf/init.luau"]],
"font_bmfont": [[8, "src/Rosetta/font/bmfont/init.luau"], [435, "src/Rosetta/font/bmfont/Parse.luau"]],
"font_eot": [[8, "src/Rosetta/font/eot/init.luau"]],
"font_fon": [[8, "src/Rosetta/font/fon/init.luau"]],
"font_hershey": [[8, "src/Rosetta/font/hershey/init.luau"]],
"font_pcf": [[8, "src/Rosetta/font/pcf/init.luau"]],
"font_psf": [[8, "src/Rosetta/font/psf/init.luau"]],
"font_ttf": [[8, "src/Rosetta/font/ttf/init.luau"]],
"font_type1": [[8, "src/Rosetta/font/type1/init.luau"], [367, "src/Rosetta/font/type1/Charstring.luau"]],
"font_woff": [[8, "src/Rosetta/font/woff/init.luau"]],
"font_woff2": [[8, "src/Rosetta/font/woff2/init.luau"], [65, "src/Rosetta/font/woff2/Rebuild.luau"]],
"host_Love": [[8, "src/Rosetta/host/Love.luau"]],
"host_LuaJIT": [[8, "src/Rosetta/host/LuaJIT.luau"]],
"host_Luau": [[8, "src/Rosetta/host/Luau.luau"]],
"host_Roblox": [[8, "src/Rosetta/host/Roblox.luau"]],
"image_ani": [[8, "src/Rosetta/image/ani/init.luau"]],
"image_art": [[8, "src/Rosetta/image/art/init.luau"]],
"image_blp": [[8, "src/Rosetta/image/blp/init.luau"]],
"image_bmp": [[8, "src/Rosetta/image/bmp/init.luau"]],
"image_dds": [[8, "src/Rosetta/image/dds/init.luau"]],
"image_exr": [[8, "src/Rosetta/image/exr/init.luau"], [768, "src/Rosetta/image/exr/Codec.luau"], [879, "src/Rosetta/image/exr/Piz.luau"]],
"image_gif": [[8, "src/Rosetta/image/gif/init.luau"], [524, "src/Rosetta/image/gif/Decode.luau"]],
"image_hdr": [[8, "src/Rosetta/image/hdr/init.luau"], [237, "src/Rosetta/image/hdr/Codec.luau"]],
"image_icns": [[8, "src/Rosetta/image/icns/init.luau"]],
"image_ico": [[8, "src/Rosetta/image/ico/init.luau"], [285, "src/Rosetta/image/ico/Dib.luau"]],
"image_ilbm": [[8, "src/Rosetta/image/ilbm/init.luau"]],
"image_jpeg": [[8, "src/Rosetta/image/jpeg/init.luau"]],
"image_ktx": [[8, "src/Rosetta/image/ktx/init.luau"]],
"image_lmp": [[8, "src/Rosetta/image/lmp/init.luau"]],
"image_pcx": [[8, "src/Rosetta/image/pcx/init.luau"]],
"image_pnm": [[8, "src/Rosetta/image/pnm/init.luau"], [386, "src/Rosetta/image/pnm/Codec.luau"]],
"image_qoi": [[8, "src/Rosetta/image/qoi/init.luau"], [130, "src/Rosetta/image/qoi/Codec.luau"]],
"image_sgi": [[8, "src/Rosetta/image/sgi/init.luau"]],
"image_spr": [[8, "src/Rosetta/image/spr/init.luau"]],
"image_sunras": [[8, "src/Rosetta/image/sunras/init.luau"]],
"image_tga": [[8, "src/Rosetta/image/tga/init.luau"], [278, "src/Rosetta/image/tga/Codec.luau"]],
"image_tiff": [[8, "src/Rosetta/image/tiff/init.luau"], [835, "src/Rosetta/image/tiff/Pixels.luau"]],
"image_tim": [[8, "src/Rosetta/image/tim/init.luau"]],
"image_vtf": [[8, "src/Rosetta/image/vtf/init.luau"]],
"image_webp": [[8, "src/Rosetta/image/webp/init.luau"], [618, "src/Rosetta/image/webp/Alpha.luau"], [694, "src/Rosetta/image/webp/Anim.luau"]],
"image_xbm": [[8, "src/Rosetta/image/xbm/init.luau"]],
"image_xpm": [[8, "src/Rosetta/image/xpm/init.luau"], [276, "src/Rosetta/image/xpm/Names.luau"]],
"layered_aseprite": [[8, "src/Rosetta/layered/aseprite/init.luau"]],
"layered_ora": [[8, "src/Rosetta/layered/ora/init.luau"]],
"layered_psd": [[8, "src/Rosetta/layered/psd/init.luau"], [743, "src/Rosetta/layered/psd/Channels.luau"]],
"model_3ds": [[8, "src/Rosetta/model/3ds/init.luau"], [91, "src/Rosetta/model/3ds/Build.luau"], [738, "src/Rosetta/model/3ds/Read.luau"], [1234, "src/Rosetta/model/3ds/Write.luau"]],
"model_3mf": [[8, "src/Rosetta/model/3mf/init.luau"], [90, "src/Rosetta/model/3mf/Read.luau"], [678, "src/Rosetta/model/3mf/Write.luau"]],
"model_ase": [[8, "src/Rosetta/model/ase/init.luau"], [131, "src/Rosetta/model/ase/Build.luau"], [705, "src/Rosetta/model/ase/Parse.luau"], [774, "src/Rosetta/model/ase/Write.luau"]],
"model_b3d": [[8, "src/Rosetta/model/b3d/init.luau"], [63, "src/Rosetta/model/b3d/Read.luau"]],
"model_blend": [[8, "src/Rosetta/model/blend/init.luau"], [108, "src/Rosetta/model/blend/Anim.luau"], [638, "src/Rosetta/model/blend/Armature.luau"], [1174, "src/Rosetta/model/blend/Driver.luau"], [1349, "src/Rosetta/model/blend/Material.luau"], [1924, "src/Rosetta/model/blend/Mesh.luau"], [2612, "src/Rosetta/model/blend/Normals.luau"], [2773, "src/Rosetta/model/blend/Prim.luau"], [3280, "src/Rosetta/model/blend/Read.luau"]],
"model_bsp": [[8, "src/Rosetta/model/bsp/init.luau"], [199, "src/Rosetta/model/bsp/Lightmap.luau"], [265, "src/Rosetta/model/bsp/Quake.luau"], [654, "src/Rosetta/model/bsp/Quake3.luau"], [883, "src/Rosetta/model/bsp/Tree.luau"]],
"model_buildmap": [[8, "src/Rosetta/model/buildmap/init.luau"], [280, "src/Rosetta/model/buildmap/Geometry.luau"]],
"model_d3map": [[8, "src/Rosetta/model/d3map/init.luau"], [290, "src/Rosetta/model/d3map/Parse.luau"]],
"model_dae": [[8, "src/Rosetta/model/dae/init.luau"], [197, "src/Rosetta/model/dae/Math.luau"], [244, "src/Rosetta/model/dae/Read.luau"], [2094, "src/Rosetta/model/dae/Write.luau"]],
"model_fbx": [[8, "src/Rosetta/model/fbx/init.luau"], [156, "src/Rosetta/model/fbx/Ascii.luau"], [426, "src/Rosetta/model/fbx/Binary.luau"], [881, "src/Rosetta/model/fbx/Read.luau"], [2243, "src/Rosetta/model/fbx/Write.luau"], [3228, "src/Rosetta/model/fbx/Xform.luau"]],
"model_gltf": [[8, "src/Rosetta/model/gltf/init.luau"], [245, "src/Rosetta/model/gltf/Pack.luau"], [314, "src/Rosetta/model/gltf/Read.luau"], [1055, "src/Rosetta/model/gltf/Write.luau"]],
"model_godot": [[8, "src/Rosetta/model/godot/init.luau"], [99, "src/Rosetta/model/godot/Build.luau"], [641, "src/Rosetta/model/godot/Primitives.luau"], [916, "src/Rosetta/model/godot/Surface.luau"], [1401, "src/Rosetta/model/godot/Write.luau"]],
"model_iqm": [[8, "src/Rosetta/model/iqm/init.luau"], [84, "src/Rosetta/model/iqm/Read.luau"], [439, "src/Rosetta/model/iqm/Write.luau"]],
"model_ldraw": [[8, "src/Rosetta/model/ldraw/init.luau"], [86, "src/Rosetta/model/ldraw/Colors.luau"], [404, "src/Rosetta/model/ldraw/Read.luau"]],
"model_lwo": [[8, "src/Rosetta/model/lwo/init.luau"], [84, "src/Rosetta/model/lwo/Build.luau"], [546, "src/Rosetta/model/lwo/Parse.luau"]],
"model_map": [[8, "src/Rosetta/model/map/init.luau"], [325, "src/Rosetta/model/map/Build.luau"], [569, "src/Rosetta/model/map/Parse.luau"], [954, "src/Rosetta/model/map/Write.luau"]],
"model_mca": [[8, "src/Rosetta/model/mca/init.luau"], [350, "src/Rosetta/model/mca/Chunk.luau"], [483, "src/Rosetta/model/mca/Lz4Block.luau"]],
"model_md2": [[8, "src/Rosetta/model/md2/init.luau"]],
"model_md3": [[8, "src/Rosetta/model/md3/init.luau"]],
"model_md5": [[8, "src/Rosetta/model/md5/init.luau"], [89, "src/Rosetta/model/md5/Read.luau"]],
"model_mdl": [[8, "src/Rosetta/model/mdl/init.luau"], [90, "src/Rosetta/model/mdl/HalfLife.luau"], [394, "src/Rosetta/model/mdl/Quake.luau"]],
"model_ms3d": [[8, "src/Rosetta/model/ms3d/init.luau"], [80, "src/Rosetta/model/ms3d/Read.luau"], [526, "src/Rosetta/model/ms3d/Write.luau"]],
"model_obj": [[8, "src/Rosetta/model/obj/init.luau"], [826, "src/Rosetta/model/obj/Mtl.luau"]],
"model_off": [[8, "src/Rosetta/model/off/init.luau"]],
"model_ply": [[8, "src/Rosetta/model/ply/init.luau"], [1113, "src/Rosetta/model/ply/Binary.luau"]],
"model_pmx": [[8, "src/Rosetta/model/pmx/init.luau"], [77, "src/Rosetta/model/pmx/Build.luau"], [373, "src/Rosetta/model/pmx/Pmd.luau"], [708, "src/Rosetta/model/pmx/Read.luau"]],
"model_proc": [[8, "src/Rosetta/model/proc/init.luau"]],
"model_qb": [[8, "src/Rosetta/model/qb/init.luau"]],
"model_rbxm": [[8, "src/Rosetta/model/rbxm/init.luau"]],
"model_rbxmx": [[8, "src/Rosetta/model/rbxmx/init.luau"]],
"model_robloxmesh": [[8, "src/Rosetta/model/robloxmesh/init.luau"], [667, "src/Rosetta/model/robloxmesh/Parse.luau"], [1124, "src/Rosetta/model/robloxmesh/Write.luau"]],
"model_schematic": [[8, "src/Rosetta/model/schematic/init.luau"], [329, "src/Rosetta/model/schematic/Common.luau"], [449, "src/Rosetta/model/schematic/Litematic.luau"], [660, "src/Rosetta/model/schematic/Mcedit.luau"], [904, "src/Rosetta/model/schematic/Sponge.luau"]],
"model_smd": [[8, "src/Rosetta/model/smd/init.luau"], [75, "src/Rosetta/model/smd/Read.luau"], [344, "src/Rosetta/model/smd/Write.luau"]],
"model_sourcemdl": [[8, "src/Rosetta/model/sourcemdl/init.luau"], [179, "src/Rosetta/model/sourcemdl/Build.luau"], [609, "src/Rosetta/model/sourcemdl/Material.luau"], [770, "src/Rosetta/model/sourcemdl/Mdl.luau"], [1297, "src/Rosetta/model/sourcemdl/Phy.luau"], [1420, "src/Rosetta/model/sourcemdl/Vtx.luau"], [1602, "src/Rosetta/model/sourcemdl/Vvd.luau"]],
"model_stl": [[8, "src/Rosetta/model/stl/init.luau"], [458, "src/Rosetta/model/stl/Decode.luau"]],
"model_t3d": [[8, "src/Rosetta/model/t3d/init.luau"], [102, "src/Rosetta/model/t3d/Build.luau"], [507, "src/Rosetta/model/t3d/Parse.luau"]],
"model_udmf": [[8, "src/Rosetta/model/udmf/init.luau"]],
"model_usda": [[8, "src/Rosetta/model/usda/init.luau"], [217, "src/Rosetta/model/usda/Build.luau"], [1495, "src/Rosetta/model/usda/Parse.luau"], [2293, "src/Rosetta/model/usda/Write.luau"]],
"model_vbsp": [[8, "src/Rosetta/model/vbsp/init.luau"], [454, "src/Rosetta/model/vbsp/Faces.luau"], [678, "src/Rosetta/model/vbsp/Props.luau"]],
"model_vmf": [[8, "src/Rosetta/model/vmf/init.luau"], [333, "src/Rosetta/model/vmf/Build.luau"]],
"model_vox": [[8, "src/Rosetta/model/vox/init.luau"], [894, "src/Rosetta/model/vox/Grid.luau"]],
"model_vrml": [[8, "src/Rosetta/model/vrml/init.luau"]],
"model_x": [[8, "src/Rosetta/model/x/init.luau"], [138, "src/Rosetta/model/x/Build.luau"], [701, "src/Rosetta/model/x/Parse.luau"]],
"model_x3d": [[8, "src/Rosetta/model/x3d/init.luau"]],
"music_669": [[8, "src/Rosetta/music/669/init.luau"]],
"music_ahx": [[8, "src/Rosetta/music/ahx/init.luau"]],
"music_far": [[8, "src/Rosetta/music/far/init.luau"]],
"music_hmp": [[8, "src/Rosetta/music/hmp/init.luau"]],
"music_hvl": [[8, "src/Rosetta/music/hvl/init.luau"]],
"music_it": [[8, "src/Rosetta/music/it/init.luau"], [427, "src/Rosetta/music/it/Itsex.luau"]],
"music_med": [[8, "src/Rosetta/music/med/init.luau"]],
"music_midi": [[8, "src/Rosetta/music/midi/init.luau"], [152, "src/Rosetta/music/midi/Smf.luau"]],
"music_mod": [[8, "src/Rosetta/music/mod/init.luau"]],
"music_mtm": [[8, "src/Rosetta/music/mtm/init.luau"]],
"music_mus": [[8, "src/Rosetta/music/mus/init.luau"]],
"music_okt": [[8, "src/Rosetta/music/okt/init.luau"]],
"music_ptm": [[8, "src/Rosetta/music/ptm/init.luau"]],
"music_s3m": [[8, "src/Rosetta/music/s3m/init.luau"]],
"music_sf2": [[8, "src/Rosetta/music/sf2/init.luau"]],
"music_stm": [[8, "src/Rosetta/music/stm/init.luau"]],
"music_ult": [[8, "src/Rosetta/music/ult/init.luau"]],
"music_umx": [[8, "src/Rosetta/music/umx/init.luau"]],
"music_xm": [[8, "src/Rosetta/music/xm/init.luau"]],
"music_xmi": [[8, "src/Rosetta/music/xmi/init.luau"]],
"ops_AudioOps": [[8, "src/Rosetta/ops/AudioOps.luau"]],
"ops_ImageOps": [[8, "src/Rosetta/ops/ImageOps/init.luau"], [656, "src/Rosetta/ops/ImageOps/Kernels.luau"]],
"ops_LayerOps": [[8, "src/Rosetta/ops/LayerOps.luau"]],
"ops_MeshOps": [[8, "src/Rosetta/ops/MeshOps/init.luau"], [1148, "src/Rosetta/ops/MeshOps/Greedy.luau"]],
"ops_MusicOps": [[8, "src/Rosetta/ops/MusicOps.luau"]],
"playlist_m3u": [[8, "src/Rosetta/playlist/m3u/init.luau"]],
"playlist_pls": [[8, "src/Rosetta/playlist/pls/init.luau"]],
"playlist_xspf": [[8, "src/Rosetta/playlist/xspf/init.luau"]],
"subtitle_ass": [[8, "src/Rosetta/subtitle/ass/init.luau"]],
"subtitle_srt": [[8, "src/Rosetta/subtitle/srt/init.luau"]],
"subtitle_vtt": [[8, "src/Rosetta/subtitle/vtt/init.luau"]],
"vector_gamemaps": [[8, "src/Rosetta/vector/gamemaps/init.luau"], [195, "src/Rosetta/vector/gamemaps/Expand.luau"]],
"vector_ldtk": [[8, "src/Rosetta/vector/ldtk/init.luau"], [100, "src/Rosetta/vector/ldtk/Read.luau"], [436, "src/Rosetta/vector/ldtk/Write.luau"]],
"vector_ogmo": [[8, "src/Rosetta/vector/ogmo/init.luau"], [127, "src/Rosetta/vector/ogmo/Read.luau"], [532, "src/Rosetta/vector/ogmo/Write.luau"]],
"vector_svg": [[8, "src/Rosetta/vector/svg/init.luau"], [94, "src/Rosetta/vector/svg/Parse.luau"], [840, "src/Rosetta/vector/svg/PathData.luau"], [1208, "src/Rosetta/vector/svg/Render.luau"], [1625, "src/Rosetta/vector/svg/Style.luau"], [1997, "src/Rosetta/vector/svg/Write.luau"]],
"vector_tiled": [[8, "src/Rosetta/vector/tiled/init.luau"], [188, "src/Rosetta/vector/tiled/Data.luau"], [339, "src/Rosetta/vector/tiled/Tmj.luau"], [970, "src/Rosetta/vector/tiled/Tmx.luau"]],
"video_avi": [[8, "src/Rosetta/video/avi/init.luau"]],
"video_fli": [[8, "src/Rosetta/video/fli/init.luau"]],
"video_flv": [[8, "src/Rosetta/video/flv/init.luau"], [392, "src/Rosetta/video/flv/Amf.luau"], [550, "src/Rosetta/video/flv/Mux.luau"]],
"video_h264": [[8, "src/Rosetta/video/h264/init.luau"]],
"video_mkv": [[8, "src/Rosetta/video/mkv/init.luau"], [164, "src/Rosetta/video/mkv/Mux.luau"], [443, "src/Rosetta/video/mkv/Parse.luau"]],
"video_mp4": [[8, "src/Rosetta/video/mp4/init.luau"]],
"video_mpegps": [[8, "src/Rosetta/video/mpegps/init.luau"]],
"video_mpegts": [[8, "src/Rosetta/video/mpegts/init.luau"]],
"video_ogv": [[8, "src/Rosetta/video/ogv/init.luau"]],
"video_smk": [[8, "src/Rosetta/video/smk/init.luau"], [317, "src/Rosetta/video/smk/Audio.luau"]],
"video_y4m": [[8, "src/Rosetta/video/y4m/init.luau"]]
}
+19805 -9298
View File
File diff suppressed because it is too large. Load diff
+7592 -494
View File
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+6 -1
View File
@@ -456,8 +456,13 @@ end
do
-- math.min / math.max are branch-free in a trace; an if / elseif clamp spawned side traces and ran ~3.5x slower.
-- NaN stays NaN, as in Luau (maxsd would return lo).
-- Vararg (`...` unused): LuaJIT never starts a root trace at a vararg function but still inlines it into its
-- callers' traces. The plain clamp, called from interpreted code, started root traces that aborted on the return
-- into the caller's loop; enough aborts blacklist it, every trace that reaches a blacklisted function aborts too, and
-- in a long mixed process one codec left every clamp user interpreted (jpeg, webp, tiff 2-10x slower). Not done for
-- the others: a vararg math.sign made Monkey's Audio's sign-heavy filters ~40% slower.
local mmin, mmax = math.min, math.max
math.clamp = math.clamp or function(x, lo, hi)
math.clamp = math.clamp or function(x, lo, hi, ...)
if lo > hi then error("max must be greater than or equal to min", 2) end
if x ~= x then return x end
return mmin(mmax(x, lo), hi)
+9 -3
View File
@@ -24,7 +24,7 @@ come back as a third value `{ [file name] = buffer }` (or in the caller's `opts.
| `F.save(value, dest?, opts?)` | `buffer` / `true` (+ the extra files, see above) |
| `F.saveString(value, opts?)` | the encoded bytes as a string |
| `F.convert(src, format, opts?)` | load + save (`opts` go to both; `opts.out = path` writes a file) |
| `F.detect(src, opts?)` | the format name (content sniffing first, then the extension); a format's optional `variant(r)` can name the flavour (`"webm"` for a WebM file read by mkv) |
| `F.detect(src, opts?)` | the format name (content sniffing first, then the extension); a format's optional `variant(r)` can name the flavour (`"webm"` for a WebM file read by mkv). Sniffing loads no format module (the generated `Sniffs.luau`); `load` / `open` / `save` load only the format they use |
| `F.formats(category?)` | `{ { name, category, extensions, mime, caps } }` without loading any format (also [FORMATS.md](FORMATS.md)) |
| `F.format(name)` | the format module itself (`sniff` / `decode` / `encode` / `open` and extras such as `png.info`) |
@@ -45,11 +45,17 @@ VideoDecoder saved to an image format (`gif`, `apng`, `webp`) becomes an animate
one category. Extras:
- `F.video.open(src, opts?)`: `opts.maxSide` shrinks the frames (longer side at most n pixels), `opts.yield` is a
cooperative yield point for slow codecs (H.264; see the video guide), `opts.audio = false` skips the audio track, `opts.sbr = false` decodes only the AAC-LC core of an HE-AAC track.
cooperative yield point for slow codecs (H.264, VP8, MPEG-1 / MPEG-2 and the conversions; see the video guide), `opts.audio = false` skips the audio track, `opts.sbr = false` decodes only the AAC-LC core of an HE-AAC track,
`opts.skipDisposable` skips the frames nothing depends on (`packet.disposable`), `opts.reuse` decodes each frame
into the previous frame's Image (`v:release(frame)` hands one back).
It also opens animated images (GIF / APNG / WebP) as videos; `F.video.fromImage(img)`,
`F.video.fromFrames(images, delays?)` (an image sequence: `F.save(F.video.fromFrames(list, 1 / 25), "out.avi")`),
`F.video.codecs` (the codec registry `codecs/video/Video`).
- `F.model.loadTextures(scene, opts?)`: decodes embedded / referenced textures into `texture.image`.
- `F.image.load(src, opts?)`: `opts.maxSide` decodes PNG (power-of-two box reduction) and JPEG (DCT scaling) straight
to an image whose sides are at most n pixels, `opts.yield` is a cooperative yield hook (PNG every `opts.yieldRows`
rows; JPEG every MCU row); see the image guide.
- `F.model.loadTextures(scene, opts?)`: decodes embedded / referenced textures into `texture.image`; `opts.maxSide`,
`opts.yield`, `opts.yieldRows` and `opts.maxPixels` reach the image decoders.
- `F.cad.toBodies`, `F.cad.fromBodies`, `F.cad.tessellate`: STEP B-rep calls through the injected kernel
(`F.plugins.brep`).
- `F.data.null`: the JSON / YAML / TOML / msgpack / CBOR null.
+8 -3
View File
@@ -18,7 +18,7 @@ The reference implementation to copy is **PNG**:
```
src/Rosetta/
init.luau Registry.luau (generated) api (layer 6)
init.luau Registry.luau Sniffs.luau (gen.) api (layer 6)
ops/ ops (layer 5.5) editing on the standard types (F.ops.image /
mesh / layers / audio / music; ImageOps, ...)
<category>/<fmt>/ formats (layer 5) image audio video model cad font archive data
@@ -156,6 +156,11 @@ Rules:
inside a bigger buffer; never assume offset 0). It returns the category's standard type from `Types.luau`
(`Types.Image.new(w, h)`, `Types.Scene.new()`, ...), `rgba8` for images unless `opts.native` asks for the source layout.
Fill `meta.source = { format = "<name>", ... }` with the source facts (bit depth, colour type, codec, ...).
- `sniff(r)` scores 0..1 and is copied, with the top-level locals, types and loops it reaches, into the generated
`Sniffs.luau`, so detection requires no format module (requires outside `core/` become proxies loaded at sniff time).
A sniff that reaches its module table (`Png.info(r)`), a forward-declared local or a load-time read of a non-core
module is not copied: its module then loads on every detection that gets that far. `tests/detect.luau` checks the
copies against the modules.
- `encode(value, opts)` returns a buffer. Validate the value first and return `Err.ARG` for anything wrong.
- `open(r, opts)` (audio / video) returns the streaming Decoder / VideoDecoder / Demuxer from `Types.luau`. If a format
has `open` but no `decode`, `F.load` decodes the whole stream through it.
@@ -312,8 +317,8 @@ t:done()
2. Shared code (a codec two formats need, a container) goes to `codecs/<domain>/` or `containers/` instead, with its
own test in `tests/codecs/` / `tests/containers/`.
3. `deps = { ... }` = the requires outside the folder.
4. `python3 -I tools/gen_registry.py` (regenerates `src/Rosetta/Registry.luau` and `docs/FORMATS.md`; never edit those
by hand; after a merge, just rerun it).
4. `python3 -I tools/gen_registry.py` (regenerates `src/Rosetta/Registry.luau`, `Sniffs.luau` and `docs/FORMATS.md`;
never edit those by hand; after a merge, just rerun it).
5. `tools/fixtures/<fmt>.py` + `tests/<category>/<fmt>.luau`.
6. `bash tools/test.sh <fmt>` while working (both runtimes), then `bash tools/test.sh` (everything + lint).
7. The docs line comes from the contract (`docs/FORMATS.md`); put format notes (limits, spec deviations, bench numbers)
+4 -3
View File
@@ -44,9 +44,10 @@ as `F`, and its input files as variables such as `pngBytes` (a buffer) or `srtTe
**Roblox.** Two builds, both committed (rebuilt by `python3 -I tools/build.py roblox`):
- [`build/Rosetta.rbxm`](../../build/Rosetta.rbxm), the native build: a ModuleScript `Rosetta` with child
ModuleScripts, the chunks (Core, one per heavy codec such as Mpeg2, H264, Jpeg, Opus, and the rest by folder). A
chunk is required the first time one of its modules is, so an Actor that only decodes MPEG-1 and JPEG loads only
those chunks and Core. Roblox compiles native code per ModuleScript within a budget per module; each chunk stays
ModuleScripts, the chunks (Core; Detect, the sniffs `F.detect` runs; one per heavy codec such as Mpeg2, H264, Jpeg,
Opus; and one per format folder, codec or container, small neighbours packed together). A chunk is required the
first time one of its modules is, so an Actor that only decodes MPEG-1 and JPEG loads only those chunks and Core,
and `F.detect` compiles Detect alone. Roblox compiles native code per ModuleScript within a budget per module; each chunk stays
well under it (tools/bundle.py checks it). Insert the file, or mount it with Rojo
(`"Rosetta": { "$path": "rosetta/build/Rosetta.rbxm" }`; this repository's `default.project.json` does, so
`rojo build -o Rosetta.rbxm` or `rojo serve` works from here). [`build/Rosetta.rbxmx`](../../build/Rosetta.rbxmx)
+47
View File
@@ -104,11 +104,58 @@ local _ = img and same and err
| `format` | all | decode as this format (name or extension) instead of sniffing |
| `maxPixels` | all | refuse larger images with `Err.LIMIT` (default `2^26`) |
| `native` | JPEG, WebP, TIFF, PNM, QOI, TGA, HDR | keep the source layout: `gray8` / `gray16` / `rgb8` / `rgba16` / `rgbaf32` / `yuv420p` (lossy WebP) instead of `rgba8` |
| `maxSide` | PNG, JPEG | decode straight to a smaller image whose sides are at most this (below) |
| `reduce` | PNG | box reduction by this power of two |
| `yield`, `yieldRows` | PNG, JPEG | cooperative yield hook for long decodes (below) |
| `scale`, `orient` | JPEG | reduced-size decode; apply the EXIF orientation (`meta.orientation` reports it either way) |
| `coalesce`, `frames` | WebP | every frame as a full canvas; `frames = false` decodes only the first |
| `page`, `maxPages` | TIFF | decode one page (1-based); cap on pages in `frames` |
| `maxFrames` | GIF | cap on frames |
### Huge textures: `maxSide` and `yield`
A 4096 x 4096 16-bit PNG normal map is about 100 MB inflated and 64 MB as an `rgba8` Image. With `maxSide`, PNG and
JPEG shrink the picture while decoding, so the full-size image is never built:
- **PNG** reduces by the smallest power of two `k` that brings both sides to `maxSide` or less (`ceil(side / k)`), so
the result can be up to half of `maxSide`: 4096 with `maxSide = 1024` gives 1024, 3000 gives 750. Each output pixel
is the alpha-weighted mean of its k x k block (16-bit samples are cut to 8 bits first, as a full decode does;
smaller blocks at the right and bottom edges; halves round up; a fully transparent block is `0, 0, 0, 0`). Rows
stream through the inflater, so memory is the output plus a few rows. Interlaced (Adam7) PNGs still inflate and
decode at full size before the reduction. APNG frames are reduced one by one, their offsets divided by `k`.
`reduce = k` asks for a factor directly; `meta.source.reduce` reports the one used and `meta.source.width` /
`height` the original size.
- **JPEG** picks the smallest DCT scale (1/2, 1/4, 1/8) that fits, the same as `scale`: pixels are bit-exact with
libjpeg-turbo's `djpeg -scale 1/n`. Below 1/8 it stops at 1/8. The coefficients are still stored at full size
(2 bytes per pixel and component).
For an exact size (e.g. Roblox's 1024 EditableImage cap), follow with `F.ops.image.resize`.
`yield` is called through `pcall` every `yieldRows` rows (PNG; default: about 64 KB of row data) or every MCU row and
block row (JPEG), so a decode inside a coroutine can give the frame back. On Roblox, call `task.wait()` from it in a
`task.spawn`ed thread once a time budget is spent; the same with `coroutine.yield` everywhere:
```luau
local small = assert(F.image.load(pngBytes, { maxSide = 16 })) -- 64 x 48 -> 16 x 12 (k = 4)
assert(small.width == 16 and small.height == 12 and small.meta.source.reduce == 4)
local thumb = assert(F.image.load(jpegBytes, { maxSide = 16 })) -- JPEG at 1/4
assert(thumb.width == 16 and thumb.meta.source.scale == 4)
local budget, start = 0.004, os.clock()
local co = coroutine.wrap(function(): any
return F.image.load(pngBytes, { maxSide = 32, yieldRows = 4, yield = function()
if os.clock() - start > budget then
coroutine.yield() -- Roblox: task.wait()
start = os.clock()
end
end })
end)
local img = co()
while img == nil do -- once per frame
img = co()
end
assert(img.width == 32)
```
To read only the header, use the format module's `info` on a reader (no pixels are decoded):
```luau
+155 -5
View File
@@ -246,7 +246,7 @@ Every function accepts any accessor type and writes `f32` attributes and `u32` i
| Function | Does |
|---|---|
| `merge(scene, opts?)` | bakes every primitive (node transforms applied) into one triangle primitive; `byMaterial = true` returns one per material. Lines and points are skipped; skins / morphs stay in rest pose |
| `merge(scene, opts?)` | bakes every primitive (node transforms applied) into one triangle primitive; `byMaterial = true` returns one per material. Lines and points are skipped; skins / morphs stay in rest pose; `targets = true` keeps the morph targets, merged by name (`mesh.extras.targetNames`, else by index) and zero where a primitive lacks one, named in the result's `extras.targetNames` with default weights in `extras.weights` |
| `bounds(primitive \| scene)` | `min { x, y, z }, max { x, y, z }` (a scene: world space) |
| `transform(prim, matrix)` | in place: positions, normals, tangents (and morph deltas); a mirroring matrix flips the winding |
| `triangulate(prim, opts?)` | a new triangle primitive from strips, fans and polygons (`method = "earclip"` default, or `"fan"`) |
@@ -956,12 +956,13 @@ cameras, lights, armatures, skins, shape keys and actions. Blender is z-up (`met
|---|---|
| Meshes | every storage generation: MFace (before 2.63 and the 2.7x "legacy mesh format"), MPoly / MLoop (2.63 - 3.x), attribute layers (`position`, `.corner_vert`, ... 3.x - 4.x), AttributeStorage (5.x); a primitive per used material slot, `triangulate = false` keeps the faces (`"polygons"`) |
| Mesh data | UV maps (`TEXCOORD_n`, v flipped to glTF's origin), colour attributes (byte and float, point and corner) as linear `COLOR_n`, corner normals from Blender's smooth fans (sharp edges / faces, auto smooth before 4.1) or the stored custom normals, weights (`JOINTS_0` / `WEIGHTS_0`: the 4 largest deform-bone groups, normalized) |
| Materials | the Principled BSDF (base colour, metallic, roughness, alpha, emission and its strength, image textures on Base Color / Emission, Normal through a Normal Map node, Roughness / Metallic through Separate RGB), else the legacy `r, g, b` colour |
| Materials | the Principled BSDF (base colour, metallic, roughness, alpha, emission and its strength, image textures on Base Color / Emission / Roughness / Metallic, Normal through a Normal Map node, Roughness / Metallic through Separate RGB / Color as `metallicRoughnessTexture`), else the legacy `r, g, b` colour; images are found through pass-through nodes (see [Material graphs](#material-graphs)) |
| Images | packed images as encoded bytes (`texture.data`), external ones as `uri` (relative to the `.blend`, bytes through `files` / `resolve`) |
| Cameras, lights | perspective (`yfov` from the lens, sensor fit and render aspect) / orthographic; point, sun, spot (watts to candela / lux as Blender's glTF exporter does); area lights are skipped (`meta.source.skippedLights`) |
| Armatures | a joint node per bone (rest pose times the saved pose), one skin per deformed mesh |
| Armatures | a joint node per bone (rest pose times the saved pose), one skin per deformed mesh; the rig data (bones, collections, colours, custom shapes, constraints) in `extras.blend`, see [Rig data](#rig-data) |
| Shape keys | morph targets (each key minus its relative key, times its vertex group's weights, as Blender evaluates them), named in `mesh.extras.targetNames`; muted keys have weight 0; every key's fields in `mesh.extras.blend.shape_keys` |
| Animation | the active action of each object, armature (pose bones) and shape key set, f-curves evaluated (constant, linear, bezier, easing; extrapolation) and sampled once per frame (`sampleStep`) into channels; time 0 is `meta.source.frameZero` at `meta.source.fps` |
| Not loaded | modifiers (listed per object in `meta.source.modifiers`, never applied), curves, text, metaballs, grease pencil, volumes, NLA strips, drivers, constraints, linked libraries |
| Not loaded | modifiers (listed per object in `meta.source.modifiers`, never applied), curves, text, metaballs, grease pencil, volumes, NLA strips, linked libraries; constraints and drivers are data only (never evaluated) |
```luau
local scene = assert(F.model.load(riggedBlendBytes))
@@ -971,7 +972,156 @@ assert(scene.meta.up == "z" and #scene.skins == 1 and #scene.animations == 1)
local tube = scene.meshes[1].primitives[1]
assert(tube.attributes.JOINTS_0 and tube.attributes.WEIGHTS_0 and #tube.targets == 1)
assert(scene.materials[1].name == "Skin" and scene.materials[1].roughness > 0.69)
print(src.modifiers.Tube[1].type) -- Armature (not applied)
print(src.modifiers.Tube[1].type) -- ARMATURE (not applied)
```
### Material graphs
Each mapped Principled input follows its link through reroutes, Mix / MixRGB (A, then B), Hue-Saturation,
Bright-Contrast, Gamma, Invert, RGB Curves, Color Ramp (its Factor) and node groups (into the group and back out of
its inputs) to the first Image Texture node. In `material.extras.blend`:
| Field | Meaning |
|---|---|
| `via` | per input (`baseColor`, `roughness`, `metallic`, `normal`, `bump`, `alpha`, `emissive`), the node idnames passed on the way to the image (`{ baseColor = { "ShaderNodeMix" } }`); MixRGB nodes of files before 3.4 are named `ShaderNodeMix`, as Blender's conversion names them |
| `linked` | per input, the node an input is linked to when it reaches no image (`{ baseColor = "ShaderNodeTexNoise" }`); that input then takes a neutral value instead of the socket's unused default: base colour 0.8 grey (Blender's default Principled colour), metallic 0, roughness 0.5, no emission, alpha 1 |
| `vertexColor` | the colour attribute a Vertex Color (or Attribute) node feeding Base Color reads; the base colour is then white, to multiply with that `COLOR_n` |
| `roughnessTexture`, `metallicTexture` | a TextureRef plus `channel` (`"R"` for a grey map's colour, `"A"` for its alpha, or the Separate RGB / Color output used); the factor (`roughness`, `metallic`) is then 1, as glTF multiplies them |
| `bumpTexture`, `bumpStrength`, `bumpDistance` | a Bump node on Normal: the height image and the node's Strength and Distance (not a normal map, so not `normalTexture`) |
Tiled (UDIM) images (`Image.source` TILED) keep the `<UDIM>` token in `texture.uri` (`textures/body.<UDIM>.png`;
older files naming the first tile, `body.1001.png`, get the token as Blender's versioning does), and
`texture.extras.blend.tiles` lists `{ number, label?, filename }` per tile (`filename` = the uri with the number). The
texture's `data` is the first tile, through `files` / `resolve`.
### Rig data
Field names are Blender's Python API names. Spaces: the armature node carries the armature object's transform; each
joint node's rest matrix is relative to its parent bone (root bones: to the armature object), so a joint's world rest
matrix is armature world x `Bone.matrix_local`, and the skins' inverse bind matrices map mesh space to that joint space
(glTF's convention). Roll is already part of the rest matrices. Constraints are read, never evaluated: joint nodes
hold the saved pose.
| Where | Fields |
|---|---|
| joint node `extras.blend` (Bone) | `bone = true`, `length`, `deform`, `use_connect`, `show_wire`, `hide`, `head_local` / `tail_local` (armature space), `roll` (radians, armature space), `collections` (names, in collection order), `color`, `inherit_scale` (`"FULL"`, `"FIX_SHEAR"`, `"ALIGNED"`, `"AVERAGE"`, `"NONE"`, `"NONE_LEGACY"`), `use_inherit_rotation`, `use_local_location`, `use_relative_parent`; b-bones: `bbone_segments`, `bbone_x`, `bbone_z`, `bbone_easein` / `bbone_easeout`, `bbone_rollin` / `bbone_rollout`, `bbone_curveinx` / `bbone_curveinz` / `bbone_curveoutx` / `bbone_curveoutz`, `bbone_scalein` / `bbone_scaleout` (3 numbers), `bbone_handle_type_start` / `_end` (`"AUTO"`, `"ABSOLUTE"`, `"RELATIVE"`, `"TANGENT"`), `bbone_custom_handle_start` / `_end` (bone names), `use_endroll_as_inroll`, `bbone_mapping_mode` |
| joint node `extras.blend` (pose bone) | `rotation_mode` (`"QUATERNION"`, `"XYZ"` .. `"ZYX"`, `"AXIS_ANGLE"`), `lock_location` / `lock_rotation` / `lock_scale` (3 booleans), `lock_rotation_w`, `lock_rotations_4d`, `custom_shape` (node index, or the object's name when it is not in the scene), `custom_shape_transform` (bone name), `custom_shape_translation` / `custom_shape_rotation_euler` / `custom_shape_scale_xyz`, `use_custom_shape_bone_size`, `custom_shape_wire_width` (4.2+), `ik_stretch`, `lock_ik_x/y/z`, `use_ik_limit_x/y/z`, `ik_min_x/y/z`, `ik_max_x/y/z`, `ik_stiffness_x/y/z`, `pose_color`, `constraints`; the stored basis `location`, `rotation_quaternion` (w, x, y, z), `rotation_euler`, `rotation_axis_angle` (angle, x, y, z), `scale` |
| armature node `extras.blend` | `bone_collections`: `{ name, visible, parent? }` (parent by name; files before 4.0 get Blender 4.0's conversion: a `Layer N` collection per used layer, then one hidden collection per bone group) |
| any object node `extras.blend` | `parent_type` (`"OBJECT"`, `"ARMATURE"`, `"LATTICE"`, `"BONE"`, `"VERTEX"`, `"VERTEX_3"`), `parent_bone`, `parent_vertices` (0-based; `parent_vertices_unresolved = true` when the parent is no mesh: then parented to the object), `matrix_parent_inverse` (column-major), `widget = true` on custom shape objects, `modifiers` (below), `constraints` (object constraints), `hide_viewport`, `hide_render` (when set), `props` (the object's custom properties), `drivers` (the object's), `data_drivers` (its armature's or mesh's) |
| joint node `extras.blend` (properties) | `props`: the pose bone's custom properties (`pose.bones["x"]["name"]`), `bone_props`: the bone's (`bones["x"]["name"]`), kept apart as Blender keeps them |
| mesh `extras.blend` | `shape_key_drivers`: the drivers of the mesh's shape keys (`key_blocks["x"].value`, ...) |
| `scene.meta.blend` | `widgets`: every custom shape object `{ name, type, node?, mesh? }` (objects outside the scene's collections get a mesh without a node; edge-only meshes as `"lines"` primitives); `bone_color_sets`: the default theme's `THEME01` .. `THEME20`; `actions`: every action in the file (below) |
A colour is `{ palette, normal, select, active }`: `palette` is `"THEME01"` .. `"THEME20"` or `"CUSTOM"` (nil: the
default colour), the three colours are 0..1 sRGB (the custom colours, or the theme set's). Before 4.0 the bone group
colour is the bone's `color`, as Blender's conversion does.
A constraint (in stack order) is `{ type, name, influence, mute, target, subtarget, owner_space, target_space }` with
`target` a node index or an object name; `space_object` / `space_subtarget` for `"CUSTOM"` spaces, `head_tail` /
`use_bbone_shape` where Blender has them, `targets` (`{ target, subtarget, weight }`) for multi-target constraints.
Type fields:
| Type | Fields |
|---|---|
| `IK` | `pole_target`, `pole_subtarget`, `pole_angle`, `chain_count`, `iterations`, `use_tail`, `use_stretch`, `use_location`, `use_rotation`, `weight`, `orient_weight`, `lock_location_x/y/z`, `lock_rotation_x/y/z`, `ik_type`, `distance` |
| `COPY_ROTATION` | `use_x/y/z`, `invert_x/y/z`, `euler_order`, `mix_mode` |
| `COPY_LOCATION` | `use_x/y/z`, `invert_x/y/z`, `use_offset` |
| `COPY_SCALE` | `use_x/y/z`, `use_offset`, `use_add`, `use_make_uniform`, `power` |
| `COPY_TRANSFORMS` | `mix_mode`, `remove_target_shear` |
| `DAMPED_TRACK` | `track_axis` |
| `LIMIT_ROTATION` | `use_limit_x/y/z`, `min_x/y/z`, `max_x/y/z`, `euler_order`, `use_transform_limit` |
| `LIMIT_LOCATION`, `LIMIT_SCALE` | `use_min_x/y/z`, `use_max_x/y/z`, `min_x/y/z`, `max_x/y/z`, `use_transform_limit` |
| `CHILD_OF` | `use_location_x/y/z`, `use_rotation_x/y/z`, `use_scale_x/y/z`, `set_inverse_pending`, `inverse_matrix` (column-major) |
| `ACTION` | `action` (name, see `meta.blend.actions`), `transform_channel` (`"LOCATION_X"` .. `"SCALE_Z"`), `frame_start`, `frame_end`, `min`, `max`, `mix_mode` (`"BEFORE_FULL"`, `"BEFORE"`, `"BEFORE_SPLIT"`, `"AFTER_FULL"`, `"AFTER"`, `"AFTER_SPLIT"`), `use_bone_object_action`, `use_eval_time`, `eval_time` |
| `TRANSFORM` | `map_from`, `map_to` (`"LOCATION"`, `"ROTATION"`, `"SCALE"`), `map_to_x_from` / `_y_` / `_z_` (`"X"`, `"Y"`, `"Z"`), `from_min_x` .. `to_max_z` with `_rot` and `_scale` variants (`from_max_x_rot`, `to_min_y_scale`, ...), `mix_mode`, `mix_mode_rot`, `mix_mode_scale`, `use_motion_extrapolate`, `from_rotation_mode` (`"AUTO"`, euler orders, `"QUATERNION"`, `"SWING_TWIST_X/Y/Z"`), `to_euler_order` |
| `STRETCH_TO` | `rest_length`, `bulge`, `volume` (`"VOLUME_XZX"`, `"VOLUME_X"`, `"VOLUME_Z"`, `"NO_VOLUME"`), `keep_axis` (`"PLANE_X"`, `"PLANE_Z"`, `"SWING_Y"`), `use_bulge_min`, `use_bulge_max`, `bulge_min`, `bulge_max`, `bulge_smooth` |
| `ARMATURE` | `targets`, `use_deform_preserve_volume`, `use_bone_envelopes`, `use_current_location` |
| `FLOOR` | `floor_location`, `offset`, `use_rotation` |
| `LIMIT_DISTANCE` | `distance`, `limit_mode` |
| `TRACK_TO` | `track_axis`, `up_axis`, `use_target_z` |
| `LOCKED_TRACK` | `track_axis`, `lock_axis` |
Shape keys: `mesh.extras.blend.shape_keys` lists every key in file order (the basis too) as `{ name, value, slider_min,
slider_max, mute, relative_key, vertex_group? }`, and `reference_key` names the basis. Actions on shape key values
become `weights` channels (clamped to the slider range).
Drivers and custom properties are data, never evaluated. Custom properties are `{ [name] = number | boolean | string |
array | table }` (groups nest; ID references give the ID's name; the pre-3.0 `_RNA_UI` metadata is left out). A driver
is an f-curve as in [actions](#rig-data) (`data_path`, `bone?` / `path` for `pose.bones["x"]...`, `array_index`,
`extrapolation`, `keys`, `modifiers`) plus `driver = { type, expression, use_self, variables }`:
- `type`: `"AVERAGE"`, `"SUM"`, `"SCRIPTED"`, `"MIN"`, `"MAX"`; `expression` for `"SCRIPTED"`.
- a variable: `{ name, type, targets }`, `type` one of `"SINGLE_PROP"`, `"TRANSFORMS"`, `"ROTATION_DIFF"`,
`"LOC_DIFF"`, `"CONTEXT_PROP"`; one target (two for the differences).
- a target: `{ id, id_type, data_path, bone_target, transform_type, transform_space, rotation_mode, context_property,
use_fallback_value?, fallback_value? }`; `id` is a node index for objects in the scene, else the ID's name;
`transform_type` `"LOC_X"` .. `"SCALE_AVG"`, `"ROT_W"`; `transform_space` `"WORLD_SPACE"`, `"TRANSFORM_SPACE"`,
`"LOCAL_SPACE"`.
- a modifier: `{ type, name, mute, influence, use_influence, use_restricted_range, frame_start, frame_end, blend_in,
blend_out }` plus its own fields: `GENERATOR` `mode`, `use_additive`, `poly_order`, `coefficients`; `FNGENERATOR`
`function_type`, `amplitude`, `phase_multiplier`, `phase_offset`, `value_offset`, `use_additive`; `ENVELOPE`
`reference_value`, `default_min`, `default_max`, `control_points`; `CYCLES` `mode_before` / `mode_after`,
`cycles_before` / `cycles_after`; `NOISE` `blend_type`, `scale`, `strength`, `phase`, `offset`, `depth`; `LIMITS`
`use_min_x` .. `use_max_y`, `min_x` .. `max_y`; `STEPPED` `frame_step`, `frame_offset`, `use_frame_start` /
`use_frame_end` with `frame_start` / `frame_end` its own limits.
The driver's value goes through its f-curve: the keys, then the modifiers; with neither, the value passes through 1:1
(Rain's drivers have two linear keys (0, 0) and (1, 1), or a generator). Files before 5.0 get Blender 5.0's move of
`bones["x"].hide` drivers from the armature data to the object (`pose.bones["x"].hide`).
Parenting follows Blender's object matrix. A bone parent makes the object a child of the joint node: the joint is
the bone's head frame (rest x the stored or animated pose), and the object's local matrix is the bone-tail offset
(0, length, 0) x `matrix_parent_inverse` x its own basis, so it follows the joint's animation. A triangle parent
(`VERTEX_3`) puts the frame Blender builds from the three vertices (their centre, `tri_to_quat`) under the parent
node; a single vertex parent (`VERTEX`) takes only the vertex's position, not the parent's rotation or scale, so the
child's local matrix is exact for the parent's saved transform (an animated parent rotation is not compensated). Vertex
positions are the parent mesh's own, before modifiers and shape keys. Armature and lattice parents are plain object
parents (the deformation is the skin or the lattice modifier). A skinned mesh's node transform does not move its
vertices (glTF skinning), so a bone-parented node that is also skinned follows the skin only.
`modifiers` lists the stack in order as `{ type, name, show_viewport, show_render }` with Blender's type names
(`"ARMATURE"`, `"SUBSURF"`, `"MIRROR"`, ...); `ARMATURE` adds `object` (node index or name), `use_vertex_groups`,
`use_bone_envelopes`, `use_deform_preserve_volume`, `use_multi_modifier`, `vertex_group`, `invert_vertex_group`. The
same lists are in `meta.source.modifiers` by object name. A mesh with an Armature modifier (or an armature parent of
type `ARMATURE`) becomes a skin from its vertex groups, as before; the other settings are data.
Joint nodes model the plain parent chain: Blender's inheritance settings (`use_inherit_rotation`, `inherit_scale`,
`use_local_location`) and b-bone deformation are data for an evaluator, not applied to the joints or skins.
Actions: `scene.meta.blend.actions[name] = { frame_range = { start, end }, curves }` holds every action in the file
(`rawActions = false` skips them), assigned or not, so action constraints can evaluate them at any frame; the
sampled `scene.animations` are unchanged. A curve is `{ data_path, bone?, path, array_index, extrapolation, keys }`
(`bone` and `path` split `pose.bones["name"].location`; other paths keep `path = data_path`; `extrapolation` is
`"CONSTANT"` or `"LINEAR"`), a key `{ co = { frame, value }, interpolation, easing, handle_left, handle_right,
handle_left_type, handle_right_type, back, amplitude, period }` with Blender's interpolation and easing names. Layered
actions (4.4+) give the first layer's first strip's first channel bag; files before 2.5 have IPOs instead (their
object and shape key IPOs are still sampled into `scene.animations`).
```luau
local rig = assert(F.model.load(riggedBlendBytes))
local joint = {}
for _, node in rig.nodes do
local e = node.extras and node.extras.blend
if e and e.bone then
joint[node.name] = e
end
end
local upper, ctrl = joint.upper, joint.ctrl
assert(upper.deform and not ctrl.deform)
assert(upper.head_local[3] == 1 and upper.tail_local[3] == 2 and upper.roll == 0)
assert(ctrl.collections[1] == "Controls" and ctrl.custom_shape == "WGT_ring") -- a widget outside the scene
local track = upper.constraints[1]
assert(track.type == "DAMPED_TRACK" and rig.nodes[track.target].name == "Rig" and track.subtarget == "ctrl")
print(track.track_axis, track.influence) -- TRACK_Y 1
local widget = rig.meta.blend.widgets[1]
assert(widget.name == "WGT_ring" and widget.node == nil)
assert(rig.meshes[widget.mesh].primitives[1].mode == "lines")
local tube = rig.meshes[1]
assert(tube.extras.targetNames[1] == "Bulge" and tube.extras.blend.shape_keys[2].slider_max == 2)
for name, action in rig.meta.blend.actions do
local curve = action.curves[1]
print(name, action.frame_range[1], action.frame_range[2], curve.bone, curve.path, curve.keys[1].interpolation)
end
```
Anything else in the file is reachable through the container: `F.format("blend").open` parses the blocks and the
+47 -7
View File
@@ -42,6 +42,7 @@ Times: `VideoFrame.pts` / `duration`, `seek` and every `duration` field are **se
| `v:toRGBA(frameOrImage)` | an rgba8 Image (the frame's own image when it already is rgba8) |
| `v:seek(seconds)` | the next frame is the first at or after that time (decoded from the keyframe before it) |
| `v:reset()` | back to the start |
| `v:release(frame)` | hands a frame's Image back: a later frame may be decoded into it (see [Skipping and reusing frames](#skipping-and-reusing-frames)) |
### VideoFrame
@@ -98,7 +99,8 @@ assert(r and g and b)
| `codecDelay`, `playDuration` | audio: seconds of encoder priming to drop, and seconds to play after it (an MP4 edit list; Matroska `CodecDelay`) |
| `duration`, `language`, `name`, `default` | when the container has them |
A Packet is `{ track, pts, dts?, duration?, keyframe, data }`: `data` is a buffer of the compressed bytes.
A Packet is `{ track, pts, dts?, duration?, keyframe, data, disposable? }`: `data` is a buffer of the compressed
bytes; `disposable = true` marks an H.264 or VP8 frame that no later frame predicts from.
```luau
local v = assert(F.video.open(mp4Bytes))
@@ -247,7 +249,9 @@ assert(C.entry("h264").name == "H.264 / AVC")
```
`C.register(entry)` adds or replaces a codec at run time. `new(track, opts)` returns a decoder instance with
`decode(self, packet) -> err?`, `receive(self) -> image?, pts?, keyframe?`, `flush(self)` and `reset(self)`.
`decode(self, packet) -> err?`, `receive(self) -> image?, pts?, keyframe?`, `flush(self)` and `reset(self)`, and
optionally `release(self, image) -> boolean` (an Image from `receive` to reuse). With `opts.skipDisposable`, `receive`
returns `false` (and the pts) for a picture it skipped.
`C.simpleDecoder(decodeOne)` builds one for codecs with one picture per packet and no reordering:
```luau
@@ -386,11 +390,14 @@ editable:WritePixelsBuffer(Vector2.zero, editable.Size, v:toRGBA(frame).pixels)
### Slow codecs: a yield hook and smaller frames
One H.264 picture can take longer than a game frame. `F.video.open(src, { yield = fn })` hands the codec a cooperative
yield point: H.264 calls `fn` (through `pcall`) every 16 macroblocks and every macroblock row of the loop filter, so
decoding inside a coroutine whose `fn` calls `coroutine.yield()` once a time budget is spent spreads a picture over
several frames (a game's worker Actor, or the main thread). While a decode is suspended, run no other H.264 decode in
the same Luau VM. `maxSide = n` shrinks the yuv420p frames (bilinear, aspect kept) so the longer side is at most `n`
pixels, before any rgba conversion; `v.width` / `v.height` stay the source size.
yield point, called through `pcall`: H.264 every 16 macroblocks, every macroblock row of the loop filter and between
the allocations of a new picture; VP8 three times per macroblock row and once per loop filter row; MPEG-1 / MPEG-2
per slice; the `maxSide` scaling and the `rgba` conversion every 16 rows. Decoding inside a coroutine whose `fn`
calls `coroutine.yield()` once a time budget is spent spreads a picture over several frames (a game's worker Actor,
or the main thread); at 1080p no stretch between calls is longer than about 3 ms (`luau -O2`). While a decode is
suspended, run no other H.264 decode in the same Luau VM (VP8 decodes may interleave). `maxSide = n` shrinks the
yuv420p frames (bilinear, aspect kept) so the longer side is at most `n` pixels, before any rgba conversion;
`v.width` / `v.height` stay the source size.
```luau
local deadline = 0
@@ -412,6 +419,39 @@ end
assert(frames > 0)
```
### Skipping and reusing frames
A player that falls behind can skip the frames nothing else depends on: H.264 pictures with `nal_ref_idc` 0 (most B
pictures) and VP8 frames that refresh no reference (temporal layers). `skipDisposable = true` decodes only their
headers; the skipped frames keep their place, so the next frame's `pts` and `index` are what a full decode gives, and
every frame that comes out is bit-exact. `packet.disposable` (set by the MP4, Matroska / WebM, MPEG-TS, AVI, FLV and
H.264 demuxers) and `F.video.codecs.isDisposable(track, packet)` tell them apart without decoding; prefer
`skipDisposable` to leaving the packets out, as a VP8 frame header can still carry probability updates.
Every frame is a new Image, and a 720p decode makes megabytes of garbage per frame. `reuse = true` lets `nextFrame`
write into the Image of the frame it returned before (be done with the previous frame by then: draw it, or copy it);
`v:release(frame)` hands one back explicitly. Reference pictures are never handed out: Images are copies of them.
```luau
local v = assert(F.video.open(mp4Bytes, { audio = false, rgba = true, reuse = true, skipDisposable = true }))
local d = v.demuxer
local disposable = 0
for p in d:packets(v.track.id) do
if p.disposable then disposable += 1 end
assert(F.video.codecs.isDisposable(v.track, p) == (p.disposable == true))
end
v:reset() -- back to the first packet
local frames, last = 0, nil
while true do
local f = v:nextFrame() -- reuses the previous frame's rgba8 Image
if not f then break end
frames += 1
assert(f.image.format == "rgba8" and (last == nil or f.index > last))
last = f.index
end
assert(frames + disposable == v.frames)
```
## Formats
| Format | Read | Write | Video codecs (decode) |
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+5 -1
View File
@@ -184,6 +184,7 @@ export type Packet = {
duration: number?, -- ticks
keyframe: boolean,
data: buffer, -- the packet's bytes (its own buffer)
disposable: boolean?, -- true: no later frame predicts from this one (H.264 nal_ref_idc 0, VP8 no reference refresh)
}
export type Demuxer = {
kind: "demuxer",
@@ -227,9 +228,12 @@ export type VideoDecoder = {
-- a codec's decoder instance (codecs/video/Video registry entries create them): packets in, pictures out
export type VideoCodecDecoder = {
decode: (self: any, packet: Packet) -> Err?, -- feed one packet (decode order)
receive: (self: any) -> (Image?, number?, boolean?), -- the next picture, the pts (ticks) it carries, keyframe | nil
-- the next picture, the pts (ticks) it carries, keyframe | nil; false for a picture skipped (opts.skipDisposable)
receive: (self: any) -> (Image? | false, number?, boolean?),
flush: (self: any) -> (), -- end of stream: pictures held for reordering become available to receive()
reset: (self: any) -> (), -- after a seek: drop references / held pictures
-- an Image from receive() handed back for reuse (the caller is done with it); false if it was not this decoder's
release: ((self: any, image: Image) -> boolean)?,
}
-- Indices are 1-based everywhere (node, mesh, material, texture, ...). Accessor data is tightly packed (no stride, no
+10 -6
View File
@@ -12,7 +12,11 @@ local Pcm = require("@rosetta/codecs/audio/Pcm")
local Stream = require("@rosetta/codecs/audio/Stream")
local IsoBmff = require("@rosetta/containers/IsoBmff")
local Aac = require("@rosetta/codecs/audio/Aac")
local Alac = require("@rosetta/codecs/audio/Alac")
-- codecs/audio/Alac, required for an ALAC track
local function alac(): any
return require("@rosetta/codecs/audio/Alac")
end
-- ------------------------------------------------------------------------------------------------ contract
local M4a = {
@@ -72,11 +76,11 @@ local function packetDecoder(t: IsoBmff.Track, buf: buffer, sbr: boolean?): (Pac
return nil, Err.new(Err.CORRUPT, "track " .. t.id .. " (" .. t.codec .. ") has no codec configuration")
end
if t.codec == "alac" then
local cfg, err = Alac.config(t.config :: buffer)
local cfg, err = alac().config(t.config :: buffer)
if not cfg then
return nil, err
end
local dec = Alac.decoder(cfg)
local dec = alac().decoder(cfg)
local pcm = table.create(cfg.frameLength * cfg.channels, 0)
local scale = 1 / 2 ^ (cfg.bitDepth - 1)
local pd: PacketDecoder = {
@@ -243,11 +247,11 @@ function M4a.encode(value: any, opts: EncodeOptions?): (buffer?, Err.Err?)
return nil, Err.new(Err.ARG, "expected an Audio or a Decoder")
end
local sr, ch = value.sampleRate, value.channels
local enc, eerr = Alac.encoder({ sampleRate = sr, channels = ch, bitDepth = o.bitDepth or 16, frameLength = o.frameLength })
local enc, eerr = alac().encoder({ sampleRate = sr, channels = ch, bitDepth = o.bitDepth or 16, frameLength = o.frameLength })
if not enc then
return nil, eerr
end
local e = enc :: Alac.Encoder
local e: any = enc
local depth = e.config.bitDepth
local fl = e.config.frameLength
local peak = 2 ^ (depth - 1)
@@ -326,7 +330,7 @@ function M4a.encode(value: any, opts: EncodeOptions?): (buffer?, Err.Err?)
sampleRate = sr,
channels = ch,
bitsPerSample = depth,
config = Alac.cookie(e.config),
config = alac().cookie(e.config),
},
},
tags = tags,
+6 -2
View File
@@ -5,7 +5,7 @@
-- Written from the standard; no third-party code. PNS uses FFmpeg's LCG so the noise matches it.
local Mdct = require("@rosetta/codecs/audio/Mdct")
local Tables = require("@rosetta/codecs/audio/Aac/Tables")
local Sbr = require("@rosetta/codecs/audio/Aac/Sbr")
local Sbr: any = nil -- codecs/audio/Aac/Sbr (and Ps), required with the first SBR element
local readu32, byteswap, lshift, rshift, band = buffer.readu32, bit32.byteswap, bit32.lshift, bit32.rshift, bit32.band
local floor, sqrt, abs = math.floor, math.sqrt, math.abs
@@ -743,6 +743,9 @@ end
local function sbrElement(st: State, i: number, nch: number): any
local e = st.sbrElems[i]
if not e or e.nch ~= nch then
if Sbr == nil then
Sbr = require("@rosetta/codecs/audio/Aac/Sbr")
end
e = Sbr.element(nch, st.sbrRate, st.psOut and nch == 1)
st.sbrElems[i] = e
end
@@ -906,7 +909,8 @@ function Decode.frame(st: State, buf: buffer, off: number, len: number): (number
if kind == 13 or kind == 14 then -- EXT_SBR_DATA / EXT_SBR_DATA_CRC
st.sbr = true
if st.sbrOn and nElem > 0 and lastElement ~= 3 then
Sbr.extension(sbrElement(st, nElem, if lastElement == 1 then 2 else 1), B, start + 4, count * 8 - 4, kind == 14)
local e = sbrElement(st, nElem, if lastElement == 1 then 2 else 1)
Sbr.extension(e, B, start + 4, count * 8 - 4, kind == 14)
end
end
st.extensions += 1
+1 -2
View File
@@ -7,7 +7,6 @@
local Err = require("@rosetta/core/Err")
local Bits = require("@rosetta/core/Bits")
local Decode = require("@rosetta/codecs/audio/Aac/Decode")
local Sbr = require("@rosetta/codecs/audio/Aac/Sbr")
local Aac = {}
@@ -277,7 +276,7 @@ local function reset(self: Decoder)
c.prevShape = 0
end
for _, e in self.state.sbrElems do
Sbr.restart(e)
require("@rosetta/codecs/audio/Aac/Sbr").restart(e)
end
end
+11 -3
View File
@@ -10,8 +10,11 @@ local bcreate, bcopy, blen, bfill = buffer.create, buffer.copy, buffer.len, buff
local Decode = {}
local NO_DICTIONARY = "static dictionary unavailable"
Decode.NO_DICTIONARY = NO_DICTIONARY
export type Static = {
dictionary: buffer, -- 122784 bytes
dictionary: () -> buffer?, -- 122784 bytes, on first use (nil: Decode.NO_DICTIONARY)
context: buffer, -- 2048 bytes: 4 modes x (256 for p1, 256 for p2)
prefixSuffix: buffer, -- length-prefixed strings
prefixSuffixMap: { number },
@@ -516,7 +519,7 @@ function Decode.decompress(src: buffer, off: number, len: number, maxBytes: numb
end
local maxBackward = 2 ^ wbits - 16
local dict = S.dictionary
local dict: buffer? = nil
local LUT = S.context
local PS = S.prefixSuffix
local PSMAP = S.prefixSuffixMap
@@ -885,7 +888,12 @@ function Decode.decompress(src: buffer, off: number, len: number, maxBytes: numb
end
local ws = w
if wl > 0 then
bcopy(WORD, w, dict, wo, wl)
local d = dict or S.dictionary()
if d == nil then
return nil, NO_DICTIONARY
end
dict = d
bcopy(WORD, w, d, wo, wl)
w += wl
end
if ttype == 10 then
@@ -0,0 +1,815 @@
--!strict
-- codecs/compress/Brotli/Dictionary: GENERATED by tools/brotli_static.py from the brotli C sources (MIT, Google; see
-- licenses/brotli-LICENSE.txt) - do not edit. The RFC 7932 static dictionary (122784 bytes, deflated, base64).
return {
dictionary = {
"eNo8velyHMe1LvrbiOA7lNpni8Q20QBJTSYGB0dJ3hq4Bcq+2z4ORXZVdncB1VWtyiqATUkR4ICB4ABSnAXOMyUCIDhiIIGI",
"wxeg/pH/FOeiuhsR9yHu962EbBkS0J2VlcMavrVyrZWJX9FeNBgGflEHupgUlNvvRp72VKJMORqMwqBm/ES7fl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w9dMuPO0cbmMFFOE",
"29oUrNZXqX3Ghr8TuigkT48Q+TXwvXvGjv0foSWBhw==",
},
}
+2 -812
View File
@@ -1,820 +1,10 @@
--!strict
-- codecs/compress/Brotli/Static: GENERATED by tools/brotli_static.py from the brotli C sources (MIT, Google; see
-- licenses/brotli-LICENSE.txt) - do not edit. The RFC 7932 static dictionary (122784 bytes, deflated, base64),
-- the context lookup table (Appendix B, 4 modes x 512) and the 121 word transforms (Appendix B).
-- licenses/brotli-LICENSE.txt) - do not edit. The RFC 7932 static dictionary's size and CRC-32 (the dictionary is in
-- Brotli/Dictionary), the context lookup table (Appendix B, 4 modes x 512) and the 121 word transforms (Appendix B).
return {
dictionarySize = 122784,
dictionaryCrc = 1362545412,
dictionary = {
"eNo8velyHMe1LvrbiOA7lNpni8Q20QBJTSYGB0dJ3hq4Bcq+2z4ORXZVdncB1VWtyiqATUkR4ICB4ABSnAXOMyUCIDhiIIGI",
"wxeg/pH/FOeiuhsR9yHu962EbBkS0J2VlcMavrVyrZWJX9FeNBgGflEHupgUlNvvRp72VKJMORqMwqBm/ES7flKLqjrsS00S",
"+P26GGs9GMX9id6X1LSKowEdFyKvFuCXYhRXClHUXw1ULfAHdOCHuqyDajmqaON7uhLFfNYLorCUlHVlwNeDRT/0qqqE99ZM",
"MQ2CslZeouOKVm5ZxVoV46iSxKmuqLhfFQKdVqOw7JfKGKcOVOiFetDoAR2GGI+rjC5ESbkamSQ12qsoT5fRpqzx3rJKQlXR",
"n/lhfyGISsbfrwtoj/GhXT/690M8E69vdf5UjgJPh54Z9JPyF+gfw/AG0YfxS2GCtmU1oEvoy2gduioIqiopD2r8N0hNRYdp",
"0Q8qVRUnfZEfJmXfBL5JSlGEsWpvEPMc1AbfFUwFc1eBiTCcKPbdMt5vAmWSRCtMt1Ir4pl+PywN+kGg8fmgir0Cni36sd6D",
"NesPo0GFDvPVsFTB+ieYbBApr4S1NzoohlGiK6lbLmquRViLI7ffd6MwCl0dYJ/K2BPP194n2J84DX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jJgXr8hRdS8bR6",
"HxTkwyepJZf/5Fuk19VWshnGe8nbtcZTzor2xpvd7GDPOOmdEcW1OEDeRsLy3EFMEPjIPzn8jsc7eUeqMbH28i6xRypMU+IK",
"5lO4wiXihwSED9We+tYzO3rs4JuHJ7PiQr80HRAZQPfFMZVJ+B6iMQw70/lVssTGEC7kuu3T5mDa/Eu2c1+p711QubbT7/Ah",
"lYSHbGbjmK6AVEsLhor6b5tJVqa6lYMIf03aj4X6iTwes+ZKdjs7UkY8PA/e2IfFE3AMx2tNHHXEr1ORLrO7VauCduqr6dUi",
"jlrhQ6k1RFPuJTABOEvSljKOjmAj18vJzUqyWedbx9OvyQpR4WjR4wSHySvlvfuyaX/1twnH59yz+pzuKWbpFSzx8pj2HE+2",
"YX94KEuvC89pr2Iz7cTkgAzuJOAQ8fvT3Kim3RPIJye/wLlUjls6mss88wM3wi6Oz+nCwnOas5qy0/Bez2m2GqIzLykLxdaL",
"MJhSO8+7fod8HDCK0tahA/oSbeUOIhrtdQRrNhB31XrrlwXtdUXBygY+xu1jxQpD3v1NBVyyiLwdRfCzw9dMuPO0cbmMFFOE",
"29oUrNZXqX3Ghr8TuigkT48Q+TXwvXvGjv0foSWBhw==",
},
context = {
"AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+PwABAgMEBQYH",
"CAkKCwwNDg8QERITFBUWFxgZGhscHR4fICEiIyQlJicoKSorLC0uLzAxMjM0NTY3ODk6Ozw9Pj8AAQIDBAUGBwgJCgsMDQ4P",
+29 -17
View File
@@ -6,7 +6,6 @@ local Err = require("@rosetta/core/Err")
local Bytes = require("@rosetta/core/Bytes")
local Crc32 = require("@rosetta/core/Crc32")
local Base64 = require("@rosetta/core/Base64")
local Deflate = require("@rosetta/codecs/compress/Deflate")
local Decode = require("@rosetta/codecs/compress/Brotli/Decode")
local StaticData = require("@rosetta/codecs/compress/Brotli/Static")
@@ -23,32 +22,46 @@ local function unbase64(s: string): buffer
end
local static: Decode.Static? = nil
local dictionary: buffer? = nil
local dictionaryErr: Err.Err? = nil
local function tables(): (Decode.Static?, Err.Err?)
if static then
return static, nil
-- inflated on the first dictionary reference (RFC 7932 section 8)
local function loadDictionary(): buffer?
if dictionary or dictionaryErr then
return dictionary
end
local z = unbase64(table.concat(StaticData.dictionary))
local Deflate = require("@rosetta/codecs/compress/Deflate")
local z = unbase64(table.concat(require("@rosetta/codecs/compress/Brotli/Dictionary").dictionary))
local dict, err = Deflate.zlib(z, 0, nil, StaticData.dictionarySize)
if not dict then
return nil, err
dictionaryErr = err
return nil
end
if Crc32.of(dict) ~= StaticData.dictionaryCrc then
return nil, Err.new(Err.CHECKSUM, "brotli: static dictionary damaged")
dictionaryErr = Err.new(Err.CHECKSUM, "brotli: static dictionary damaged")
return nil
end
static = {
dictionary = dict,
dictionary = dict
return dict
end
local function tables(): Decode.Static
if static then
return static
end
local s: Decode.Static = {
dictionary = loadDictionary,
context = unbase64(table.concat(StaticData.context)),
prefixSuffix = unbase64(StaticData.prefixSuffix),
prefixSuffixMap = StaticData.prefixSuffixMap,
transforms = StaticData.transforms,
}
return static, nil
static = s
return s
end
function Brotli.dictionary(): buffer?
local s = tables()
return if s then s.dictionary else nil
return loadDictionary()
end
function Brotli.decompress(buf: buffer | string, offset: number?, length: number?, opts: Options?): (buffer?, any)
@@ -64,12 +77,11 @@ function Brotli.decompress(buf: buffer | string, offset: number?, length: number
if l == 0 then
return nil, Err.new(Err.TRUNCATED, "brotli: empty input", o)
end
local S, serr = tables()
if not S then
return nil, serr
end
local out, size, consumed = Decode.decompress(b, o, l, maxBytes, S, large)
local out, size, consumed = Decode.decompress(b, o, l, maxBytes, tables(), large)
if not out then
if size == Decode.NO_DICTIONARY and dictionaryErr then
return nil, dictionaryErr
end
local e = Err.from(size, o)
e.message = "brotli: " .. e.message
return nil, e
@@ -54,7 +54,7 @@ do
FDISTS = Huffman.buildLsbMap(d, 0, 30, FDIST, DISTBITS, DMAP)
end
-- scratch tables for dynamic blocks, shared by every call (raw never yields)
-- scratch tables for dynamic blocks, shared by every call that has no sink (only a sink may yield)
local SLIT, SDIST, SCL, SLENS = bcreate(LITCAP * 4), bcreate(DISTCAP * 4), bcreate(CLCAP * 4), bcreate(320)
local Inflate = {}
@@ -66,7 +66,26 @@ local function grow(out: buffer, op: number, need: number): (buffer, number)
return nb, cap
end
function Inflate.raw(src: buffer, start: number, endpos: number, cap: number, exact: boolean, prefix: boolean?, dict: buffer?): (buffer?, any, number?)
-- streaming: sink(out, from, to) takes the new bytes [from, to) and returns how many bytes before to it has not
-- consumed yet (< 0 aborts); out keeps those and 32 KB of history. feed(pos) slides the input window: it keeps 8 bytes
-- before pos (the bit buffer's) and returns the new pos and endpos.
local function drain(out: buffer, op: number, seen: number, need: number, sink: (buffer, number, number) -> number): (buffer, number)
local pending = sink(out, seen, op)
if pending < 0 then
return out, -1
end
local from = op - math.max(math.min(pending, op), 32768)
if from > 0 then
bcopy(out, 0, out, from, op - from)
op -= from
end
if op + need > blen(out) then
out = grow(out, op, op + need)
end
return out, op
end
function Inflate.raw(src: buffer, start: number, endpos: number, cap: number, exact: boolean, prefix: boolean?, dict: buffer?, sink: ((buffer, number, number) -> number)?, feed: ((number) -> (number, number))?): (buffer?, any, number?)
local op = 0
if dict then
op = blen(dict)
@@ -78,9 +97,12 @@ function Inflate.raw(src: buffer, start: number, endpos: number, cap: number, ex
end
local pos = start
local bitbuf, bitcnt, over = 0, 0, 0
local lt, dt = SLIT, SDIST
local clt = SCL
local lens = SLENS
local slit, sdist, clt, lens = SLIT, SDIST, SCL, SLENS
if sink then
slit, sdist, clt, lens = bcreate(LITCAP * 4), bcreate(DISTCAP * 4), bcreate(CLCAP * 4), bcreate(320)
end
local lt, dt = slit, sdist
local seen = 0
local final = 0
repeat
-- block header (3 bits); also up to 14 bits of a dynamic header
@@ -91,6 +113,9 @@ function Inflate.raw(src: buffer, start: number, endpos: number, cap: number, ex
pos += nb
bitcnt += nb * 8
else
if feed then
pos, endpos = feed(pos)
end
while bitcnt <= 24 do
if pos < endpos then
bitbuf = bor(bitbuf, lshift(readu8(src, pos), bitcnt))
@@ -119,6 +144,9 @@ function Inflate.raw(src: buffer, start: number, endpos: number, cap: number, ex
end
pos -= real
bitbuf, bitcnt, over = 0, 0, 0
if feed and pos + 65540 > endpos then
pos, endpos = feed(pos)
end
if pos + 4 > endpos then
return nil, "truncated input"
end
@@ -137,7 +165,16 @@ function Inflate.raw(src: buffer, start: number, endpos: number, cap: number, ex
end
return nil, "output larger than expected"
end
out, cap = grow(out, op, op + n)
if sink then
out, op = drain(out, op, seen, n, sink)
if op < 0 then
return nil, "aborted"
end
seen = op
cap = blen(out)
else
out, cap = grow(out, op, op + n)
end
end
bcopy(out, op, src, pos, n)
op += n
@@ -149,7 +186,7 @@ function Inflate.raw(src: buffer, start: number, endpos: number, cap: number, ex
lt, dt = FLIT, FDIST
lsub, dsub = FLITS, FDISTS
elseif btype == 2 then
lt, dt = SLIT, SDIST
lt, dt = slit, sdist
local hlit = band(bitbuf, 31) + 257
local hdist = band(rshift(bitbuf, 5), 31) + 1
local hclen = band(rshift(bitbuf, 10), 15) + 4
@@ -167,6 +204,9 @@ function Inflate.raw(src: buffer, start: number, endpos: number, cap: number, ex
pos += nb
bitcnt += nb * 8
else
if feed then
pos, endpos = feed(pos)
end
while bitcnt <= 24 do
if pos < endpos then
bitbuf = bor(bitbuf, lshift(readu8(src, pos), bitcnt))
@@ -198,6 +238,9 @@ function Inflate.raw(src: buffer, start: number, endpos: number, cap: number, ex
pos += nb
bitcnt += nb * 8
else
if feed then
pos, endpos = feed(pos)
end
while bitcnt <= 24 do
if pos < endpos then
bitbuf = bor(bitbuf, lshift(readu8(src, pos), bitcnt))
@@ -272,6 +315,9 @@ function Inflate.raw(src: buffer, start: number, endpos: number, cap: number, ex
pos += nb
bitcnt += nb * 8
else
if feed then
pos, endpos = feed(pos)
end
while bitcnt <= 24 do
if pos < endpos then
bitbuf = bor(bitbuf, lshift(readu8(src, pos), bitcnt))
@@ -309,7 +355,16 @@ function Inflate.raw(src: buffer, start: number, endpos: number, cap: number, ex
end
return nil, "output larger than expected"
end
out, cap = grow(out, op, op + 1)
if sink then
out, op = drain(out, op, seen, 1, sink)
if op < 0 then
return nil, "aborted"
end
seen = op
cap = blen(out)
else
out, cap = grow(out, op, op + 1)
end
end
writeu8(out, op, sym)
op += 1
@@ -326,6 +381,9 @@ function Inflate.raw(src: buffer, start: number, endpos: number, cap: number, ex
pos += nb
bitcnt += nb * 8
else
if feed then
pos, endpos = feed(pos)
end
while bitcnt <= 24 do
if pos < endpos then
bitbuf = bor(bitbuf, lshift(readu8(src, pos), bitcnt))
@@ -372,6 +430,9 @@ function Inflate.raw(src: buffer, start: number, endpos: number, cap: number, ex
pos += nb
bitcnt += nb * 8
else
if feed then
pos, endpos = feed(pos)
end
while bitcnt <= 24 do
if pos < endpos then
bitbuf = bor(bitbuf, lshift(readu8(src, pos), bitcnt))
@@ -400,7 +461,16 @@ function Inflate.raw(src: buffer, start: number, endpos: number, cap: number, ex
end
return nil, "output larger than expected"
end
out, cap = grow(out, op, op + len)
if sink then
out, op = drain(out, op, seen, len, sink)
if op < 0 then
return nil, "aborted"
end
seen = op
cap = blen(out)
else
out, cap = grow(out, op, op + len)
end
end
local s = op - dist
if dist >= len then
@@ -440,6 +510,9 @@ function Inflate.raw(src: buffer, start: number, endpos: number, cap: number, ex
if consumed > endpos then
return nil, "truncated input"
end
if sink and sink(out, seen, op) < 0 then
return nil, "aborted"
end
return out, op, consumed
end
@@ -97,6 +97,93 @@ function Deflate.zlib(buf: buffer | string, offset: number?, length: number?, ex
return out, consumed + 4
end
-- A zlib stream split over byte ranges of buf (PNG IDAT / fdAT payloads), inflated through a window of 32 KB of history
-- plus `window` bytes (default 256 KB): sink(out, from, to) gets each run of new bytes out[from, to) and returns how many
-- bytes before `to` it has not consumed yet (they are handed back before the next run); a negative return aborts. The
-- input is read through a 128 KB window when there is more than one range. Returns the inflated size.
local INWIN = 131072
function Deflate.zlibStream(buf: buffer, ranges: { { number } }, sink: (buffer, number, number) -> number, window: number?): (number?, Err.Err?)
if type(buf) ~= "buffer" or type(ranges) ~= "table" or #ranges == 0 or type(sink) ~= "function" then
return nil, Err.new(Err.ARG, "Deflate.zlibStream: expected a buffer, a list of { offset, length } and a sink")
end
local total = 0
for _, r in ranges do
if type(r[1]) ~= "number" or type(r[2]) ~= "number" or r[1] < 0 or r[2] < 0 or r[1] + r[2] > buffer.len(buf) then
return nil, Err.new(Err.ARG, "Deflate.zlibStream: range out of bounds")
end
total += r[2]
end
if total < 6 then
return nil, Err.new(Err.TRUNCATED, "zlib: truncated header", ranges[1][1])
end
local src, pos, endpos = buf, ranges[1][1], ranges[1][1] + ranges[1][2]
local feed: ((number) -> (number, number))? = nil
if #ranges > 1 then
local win = buffer.create(INWIN)
local ri, ro, fill = 1, 0, 0
feed = function(at: number): (number, number)
local keep = math.max(at - 8, 0)
if keep > 0 then
buffer.copy(win, 0, win, keep, fill - keep)
fill -= keep
end
while fill < INWIN and ri <= #ranges do
local r = ranges[ri]
local k = math.min(r[2] - ro, INWIN - fill)
buffer.copy(win, fill, buf, r[1] + ro, k)
fill += k
ro += k
if ro >= r[2] then
ri += 1
ro = 0
end
end
return at - keep, fill
end
src = win
pos, endpos = (feed :: any)(0)
end
if endpos - pos < 2 then
return nil, Err.new(Err.TRUNCATED, "zlib: truncated header", ranges[1][1])
end
local cmf, flg = buffer.readu8(src, pos), buffer.readu8(src, pos + 1)
if cmf % 16 ~= 8 or cmf // 16 > 7 then
return nil, Err.new(Err.CORRUPT, "zlib: not a deflate stream (CMF " .. cmf .. ")", ranges[1][1])
end
if (cmf * 256 + flg) % 31 ~= 0 then
return nil, Err.new(Err.CORRUPT, "zlib: header check failed", ranges[1][1])
end
if bit32.band(flg, 0x20) ~= 0 then
return nil, Err.new(Err.UNSUPPORTED, "zlib: preset dictionaries are not supported", ranges[1][1])
end
local adler, size = 1, 0
local function counted(out: buffer, from: number, to: number): number
adler = Adler32.raw(out, from, to - from, adler)
size += to - from
return sink(out, from, to)
end
local out, n, consumed = Inflate.raw(src, pos + 2, endpos, 32768 + (window or 262144), false, false, nil, counted, feed)
if not out then
if n == "aborted" then
return nil, Err.new(Err.CORRUPT, "inflate: aborted by the sink")
end
return nil, inflateErr(tostring(n))
end
local at = consumed :: number
if feed and at + 4 > endpos then
at, endpos = feed(at)
end
if at + 4 > endpos then
return nil, Err.new(Err.TRUNCATED, "zlib: missing Adler-32")
end
local want = bit32.byteswap(buffer.readu32(src, at))
if adler ~= want then
return nil, Err.new(Err.CHECKSUM, string.format("zlib: Adler-32 mismatch (%08x, expected %08x)", adler, want))
end
return size, nil
end
local function gzipBody(b: buffer, p: number, e: number): (number?, Err.Err?)
local flg = buffer.readu8(b, p + 3)
if flg >= 0x20 then
+14 -19
View File
@@ -5,7 +5,7 @@
-- libjpeg's islow (jidctint.c / jfdctint.c), the reduced IDCTs (jidctred.c) and jcdctmgr.c's rounding quantiser, bit-exact
-- with libjpeg-turbo. From jpeg-luau 1.0 (same author); IJG code: licenses/libjpeg-turbo-LICENSE.md.
local readi16, readu16, writeu16, writeu32, readu8, writei16 = buffer.readi16, buffer.readu16, buffer.writeu16, buffer.writeu32, buffer.readu8, buffer.writei16
local clamp = math.clamp
local clamp, abs, sign = math.clamp, math.abs, math.sign
local Dct = {}
@@ -384,18 +384,13 @@ end
local fw = table.create(64, 0)
local function quant(coef: buffer, off: number, div: buffer, v: number, i: number)
local qv = readu16(div, i * 2) * 8
local h = qv // 2
if v < 0 then
writei16(coef, off + i * 2, -((h - v) // qv))
else
writei16(coef, off + i * 2, (v + h) // qv)
end
-- (|v| + q * 4) // (q * 8) with v's sign, branch-free (a sign branch here gave LuaJIT side traces it could not compile)
local function quant(coef: buffer, off: number, qv: number, v: number, i: number)
writei16(coef, off + i * 2, (abs(v) + qv / 2) // qv * sign(v))
end
-- quantised as jcdctmgr.c: (|v| + q * 4) // (q * 8) with the sign restored
function Dct.fdctQuantize(src: buffer, stride: number, x: number, y: number, w: number, h: number, div: buffer, coef: buffer, off: number)
-- quantised as jcdctmgr.c: (|v| + q * 4) // (q * 8) with the sign restored; div[i + 1] = q * 8 for natural index i
function Dct.fdctQuantize(src: buffer, stride: number, x: number, y: number, w: number, h: number, div: { number }, coef: buffer, off: number)
local lastX, lastY = w - 1, h - 1
for r = 0, 7 do
local row = math.min(y + r, lastY) * stride
@@ -484,14 +479,14 @@ function Dct.fdctQuantize(src: buffer, stride: number, x: number, y: number, w:
local o3 = (tmp6 + z2 + z3 + 16384) // 32768
local o1 = (tmp7 + z1 + z4 + 16384) // 32768
local cc = c - 1
quant(coef, off, div, o0, cc)
quant(coef, off, div, o1, cc + 8)
quant(coef, off, div, o2, cc + 16)
quant(coef, off, div, o3, cc + 24)
quant(coef, off, div, o4, cc + 32)
quant(coef, off, div, o5, cc + 40)
quant(coef, off, div, o6, cc + 48)
quant(coef, off, div, o7, cc + 56)
quant(coef, off, div[c], o0, cc)
quant(coef, off, div[c + 8], o1, cc + 8)
quant(coef, off, div[c + 16], o2, cc + 16)
quant(coef, off, div[c + 24], o3, cc + 24)
quant(coef, off, div[c + 32], o4, cc + 32)
quant(coef, off, div[c + 40], o5, cc + 40)
quant(coef, off, div[c + 48], o6, cc + 48)
quant(coef, off, div[c + 56], o7, cc + 56)
end
end
+1 -1
View File
@@ -510,7 +510,7 @@ function Decode.parse(b: buffer, base: number, n: number, opts: any, headerOnly:
clean = buffer.create(n - base + Scan.PAD)
end
local cb = clean :: buffer
local nextPos, cleanLen, nrst = Scan.destuff(b, pos, n, cb, rst)
local nextPos, cleanLen, nrst = Scan.destuff(b, pos, n, cb, rst, st.hook)
if nextPos >= n then
st.truncated = true -- no EOI
end
+3 -3
View File
@@ -595,11 +595,11 @@ function Encode.run(px: buffer, w: number, h: number, bpp: number, o: Options):
local qt = { Tables.quant(Tables.LUMA, o.quality), Tables.quant(Tables.CHROMA, o.quality) }
local qdiv = {}
for t = 1, 2 do
local b = buffer.create(128)
local d = table.create(64, 0)
for i = 1, 64 do
writeu16(b, (i - 1) * 2, qt[t][i])
d[i] = qt[t][i] * 8
end
qdiv[t] = b
qdiv[t] = d
end
local comps: { Comp } = {}
+34 -26
View File
@@ -100,37 +100,45 @@ function Scan.buildTable(counts: { number }, symbols: { number }): buffer
return t
end
function Scan.destuff(src: buffer, pos: number, n: number, dst: buffer, rst: { number }): (number, number, number)
function Scan.destuff(src: buffer, pos: number, n: number, dst: buffer, rst: { number }, hook: (() -> ())?): (number, number, number)
local o, nr = 0, 0
while pos < n do
local b = readu8(src, pos)
if b ~= 0xFF then
writeu8(dst, o, b)
o += 1
pos += 1
else
local q = pos + 1
while q < n and readu8(src, q) == 0xFF do
q += 1
end
if q >= n then
pos = n
break
end
local m = readu8(src, q)
if m == 0 then
writeu8(dst, o, 0xFF)
local done = false
while not done and pos < n do
local lim = if hook then math.min(n, pos + 65536) else n
while pos < lim do
local b = readu8(src, pos)
if b ~= 0xFF then
writeu8(dst, o, b)
o += 1
pos = q + 1
elseif m >= 0xD0 and m <= 0xD7 then
nr += 1
rst[nr] = o
pos = q + 1
pos += 1
else
pos = q - 1
break
local q = pos + 1
while q < n and readu8(src, q) == 0xFF do
q += 1
end
if q >= n then
pos = n
break
end
local m = readu8(src, q)
if m == 0 then
writeu8(dst, o, 0xFF)
o += 1
pos = q + 1
elseif m >= 0xD0 and m <= 0xD7 then
nr += 1
rst[nr] = o
pos = q + 1
else
pos = q - 1
done = true
break
end
end
end
if hook and not done and pos < n then
pcall(hook)
end
end
buffer.fill(dst, o, 0, Scan.PAD)
return pos, o, nr
+27 -3
View File
@@ -1164,8 +1164,9 @@ end
export type Frame = {
width: number,
height: number,
ref: Ref,
ref: Ref?, -- nil when skipped
header: any,
skipped: boolean?,
}
local BORDER = Predict.BORDER
@@ -1198,7 +1199,7 @@ local function freeRef(st: State): Ref
end
function Decode.cropTo(f: Frame, dy: buffer, oy: number, du: buffer, ou: number, dv: buffer, ov: number)
local r = f.ref
local r = f.ref :: Ref
local w, h = f.width, f.height
local cw, chh = (w + 1) // 2, (h + 1) // 2
local Y, U, V, ys, uvs, yb, uvb = r.Y, r.U, r.V, r.ys, r.uvs, r.yb, r.uvb
@@ -1211,7 +1212,12 @@ function Decode.cropTo(f: Frame, dy: buffer, oy: number, du: buffer, ou: number,
end
end
function Decode.decodeFrame(st: State, buf: buffer, off: number, len: number, maxPixels: number): (Frame?, string?)
-- hook: called (through pcall) three times per macroblock row (modes, residuals, reconstruction) and once per loop filter
-- row, a cooperative yield point; the module
-- scratch is per macroblock, so other VP8 decodes may run while one is suspended
-- skip: a frame that refreshes no reference and no segment map comes back { skipped = true } after its header (the
-- state the header carries is kept, the picture is not reconstructed)
function Decode.decodeFrame(st: State, buf: buffer, off: number, len: number, maxPixels: number, hook: (() -> ())?, skip: boolean?): (Frame?, string?)
local hdr, herr = Decode.header(buf, off, len)
if not hdr then
return nil, herr
@@ -1427,6 +1433,12 @@ function Decode.decodeFrame(st: State, buf: buffer, off: number, len: number, ma
if br.eof then
return fail("truncated: frame header")
end
if skip and not key and not refreshGolden and not refreshAlt and copyToGolden == 0 and copyToAlt == 0 and not refreshLast and not st.updateMap then
if saved then
st.proba, st.ymodeProb, st.uvmodeProb, st.mvProb = saved[1], saved[2], saved[3], saved[4]
end
return { width = width, height = height, ref = nil, header = hdr, skipped = true }, nil
end
-- loop filter levels [segment][reference][mode delta index] and, per level, the interior limit and hev threshold
local lvlTab = table.create(64, 0)
@@ -1532,6 +1544,9 @@ function Decode.decodeFrame(st: State, buf: buffer, off: number, len: number, ma
local miMvR, miMvC, miSubR, miSubC = st.miMvR, st.miMvC, st.miSubR, st.miSubC
for mby = 0, mbh - 1 do
if hook then
pcall(hook)
end
local tbr = parts[band(mby, lastPart) + 1]
-- modes of the row (first partition)
for k = 1, 4 do
@@ -1628,6 +1643,9 @@ function Decode.decodeFrame(st: State, buf: buffer, off: number, len: number, ma
return fail("truncated: first partition (modes)")
end
if hook then
pcall(hook)
end
-- residuals (token partition)
local leftNz, leftNzDc = 0, 0
for mbx = 0, mbw - 1 do
@@ -1756,6 +1774,9 @@ function Decode.decodeFrame(st: State, buf: buffer, off: number, len: number, ma
bfill(yuv, U_OFF - BPS - 1, 127, 8 + 1)
bfill(yuv, V_OFF - BPS - 1, 127, 8 + 1)
end
if hook then
pcall(hook)
end
for mbx = 0, mbw - 1 do
local x1 = mbx + 1
local co = mbx * 768
@@ -1865,6 +1886,9 @@ function Decode.decodeFrame(st: State, buf: buffer, off: number, len: number, ma
-- loop filter over the whole frame, macroblocks in raster order (libwebp DoFilter)
if filterType > 0 then
for mby = 0, mbh - 1 do
if hook then
pcall(hook)
end
for mbx = 0, mbw - 1 do
local fi = mby * mbw + mbx + 1
local limit = fLimit[fi]
+15 -4
View File
@@ -7,6 +7,7 @@ local Err = require("@rosetta/core/Err")
local Types = require("@rosetta/Types")
local Decode = require("@rosetta/codecs/image/Vp8/Decode")
local Yuv = require("@rosetta/codecs/image/Vp8/Yuv")
local Pool = require("@rosetta/codecs/video/Video/Pool")
local Vp8 = {}
@@ -14,6 +15,9 @@ local DEFAULT_MAX_PIXELS = 2 ^ 28
export type Options = {
maxPixels: number?,
yield: (() -> ())?, -- called through pcall a few times per macroblock row (decode and loop filter)
-- decodeFrame returns nil, nil for an inter frame that refreshes no reference (its header still applies)
skipDisposable: boolean?,
}
local function fail(msg: string?, offset: number?): Err.Err
@@ -49,10 +53,10 @@ end
local DecoderMeta = {}
DecoderMeta.__index = DecoderMeta
export type Decoder = typeof(setmetatable({} :: { state: Decode.State }, DecoderMeta))
export type Decoder = typeof(setmetatable({} :: { state: Decode.State, images: Pool.Pool }, DecoderMeta))
function Vp8.newDecoder(): Decoder
return setmetatable({ state = Decode.new() }, DecoderMeta)
return setmetatable({ state = Decode.new(), images = Pool.new() }, DecoderMeta)
end
function DecoderMeta.decodeFrame(self: Decoder, buf: buffer, off: number?, len: number?, opts: Options?): (Types.Image?, Err.Err?)
@@ -60,11 +64,13 @@ function DecoderMeta.decodeFrame(self: Decoder, buf: buffer, off: number?, len:
return nil, Err.new(Err.ARG, "decodeFrame: expected a buffer")
end
local o, l = range(buf, off, len)
local f, err = Decode.decodeFrame(self.state, buf, o, l, opts and opts.maxPixels or DEFAULT_MAX_PIXELS)
local f, err = Decode.decodeFrame(self.state, buf, o, l, opts and opts.maxPixels or DEFAULT_MAX_PIXELS, opts and opts.yield, opts and opts.skipDisposable)
if not f then
return nil, fail(err, o)
elseif f.skipped then
return nil, nil
end
local img = Types.Image.new(f.width, f.height, "yuv420p")
local img = self.images:take(f.width, f.height, "yuv420p")
local ny = f.width * f.height
local nc = ((f.width + 1) // 2) * ((f.height + 1) // 2)
Decode.cropTo(f, img.pixels, 0, img.pixels, ny, img.pixels, ny + nc)
@@ -73,6 +79,11 @@ function DecoderMeta.decodeFrame(self: Decoder, buf: buffer, off: number?, len:
return img, nil
end
-- hands a decoded Image back for reuse by a later frame (the caller is done with it); false if it was not this decoder's
function DecoderMeta.release(self: Decoder, image: Types.Image): boolean
return self.images:give(image)
end
function DecoderMeta.reset(self: Decoder)
Decode.reset(self.state)
end
+32 -16
View File
@@ -66,7 +66,8 @@ for i = 1, 2304 do
CB[i] = v * 65536 + 0xff000000
end
function Yuv.toRgba(src: buffer, w: number, h: number, uo: number, vo: number, cw: number, range: string?, matrix: string?, out: buffer?): buffer
-- hook: called (through pcall) every 16 rows, a cooperative yield point
function Yuv.toRgba(src: buffer, w: number, h: number, uo: number, vo: number, cw: number, range: string?, matrix: string?, out: buffer?, hook: (() -> ())?): buffer
local dst = out or bcreate(w * h * 4)
local c = coeffs(range, matrix)
local crv, cgu, cgv, cbu = c.crv, c.cgu, c.cgv, c.cbu
@@ -78,6 +79,9 @@ function Yuv.toRgba(src: buffer, w: number, h: number, uo: number, vo: number, c
local w2 = w // 2
local stride = w * 4
for y = 0, h - 1, 2 do
if hook and y % 16 == 0 and y > 0 then
pcall(hook)
end
local yrow = y * w
local ci = uo + (y // 2) * cw
local dv = vo - uo
@@ -212,7 +216,8 @@ function Yuv.toFullRange(img: Types.Image): Types.Image
return out
end
function Yuv.imageToRgba(img: Types.Image): Types.Image?
-- out: an rgba8 Image of the same size to write into (else a new one)
function Yuv.imageToRgba(img: Types.Image, out: Types.Image?, hook: (() -> ())?): Types.Image?
if img.format == "rgba8" then
return img
end
@@ -222,10 +227,13 @@ function Yuv.imageToRgba(img: Types.Image): Types.Image?
local w, h = img.width, img.height
local uo, vo, cw = Yuv.planes(w, h)
local range, matrix = info(img)
local out = Types.Image.new(w, h, "rgba8")
Yuv.toRgba(img.pixels, w, h, uo, vo, cw, range, matrix, out.pixels)
out.meta.source = img.meta.source
return out
if not out or out.format ~= "rgba8" or out.width ~= w or out.height ~= h or buffer.len(out.pixels) < w * h * 4 then
out = Types.Image.new(w, h, "rgba8")
end
local o = out :: Types.Image
Yuv.toRgba(img.pixels, w, h, uo, vo, cw, range, matrix, o.pixels, hook)
o.meta.source = img.meta.source
return o
end
function Yuv.imageFromRgba(img: Types.Image, range: string?, matrix: string?): Types.Image?
@@ -242,9 +250,12 @@ function Yuv.imageFromRgba(img: Types.Image, range: string?, matrix: string?): T
return out
end
local function scalePlane(src: buffer, so: number, sw: number, sh: number, dst: buffer, d0: number, dw: number, dh: number)
local function scalePlane(src: buffer, so: number, sw: number, sh: number, dst: buffer, d0: number, dw: number, dh: number, hook: (() -> ())?)
local fx, fy = sw / dw, sh / dh
for y = 0, dh - 1 do
if hook and y % 16 == 15 then
pcall(hook)
end
local sy = (y + 0.5) * fy - 0.5
if sy < 0 then
sy = 0
@@ -275,7 +286,7 @@ local function scalePlane(src: buffer, so: number, sw: number, sh: number, dst:
end
end
function Yuv.scale(src: buffer, w: number, h: number, width: number, height: number, out: buffer?): buffer
function Yuv.scale(src: buffer, w: number, h: number, width: number, height: number, out: buffer?, hook: (() -> ())?): buffer
local dw: number = math.max(1, floor(width))
local dh: number = math.max(1, floor(height))
local cw: number = (w + 1) // 2
@@ -287,17 +298,22 @@ function Yuv.scale(src: buffer, w: number, h: number, width: number, height: num
if w < 1 or h < 1 or buffer.len(src) < w * h + 2 * cw * ch then
return dst
end
scalePlane(src, 0, w, h, dst, 0, dw, dh)
scalePlane(src, w * h, cw, ch, dst, dw * dh, dcw, dch)
scalePlane(src, w * h + cw * ch, cw, ch, dst, dw * dh + dcw * dch, dcw, dch)
scalePlane(src, 0, w, h, dst, 0, dw, dh, hook)
scalePlane(src, w * h, cw, ch, dst, dw * dh, dcw, dch, hook)
scalePlane(src, w * h + cw * ch, cw, ch, dst, dw * dh + dcw * dch, dcw, dch, hook)
return dst
end
function Yuv.imageScale(img: Types.Image, dw: number, dh: number): Types.Image
local out = Types.Image.new(math.max(1, floor(dw)), math.max(1, floor(dh)), "yuv420p")
Yuv.scale(img.pixels, img.width, img.height, out.width, out.height, out.pixels)
out.meta = table.clone(img.meta or {})
return out
-- out: a yuv420p Image of the target size to write into (else a new one)
function Yuv.imageScale(img: Types.Image, dw: number, dh: number, out: Types.Image?, hook: (() -> ())?): Types.Image
local tw, th = math.max(1, floor(dw)), math.max(1, floor(dh))
if not out or out.format ~= "yuv420p" or out.width ~= tw or out.height ~= th then
out = Types.Image.new(tw, th, "yuv420p")
end
local o = out :: Types.Image
Yuv.scale(img.pixels, img.width, img.height, tw, th, o.pixels, hook)
o.meta = table.clone(img.meta or {})
return o
end
return Yuv
+5 -4
View File
@@ -6,6 +6,7 @@
-- codIOffset is kept with `nb` look-ahead bits (low = offset * 2^nb + next bits), so renormalisation is one multiply.
local Bitstream = require("@rosetta/codecs/video/H264/Bitstream")
local Tables = require("@rosetta/codecs/video/H264/Tables")
local CabacTables = require("@rosetta/codecs/video/H264/CabacTables")
local Mb = require("@rosetta/codecs/video/H264/Mb")
local readu8 = buffer.readu8
@@ -16,8 +17,8 @@ local BLK_X, BLK_Y = Mb.BLK_X, Mb.BLK_Y
local Cabac = {}
local RANGE_LPS = Tables.RANGE_LPS
local TRANS = Tables.TRANS
local RANGE_LPS = CabacTables.RANGE_LPS
local TRANS = CabacTables.TRANS
local POW2 = table.create(40, 1)
for i = 0, 39 do
POW2[i + 1] = 2 ^ i
@@ -126,7 +127,7 @@ local function bitPos(): number
end
local function initContexts(sliceQp: number, model: number)
local init = Tables.CABAC_INIT
local init = CabacTables.CABAC_INIT
local qp = math.clamp(sliceQp, 0, 51)
for ctx = 0, 459 do
local m = init[ctx * 8 + model * 2 + 1]
@@ -141,7 +142,7 @@ local function initContexts(sliceQp: number, model: number)
end
local ZZ4, ZZ8 = Tables.ZIGZAG4, Tables.ZIGZAG8
local SIG8, LAST8 = Tables.SIG8, Tables.LAST8
local SIG8, LAST8 = CabacTables.SIG8, CabacTables.LAST8
local CAT_CBF = { 0, 4, 8, 12, 16 }
local CAT_SIG = { 0, 15, 29, 44, 47 }
local CAT_ABS = { 0, 10, 20, 30, 39 }
@@ -0,0 +1,17 @@
--!strict
--!native
--!optimize 2
-- codecs/video/H264/CabacTables: the CABAC tables of ITU-T H.264 (init 9-12..9-24, rangeTabLPS 9-44, transitions
-- 9-45, 8x8 ctxIdxInc 9-43). Values from openh264 2.x (BSD-2-Clause, licenses/openh264-LICENSE.txt).
local T = {}
-- CABAC_INIT: [ctxIdx * 8 + model * 2 + 1] = m, [... + 2] = n; model 0 = I slices, 1..3 = cabac_init_idc 0..2.
-- RANGE_LPS: [pStateIdx * 4 + qCodIRangeIdx + 1]. TRANS: [pStateIdx * 2 + 1] = transIdxLPS, [+ 2] = transIdxMPS.
-- SIG8 / LAST8: 8x8 significant / last ctxIdxInc by scan index (frame coded).
T.CABAC_INIT = { 20, -15, 20, -15, 20, -15, 20, -15, 2, 54, 2, 54, 2, 54, 2, 54, 3, 74, 3, 74, 3, 74, 3, 74, 20, -15, 20, -15, 20, -15, 20, -15, 2, 54, 2, 54, 2, 54, 2, 54, 3, 74, 3, 74, 3, 74, 3, 74, -28, 127, -28, 127, -28, 127, -28, 127, -23, 104, -23, 104, -23, 104, -23, 104, -6, 53, -6, 53, -6, 53, -6, 53, -1, 54, -1, 54, -1, 54, -1, 54, 7, 51, 7, 51, 7, 51, 7, 51, 0, 0, 23, 33, 22, 25, 29, 16, 0, 0, 23, 2, 34, 0, 25, 0, 0, 0, 21, 0, 16, 0, 14, 0, 0, 0, 1, 9, -2, 9, -10, 51, 0, 0, 0, 49, 4, 41, -3, 62, 0, 0, -37, 118, -29, 118, -27, 99, 0, 0, 5, 57, 2, 65, 26, 16, 0, 0, -13, 78, -6, 71, -4, 85, 0, 0, -11, 65, -13, 79, -24, 102, 0, 0, 1, 62, 5, 52, 5, 57, 0, 0, 12, 49, 9, 50, 6, 57, 0, 0, -4, 73, -3, 70, -17, 73, 0, 0, 17, 50, 10, 54, 14, 57, 0, 0, 18, 64, 26, 34, 20, 40, 0, 0, 9, 43, 19, 22, 20, 10, 0, 0, 29, 0, 40, 0, 29, 0, 0, 0, 26, 67, 57, 2, 54, 0, 0, 0, 16, 90, 41, 36, 37, 42, 0, 0, 9, 104, 26, 69, 12, 97, 0, 0, -46, 127, -45, 127, -32, 127, 0, 0, -20, 104, -15, 101, -22, 117, 0, 0, 1, 67, -4, 76, -2, 74, 0, 0, -13, 78, -6, 71, -4, 85, 0, 0, -11, 65, -13, 79, -24, 102, 0, 0, 1, 62, 5, 52, 5, 57, 0, 0, -6, 86, 6, 69, -6, 93, 0, 0, -17, 95, -13, 90, -14, 88, 0, 0, -6, 61, 0, 52, -6, 44, 0, 0, 9, 45, 8, 43, 4, 55, 0, 0, -3, 69, -2, 69, -11, 89, 0, 0, -6, 81, -5, 82, -15, 103, 0, 0, -11, 96, -10, 96, -21, 116, 0, 0, 6, 55, 2, 59, 19, 57, 0, 0, 7, 67, 2, 75, 20, 58, 0, 0, -5, 86, -3, 87, 4, 84, 0, 0, 2, 88, -3, 100, 6, 96, 0, 0, 0, 58, 1, 56, 1, 63, 0, 0, -3, 76, -3, 74, -5, 85, 0, 0, -10, 94, -6, 85, -13, 106, 0, 0, 5, 54, 0, 59, 5, 63, 0, 0, 4, 69, -3, 81, 6, 75, 0, 0, -3, 81, -7, 86, -3, 90, 0, 0, 0, 88, -5, 95, -1, 101, 0, 0, -7, 67, -1, 66, 3, 55, 0, 0, -5, 74, -1, 77, -4, 79, 0, 0, -4, 74, 1, 70, -2, 75, 0, 0, -5, 80, -2, 86, -12, 97, 0, 0, -7, 72, -5, 72, -7, 50, 0, 0, 1, 58, 0, 61, 1, 60, 0, 41, 0, 41, 0, 41, 0, 41, 0, 63, 0, 63, 0, 63, 0, 63, 0, 63, 0, 63, 0, 63, 0, 63, 0, 63, 0, 63, 0, 63, 0, 63, -9, 83, -9, 83, -9, 83, -9, 83, 4, 86, 4, 86, 4, 86, 4, 86, 0, 97, 0, 97, 0, 97, 0, 97, -7, 72, -7, 72, -7, 72, -7, 72, 13, 41, 13, 41, 13, 41, 13, 41, 3, 62, 3, 62, 3, 62, 3, 62, 0, 11, 0, 45, 13, 15, 7, 34, 1, 55, -4, 78, 7, 51, -9, 88, 0, 69, -3, 96, 2, 80, -20, 127, -17, 127, -27, 126, -39, 127, -36, 127, -13, 102, -28, 98, -18, 91, -17, 91, 0, 82, -25, 101, -17, 96, -14, 95, -7, 74, -23, 67, -26, 81, -25, 84, -21, 107, -28, 82, -35, 98, -25, 86, -27, 127, -20, 94, -24, 102, -12, 89, -31, 127, -16, 83, -23, 97, -17, 91, -24, 127, -22, 110, -27, 119, -31, 127, -18, 95, -21, 91, -24, 99, -14, 76, -27, 127, -18, 102, -21, 110, -18, 103, -21, 114, -13, 93, -18, 102, -13, 90, -30, 127, -29, 127, -36, 127, -37, 127, -17, 123, -7, 92, 0, 80, 11, 80, -12, 115, -5, 89, -5, 89, 5, 76, -16, 122, -7, 96, -7, 94, 2, 84, -11, 115, -13, 108, -4, 92, 5, 78, -12, 63, -3, 46, 0, 39, -6, 55, -2, 68, -1, 65, 0, 65, 4, 61, -15, 84, -1, 57, -15, 84, -14, 83, -13, 104, -9, 93, -35, 127, -37, 127, -3, 70, -3, 74, -2, 73, -5, 79, -8, 93, -9, 92, -12, 104, -11, 104, -10, 90, -8, 87, -9, 91, -11, 91, -30, 127, -23, 126, -31, 127, -30, 127, -1, 74, 5, 54, 3, 55, 0, 65, -6, 97, 6, 60, 7, 56, -2, 79, -7, 91, 6, 59, 7, 55, 0, 72, -20, 127, 6, 69, 8, 61, -4, 92, -4, 56, -1, 48, -3, 53, -6, 56, -5, 82, 0, 68, 0, 68, 3, 68, -7, 76, -4, 69, -7, 74, -8, 71, -22, 125, -8, 88, -9, 88, -13, 98, -7, 93, -2, 85, -13, 103, -4, 86, -11, 87, -6, 78, -13, 91, -12, 88, -3, 77, -1, 75, -9, 89, -5, 82, -5, 71, -7, 77, -14, 92, -3, 72, -4, 63, 2, 54, -8, 76, -4, 67, -4, 68, 5, 50, -12, 87, -8, 72, -12, 84, -3, 68, -23, 110, -16, 89, -7, 62, 1, 50, -24, 105, -9, 69, -7, 65, 6, 42, -10, 78, -1, 59, 8, 61, -4, 81, -20, 112, 5, 66, 5, 56, 1, 63, -17, 99, 4, 57, -2, 66, -4, 70, -78, 127, -4, 71, 1, 64, 0, 67, -70, 127, -2, 71, 0, 61, 2, 57, -50, 127, 2, 58, -2, 78, -2, 76, -46, 127, -1, 74, 1, 50, 11, 35, -4, 66, -4, 44, 7, 52, 4, 64, -5, 78, -1, 69, 10, 35, 1, 61, -4, 71, 0, 62, 0, 44, 11, 35, -8, 72, -7, 51, 11, 38, 18, 25, 2, 59, -4, 47, 1, 45, 12, 24, -1, 55, -6, 42, 0, 46, 13, 29, -7, 70, -3, 41, 5, 44, 13, 36, -6, 75, -6, 53, 31, 17, -10, 93, -8, 89, 8, 76, 1, 51, -7, 73, -34, 119, -9, 78, 7, 50, -2, 73, -3, 75, -11, 83, 28, 19, 13, 46, 32, 20, 9, 52, 16, 33, 9, 49, 30, 22, 0, 67, 14, 62, -7, 100, -44, 127, -5, 90, -13, 108, 9, 53, 0, 54, 1, 67, -15, 100, 2, 53, -5, 61, -15, 72, -13, 101, 5, 53, 0, 58, -5, 75, -13, 91, -2, 61, -1, 60, -8, 80, -12, 94, 0, 56, -3, 61, -21, 83, -10, 88, 0, 56, -8, 67, -21, 64, -16, 84, -13, 63, -25, 84, -13, 31, -10, 86, -5, 60, -14, 74, -25, 64, -7, 83, -1, 62, -5, 65, -29, 94, -13, 87, 4, 57, 5, 52, 9, 75, -19, 94, -6, 69, 2, 57, 17, 63, 1, 70, 4, 57, 0, 61, -8, 74, 0, 72, 14, 39, -9, 69, -5, 35, -5, 74, 4, 51, -11, 70, -2, 27, 18, 59, 13, 68, 18, 55, 13, 91, -8, 102, 3, 64, -4, 71, 3, 65, -15, 100, 1, 61, 0, 58, -7, 69, 0, 95, 9, 63, 7, 61, 8, 77, -4, 75, 7, 50, 9, 41, -10, 66, 2, 72, 16, 39, 18, 25, 3, 62, -11, 75, 5, 44, 9, 32, -3, 68, -3, 71, 4, 52, 5, 43, -20, 81, 15, 46, 11, 48, 9, 47, 0, 30, -13, 69, -Line truncated
T.RANGE_LPS = { 128, 176, 208, 240, 128, 167, 197, 227, 128, 158, 187, 216, 123, 150, 178, 205, 116, 142, 169, 195, 111, 135, 160, 185, 105, 128, 152, 175, 100, 122, 144, 166, 95, 116, 137, 158, 90, 110, 130, 150, 85, 104, 123, 142, 81, 99, 117, 135, 77, 94, 111, 128, 73, 89, 105, 122, 69, 85, 100, 116, 66, 80, 95, 110, 62, 76, 90, 104, 59, 72, 86, 99, 56, 69, 81, 94, 53, 65, 77, 89, 51, 62, 73, 85, 48, 59, 69, 80, 46, 56, 66, 76, 43, 53, 63, 72, 41, 50, 59, 69, 39, 48, 56, 65, 37, 45, 54, 62, 35, 43, 51, 59, 33, 41, 48, 56, 32, 39, 46, 53, 30, 37, 43, 50, 29, 35, 41, 48, 27, 33, 39, 45, 26, 31, 37, 43, 24, 30, 35, 41, 23, 28, 33, 39, 22, 27, 32, 37, 21, 26, 30, 35, 20, 24, 29, 33, 19, 23, 27, 31, 18, 22, 26, 30, 17, 21, 25, 28, 16, 20, 23, 27, 15, 19, 22, 25, 14, 18, 21, 24, 14, 17, 20, 23, 13, 16, 19, 22, 12, 15, 18, 21, 12, 14, 17, 20, 11, 14, 16, 19, 11, 13, 15, 18, 10, 12, 15, 17, 10, 12, 14, 16, 9, 11, 13, 15, 9, 11, 12, 14, 8, 10, 12, 14, 8, 9, 11, 13, 7, 9, 11, 12, 7, 9, 10, 12, 7, 8, 10, 11, 6, 8, 9, 11, 6, 7, 9, 10, 6, 7, 8, 9, 2, 2, 2, 2 }
T.TRANS = { 0, 1, 0, 2, 1, 3, 2, 4, 2, 5, 4, 6, 4, 7, 5, 8, 6, 9, 7, 10, 8, 11, 9, 12, 9, 13, 11, 14, 11, 15, 12, 16, 13, 17, 13, 18, 15, 19, 15, 20, 16, 21, 16, 22, 18, 23, 18, 24, 19, 25, 19, 26, 21, 27, 21, 28, 22, 29, 22, 30, 23, 31, 24, 32, 24, 33, 25, 34, 26, 35, 26, 36, 27, 37, 27, 38, 28, 39, 29, 40, 29, 41, 30, 42, 30, 43, 30, 44, 31, 45, 32, 46, 32, 47, 33, 48, 33, 49, 33, 50, 34, 51, 34, 52, 35, 53, 35, 54, 35, 55, 36, 56, 36, 57, 36, 58, 37, 59, 37, 60, 37, 61, 38, 62, 38, 62, 63, 63 }
T.SIG8 = { 0, 1, 2, 3, 4, 5, 5, 4, 4, 3, 3, 4, 4, 4, 5, 5, 4, 4, 4, 4, 3, 3, 6, 7, 7, 7, 8, 9, 10, 9, 8, 7, 7, 6, 11, 12, 13, 11, 6, 7, 8, 9, 14, 10, 9, 8, 6, 11, 12, 13, 11, 6, 9, 14, 10, 9, 11, 12, 13, 11, 14, 10, 12, 14 }
T.LAST8 = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8 }
return T
+6 -5
View File
@@ -5,6 +5,7 @@
-- residual_block_cavlc with the 8x8 interleaving; coefficients are dequantised as they are placed.
local Bitstream = require("@rosetta/codecs/video/H264/Bitstream")
local Tables = require("@rosetta/codecs/video/H264/Tables")
local CavlcTables = require("@rosetta/codecs/video/H264/CavlcTables")
local Mb = require("@rosetta/codecs/video/H264/Mb")
local u, u1, ue, se = Bitstream.u, Bitstream.u1, Bitstream.ue, Bitstream.se
@@ -51,7 +52,7 @@ end
-- coeff_token: CT1[class + 1], CT2[class + 1]; value = TotalCoeff * 4 + TrailingOnes
local CT1, CT2 = {}, {}
for t = 0, 4 do
local src = (Tables :: any)["COEFF_TOKEN_" .. t]
local src = (CavlcTables :: any)["COEFF_TOKEN_" .. t]
local entries = {}
for i = 1, #src, 4 do
table.insert(entries, { src[i], src[i + 1], src[i + 2] * 4 + src[i + 3] })
@@ -74,9 +75,9 @@ local function group(src: { number }, n: number): ({ { number } }, { { number }
end
return a, b
end
local TZ1, TZ2 = group(Tables.TOTAL_ZEROS, 15)
local TZC1, TZC2 = group(Tables.TOTAL_ZEROS_CDC, 3)
local RB1, RB2 = group(Tables.RUN_BEFORE, 7)
local TZ1, TZ2 = group(CavlcTables.TOTAL_ZEROS, 15)
local TZC1, TZC2 = group(CavlcTables.TOTAL_ZEROS_CDC, 3)
local RB1, RB2 = group(CavlcTables.RUN_BEFORE, 7)
-- scans: coefficient index (1-based) -> raster position (0-based)
local ZZ4 = Tables.ZIGZAG4
@@ -94,7 +95,7 @@ for i4 = 0, 3 do
end
local IDENT = { 0, 1, 2, 3 }
local INTRA_CBP, INTER_CBP = Tables.INTRA_CBP, Tables.INTER_CBP
local INTRA_CBP, INTER_CBP = CavlcTables.INTRA_CBP, CavlcTables.INTER_CBP
local LEVEL = table.create(16, 0)
local RUN = table.create(16, 0)
@@ -0,0 +1,21 @@
--!strict
--!native
--!optimize 2
-- codecs/video/H264/CavlcTables: the CAVLC tables of ITU-T H.264 (9-5, 9-7..9-10; me(v) CBP 9-4). Values from
-- openh264 2.x (BSD-2-Clause, licenses/openh264-LICENSE.txt).
local T = {}
-- coeff_token per nC class (0: 0<=nC<2, 1: 2<=nC<4, 2: 4<=nC<8, 3: 8<=nC, 4: nC=-1 chroma DC): { code, len, TotalCoeff,
-- TrailingOnes } quads. TOTAL_ZEROS / TOTAL_ZEROS_CDC / RUN_BEFORE: { tzVlcIndex | zerosLeft, code, len, value } quads.
T.COEFF_TOKEN_0 = { 1, 1, 0, 0, 5, 6, 1, 0, 1, 2, 1, 1, 7, 8, 2, 0, 4, 6, 2, 1, 1, 3, 2, 2, 7, 9, 3, 0, 6, 8, 3, 1, 5, 7, 3, 2, 3, 5, 3, 3, 7, 10, 4, 0, 6, 9, 4, 1, 5, 8, 4, 2, 3, 6, 4, 3, 7, 11, 5, 0, 6, 10, 5, 1, 5, 9, 5, 2, 4, 7, 5, 3, 15, 13, 6, 0, 6, 11, 6, 1, 5, 10, 6, 2, 4, 8, 6, 3, 11, 13, 7, 0, 14, 13, 7, 1, 5, 11, 7, 2, 4, 9, 7, 3, 8, 13, 8, 0, 10, 13, 8, 1, 13, 13, 8, 2, 4, 10, 8, 3, 15, 14, 9, 0, 14, 14, 9, 1, 9, 13, 9, 2, 4, 11, 9, 3, 11, 14, 10, 0, 10, 14, 10, 1, 13, 14, 10, 2, 12, 13, 10, 3, 15, 15, 11, 0, 14, 15, 11, 1, 9, 14, 11, 2, 12, 14, 11, 3, 11, 15, 12, 0, 10, 15, 12, 1, 13, 15, 12, 2, 8, 14, 12, 3, 15, 16, 13, 0, 1, 15, 13, 1, 9, 15, 13, 2, 12, 15, 13, 3, 11, 16, 14, 0, 14, 16, 14, 1, 13, 16, 14, 2, 8, 15, 14, 3, 7, 16, 15, 0, 10, 16, 15, 1, 9, 16, 15, 2, 12, 16, 15, 3, 4, 16, 16, 0, 6, 16, 16, 1, 5, 16, 16, 2, 8, 16, 16, 3 }
T.COEFF_TOKEN_1 = { 3, 2, 0, 0, 11, 6, 1, 0, 2, 2, 1, 1, 7, 6, 2, 0, 7, 5, 2, 1, 3, 3, 2, 2, 7, 7, 3, 0, 10, 6, 3, 1, 9, 6, 3, 2, 5, 4, 3, 3, 7, 8, 4, 0, 6, 6, 4, 1, 5, 6, 4, 2, 4, 4, 4, 3, 4, 8, 5, 0, 6, 7, 5, 1, 5, 7, 5, 2, 6, 5, 5, 3, 7, 9, 6, 0, 6, 8, 6, 1, 5, 8, 6, 2, 8, 6, 6, 3, 15, 11, 7, 0, 6, 9, 7, 1, 5, 9, 7, 2, 4, 6, 7, 3, 11, 11, 8, 0, 14, 11, 8, 1, 13, 11, 8, 2, 4, 7, 8, 3, 15, 12, 9, 0, 10, 11, 9, 1, 9, 11, 9, 2, 4, 9, 9, 3, 11, 12, 10, 0, 14, 12, 10, 1, 13, 12, 10, 2, 12, 11, 10, 3, 8, 12, 11, 0, 10, 12, 11, 1, 9, 12, 11, 2, 8, 11, 11, 3, 15, 13, 12, 0, 14, 13, 12, 1, 13, 13, 12, 2, 12, 12, 12, 3, 11, 13, 13, 0, 10, 13, 13, 1, 9, 13, 13, 2, 12, 13, 13, 3, 7, 13, 14, 0, 11, 14, 14, 1, 6, 13, 14, 2, 8, 13, 14, 3, 9, 14, 15, 0, 8, 14, 15, 1, 10, 14, 15, 2, 1, 13, 15, 3, 7, 14, 16, 0, 6, 14, 16, 1, 5, 14, 16, 2, 4, 14, 16, 3 }
T.COEFF_TOKEN_2 = { 15, 4, 0, 0, 15, 6, 1, 0, 14, 4, 1, 1, 11, 6, 2, 0, 15, 5, 2, 1, 13, 4, 2, 2, 8, 6, 3, 0, 12, 5, 3, 1, 14, 5, 3, 2, 12, 4, 3, 3, 15, 7, 4, 0, 10, 5, 4, 1, 11, 5, 4, 2, 11, 4, 4, 3, 11, 7, 5, 0, 8, 5, 5, 1, 9, 5, 5, 2, 10, 4, 5, 3, 9, 7, 6, 0, 14, 6, 6, 1, 13, 6, 6, 2, 9, 4, 6, 3, 8, 7, 7, 0, 10, 6, 7, 1, 9, 6, 7, 2, 8, 4, 7, 3, 15, 8, 8, 0, 14, 7, 8, 1, 13, 7, 8, 2, 13, 5, 8, 3, 11, 8, 9, 0, 14, 8, 9, 1, 10, 7, 9, 2, 12, 6, 9, 3, 15, 9, 10, 0, 10, 8, 10, 1, 13, 8, 10, 2, 12, 7, 10, 3, 11, 9, 11, 0, 14, 9, 11, 1, 9, 8, 11, 2, 12, 8, 11, 3, 8, 9, 12, 0, 10, 9, 12, 1, 13, 9, 12, 2, 8, 8, 12, 3, 13, 10, 13, 0, 7, 9, 13, 1, 9, 9, 13, 2, 12, 9, 13, 3, 9, 10, 14, 0, 12, 10, 14, 1, 11, 10, 14, 2, 10, 10, 14, 3, 5, 10, 15, 0, 8, 10, 15, 1, 7, 10, 15, 2, 6, 10, 15, 3, 1, 10, 16, 0, 4, 10, 16, 1, 3, 10, 16, 2, 2, 10, 16, 3 }
T.COEFF_TOKEN_3 = { 3, 6, 0, 0, 0, 6, 1, 0, 1, 6, 1, 1, 4, 6, 2, 0, 5, 6, 2, 1, 6, 6, 2, 2, 8, 6, 3, 0, 9, 6, 3, 1, 10, 6, 3, 2, 11, 6, 3, 3, 12, 6, 4, 0, 13, 6, 4, 1, 14, 6, 4, 2, 15, 6, 4, 3, 16, 6, 5, 0, 17, 6, 5, 1, 18, 6, 5, 2, 19, 6, 5, 3, 20, 6, 6, 0, 21, 6, 6, 1, 22, 6, 6, 2, 23, 6, 6, 3, 24, 6, 7, 0, 25, 6, 7, 1, 26, 6, 7, 2, 27, 6, 7, 3, 28, 6, 8, 0, 29, 6, 8, 1, 30, 6, 8, 2, 31, 6, 8, 3, 32, 6, 9, 0, 33, 6, 9, 1, 34, 6, 9, 2, 35, 6, 9, 3, 36, 6, 10, 0, 37, 6, 10, 1, 38, 6, 10, 2, 39, 6, 10, 3, 40, 6, 11, 0, 41, 6, 11, 1, 42, 6, 11, 2, 43, 6, 11, 3, 44, 6, 12, 0, 45, 6, 12,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OTAL_ZEROS_CDC = { 1, 1, 1, 0, 1, 1, 2, 1, 1, 1, 3, 2, 1, 0, 3, 3, 2, 1, 1, 0, 2, 1, 2, 1, 2, 0, 2, 2, 3, 1, 1, 0, 3, 0, 1, 1 }
T.RUN_BEFORE = { 1, 1, 1, 0, 1, 0, 1, 1, 2, 1, 1, 0, 2, 1, 2, 1, 2, 0, 2, 2, 3, 3, 2, 0, 3, 2, 2, 1, 3, 1, 2, 2, 3, 0, 2, 3, 4, 3, 2, 0, 4, 2, 2, 1, 4, 1, 2, 2, 4, 1, 3, 3, 4, 0, 3, 4, 5, 3, 2, 0, 5, 2, 2, 1, 5, 3, 3, 2, 5, 2, 3, 3, 5, 1, 3, 4, 5, 0, 3, 5, 6, 3, 2, 0, 6, 0, 3, 1, 6, 1, 3, 2, 6, 3, 3, 3, 6, 2, 3, 4, 6, 5, 3, 5, 6, 4, 3, 6, 7, 7, 3, 0, 7, 6, 3, 1, 7, 5, 3, 2, 7, 4, 3, 3, 7, 3, 3, 4, 7, 2, 3, 5, 7, 1, 3, 6, 7, 1, 4, 7, 7, 1, 5, 8, 7, 1, 6, 9, 7, 1, 7, 10, 7, 1, 8, 11, 7, 1, 9, 12, 7, 1, 10, 13, 7, 1, 11, 14 }
T.INTRA_CBP = { 47, 31, 15, 0, 23, 27, 29, 30, 7, 11, 13, 14, 39, 43, 45, 46, 16, 3, 5, 10, 12, 19, 21, 26, 28, 35, 37, 42, 44, 1, 2, 4, 8, 17, 18, 20, 24, 6, 9, 22, 25, 32, 33, 34, 36, 40, 38, 41 }
T.INTER_CBP = { 0, 16, 1, 2, 4, 8, 32, 3, 5, 10, 12, 15, 47, 7, 11, 13, 14, 6, 9, 31, 35, 37, 42, 44, 33, 34, 36, 40, 39, 43, 45, 46, 17, 18, 20, 24, 19, 21, 26, 28, 23, 27, 29, 30, 22, 25, 38, 41 }
return T
+92 -31
View File
@@ -8,11 +8,11 @@ local Params = require("@rosetta/codecs/video/H264/Params")
local Slice = require("@rosetta/codecs/video/H264/Slice")
local Tables = require("@rosetta/codecs/video/H264/Tables")
local Mb = require("@rosetta/codecs/video/H264/Mb")
local Cavlc = require("@rosetta/codecs/video/H264/Cavlc")
local Cabac = require("@rosetta/codecs/video/H264/Cabac")
local Deblock = require("@rosetta/codecs/video/H264/Deblock")
local Inter = require("@rosetta/codecs/video/H264/Inter")
local Pool = require("@rosetta/codecs/video/Video/Pool")
local Types = require("@rosetta/Types")
local Cabac: any, Cavlc: any = nil, nil -- the entropy decoder a stream uses, required on its first slice
local PAD, PADC = Inter.PAD, Inter.PADC
local CHROMA_QP = Tables.CHROMA_QP
@@ -27,6 +27,8 @@ export type Options = {
-- yield is pcall'ed (it can't throw through native code); the entropy decoders keep state in module locals, so no
-- other H.264 decode may run in the VM while one is suspended
yield: (() -> ())?,
-- pictures with nal_ref_idc 0 are not reconstructed: they keep their place in output order as { skipped = true }
skipDisposable: boolean?,
}
function Decoder.new(opts: Options?): any
@@ -52,6 +54,7 @@ function Decoder.new(opts: Options?): any
prevFrameNum = 0,
maxLongTermIdx = -1,
pool = {},
images = Pool.new(), -- output Images given back (H264 decoder:release)
gray = nil,
frames = 0,
errors = 0,
@@ -76,6 +79,29 @@ local function newPicture(self: any, sps: any): any
local ys = w + 2 * PAD
local cs = w // 2 + 2 * PADC
local n4 = mbW * mbH * 16
-- a 1080p picture's tables are 1.6 M slots: allocated in steps between yields
local hook = self.opts.yield
local y = buffer.create(ys * (h + 2 * PAD))
local u, v = buffer.create(cs * (h // 2 + 2 * PADC)), buffer.create(cs * (h // 2 + 2 * PADC))
if hook then
pcall(hook)
end
local ref0, ref1 = table.create(n4, -1), table.create(n4, -1)
if hook then
pcall(hook)
end
local uid0, uid1 = table.create(n4, -1), table.create(n4, -1)
if hook then
pcall(hook)
end
local mv0 = table.create(n4 * 2, 0)
if hook then
pcall(hook)
end
local mv1 = table.create(n4 * 2, 0)
if hook then
pcall(hook)
end
return {
mbW = mbW,
mbH = mbH,
@@ -83,16 +109,16 @@ local function newPicture(self: any, sps: any): any
cs = cs,
yo = PAD * ys + PAD,
co = PADC * cs + PADC,
y = buffer.create(ys * (h + 2 * PAD)),
u = buffer.create(cs * (h // 2 + 2 * PADC)),
v = buffer.create(cs * (h // 2 + 2 * PADC)),
y = y,
u = u,
v = v,
mbIntra = table.create(mbW * mbH, true),
ref0 = table.create(n4, -1),
ref1 = table.create(n4, -1),
uid0 = table.create(n4, -1),
uid1 = table.create(n4, -1),
mv0 = table.create(n4 * 2, 0),
mv1 = table.create(n4 * 2, 0),
ref0 = ref0,
ref1 = ref1,
uid0 = uid0,
uid1 = uid1,
mv0 = mv0,
mv1 = mv1,
uid = 0,
poc = 0,
frameNum = 0,
@@ -100,12 +126,13 @@ local function newPicture(self: any, sps: any): any
short = false,
longIdx = 0,
waiting = false,
skipped = false,
pts = 0,
}
end
local function release(self: any, p: any)
if not p.short and not p.long and not p.waiting and p ~= self.cur and p ~= self.gray then
if not p.short and not p.long and not p.waiting and p ~= self.cur and p ~= self.gray and not p.skipped then
for _, q in self.pool do
if q == p then
return
@@ -130,11 +157,11 @@ local function grayPicture(self: any, sps: any): any
return g
end
local function emit(self: any, p: any)
p.waiting = false
-- the cropped output copy of a decoded picture
local function toImage(self: any, p: any): Types.Image
local sps = p.sps
local W, H = sps.width, sps.height
local img = Types.Image.new(W, H, "yuv420p")
local img = self.images:take(W, H, "yuv420p")
local px = img.pixels
local cx, cy = sps.cropX, sps.cropY
for y = 0, H - 1 do
@@ -151,7 +178,16 @@ local function emit(self: any, p: any)
img.meta.sar = { sps.sarW, sps.sarH }
end
img.meta.yuv = { range = if sps.fullRange then "full" else "limited", matrix = if sps.matrix == 1 then "bt709" else "bt601" }
table.insert(self.out, { image = img, pts = p.pts, duration = 0, poc = p.poc, keyframe = p.idr })
return img
end
local function emit(self: any, p: any)
p.waiting = false
if p.skipped then
table.insert(self.out, { image = nil, skipped = true, pts = p.pts, duration = 0, poc = p.poc, keyframe = false })
return
end
table.insert(self.out, { image = toImage(self, p), pts = p.pts, duration = 0, poc = p.poc, keyframe = p.idr })
release(self, p)
end
@@ -571,7 +607,7 @@ local function setupGrids(self: any, sps: any)
if self.S and self.S.mbW == mbW and self.S.mbH == mbH then
return
end
local S = Mb.grids(mbW, mbH)
local S = Mb.grids(mbW, mbH, self.opts.yield)
S.mbW, S.mbH = mbW, mbH
S.w4 = mbW * 4
S.cw4 = mbW * 2
@@ -643,7 +679,9 @@ local function startPicture(self: any, sh: any, pts: number?)
fillGap(self, sh)
end
end
local p = newPicture(self, sps)
local skip = sh.nalRefIdc == 0 and self.opts.skipDisposable == true
-- a skipped picture only carries what output order and POC need
local p = if skip then { skipped = true, short = false, long = false, waiting = false } else newPicture(self, sps)
self.uid += 1
p.uid = self.uid
p.sps = sps
@@ -660,6 +698,10 @@ local function startPicture(self: any, sh: any, pts: number?)
self.decoded = 0
self.sliceNum = 0
self.sliceParams = {}
if skip then
return
end
p.skipped = false
local S = self.S
local st = S.sliceTab
for i = 1, #st do
@@ -720,20 +762,22 @@ local function finishPicture(self: any)
end
local sh = self.curSh
local S = self.S
if self.decoded < S.mbW * S.mbH then
conceal(self, p)
if not p.skipped then
if self.decoded < S.mbW * S.mbH then
conceal(self, p)
end
local hook = self.opts.yield
if self.opts.deblock ~= false then
Deblock.picture(S, p, self.sliceParams)
end
if hook then
pcall(hook)
end
local w, h = S.mbW * 16, S.mbH * 16
Inter.extend(p.y, p.yo, p.ys, w, h, PAD)
Inter.extend(p.u, p.co, p.cs, w // 2, h // 2, PADC)
Inter.extend(p.v, p.co, p.cs, w // 2, h // 2, PADC)
end
local hook = self.opts.yield
if self.opts.deblock ~= false then
Deblock.picture(S, p, self.sliceParams)
end
if hook then
pcall(hook)
end
local w, h = S.mbW * 16, S.mbH * 16
Inter.extend(p.y, p.yo, p.ys, w, h, PAD)
Inter.extend(p.u, p.co, p.cs, w // 2, h // 2, PADC)
Inter.extend(p.v, p.co, p.cs, w // 2, h // 2, PADC)
local mmco5 = false
if sh.nalRefIdc ~= 0 then
mmco5 = mark(self, p, sh)
@@ -889,8 +933,14 @@ local function decodeSlice(self: any, sh: any, r: Bitstream.Reader)
local st = S.sliceTab
local ok, err
if pps.cabac then
if Cabac == nil then
Cabac = require("@rosetta/codecs/video/H264/Cabac")
end
ok, err = Cabac.slice(S, self.M, r)
else
if Cavlc == nil then
Cavlc = require("@rosetta/codecs/video/H264/Cavlc")
end
ok, err = Cavlc.slice(S, self.M, r)
end
for i = 1, #st do
@@ -979,6 +1029,10 @@ function Decoder.nal(self: any, buf: buffer, off: number, len: number, pts: numb
end
startPicture(self, sh, pts)
end
if self.cur.skipped then
self.decoded = 1
return
end
decodeSlice(self, sh, r)
if self.decoded >= self.S.mbW * self.S.mbH then
finishPicture(self)
@@ -994,6 +1048,13 @@ function Decoder.nal(self: any, buf: buffer, off: number, len: number, pts: numb
-- SEI (6), filler (12), SPS extension (13), prefix / SVC / MVC (14, 15, 20) and reserved types are ignored
end
-- the end of a packet holding one access unit: a skipped picture is complete
function Decoder.packetEnd(self: any)
if self.cur and self.cur.skipped then
finishPicture(self)
end
end
function Decoder.flush(self: any)
finishPicture(self)
bump(self, 0)
+22 -7
View File
@@ -75,11 +75,11 @@ function Mb.new(): any
}
end
function Mb.grids(mbW: number, mbH: number): any
function Mb.grids(mbW: number, mbH: number, hook: (() -> ())?): any
local n = mbW * mbH
local n4 = n * 16
local nc = n * 4
return {
local S = {
sliceTab = table.create(n, 0),
kind = table.create(n, 0),
cbpTab = table.create(n, 0),
@@ -95,12 +95,27 @@ function Mb.grids(mbW: number, mbH: number): any
nzcCb = table.create(nc, 0),
nzcCr = table.create(nc, 0),
nzDb = table.create(n4, 0),
ipm = table.create(n4, 2),
mvd0 = table.create(n4 * 2, 0),
mvd1 = table.create(n4 * 2, 0),
rgt0 = table.create(n4, 0),
rgt1 = table.create(n4, 0),
ipm = false :: any,
mvd0 = false :: any,
mvd1 = false :: any,
rgt0 = false :: any,
rgt1 = false :: any,
}
-- 1080p: 1.5 M slots, allocated in steps between yields (Decoder Options.yield)
if hook then
pcall(hook)
end
S.ipm = table.create(n4, 2)
S.mvd0 = table.create(n4 * 2, 0)
if hook then
pcall(hook)
end
S.mvd1 = table.create(n4 * 2, 0)
if hook then
pcall(hook)
end
S.rgt0, S.rgt1 = table.create(n4, 0), table.create(n4, 0)
return S
end
function Mb.start(S: any, M: any, addr: number)
+4 -24
View File
@@ -1,38 +1,18 @@
--!strict
--!native
--!optimize 2
-- codecs/video/H264/Tables: the constant tables of ITU-T H.264 (CAVLC 9-5, 9-7..9-10; CABAC init 9-12..9-24,
-- rangeTabLPS 9-44, transitions 9-45; chroma QP 8-15; me(v) CBP 9-4; scaling lists 7-3 / 7-4; zig-zag 8-12 / 8-13;
-- 9-43; deblocking 8-16 / 8-17). Values from openh264 2.x (BSD-2-Clause, licenses/openh264-LICENSE.txt).
-- codecs/video/H264/Tables: the constant tables of ITU-T H.264 outside the entropy coders (chroma QP 8-15; scaling
-- lists 7-3 / 7-4; zig-zag 8-12 / 8-13; deblocking 8-16 / 8-17; CavlcTables / CabacTables hold the coders' own).
-- Values from openh264 2.x (BSD-2-Clause, licenses/openh264-LICENSE.txt).
local T = {}
-- coeff_token per nC class (0: 0<=nC<2, 1: 2<=nC<4, 2: 4<=nC<8, 3: 8<=nC, 4: nC=-1 chroma DC): { code, len, TotalCoeff,
-- TrailingOnes } quads. TOTAL_ZEROS / TOTAL_ZEROS_CDC / RUN_BEFORE: { tzVlcIndex | zerosLeft, code, len, value } quads.
-- CABAC_INIT: [ctxIdx * 8 + model * 2 + 1] = m, [... + 2] = n; model 0 = I slices, 1..3 = cabac_init_idc 0..2.
-- RANGE_LPS: [pStateIdx * 4 + qCodIRangeIdx + 1]. TRANS: [pStateIdx * 2 + 1] = transIdxLPS, [+ 2] = transIdxMPS.
-- DEFAULT_4x4 / DEFAULT_8x8: intra list then inter list, raster order. ZIGZAG4 / ZIGZAG8: scan index -> raster index.
-- SIG8 / LAST8: 8x8 significant / last ctxIdxInc by scan index (frame coded). ALPHA / BETA: [indexA + 13] (index
-- -12..63); TC0: [(indexA + 12) * 4 + bS + 1] (bS 0..3; bS 0 is unused).
T.COEFF_TOKEN_0 = { 1, 1, 0, 0, 5, 6, 1, 0, 1, 2, 1, 1, 7, 8, 2, 0, 4, 6, 2, 1, 1, 3, 2, 2, 7, 9, 3, 0, 6, 8, 3, 1, 5, 7, 3, 2, 3, 5, 3, 3, 7, 10, 4, 0, 6, 9, 4, 1, 5, 8, 4, 2, 3, 6, 4, 3, 7, 11, 5, 0, 6, 10, 5, 1, 5, 9, 5, 2, 4, 7, 5, 3, 15, 13, 6, 0, 6, 11, 6, 1, 5, 10, 6, 2, 4, 8, 6, 3, 11, 13, 7, 0, 14, 13, 7, 1, 5, 11, 7, 2, 4, 9, 7, 3, 8, 13, 8, 0, 10, 13, 8, 1, 13, 13, 8, 2, 4, 10, 8, 3, 15, 14, 9, 0, 14, 14, 9, 1, 9, 13, 9, 2, 4, 11, 9, 3, 11, 14, 10, 0, 10, 14, 10, 1, 13, 14, 10, 2, 12, 13, 10, 3, 15, 15, 11, 0, 14, 15, 11, 1, 9, 14, 11, 2, 12, 14, 11, 3, 11, 15, 12, 0, 10, 15, 12, 1, 13, 15, 12, 2, 8, 14, 12, 3, 15, 16, 13, 0, 1, 15, 13, 1, 9, 15, 13, 2, 12, 15, 13, 3, 11, 16, 14, 0, 14, 16, 14, 1, 13, 16, 14, 2, 8, 15, 14, 3, 7, 16, 15, 0, 10, 16, 15, 1, 9, 16, 15, 2, 12, 16, 15, 3, 4, 16, 16, 0, 6, 16, 16, 1, 5, 16, 16, 2, 8, 16, 16, 3 }
T.COEFF_TOKEN_1 = { 3, 2, 0, 0, 11, 6, 1, 0, 2, 2, 1, 1, 7, 6, 2, 0, 7, 5, 2, 1, 3, 3, 2, 2, 7, 7, 3, 0, 10, 6, 3, 1, 9, 6, 3, 2, 5, 4, 3, 3, 7, 8, 4, 0, 6, 6, 4, 1, 5, 6, 4, 2, 4, 4, 4, 3, 4, 8, 5, 0, 6, 7, 5, 1, 5, 7, 5, 2, 6, 5, 5, 3, 7, 9, 6, 0, 6, 8, 6, 1, 5, 8, 6, 2, 8, 6, 6, 3, 15, 11, 7, 0, 6, 9, 7, 1, 5, 9, 7, 2, 4, 6, 7, 3, 11, 11, 8, 0, 14, 11, 8, 1, 13, 11, 8, 2, 4, 7, 8, 3, 15, 12, 9, 0, 10, 11, 9, 1, 9, 11, 9, 2, 4, 9, 9, 3, 11, 12, 10, 0, 14, 12, 10, 1, 13, 12, 10, 2, 12, 11, 10, 3, 8, 12, 11, 0, 10, 12, 11, 1, 9, 12, 11, 2, 8, 11, 11, 3, 15, 13, 12, 0, 14, 13, 12, 1, 13, 13, 12, 2, 12, 12, 12, 3, 11, 13, 13, 0, 10, 13, 13, 1, 9, 13, 13, 2, 12, 13, 13, 3, 7, 13, 14, 0, 11, 14, 14, 1, 6, 13, 14, 2, 8, 13, 14, 3, 9, 14, 15, 0, 8, 14, 15, 1, 10, 14, 15, 2, 1, 13, 15, 3, 7, 14, 16, 0, 6, 14, 16, 1, 5, 14, 16, 2, 4, 14, 16, 3 }
T.COEFF_TOKEN_2 = { 15, 4, 0, 0, 15, 6, 1, 0, 14, 4, 1, 1, 11, 6, 2, 0, 15, 5, 2, 1, 13, 4, 2, 2, 8, 6, 3, 0, 12, 5, 3, 1, 14, 5, 3, 2, 12, 4, 3, 3, 15, 7, 4, 0, 10, 5, 4, 1, 11, 5, 4, 2, 11, 4, 4, 3, 11, 7, 5, 0, 8, 5, 5, 1, 9, 5, 5, 2, 10, 4, 5, 3, 9, 7, 6, 0, 14, 6, 6, 1, 13, 6, 6, 2, 9, 4, 6, 3, 8, 7, 7, 0, 10, 6, 7, 1, 9, 6, 7, 2, 8, 4, 7, 3, 15, 8, 8, 0, 14, 7, 8, 1, 13, 7, 8, 2, 13, 5, 8, 3, 11, 8, 9, 0, 14, 8, 9, 1, 10, 7, 9, 2, 12, 6, 9, 3, 15, 9, 10, 0, 10, 8, 10, 1, 13, 8, 10, 2, 12, 7, 10, 3, 11, 9, 11, 0, 14, 9, 11, 1, 9, 8, 11, 2, 12, 8, 11, 3, 8, 9, 12, 0, 10, 9, 12, 1, 13, 9, 12, 2, 8, 8, 12, 3, 13, 10, 13, 0, 7, 9, 13, 1, 9, 9, 13, 2, 12, 9, 13, 3, 9, 10, 14, 0, 12, 10, 14, 1, 11, 10, 14, 2, 10, 10, 14, 3, 5, 10, 15, 0, 8, 10, 15, 1, 7, 10, 15, 2, 6, 10, 15, 3, 1, 10, 16, 0, 4, 10, 16, 1, 3, 10, 16, 2, 2, 10, 16, 3 }
T.COEFF_TOKEN_3 = { 3, 6, 0, 0, 0, 6, 1, 0, 1, 6, 1, 1, 4, 6, 2, 0, 5, 6, 2, 1, 6, 6, 2, 2, 8, 6, 3, 0, 9, 6, 3, 1, 10, 6, 3, 2, 11, 6, 3, 3, 12, 6, 4, 0, 13, 6, 4, 1, 14, 6, 4, 2, 15, 6, 4, 3, 16, 6, 5, 0, 17, 6, 5, 1, 18, 6, 5, 2, 19, 6, 5, 3, 20, 6, 6, 0, 21, 6, 6, 1, 22, 6, 6, 2, 23, 6, 6, 3, 24, 6, 7, 0, 25, 6, 7, 1, 26, 6, 7, 2, 27, 6, 7, 3, 28, 6, 8, 0, 29, 6, 8, 1, 30, 6, 8, 2, 31, 6, 8, 3, 32, 6, 9, 0, 33, 6, 9, 1, 34, 6, 9, 2, 35, 6, 9, 3, 36, 6, 10, 0, 37, 6, 10, 1, 38, 6, 10, 2, 39, 6, 10, 3, 40, 6, 11, 0, 41, 6, 11, 1, 42, 6, 11, 2, 43, 6, 11, 3, 44, 6, 12, 0, 45, 6, 12, 1, 46, 6, 12, 2, 47, 6, 12, 3, 48, 6, 13, 0, 49, 6, 13, 1, 50, 6, 13, 2, 51, 6, 13, 3, 52, 6, 14, 0, 53, 6, 14, 1, 54, 6, 14, 2, 55, 6, 14, 3, 56, 6, 15, 0, 57, 6, 15, 1, 58, 6, 15, 2, 59, 6, 15, 3, 60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0, 2, 1, 2, 1, 2, 0, 2, 2, 3, 3, 2, 0, 3, 2, 2, 1, 3, 1, 2, 2, 3, 0, 2, 3, 4, 3, 2, 0, 4, 2, 2, 1, 4, 1, 2, 2, 4, 1, 3, 3, 4, 0, 3, 4, 5, 3, 2, 0, 5, 2, 2, 1, 5, 3, 3, 2, 5, 2, 3, 3, 5, 1, 3, 4, 5, 0, 3, 5, 6, 3, 2, 0, 6, 0, 3, 1, 6, 1, 3, 2, 6, 3, 3, 3, 6, 2, 3, 4, 6, 5, 3, 5, 6, 4, 3, 6, 7, 7, 3, 0, 7, 6, 3, 1, 7, 5, 3, 2, 7, 4, 3, 3, 7, 3, 3, 4, 7, 2, 3, 5, 7, 1, 3, 6, 7, 1, 4, 7, 7, 1, 5, 8, 7, 1, 6, 9, 7, 1, 7, 10, 7, 1, 8, 11, 7, 1, 9, 12, 7, 1, 10, 13, 7, 1, 11, 14 }
T.CABAC_INIT = { 20, -15, 20, -15, 20, -15, 20, -15, 2, 54, 2, 54, 2, 54, 2, 54, 3, 74, 3, 74, 3, 74, 3, 74, 20, -15, 20, -15, 20, -15, 20, -15, 2, 54, 2, 54, 2, 54, 2, 54, 3, 74, 3, 74, 3, 74, 3, 74, -28, 127, -28, 127, -28, 127, -28, 127, -23, 104, -23, 104, -23, 104, -23, 104, -6, 53, -6, 53, -6, 53, -6, 53, -1, 54, -1, 54, -1, 54, -1, 54, 7, 51, 7, 51, 7, 51, 7, 51, 0, 0, 23, 33, 22, 25, 29, 16, 0, 0, 23, 2, 34, 0, 25, 0, 0, 0, 21, 0, 16, 0, 14, 0, 0, 0, 1, 9, -2, 9, -10, 51, 0, 0, 0, 49, 4, 41, -3, 62, 0, 0, -37, 118, -29, 118, -27, 99, 0, 0, 5, 57, 2, 65, 26, 16, 0, 0, -13, 78, -6, 71, -4, 85, 0, 0, -11, 65, -13, 79, -24, 102, 0, 0, 1, 62, 5, 52, 5, 57, 0, 0, 12, 49, 9, 50, 6, 57, 0, 0, -4, 73, -3, 70, -17, 73, 0, 0, 17, 50, 10, 54, 14, 57, 0, 0, 18, 64, 26, 34, 20, 40, 0, 0, 9, 43, 19, 22, 20, 10, 0, 0, 29, 0, 40, 0, 29, 0, 0, 0, 26, 67, 57, 2, 54, 0, 0, 0, 16, 90, 41, 36, 37, 42, 0, 0, 9, 104, 26, 69, 12, 97, 0, 0, -46, 127, -45, 127, -32, 127, 0, 0, -20, 104, -15, 101, -22, 117, 0, 0, 1, 67, -4, 76, -2, 74, 0, 0, -13, 78, -6, 71, -4, 85, 0, 0, -11, 65, -13, 79, -24, 102, 0, 0, 1, 62, 5, 52, 5, 57, 0, 0, -6, 86, 6, 69, -6, 93, 0, 0, -17, 95, -13, 90, -14, 88, 0, 0, -6, 61, 0, 52, -6, 44, 0, 0, 9, 45, 8, 43, 4, 55, 0, 0, -3, 69, -2, 69, -11, 89, 0, 0, -6, 81, -5, 82, -15, 103, 0, 0, -11, 96, -10, 96, -21, 116, 0, 0, 6, 55, 2, 59, 19, 57, 0, 0, 7, 67, 2, 75, 20, 58, 0, 0, -5, 86, -3, 87, 4, 84, 0, 0, 2, 88, -3, 100, 6, 96, 0, 0, 0, 58, 1, 56, 1, 63, 0, 0, -3, 76, -3, 74, -5, 85, 0, 0, -10, 94, -6, 85, -13, 106, 0, 0, 5, 54, 0, 59, 5, 63, 0, 0, 4, 69, -3, 81, 6, 75, 0, 0, -3, 81, -7, 86, -3, 90, 0, 0, 0, 88, -5, 95, -1, 101, 0, 0, -7, 67, -1, 66, 3, 55, 0, 0, -5, 74, -1, 77, -4, 79, 0, 0, -4, 74, 1, 70, -2, 75, 0, 0, -5, 80, -2, 86, -12, 97, 0, 0, -7, 72, -5, 72, -7, 50, 0, 0, 1, 58, 0, 61, 1, 60, 0, 41, 0, 41, 0, 41, 0, 41, 0, 63, 0, 63, 0, 63, 0, 63, 0, 63, 0, 63, 0, 63, 0, 63, 0, 63, 0, 63, 0, 63, 0, 63, -9, 83, -9, 83, -9, 83, -9, 83, 4, 86, 4, 86, 4, 86, 4, 86, 0, 97, 0, 97, 0, 97, 0, 97, -7, 72, -7, 72, -7, 72, -7, 72, 13, 41, 13, 41, 13, 41, 13, 41, 3, 62, 3, 62, 3, 62, 3, 62, 0, 11, 0, 45, 13, 15, 7, 34, 1, 55, -4, 78, 7, 51, -9, 88, 0, 69, -3, 96, 2, 80, -20, 127, -17, 127, -27, 126, -39, 127, -36, 127, -13, 102, -28, 98, -18, 91, -17, 91, 0, 82, -25, 101, -17, 96, -14, 95, -7, 74, -23, 67, -26, 81, -25, 84, -21, 107, -28, 82, -35, 98, -25, 86, -27, 127, -20, 94, -24, 102, -12, 89, -31, 127, -16, 83, -23, 97, -17, 91, -24, 127, -22, 110, -27, 119, -31, 127, -18, 95, -21, 91, -24, 99, -14, 76, -27, 127, -18, 102, -21, 110, -18, 103, -21, 114, -13, 93, -18, 102, -13, 90, -30, 127, -29, 127, -36, 127, -37, 127, -17, 123, -7, 92, 0, 80, 11, 80, -12, 115, -5, 89, -5, 89, 5, 76, -16, 122, -7, 96, -7, 94, 2, 84, -11, 115, -13, 108, -4, 92, 5, 78, -12, 63, -3, 46, 0, 39, -6, 55, -2, 68, -1, 65, 0, 65, 4, 61, -15, 84, -1, 57, -15, 84, -14, 83, -13, 104, -9, 93, -35, 127, -37, 127, -3, 70, -3, 74, -2, 73, -5, 79, -8, 93, -9, 92, -12, 104, -11, 104, -10, 90, -8, 87, -9, 91, -11, 91, -30, 127, -23, 126, -31, 127, -30, 127, -1, 74, 5, 54, 3, 55, 0, 65, -6, 97, 6, 60, 7, 56, -2, 79, -7, 91, 6, 59, 7, 55, 0, 72, -20, 127, 6, 69, 8, 61, -4, 92, -4, 56, -1, 48, -3, 53, -6, 56, -5, 82, 0, 68, 0, 68, 3, 68, -7, 76, -4, 69, -7, 74, -8, 71, -22, 125, -8, 88, -9, 88, -13, 98, -7, 93, -2, 85, -13, 103, -4, 86, -11, 87, -6, 78, -13, 91, -12, 88, -3, 77, -1, 75, -9, 89, -5, 82, -5, 71, -7, 77, -14, 92, -3, 72, -4, 63, 2, 54, -8, 76, -4, 67, -4, 68, 5, 50, -12, 87, -8, 72, -12, 84, -3, 68, -23, 110, -16, 89, -7, 62, 1, 50, -24, 105, -9, 69, -7, 65, 6, 42, -10, 78, -1, 59, 8, 61, -4, 81, -20, 112, 5, 66, 5, 56, 1, 63, -17, 99, 4, 57, -2, 66, -4, 70, -78, 127, -4, 71, 1, 64, 0, 67, -70, 127, -2, 71, 0, 61, 2, 57, -50, 127, 2, 58, -2, 78, -2, 76, -46, 127, -1, 74, 1, 50, 11, 35, -4, 66, -4, 44, 7, 52, 4, 64, -5, 78, -1, 69, 10, 35, 1, 61, -4, 71, 0, 62, 0, 44, 11, 35, -8, 72, -7, 51, 11, 38, 18, 25, 2, 59, -4, 47, 1, 45, 12, 24, -1, 55, -6, 42, 0, 46, 13, 29, -7, 70, -3, 41, 5, 44, 13, 36, -6, 75, -6, 53, 31, 17, -10, 93, -8, 89, 8, 76, 1, 51, -7, 73, -34, 119, -9, 78, 7, 50, -2, 73, -3, 75, -11, 83, 28, 19, 13, 46, 32, 20, 9, 52, 16, 33, 9, 49, 30, 22, 0, 67, 14, 62, -7, 100, -44, 127, -5, 90, -13, 108, 9, 53, 0, 54, 1, 67, -15, 100, 2, 53, -5, 61, -15, 72, -13, 101, 5, 53, 0, 58, -5, 75, -13, 91, -2, 61, -1, 60, -8, 80, -12, 94, 0, 56, -3, 61, -21, 83, -10, 88, 0, 56, -8, 67, -21, 64, -16, 84, -13, 63, -25, 84, -13, 31, -10, 86, -5, 60, -14, 74, -25, 64, -7, 83, -1, 62, -5, 65, -29, 94, -13, 87, 4, 57, 5, 52, 9, 75, -19, 94, -6, 69, 2, 57, 17, 63, 1, 70, 4, 57, 0, 61, -8, 74, 0, 72, 14, 39, -9, 69, -5, 35, -5, 74, 4, 51, -11, 70, -2, 27, 18, 59, 13, 68, 18, 55, 13, 91, -8, 102, 3, 64, -4, 71, 3, 65, -15, 100, 1, 61, 0, 58, -7, 69, 0, 95, 9, 63, 7, 61, 8, 77, -4, 75, 7, 50, 9, 41, -10, 66, 2, 72, 16, 39, 18, 25, 3, 62, -11, 75, 5, 44, 9, 32, -3, 68, -3, 71, 4, 52, 5, 43, -20, 81, 15, 46, 11, 48, 9, 47, 0, 30, -13, 69, -Line truncated
T.RANGE_LPS = { 128, 176, 208, 240, 128, 167, 197, 227, 128, 158, 187, 216, 123, 150, 178, 205, 116, 142, 169, 195, 111, 135, 160, 185, 105, 128, 152, 175, 100, 122, 144, 166, 95, 116, 137, 158, 90, 110, 130, 150, 85, 104, 123, 142, 81, 99, 117, 135, 77, 94, 111, 128, 73, 89, 105, 122, 69, 85, 100, 116, 66, 80, 95, 110, 62, 76, 90, 104, 59, 72, 86, 99, 56, 69, 81, 94, 53, 65, 77, 89, 51, 62, 73, 85, 48, 59, 69, 80, 46, 56, 66, 76, 43, 53, 63, 72, 41, 50, 59, 69, 39, 48, 56, 65, 37, 45, 54, 62, 35, 43, 51, 59, 33, 41, 48, 56, 32, 39, 46, 53, 30, 37, 43, 50, 29, 35, 41, 48, 27, 33, 39, 45, 26, 31, 37, 43, 24, 30, 35, 41, 23, 28, 33, 39, 22, 27, 32, 37, 21, 26, 30, 35, 20, 24, 29, 33, 19, 23, 27, 31, 18, 22, 26, 30, 17, 21, 25, 28, 16, 20, 23, 27, 15, 19, 22, 25, 14, 18, 21, 24, 14, 17, 20, 23, 13, 16, 19, 22, 12, 15, 18, 21, 12, 14, 17, 20, 11, 14, 16, 19, 11, 13, 15, 18, 10, 12, 15, 17, 10, 12, 14, 16, 9, 11, 13, 15, 9, 11, 12, 14, 8, 10, 12, 14, 8, 9, 11, 13, 7, 9, 11, 12, 7, 9, 10, 12, 7, 8, 10, 11, 6, 8, 9, 11, 6, 7, 9, 10, 6, 7, 8, 9, 2, 2, 2, 2 }
T.TRANS = { 0, 1, 0, 2, 1, 3, 2, 4, 2, 5, 4, 6, 4, 7, 5, 8, 6, 9, 7, 10, 8, 11, 9, 12, 9, 13, 11, 14, 11, 15, 12, 16, 13, 17, 13, 18, 15, 19, 15, 20, 16, 21, 16, 22, 18, 23, 18, 24, 19, 25, 19, 26, 21, 27, 21, 28, 22, 29, 22, 30, 23, 31, 24, 32, 24, 33, 25, 34, 26, 35, 26, 36, 27, 37, 27, 38, 28, 39, 29, 40, 29, 41, 30, 42, 30, 43, 30, 44, 31, 45, 32, 46, 32, 47, 33, 48, 33, 49, 33, 50, 34, 51, 34, 52, 35, 53, 35, 54, 35, 55, 36, 56, 36, 57, 36, 58, 37, 59, 37, 60, 37, 61, 38, 62, 38, 62, 63, 63 }
-- ALPHA / BETA: [indexA + 13] (index -12..63); TC0: [(indexA + 12) * 4 + bS + 1] (bS 0..3; bS 0 is unused).
T.CHROMA_QP = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 29, 30, 31, 32, 32, 33, 34, 34, 35, 35, 36, 36, 37, 37, 37, 38, 38, 38, 39, 39, 39, 39 }
T.INTRA_CBP = { 47, 31, 15, 0, 23, 27, 29, 30, 7, 11, 13, 14, 39, 43, 45, 46, 16, 3, 5, 10, 12, 19, 21, 26, 28, 35, 37, 42, 44, 1, 2, 4, 8, 17, 18, 20, 24, 6, 9, 22, 25, 32, 33, 34, 36, 40, 38, 41 }
T.INTER_CBP = { 0, 16, 1, 2, 4, 8, 32, 3, 5, 10, 12, 15, 47, 7, 11, 13, 14, 6, 9, 31, 35, 37, 42, 44, 33, 34, 36, 40, 39, 43, 45, 46, 17, 18, 20, 24, 19, 21, 26, 28, 23, 27, 29, 30, 22, 25, 38, 41 }
T.DEFAULT_4x4 = { 6, 13, 20, 28, 13, 20, 28, 32, 20, 28, 32, 37, 28, 32, 37, 42, 10, 14, 20, 24, 14, 20, 24, 27, 20, 24, 27, 30, 24, 27, 30, 34 }
T.DEFAULT_8x8 = { 6, 10, 13, 16, 18, 23, 25, 27, 10, 11, 16, 18, 23, 25, 27, 29, 13, 16, 18, 23, 25, 27, 29, 31, 16, 18, 23, 25, 27, 29, 31, 33, 18, 23, 25, 27, 29, 31, 33, 36, 23, 25, 27, 29, 31, 33, 36, 38, 25, 27, 29, 31, 33, 36, 38, 40, 27, 29, 31, 33, 36, 38, 40, 42, 9, 13, 15, 17, 19, 21, 22, 24, 13, 13, 17, 19, 21, 22, 24, 25, 15, 17, 19, 21, 22, 24, 25, 27, 17, 19, 21, 22, 24, 25, 27, 28, 19, 21, 22, 24, 25, 27, 28, 30, 21, 22, 24, 25, 27, 28, 30, 32, 22, 24, 25, 27, 28, 30, 32, 33, 24, 25, 27, 28, 30, 32, 33, 35 }
T.ZIGZAG4 = { 0, 1, 4, 8, 5, 2, 3, 6, 9, 12, 13, 10, 7, 11, 14, 15 }
T.ZIGZAG8 = { 0, 1, 8, 16, 9, 2, 3, 10, 17, 24, 32, 25, 18, 11, 4, 5, 12, 19, 26, 33, 40, 48, 41, 34, 27, 20, 13, 6, 7, 14, 21, 28, 35, 42, 49, 56, 57, 50, 43, 36, 29, 22, 15, 23, 30, 37, 44, 51, 58, 59, 52, 45, 38, 31, 39, 46, 53, 60, 61, 54, 47, 55, 62, 63 }
T.SIG8 = { 0, 1, 2, 3, 4, 5, 5, 4, 4, 3, 3, 4, 4, 4, 5, 5, 4, 4, 4, 4, 3, 3, 6, 7, 7, 7, 8, 9, 10, 9, 8, 7, 7, 6, 11, 12, 13, 11, 6, 7, 8, 9, 14, 10, 9, 8, 6, 11, 12, 13, 11, 6, 9, 14, 10, 9, 11, 12, 13, 11, 14, 10, 12, 14 }
T.LAST8 = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8 }
T.ALPHA = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 5, 6, 7, 8, 9, 10, 12, 13, 15, 17, 20, 22, 25, 28, 32, 36, 40, 45, 50, 56, 63, 71, 80, 90, 101, 113, 127, 144, 162, 182, 203, 226, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 }
T.BETA = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 15, 15, 16, 16, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18 }
T.TC0 = { -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 1, -1, 0, 0, 1, -1, 0, 0, 1, -1, 0, 0, 1, -1, 0, 1, 1, -1, 0, 1, 1, -1, 1, 1, 1, -1, 1, 1, 1, -1, 1, 1, 1, -1, 1, 1, 1, -1, 1, 1, 2, -1, 1, 1, 2, -1, 1, 1, 2, -1, 1, 1, 2, -1, 1, 2, 3, -1, 1, 2, 3, -1, 2, 2, 3, -1, 2, 2, 4, -1, 2, 3, 4, -1, 2, 3, 4, -1, 3, 3, 5, -1, 3, 4, 6, -1, 3, 4, 6, -1, 4, 5, 7, -1, 4, 5, 8, -1, 4, 6, 9, -1, 5, 7, 10, -1, 6, 8, 11, -1, 6, 8, 13, -1, 7, 10, 14, -1, 8, 11, 16, -1, 9, 12, 18, -1, 10, 13, 20, -1, 11, 15, 23, -1, 13, 17, 25, -1, 13, 17, 25, -1, 13, 17, 25, -1, 13, 17, 25, -1, 13, 17, 25, -1, 13, 17, 25, -1, 13, 17, 25, -1, 13, 17, 25, -1, 13, 17, 25, -1, 13, 17, 25, -1, 13, 17, 25, -1, 13, 17, 25, -1, 13, 17, 25 }
+21 -5
View File
@@ -19,14 +19,16 @@ export type Options = {
lowDelay: boolean?,
deblock: boolean?,
yield: (() -> ())?,
skipDisposable: boolean?, -- pictures with nal_ref_idc 0 come out as { skipped = true } frames without an image
}
export type Frame = {
image: Types.Image,
image: Types.Image, -- (nil when skipped)
pts: number,
duration: number,
poc: number,
keyframe: boolean,
skipped: boolean?,
}
local DecoderMeta = {}
@@ -129,6 +131,7 @@ function DecoderMeta.decode(self: H264Decoder, data: any, pts: number?, off: num
break
end
end
Decoder.packetEnd(st)
local frames = Decoder.take(st)
local e = status(self)
if e then
@@ -137,6 +140,11 @@ function DecoderMeta.decode(self: H264Decoder, data: any, pts: number?, off: num
return frames, nil
end
-- hands a frame's Image back for reuse by a later frame (the caller is done with it); false if it was not this decoder's
function DecoderMeta.release(self: H264Decoder, image: Types.Image): boolean
return self.state.images:give(image)
end
function DecoderMeta.flush(self: H264Decoder): { Frame }
Decoder.flush(self.state)
status(self)
@@ -172,7 +180,7 @@ end
function H264.newVideoDecoder(track: Types.Track, opts: any?): (Types.VideoCodecDecoder?, Err.Err?)
local o: Options = { maxPixels = opts and opts.maxPixels, deblock = opts and opts.deblock, lowDelay = opts and opts.lowDelay,
yield = opts and opts.yield }
yield = opts and opts.yield, skipDisposable = opts and opts.skipDisposable }
local function make(): (H264Decoder?, Err.Err?)
local d, err = H264.newDecoder(o)
if d and track.config then
@@ -190,7 +198,7 @@ function H264.newVideoDecoder(track: Types.Track, opts: any?): (Types.VideoCodec
local queue: { any } = {}
local pool: { number } = {}
local outIndex: number? = if track.ptsInOutputOrder then 0 else nil
local self: any = {}
local self: any = { skipped = 0 }
local function push(frames: { Frame })
for _, f in frames do
local pts = f.pts
@@ -201,7 +209,12 @@ function H264.newVideoDecoder(track: Types.Track, opts: any?): (Types.VideoCodec
-- pictures take the packet timestamps in increasing order (right for MP4 / MKV / TS pts and AVI's decode-order times)
pts = table.remove(pool, 1)
end
table.insert(queue, { f.image, pts, f.keyframe })
if f.skipped then
self.skipped += 1
table.insert(queue, { false, pts, false })
else
table.insert(queue, { f.image, pts, f.keyframe })
end
end
end
function self.decode(_: any, packet: Types.Packet): Err.Err?
@@ -225,7 +238,7 @@ function H264.newVideoDecoder(track: Types.Track, opts: any?): (Types.VideoCodec
push(frames)
return nil
end
function self.receive(_: any): (Types.Image?, number?, boolean?)
function self.receive(_: any): (Types.Image? | false, number?, boolean?)
local q = table.remove(queue, 1)
if q then
return q[1], q[2], q[3]
@@ -237,6 +250,9 @@ function H264.newVideoDecoder(track: Types.Track, opts: any?): (Types.VideoCodec
push((dec :: H264Decoder):flush())
end
end
function self.release(_: any, image: Types.Image): boolean
return dec ~= nil and (dec :: H264Decoder):release(image)
end
function self.reset(_: any)
dec = make()
table.clear(queue)
+11 -5
View File
@@ -7,6 +7,7 @@
local Types = require("@rosetta/Types")
local Err = require("@rosetta/core/Err")
local D = require("@rosetta/codecs/video/Mpeg2/Decoder")
local Pool = require("@rosetta/codecs/video/Video/Pool")
local Mpeg2 = {}
@@ -248,7 +249,8 @@ function Mpeg2.toRgba(y: buffer, cb: buffer, cr: buffer, codedWidth: number, wid
return true
end
function Mpeg2.frameImage(frame: Frame, rgba: boolean?): Types.Image?
-- pool: where the Image comes from (a recycled one when the caller released one of the right size)
function Mpeg2.frameImage(frame: Frame, rgba: boolean?, pool: Pool.Pool?): Types.Image?
if type(frame) ~= "table" or type(frame.y) ~= "buffer" or type(frame.cb) ~= "buffer" or type(frame.cr) ~= "buffer" then
return nil
end
@@ -264,14 +266,14 @@ function Mpeg2.frameImage(frame: Frame, rgba: boolean?): Types.Image?
end
local img
if rgba then
img = Types.Image.new(w, h)
img = if pool then pool:take(w, h, "rgba8") else Types.Image.new(w, h)
if c422 then
D.toRgba422(frame.y, frame.cb, frame.cr, cw, w, h, img.pixels)
else
D.toRgba(frame.y, frame.cb, frame.cr, cw, w, h, img.pixels)
end
else
img = Types.Image.new(w, h, "yuv420p")
img = if pool then pool:take(w, h, "yuv420p") else Types.Image.new(w, h, "yuv420p")
local px = img.pixels
for y = 0, h - 1 do
buffer.copy(px, y * w, frame.y, y * cw, w)
@@ -317,10 +319,11 @@ function Mpeg2.frameImage(frame: Frame, rgba: boolean?): Types.Image?
end
function Mpeg2.newVideoDecoder(_track: any, opts: any?): (Types.VideoCodecDecoder?, Err.Err?)
local dec = Mpeg2.new({ reorder = true, rgba = false, maxPixels = opts and opts.maxPixels })
local dec = Mpeg2.new({ reorder = true, rgba = false, maxPixels = opts and opts.maxPixels, yield = opts and opts.yield })
local queue: { any } = {}
local images = Pool.new()
local function push(f: Frame)
local img = Mpeg2.frameImage(f)
local img = Mpeg2.frameImage(f, false, images)
if img then
img.meta.yuv = { range = "limited", matrix = "bt601" }
local tag = f.tag
@@ -360,6 +363,9 @@ function Mpeg2.newVideoDecoder(_track: any, opts: any?): (Types.VideoCodecDecode
dec:reset()
table.clear(queue)
end
function self.release(_: any, image: Types.Image): boolean
return images:give(image)
end
return self :: any, nil
end
@@ -0,0 +1,209 @@
--!strict
--!optimize 2
-- codecs/video/Video/Disposable: packets whose frame no later frame predicts from (a player may skip decoding them).
-- H.264: the first VCL NAL unit has nal_ref_idc 0 (7.4.1: then every slice of the picture has), and no parameter
-- set comes before it; one access unit per packet, length-prefixed (avcC lengthSizeMinusOne) or Annex B.
-- VP8 (RFC 6386 9.3-9.11, 19.2): an inter frame that refreshes no reference (last / golden / altref, no copies) and
-- leaves the segment map; its header may still change decoder state (probabilities, loop filter deltas).
local readu8 = buffer.readu8
local Disposable = {}
-- the offset of the first byte after the first start code at or after p, or -1
local function nextStart(b: buffer, p: number, e: number): number
local i = p
while i + 2 < e do
local b2 = readu8(b, i + 2)
if b2 > 1 then
i += 3
elseif readu8(b, i + 1) ~= 0 then
i += 2
elseif b2 == 1 and readu8(b, i) == 0 then
return i + 3
else
i += 1
end
end
return -1
end
-- nal_unit_type 1..5: slices (decided by nal_ref_idc); 7, 8, 13, 15: parameter sets (never dropped)
local function nalVerdict(hdr: number): boolean?
local t = hdr % 32
if t >= 1 and t <= 5 then
return hdr // 32 % 4 == 0
elseif t == 7 or t == 8 or t == 13 or t == 15 then
return false
end
return nil
end
function Disposable.h264(b: buffer, lengthSize: number?): boolean
local n = buffer.len(b)
if lengthSize then
local p = 0
while p + lengthSize < n do
local len = 0
for k = 0, lengthSize - 1 do
len = len * 256 + readu8(b, p + k)
end
p += lengthSize
if len > n - p then
return false
end
if len > 0 then
local v = nalVerdict(readu8(b, p))
if v ~= nil then
return v
end
end
p += len
end
return false
end
if n >= 3 and readu8(b, 0) == 0 and readu8(b, 1) == 0 then
local p = nextStart(b, 0, n)
while p >= 0 and p < n do
local v = nalVerdict(readu8(b, p))
if v ~= nil then
return v
end
p = nextStart(b, p, n)
end
return false
end
return n > 0 and nalVerdict(readu8(b, 0)) == true
end
-- the boolean decoder of RFC 6386 7.3 (a 2-byte window), enough for the frame header
type Bool = { b: buffer, p: number, e: number, value: number, range: number, count: number }
local function byteAt(d: Bool): number
local p = d.p
d.p = p + 1
return if p < d.e then readu8(d.b, p) else 0
end
local function boolNew(b: buffer, p: number, e: number): Bool
local d: Bool = { b = b, p = p, e = e, value = 0, range = 255, count = 0 }
d.value = byteAt(d) * 256 + byteAt(d)
return d
end
local function boolRead(d: Bool, prob: number): number
local split = 1 + (d.range - 1) * prob // 256
local big = split * 256
local bit = 0
if d.value >= big then
bit = 1
d.range -= split
d.value -= big
else
d.range = split
end
while d.range < 128 do
d.value *= 2
d.range *= 2
d.count += 1
if d.count == 8 then
d.count = 0
d.value += byteAt(d)
end
end
return bit
end
local function lit(d: Bool, n: number): number
local v = 0
for _ = 1, n do
v = v * 2 + boolRead(d, 128)
end
return v
end
-- skips flag ? (n bits + sign) : nothing
local function optSigned(d: Bool, n: number)
if lit(d, 1) == 1 then
lit(d, n + 1)
end
end
-- disposable: no reference refresh or copy and no segment map update; droppable: also no state the decoder keeps
-- (refresh_entropy_probs 0, no segment feature or loop filter delta update)
function Disposable.vp8(b: buffer): (boolean, boolean)
local n = buffer.len(b)
if n < 4 then
return false, false
end
local tag = readu8(b, 0) + readu8(b, 1) * 256 + readu8(b, 2) * 65536
if tag % 2 == 0 then
return false, false -- key frame
end
local first = tag // 32
if first > n - 3 then
return false, false
end
local d = boolNew(b, 3, 3 + first)
local keep = true
if lit(d, 1) == 1 then -- segmentation_enabled
local updateMap, updateData = lit(d, 1), lit(d, 1)
if updateMap == 1 then
return false, false
end
if updateData == 1 then
keep = false
lit(d, 1) -- segment_feature_mode
for _ = 1, 4 do
optSigned(d, 7)
end
for _ = 1, 4 do
optSigned(d, 6)
end
end
end
lit(d, 1 + 6 + 3) -- filter_type, loop_filter_level, sharpness_level
if lit(d, 1) == 1 and lit(d, 1) == 1 then -- loop_filter_adj_enable, mode_ref_lf_delta_update
keep = false
for _ = 1, 8 do
optSigned(d, 6)
end
end
lit(d, 2 + 7) -- log2_nbr_of_dct_partitions, y_ac_qi
for _ = 1, 5 do
optSigned(d, 4)
end
local refreshGolden, refreshAlt = lit(d, 1), lit(d, 1)
if refreshGolden == 1 or refreshAlt == 1 then
return false, false
end
if lit(d, 2) ~= 0 or lit(d, 2) ~= 0 then -- copy_buffer_to_golden, copy_buffer_to_alternate
return false, false
end
lit(d, 2) -- sign_bias_golden, sign_bias_alternate
local refreshEntropy, refreshLast = lit(d, 1), lit(d, 1)
if refreshLast == 1 or d.p > d.e + 2 then
return false, false
end
return true, keep and refreshEntropy == 0
end
-- the avcC NAL length size of a track (nil: Annex B or one bare NAL unit per packet)
function Disposable.lengthSize(config: buffer?): number?
if config and buffer.len(config) >= 7 and readu8(config, 0) == 1 then
return readu8(config, 4) % 4 + 1
end
return nil
end
-- disposable: no later frame predicts from it; droppable: it can also be left out without telling the decoder
function Disposable.check(codec: string?, data: buffer, config: buffer?): (boolean, boolean)
if codec == "h264" then
local v = Disposable.h264(data, Disposable.lengthSize(config))
return v, v
elseif codec == "vp8" then
return Disposable.vp8(data)
end
return false, false
end
return Disposable
+50
View File
@@ -0,0 +1,50 @@
--!strict
--!optimize 2
-- codecs/video/Video/Pool: output Images handed back by the caller (decoder:release), reused for later frames. Only
-- Images this pool made are taken back; a reused Image gets a fresh meta table.
local Types = require("@rosetta/Types")
local Pool = {}
Pool.__index = Pool
export type Pool = typeof(setmetatable({} :: { free: { Types.Image }, made: { [Types.Image]: boolean }, max: number }, Pool))
function Pool.new(max: number?): Pool
return setmetatable({ free = {}, made = setmetatable({}, { __mode = "k" }) :: any, max = max or 3 }, Pool)
end
function Pool.take(self: Pool, w: number, h: number, format: Types.PixelFormat): Types.Image
local free = self.free
for i = #free, 1, -1 do
local img = free[i]
if img.width == w and img.height == h and img.format == format then
table.remove(free, i)
img.meta = {}
return img
end
end
local img = Types.Image.new(w, h, format)
self.made[img] = true
return img
end
-- true when the Image was this pool's (it is kept for reuse, or dropped when the pool is full)
function Pool.give(self: Pool, img: any): boolean
if type(img) ~= "table" or not self.made[img] then
return false
end
local free = self.free
for _, q in free do
if q == img then
return true
end
end
if #free < self.max then
table.insert(free, img)
else
self.made[img] = nil
end
return true
end
return Pool
+74 -17
View File
@@ -4,6 +4,8 @@
local Err = require("@rosetta/core/Err")
local Types = require("@rosetta/Types")
local Yuv = require("@rosetta/codecs/image/Yuv")
local Disposable = require("@rosetta/codecs/video/Video/Disposable")
local Pool = require("@rosetta/codecs/video/Video/Pool")
local Video = {}
@@ -16,8 +18,8 @@ export type Entry = {
[string]: any,
}
-- decodeOne -> nil, nil: a packet with no picture to show (a hidden VP8 altref frame)
function Video.simpleDecoder(decodeOne: (data: buffer, packet: Types.Packet) -> (Types.Image?, Err.Err?), resetFn: (() -> ())?): Types.VideoCodecDecoder
-- decodeOne -> nil, nil: a packet with no picture to show (a hidden VP8 altref frame); false: a picture skipped
function Video.simpleDecoder(decodeOne: (data: buffer, packet: Types.Packet) -> (Types.Image? | false, Err.Err?), resetFn: (() -> ())?): Types.VideoCodecDecoder
local queue: { any } = {}
local self = {}
function self.decode(_: any, packet: Types.Packet): Err.Err?
@@ -25,12 +27,12 @@ function Video.simpleDecoder(decodeOne: (data: buffer, packet: Types.Packet) ->
if not ok then
return Err.new(Err.CORRUPT, "decoder threw: " .. tostring(img))
end
if img then
if img ~= nil then
table.insert(queue, { img, packet.pts, packet.keyframe })
end
return err
end
function self.receive(_: any): (Types.Image?, number?, boolean?)
function self.receive(_: any): (Types.Image? | false, number?, boolean?)
local q = table.remove(queue, 1)
if q then
return q[1], q[2], q[3]
@@ -176,11 +178,17 @@ end
local function vp8Decoder(_track: Types.Track, opts: any?): (Types.VideoCodecDecoder?, Err.Err?)
local Vp8 = require("@rosetta/codecs/image/Vp8")
local dec = Vp8.newDecoder()
local o = { maxPixels = opts and opts.maxPixels }
return Video.simpleDecoder(function(data: buffer): (Types.Image?, Err.Err?)
local o = { maxPixels = opts and opts.maxPixels, yield = opts and opts.yield, skipDisposable = opts and opts.skipDisposable }
local self: any
self = Video.simpleDecoder(function(data: buffer): (Types.Image? | false, Err.Err?)
local img, err = dec:decodeFrame(data, 0, buffer.len(data), o)
if not img then
return nil, err
if err then
return nil, err
end
self.skipped += 1
-- show_frame (RFC 6386 9.1): a shown frame keeps its place
return if buffer.readu8(data, 0) // 16 % 2 == 1 then false else nil, nil
end
local src = img.meta.source
if type(src) == "table" and src.show == false then
@@ -194,7 +202,12 @@ local function vp8Decoder(_track: Types.Track, opts: any?): (Types.VideoCodecDec
else
dec = Vp8.newDecoder()
end
end), nil
end) :: any
self.skipped = 0
function self.release(_: any, image: Types.Image): boolean
return dec:release(image)
end
return self, nil
end
-- Motion JPEG: yuv420p straight from the planes (full range) when the layout allows, else rgba8
@@ -321,6 +334,18 @@ function Video.entry(id: string): Entry?
return byId[id]
end
-- disposable: no later frame predicts from the packet's; droppable: it may also be left out unread (VP8 headers can
-- carry probability and loop filter updates, so a disposable VP8 frame is droppable only without them)
function Video.isDisposable(track: Types.Track | string, packet: Types.Packet | buffer): (boolean, boolean)
local codec = if type(track) == "table" then track.codec else track
local config = if type(track) == "table" then track.config else nil
local data = if type(packet) == "table" then packet.data else packet
if type(data) ~= "buffer" or type(codec) ~= "string" then
return false, false
end
return Disposable.check(codec, data, config)
end
function Video.canDecode(id: string): boolean
local e = byId[id]
return e ~= nil and e.new ~= nil
@@ -352,6 +377,8 @@ export type OpenOptions = {
audio: boolean?,
maxSide: number?,
yield: (() -> ())?,
skipDisposable: boolean?,
reuse: boolean?, -- nextFrame may overwrite the Image of the frame it returned before
[string]: any,
}
@@ -417,14 +444,34 @@ function Video.open(demuxer: Types.Demuxer, opts: OpenOptions?): (Types.VideoDec
v.startTime = start
local defaultDur = if v.frameRate > 0 then 1 / v.frameRate else 0
local lastPts = nil :: number?
-- rgba8 / scaled Images made here; the codec's own go back through codec:release
local own = Pool.new(2)
local function recycle(img: any)
if img and not own:give(img) and codec and codec.release then
codec:release(img)
end
end
local lastFrame: any = nil
function v.release(self: any, frame: any)
recycle(if type(frame) == "table" and frame.kind == "image" then frame else type(frame) == "table" and frame.image)
end
function v.nextFrame(self: any): (Types.VideoFrame?, Err.Err?)
if not codec then
return nil, codecErr
end
if lastFrame then
recycle(lastFrame.image)
lastFrame = nil
end
local dec = codec :: Types.VideoCodecDecoder
while true do
local img, pts, key = dec:receive()
if img then
if img == false then
-- a picture skipped (skipDisposable): it keeps its place in output order
if index >= 0 then
index += 1
end
elseif img then
local t = (pts or 0) / scale - start
if t + 1e-9 >= skipUntil then
if index < 0 then
@@ -438,18 +485,27 @@ function Video.open(demuxer: Types.Demuxer, opts: OpenOptions?): (Types.VideoDec
end
lastPts = t
local maxSide = o.maxSide
local hook = o.yield
if hook and (o.rgba or maxSide) then
pcall(hook)
end
if maxSide and maxSide >= 1 and img.format == "yuv420p" and math.max(img.width, img.height) > maxSide then
local hook: any = o.yield
if hook then
pcall(hook)
end
local s = maxSide / math.max(img.width, img.height)
img = Yuv.imageScale(img, math.max(1, math.floor(img.width * s + 0.5)), math.max(1, math.floor(img.height * s + 0.5)))
local dw, dh = math.max(1, math.floor(img.width * s + 0.5)), math.max(1, math.floor(img.height * s + 0.5))
local src = img
img = Yuv.imageScale(src, dw, dh, own:take(dw, dh, "yuv420p"), o.yield)
recycle(src) -- (never seen by the caller)
end
if o.rgba then
img = Yuv.imageToRgba(img) or img
if o.rgba and img.format == "yuv420p" then
local src = img
img = Yuv.imageToRgba(src, own:take(src.width, src.height, "rgba8"), o.yield) or src
recycle(src)
end
return { image = img, pts = t, duration = d, keyframe = key, index = index }, nil
local frame = { image = img, pts = t, duration = d, keyframe = key, index = index }
if o.reuse then
lastFrame = frame
end
return frame, nil
end
else
local p = demuxer:read(tid)
@@ -469,6 +525,7 @@ function Video.open(demuxer: Types.Demuxer, opts: OpenOptions?): (Types.VideoDec
end
end
function v.seek(self: any, seconds: number)
lastFrame = nil
demuxer:seek(seconds + start)
if codec then
codec:reset()
+11
View File
@@ -2,6 +2,7 @@
-- containers/Demux: the indexed Types.Demuxer every video container builds (Matroska, AVI, MPEG-TS / PS, Y4M, MP4).
-- New in rosetta. Packets are offset + length into the source buffer (or own bytes); per-track cursors are independent.
local Types = require("@rosetta/Types")
local Disposable = require("@rosetta/codecs/video/Video/Disposable")
local Demux = {}
local D = {}
@@ -171,6 +172,16 @@ function D._packet(self: Demux, i: number): Types.Packet
p[k] = v
end
end
local tid = p.track
for _, t in self.tracks do
if t.id == tid then
local c = t.codec
if (c == "h264" or c == "vp8") and Disposable.check(c, data :: buffer, t.config) then
p.disposable = true
end
break
end
end
return p
end
+24 -1
View File
@@ -22,9 +22,11 @@ local Jpeg = {
-- ------------------------------------------------------------------------------------------------ types
export type DecodeOptions = {
scale: number?, -- 1 (default), 2, 4 or 8
maxSide: number?, -- the smallest scale (up to 8) whose output sides are at most this
orient: boolean?, -- default false
native: boolean?, -- default false
maxPixels: number?, -- default 2^26
yield: (() -> ())?, -- pcall'ed every MCU row of each Huffman scan, every block row of the IDCT, every 8 output rows
}
export type EncodeOptions = {
quality: number?, -- 1..100, default 90 (libjpeg scaling of the T.81 annex K tables)
@@ -55,12 +57,33 @@ function Jpeg.decode(r: Bytes.Reader, opts: DecodeOptions?): (Types.Image?, Err.
return nil, Err.new(Err.ARG, "options must be a table")
end
local o = opts or {} :: DecodeOptions
local scale = o.scale
if o.maxSide ~= nil then
local m = o.maxSide
if type(m) ~= "number" or not (m >= 1) then
return nil, Err.new(Err.ARG, "maxSide must be at least 1")
end
local info, ierr = Codec.info(r.buf, r.base, r.limit - r.base)
if not info then
return nil, ierr
end
-- the output side at scale s is ceil(side / s) (libjpeg-turbo jdmaster.c)
local s = if type(scale) == "number" then scale else 1
while s < 8 and ((info.width + s - 1) // s > m or (info.height + s - 1) // s > m) do
s *= 2
end
scale = s
end
if o.yield ~= nil and type(o.yield) ~= "function" then
return nil, Err.new(Err.ARG, "yield must be a function")
end
-- two JPEGs back to back are an image and a preview, as in MPF
return Codec.decode(r.buf, r.base, r.limit - r.base, {
scale = o.scale,
scale = scale,
orient = o.orient,
native = o.native,
maxPixels = o.maxPixels,
yield = o.yield,
fields = false,
})
end
+188 -16
View File
@@ -102,6 +102,30 @@ local function paeth3(raw: buffer, cur: number, e: number, stride: number, pt: b
end
end
-- 16-bit RGB: two three-byte lanes carried as in paeth3
local function paeth6(raw: buffer, cur: number, e: number, stride: number, pt: buffer)
local a0, a1, a2, a3, a4, a5 = readu8(raw, cur), readu8(raw, cur + 1), readu8(raw, cur + 2), readu8(raw, cur + 3), readu8(raw, cur + 4), readu8(raw, cur + 5)
local u = cur - stride
local c0, c1, c2, c3, c4, c5 = readu8(raw, u), readu8(raw, u + 1), readu8(raw, u + 2), readu8(raw, u + 3), readu8(raw, u + 4), readu8(raw, u + 5)
for i = cur + 6, e - 6, 6 do
local j = i - stride
local b0, b1, b2, b3, b4, b5 = readu8(raw, j), readu8(raw, j + 1), readu8(raw, j + 2), readu8(raw, j + 3), readu8(raw, j + 4), readu8(raw, j + 5)
a0 = (readu8(raw, i) + c0 + readi16(pt, (a0 * 511 + b0 - c0 * 512) * 2 + 261120)) % 256
a1 = (readu8(raw, i + 1) + c1 + readi16(pt, (a1 * 511 + b1 - c1 * 512) * 2 + 261120)) % 256
a2 = (readu8(raw, i + 2) + c2 + readi16(pt, (a2 * 511 + b2 - c2 * 512) * 2 + 261120)) % 256
a3 = (readu8(raw, i + 3) + c3 + readi16(pt, (a3 * 511 + b3 - c3 * 512) * 2 + 261120)) % 256
a4 = (readu8(raw, i + 4) + c4 + readi16(pt, (a4 * 511 + b4 - c4 * 512) * 2 + 261120)) % 256
a5 = (readu8(raw, i + 5) + c5 + readi16(pt, (a5 * 511 + b5 - c5 * 512) * 2 + 261120)) % 256
writeu8(raw, i, a0)
writeu8(raw, i + 1, a1)
writeu8(raw, i + 2, a2)
writeu8(raw, i + 3, a3)
writeu8(raw, i + 4, a4)
writeu8(raw, i + 5, a5)
c0, c1, c2, c3, c4, c5 = b0, b1, b2, b3, b4, b5
end
end
-- any bpp: the left byte is the one written bpp bytes earlier
local function paethN(raw: buffer, cur: number, e: number, stride: number, bpp: number, pt: buffer)
for i = cur + bpp, e - 1 do
@@ -120,10 +144,10 @@ local function paeth1(raw: buffer, cur: number, e: number, stride: number, pt: b
end
end
local function unfilter(raw: buffer, p: number, ph: number, rb: number, bpp: number): (boolean, number)
-- top = 0: the first row has no previous row; 1: the row before p is its previous row
local function unfilter(raw: buffer, p: number, ph: number, rb: number, bpp: number, pt: buffer?, top: number): (boolean, number)
local stride = rb + 1
local pt = paethFor(ph * rb)
for r = 0, ph - 1 do
for r = top, top + ph - 1 do
local f = readu8(raw, p)
local cur = p + 1
local e = cur + rb
@@ -213,6 +237,8 @@ local function unfilter(raw: buffer, p: number, ph: number, rb: number, bpp: num
paeth4(raw, cur, e, stride, pt)
elseif bpp == 3 then
paeth3(raw, cur, e, stride, pt)
elseif bpp == 6 then
paeth6(raw, cur, e, stride, pt)
elseif bpp == 1 then
paeth1(raw, cur, e, stride, pt)
else
@@ -333,34 +359,180 @@ local function convert(raw: buffer, ro: number, pw: number, out: buffer, oo: num
end
end
function Decode.run(raw: buffer, w: number, h: number, depth: number, ct: number, interlace: number, pal: buffer, tr: number, out: buffer): (boolean, string?)
-- the k x k box reduction (k a power of two; edge blocks are smaller): the alpha-weighted mean, colour =
-- round(sum(c * a) / sum(a)) and alpha = round(sum(a) / n), halves up; a fully transparent block is 0, 0, 0, 0. sums
-- holds sum(c * a) and sum(a) per output pixel, or plain sums of r, g, b when the image is opaque (the same result).
local function accumRgba(row: buffer, ro: number, w: number, k: number, sums: { number }, opaque: boolean)
local i = 1
for x0 = 0, w - 1, k do
local e = ro + (math.min(x0 + k, w) - 1) * 4
local r, g, b, a = 0, 0, 0, 0
if opaque then
for q = ro + x0 * 4, e, 4 do
local v = readu32(row, q)
r += band(v, 255)
g += band(rshift(v, 8), 255)
b += band(rshift(v, 16), 255)
end
else
for q = ro + x0 * 4, e, 4 do
local v = readu32(row, q)
local al = rshift(v, 24)
r += band(v, 255) * al
g += band(rshift(v, 8), 255) * al
b += band(rshift(v, 16), 255) * al
a += al
end
end
sums[i] += r
sums[i + 1] += g
sums[i + 2] += b
sums[i + 3] += a
i += 4
end
end
-- truecolour without tRNS, straight from the unfiltered row (16-bit samples: the high byte, as convert does)
local function accumRgb(raw: buffer, ro: number, w: number, k: number, sums: { number }, depth: number)
local step = if depth == 16 then 6 else 3
local go = step // 3
local bo = go * 2
local i = 1
for x0 = 0, w - 1, k do
local r, g, b = 0, 0, 0
for q = ro + x0 * step, ro + (math.min(x0 + k, w) - 1) * step, step do
r += readu8(raw, q)
g += readu8(raw, q + go)
b += readu8(raw, q + bo)
end
sums[i] += r
sums[i + 1] += g
sums[i + 2] += b
i += 4
end
end
local function emit(sums: { number }, out: buffer, oo: number, w: number, k: number, bh: number, opaque: boolean)
local i = 1
for x0 = 0, w - 1, k do
local n = (math.min(x0 + k, w) - x0) * bh
local r, g, b, a = sums[i], sums[i + 1], sums[i + 2], sums[i + 3]
local v = 0
if opaque then
local hn = n // 2
v = (r + hn) // n + (g + hn) // n * 256 + (b + hn) // n * 65536 + 0xFF000000
elseif a > 0 then
local ha = a // 2
v = (r + ha) // a + (g + ha) // a * 256 + (b + ha) // a * 65536 + (a + n // 2) // n * 16777216
end
writeu32(out, oo, v)
oo += 4
sums[i], sums[i + 1], sums[i + 2], sums[i + 3] = 0, 0, 0, 0
i += 4
end
end
function Decode.opaque(ct: number, tr: number, pal: buffer): boolean
if ct == 4 or ct == 6 then
return false
elseif ct == 3 then
for i = 3, 1023, 4 do
if readu8(pal, i) ~= 255 then
return false
end
end
return true
end
return tr < 0
end
function Decode.reduce(src: buffer, w: number, h: number, k: number, out: buffer, opaque: boolean)
local ow = (w + k - 1) // k
local sums = table.create(ow * 4, 0)
for y = 0, h - 1 do
accumRgba(src, y * w * 4, w, k, sums, opaque)
if (y + 1) % k == 0 or y == h - 1 then
emit(sums, out, (y // k) * ow * 4, w, k, y % k + 1, opaque)
end
end
end
-- a row-streaming decoder of a non-interlaced image for a streaming inflate sink: unfilters each row against the
-- previous one, writes it (k = 1) or box-reduces it into out; hook is called every `every` rows
function Decode.stream(w: number, h: number, depth: number, ct: number, pal: buffer, tr: number, k: number, out: buffer, hook: (() -> ())?, every: number): ((buffer, number, number) -> number, () -> (number, string?))
local channels = CHANNELS[ct]
local bpp = math.max(1, (channels * depth) // 8)
local rb = Decode.rowBytes(w, channels, depth)
local stride = rb + 1
local pt = paethFor(h * rb)
local scratch = buffer.create(stride * 2)
local row = buffer.create(if k > 1 then w * 4 else 0)
local ow = (w + k - 1) // k
local sums = table.create(if k > 1 then ow * 4 else 0, 0)
local opaque = Decode.opaque(ct, tr, pal)
local direct = ct == 2 and tr < 0
local y, pending = 0, 0
local err: string? = nil
local function sink(win: buffer, from: number, to: number): number
local p = from - pending
while y < h and to - p >= stride do
bcopy(scratch, stride, win, p, stride)
local ok, f = unfilter(scratch, stride, 1, rb, bpp, pt, if y == 0 then 0 else 1)
if not ok then
err = "bad filter type " .. f
return -1
end
if k == 1 then
convert(scratch, stride + 1, w, out, y * w * 4, 4, ct, depth, pal, tr)
else
if direct then
accumRgb(scratch, stride + 1, w, k, sums, depth)
else
convert(scratch, stride + 1, w, row, 0, 4, ct, depth, pal, tr)
accumRgba(row, 0, w, k, sums, opaque)
end
if (y + 1) % k == 0 or y == h - 1 then
emit(sums, out, (y // k) * ow * 4, w, k, y % k + 1, opaque)
end
end
bcopy(scratch, 0, scratch, stride, stride)
y += 1
p += stride
if hook and y % every == 0 then
pcall(hook :: () -> ())
end
end
pending = if y < h then to - p else 0
return pending
end
return sink, function(): (number, string?)
return y, err
end
end
-- Adam7 (the whole inflated stream in raw)
function Decode.run(raw: buffer, w: number, h: number, depth: number, ct: number, pal: buffer, tr: number, out: buffer, hook: (() -> ())?, every: number): (boolean, string?)
local channels = CHANNELS[ct]
local bpp = math.max(1, (channels * depth) // 8)
local p = 0
if interlace == 0 then
local rb = Decode.rowBytes(w, channels, depth)
local ok, f = unfilter(raw, 0, h, rb, bpp)
if not ok then
return false, "bad filter type " .. f
end
for y = 0, h - 1 do
convert(raw, y * (rb + 1) + 1, w, out, y * w * 4, 4, ct, depth, pal, tr)
end
return true, nil
end
local rows = 0
for _, pass in PASSES do
local x0, y0, dx, dy = pass[1], pass[2], pass[3], pass[4]
local pw = if w > x0 then (w - x0 + dx - 1) // dx else 0
local ph = if h > y0 then (h - y0 + dy - 1) // dy else 0
if pw > 0 and ph > 0 then
local rb = Decode.rowBytes(pw, channels, depth)
local ok, f = unfilter(raw, p, ph, rb, bpp)
local ok, f = unfilter(raw, p, ph, rb, bpp, paethFor(ph * rb), 0)
if not ok then
return false, "bad filter type " .. f
end
for r = 0, ph - 1 do
local y = y0 + r * dy
convert(raw, p + r * (rb + 1) + 1, pw, out, (y * w + x0) * 4, dx * 4, ct, depth, pal, tr)
rows += 1
if hook and rows % every == 0 then
pcall(hook)
end
end
p += ph * (rb + 1)
end
+99 -44
View File
@@ -1,7 +1,8 @@
--!strict
-- image/png: PNG (ISO/IEC 15948, W3C PNG 3rd ed.) and APNG 1.0; from png-luau 1.0.0 (same author). Supports: every
-- colour type and bit depth, tRNS, Adam7, tEXt, acTL / fcTL / fdAT; writes RGBA / RGB / grey(+alpha) and APNG. Not
-- supported: colour management (iCCP kept raw), palette / 16-bit / interlaced output.
-- colour type and bit depth, tRNS, Adam7, tEXt, acTL / fcTL / fdAT, row-streaming decode with power-of-two box
-- reduction; writes RGBA / RGB / grey(+alpha) and APNG. Not supported: colour management (iCCP kept raw), palette /
-- 16-bit / interlaced output.
-- ------------------------------------------------------------------------------------------------ requires
local Err = require("@rosetta/core/Err")
@@ -26,7 +27,11 @@ local Png = {
export type DecodeOptions = {
checkCrc: boolean?, -- default false
maxPixels: number?, -- default 2^26
maxPixels: number?, -- default 2^26, of the source image
maxSide: number?, -- output sides at most this: the smallest power-of-two box reduction that fits
reduce: number?, -- box reduction factor, a power of two (default 1)
yield: (() -> ())?, -- pcall'ed every yieldRows rows, and per 64 KB inflated when interlaced
yieldRows: number?, -- default: about 64 KB of row data
}
export type EncodeOptions = {
level: number?, -- 0..9, default 6
@@ -107,50 +112,97 @@ type FrameControl = {
}
local DISPOSE: { [number]: "none" | "background" | "previous" } = { [0] = "none", [1] = "background", [2] = "previous" }
local function pixels(b: buffer, chunks: { { number } }, total: number, w: number, ht: number, depth: number, ct: number, interlace: number, pal: buffer, tr: number, out: buffer): Err.Err?
-- the inflated size: every (pass) row has a filter byte
type Reduce = { k: number, hook: (() -> ())?, every: number }
local function pixels(b: buffer, chunks: { { number } }, w: number, ht: number, depth: number, ct: number, interlace: number, pal: buffer, tr: number, out: buffer, rd: Reduce): Err.Err?
local k = rd.k
local channels = Decode.CHANNELS[ct]
local expected = 0
if interlace == 0 then
expected = ht * (Decode.rowBytes(w, channels, depth) + 1)
else
for _, pass in Decode.PASSES do
local x0, y0, dx, dy = pass[1], pass[2], pass[3], pass[4]
local pw = if w > x0 then (w - x0 + dx - 1) // dx else 0
local ph = if ht > y0 then (ht - y0 + dy - 1) // dy else 0
if pw > 0 and ph > 0 then
expected += ph * (Decode.rowBytes(pw, channels, depth) + 1)
end
local stride = Decode.rowBytes(w, channels, depth) + 1
local window = math.min(if rd.hook then 65536 else 262144, ht * stride)
local every = if rd.every > 0 then rd.every else math.max(1, 65536 // stride)
local sink, status = Decode.stream(w, ht, depth, ct, pal, tr, k, out, rd.hook, every)
local _, zerr = Deflate.zlibStream(b, chunks, sink, window)
local y, derr = status()
if derr then
return Err.new(Err.CORRUPT, derr)
elseif zerr then
return zerr
elseif y < ht then
return Err.new(Err.CORRUPT, string.format("image data ends after %d of %d rows", y, ht))
end
return nil
end
-- Adam7: the whole inflated stream (every pass row has a filter byte), then the full image when reducing
local expected = 0
for _, pass in Decode.PASSES do
local x0, y0, dx, dy = pass[1], pass[2], pass[3], pass[4]
local pw = if w > x0 then (w - x0 + dx - 1) // dx else 0
local ph = if ht > y0 then (ht - y0 + dy - 1) // dy else 0
if pw > 0 and ph > 0 then
expected += ph * (Decode.rowBytes(pw, channels, depth) + 1)
end
end
local z: buffer
if #chunks == 1 then
z = b
else
z = buffer.create(total)
local w0 = 0
for _, c in chunks do
buffer.copy(z, w0, b, c[1], c[2])
w0 += c[2]
local raw = buffer.create(expected)
local got = 0
local hook = rd.hook
local _, zerr = Deflate.zlibStream(b, chunks, function(win: buffer, from: number, to: number): number
local n = math.min(to - from, expected - got)
if n > 0 then
buffer.copy(raw, got, win, from, n)
got += n
end
end
local zo = if #chunks == 1 then chunks[1][1] else 0
local raw, zerr = Deflate.zlib(z, zo, total, expected)
if not raw then
-- some encoders leave extra bytes after the rows: inflate without the exact size, keep the rows
local loose = Deflate.zlib(z, zo, total)
if not loose or buffer.len(loose) < expected then
return zerr or Err.new(Err.CORRUPT, "bad image data")
if hook then
pcall(hook)
end
raw = loose
return 0
end, math.min(if hook then 65536 else 262144, expected))
if zerr then
return zerr
elseif got < expected then
return Err.new(Err.CORRUPT, string.format("inflate: output is %d bytes, expected %d", got, expected))
end
local ok, derr = Decode.run(raw :: buffer, w, ht, depth, ct, interlace, pal, tr, out)
local full = if k > 1 then buffer.create(w * ht * 4) else out
local ok, derr = Decode.run(raw, w, ht, depth, ct, pal, tr, full, hook, if rd.every > 0 then rd.every else math.max(1, 65536 // (w * 4)))
if not ok then
return Err.new(Err.CORRUPT, tostring(derr))
end
if k > 1 then
Decode.reduce(full, w, ht, k, out, Decode.opaque(ct, tr, pal))
end
return nil
end
local function reduction(w: number, ht: number, opts: DecodeOptions?): (Reduce?, Err.Err?)
local o: any = opts or {}
local k = 1
if o.reduce ~= nil then
local r = o.reduce
if type(r) ~= "number" or r < 1 or r > 2 ^ 31 or r % 1 ~= 0 or bit32.band(r, r - 1) ~= 0 then
return nil, Err.new(Err.ARG, "reduce must be a power of two")
end
k = r
end
if o.maxSide ~= nil then
local m = o.maxSide
if type(m) ~= "number" or not (m >= 1) then
return nil, Err.new(Err.ARG, "maxSide must be at least 1")
end
while (w + k - 1) // k > m or (ht + k - 1) // k > m do
k *= 2
end
end
local hook = o.yield
if hook ~= nil and type(hook) ~= "function" then
return nil, Err.new(Err.ARG, "yield must be a function")
end
local every = o.yieldRows or 0
if type(every) ~= "number" or not (every >= 0) or every % 1 ~= 0 then
return nil, Err.new(Err.ARG, "yieldRows must be a positive integer")
end
return { k = k, hook = hook, every = every }, nil
end
function Png.decode(r: Bytes.Reader, opts: DecodeOptions?): (Types.Image?, Err.Err?)
local checkCrc = opts and opts.checkCrc or false
local maxPixels = opts and opts.maxPixels or 2 ^ 26
@@ -162,6 +214,11 @@ function Png.decode(r: Bytes.Reader, opts: DecodeOptions?): (Types.Image?, Err.E
if w * ht > maxPixels then
return nil, Err.new(Err.LIMIT, string.format("%d x %d is over the %d pixel limit", w, ht, maxPixels))
end
local rd, rerr = reduction(w, ht, opts)
if not rd then
return nil, rerr
end
local k = rd.k
local b, n = r.buf, r.limit
local pal = buffer.create(1024)
for i = 0, 255 do
@@ -170,7 +227,6 @@ function Png.decode(r: Bytes.Reader, opts: DecodeOptions?): (Types.Image?, Err.E
local palCount = 0
local tr = -1
local idat: { { number } } = {}
local idatLen = 0
local text: { [string]: string } = {}
local iccCompressed: buffer? = nil
-- APNG: acTL, then fcTL (+ IDAT for frame 1 when it is the default image) / fdAT, one sequence counter
@@ -224,7 +280,6 @@ function Png.decode(r: Bytes.Reader, opts: DecodeOptions?): (Types.Image?, Err.E
end
elseif typ == "IDAT" then
table.insert(idat, { d, len })
idatLen += len
if #fctls == 1 and #idat == 1 then
idatInAnim = true
end
@@ -302,8 +357,8 @@ function Png.decode(r: Bytes.Reader, opts: DecodeOptions?): (Types.Image?, Err.E
if ct == 3 and palCount == 0 then
return nil, Err.new(Err.CORRUPT, "palette image without PLTE")
end
local img = Types.Image.new(w, ht, "rgba8")
local ierr = pixels(b, idat, idatLen, w, ht, h.bitDepth, ct, h.interlace, pal, tr, img.pixels)
local img = Types.Image.new((w + k - 1) // k, (ht + k - 1) // k, "rgba8")
local ierr = pixels(b, idat, w, ht, h.bitDepth, ct, h.interlace, pal, tr, img.pixels, rd)
if ierr then
return nil, ierr
end
@@ -316,14 +371,14 @@ function Png.decode(r: Bytes.Reader, opts: DecodeOptions?): (Types.Image?, Err.E
for i, f in fctls do
local fimg: Types.Image
if i == 1 and idatInAnim then
fimg = Types.Image.new(w, ht, "rgba8")
fimg = Types.Image.new(img.width, img.height, "rgba8")
buffer.copy(fimg.pixels, 0, img.pixels)
else
if #f.chunks == 0 then
return nil, Err.new(Err.CORRUPT, "APNG frame " .. i .. " has no data")
end
fimg = Types.Image.new(f.width, f.height, "rgba8")
local ferr = pixels(b, f.chunks, f.len, f.width, f.height, h.bitDepth, ct, h.interlace, pal, tr, fimg.pixels)
fimg = Types.Image.new((f.width + k - 1) // k, (f.height + k - 1) // k, "rgba8")
local ferr = pixels(b, f.chunks, f.width, f.height, h.bitDepth, ct, h.interlace, pal, tr, fimg.pixels, rd)
if ferr then
ferr.message = "frame " .. i .. ": " .. ferr.message
return nil, ferr
@@ -332,8 +387,8 @@ function Png.decode(r: Bytes.Reader, opts: DecodeOptions?): (Types.Image?, Err.E
frames[i] = {
image = fimg,
delay = f.num / (if f.den == 0 then 100 else f.den),
x = f.x,
y = f.y,
x = f.x // k,
y = f.y // k,
dispose = DISPOSE[f.dispose] :: any,
blend = if f.blend == 1 then "over" :: "over" else "source" :: "source",
}
@@ -353,7 +408,7 @@ function Png.decode(r: Bytes.Reader, opts: DecodeOptions?): (Types.Image?, Err.E
img.meta.text = text
end
img.meta.iccCompressed = iccCompressed
img.meta.source = { format = "png", bitDepth = depth, colorType = COLOR_NAMES[ct], interlace = h.interlace }
img.meta.source = { format = "png", bitDepth = depth, colorType = COLOR_NAMES[ct], interlace = h.interlace, width = w, height = ht, reduce = k }
return img, nil
end
+108 -59
View File
@@ -7,10 +7,6 @@ local Bytes = require("@rosetta/core/Bytes")
local Input = require("@rosetta/core/Input")
local Types = require("@rosetta/Types")
local Registry = require("@rosetta/Registry")
local Video = require("@rosetta/codecs/video/Video")
local AudioWrap = require("@rosetta/containers/AudioWrap")
local Rbx = require("@rosetta/codecs/model/Rbx")
local ImageOps = require("@rosetta/ops/ImageOps")
local host = require("@rosetta/host")
local F = {}
@@ -19,7 +15,6 @@ F.version = "0.1.0"
F.Err = Err
F.Types = Types
F.Bytes = Bytes
F.Rbx = Rbx
F.null = Types.null
F.host = host
F.plugins = {} :: { [string]: any } -- injected optional dependencies (plugins.brep for cad/step)
@@ -78,6 +73,56 @@ end
local LATE: { [string]: number } = { br = 0.3 } -- archive/br: a trial decode of up to 256 KB
-- detection order: by the cost of a sniff (Registry.sniff: Sniffs.luau, Sniffs.luau reaching a codec, the format
-- module), then registry order; the costly LATE sniffs last
local order: { number }? = nil
local byExt: { [string]: { number } } = {}
local Sniffs: { [string]: (any) -> number }? = nil
local function sniffOrder(): { number }
local o = order
if o then
return o
end
local list: { number } = {}
for idx, e in Registry do
table.insert(list, idx)
for _, x in e.extensions do
byExt[x] = byExt[x] or {}
table.insert(byExt[x], idx)
end
end
local function rank(idx: number): number
local e = Registry[idx]
return if LATE[e.name] then 3 else e.sniff
end
table.sort(list, function(a: number, b: number): boolean
local ra, rb = rank(a), rank(b)
if ra ~= rb then
return ra < rb
end
return a < b
end)
order = list
return list
end
local function sniffer(e: Registry.Entry): ((any) -> number)?
if e.sniff < 2 then
local s = Sniffs
if not s then
s = require("@rosetta/Sniffs") :: any
Sniffs = s
end
local f = (s :: { [string]: (any) -> number })[e.path]
if f then
return f
end
end
local m = module(e)
return if m and type(m.sniff) == "function" then m.sniff else nil
end
local function detect(buf: buffer, name: string?, category: string?, format: string?): (Registry.Entry?, Err.Err?)
if format then
local e = find(format, category)
@@ -87,52 +132,35 @@ local function detect(buf: buffer, name: string?, category: string?, format: str
return e, nil
end
local ext = Input.extension(name)
local list = sniffOrder()
local hits = if ext then byExt[ext] else nil
local best: Registry.Entry? = nil
local bestScore, bestIdx = 0, 0
-- sniffs score 0..1 (core/Sniff); the extension's format scoring 1 cannot be beaten. Formats with a costly sniff
-- (LATE: the most they score) run last, and only when they could still win; ties go to registry order.
local late: { number }? = nil
for idx, e in Registry do
if inCategory(e, category) and (e.caps.decode or e.caps.open) then
local cap = LATE[e.name]
if cap then
late = late or {}
table.insert(late :: { number }, idx)
continue
end
local m = module(e)
if m and m.sniff then
local ok, score = pcall(m.sniff, Bytes.reader(buf))
if ok and type(score) == "number" and score > 0 then
local extHit = ext and table.find(e.extensions, ext)
if extHit then
score += 0.01 -- ties go to the extension
end
if score > bestScore then
best, bestScore, bestIdx = e, score, idx
if extHit and score >= 1.01 then
return e, nil
end
end
-- sniffs score 0..1 (core/Sniff), +0.01 for the extension's formats; the best wins, ties go to registry order. The
-- extension's formats run first, and a sniff runs only while its cap (1, or LATE) could still win.
for pass = 1, 2 do
local ids = if pass == 1 then hits else list
if ids then
for _, idx in ids do
if pass == 2 and bestScore > 1 then
break
end
end
end
end
if late then
for _, idx in late do
local e = Registry[idx]
local extHit = ext and table.find(e.extensions, ext)
local cap = LATE[e.name] + (if extHit then 0.01 else 0)
if cap > bestScore or (cap == bestScore and idx < bestIdx) then
local m = module(e)
if m and m.sniff then
local ok, score = pcall(m.sniff, Bytes.reader(buf))
if ok and type(score) == "number" and score > 0 then
if extHit then
score += 0.01
end
if score > bestScore or (score == bestScore and idx < bestIdx) then
best, bestScore, bestIdx = e, score, idx
local e = Registry[idx]
local extHit = pass == 1 or (hits ~= nil and table.find(hits, idx) ~= nil)
if (pass == 1 or not extHit) and inCategory(e, category) and (e.caps.decode or e.caps.open) then
local cap = (LATE[e.name] or 1) + (if extHit then 0.01 else 0)
if cap > bestScore or (cap == bestScore and idx < bestIdx) then
local sniff = sniffer(e)
if sniff then
local ok, score = pcall(sniff, Bytes.reader(buf))
if ok and type(score) == "number" and score > 0 then
if extHit then
score += 0.01
end
if score > bestScore or (score == bestScore and idx < bestIdx) then
best, bestScore, bestIdx = e, score, idx
end
end
end
end
end
@@ -305,7 +333,7 @@ end
-- api hooks (a format never requires another format): opts.decodeImage / encodeImage, opts.plugins, opts.decodeModule,
-- opts.openAudio (containers/AudioWrap: PCM -> WAV, Opus / Vorbis -> Ogg, AAC -> ADTS, MP3 / FLAC / AC-3 as they are)
local function openAudio(demuxer: any, track: any, sbr: boolean?): (any, Err.Err?)
local buf, fmt, err = AudioWrap.wrap(demuxer, track)
local buf, fmt, err = require("@rosetta/containers/AudioWrap").wrap(demuxer, track)
if not buf then
return nil, err
end
@@ -317,7 +345,7 @@ local function openAudio(demuxer: any, track: any, sbr: boolean?): (any, Err.Err
local skip = if type(track.codecDelay) == "number" and track.codecDelay > 0 then math.floor(track.codecDelay * dec.sampleRate + 0.5) else 0
local length = if type(track.playDuration) == "number" and track.playDuration > 0 then math.floor(track.playDuration * dec.sampleRate + 0.5) else nil
if skip > 0 or length then
dec = AudioWrap.trim(dec, skip, length)
dec = require("@rosetta/containers/AudioWrap").trim(dec, skip, length)
end
end
return dec, oerr
@@ -497,7 +525,7 @@ local function videoToImage(v: any, o: Options): (any, Err.Err?)
if #images == 0 then
return nil, Err.new(Err.ARG, "save: the video has no frames")
end
local img, ierr = ImageOps.fromFrames(images, delays)
local img, ierr = require("@rosetta/ops/ImageOps").fromFrames(images, delays)
if not img then
return nil, ierr
end
@@ -696,7 +724,7 @@ function F.detect(src: any, opts: Options?): (string?, Err.Err?)
return nil, err
end
-- a format may name the file's flavour more precisely (video/mkv: "webm" for DocType webm)
local m = module(entry)
local m = if entry.variant then module(entry) else nil
if m and type(m.variant) == "function" then
local ok, v = pcall(m.variant, Bytes.reader(buf))
if ok and type(v) == "string" then
@@ -783,7 +811,7 @@ F.video.fromImage = function(img: any, opts: Options?): (any, Err.Err?)
end
local frames, delays = { img }, { 0.1 }
if type(img.frames) == "table" and #img.frames > 0 then
local list, cerr = ImageOps.coalesce(img)
local list, cerr = require("@rosetta/ops/ImageOps").coalesce(img)
if not list then
return nil, cerr
end
@@ -793,19 +821,18 @@ F.video.fromImage = function(img: any, opts: Options?): (any, Err.Err?)
delays[i] = if type(f.delay) == "number" and f.delay > 0 then f.delay else 0.1
end
elseif img.format ~= "rgba8" and img.format ~= "yuv420p" then
local c, cerr = ImageOps.convert(img, "rgba8")
local c, cerr = require("@rosetta/ops/ImageOps").convert(img, "rgba8")
if not c then
return nil, cerr
end
frames = { c }
end
local src = type(img.meta) == "table" and img.meta.source
return Video.fromFrames(frames, delays, { format = type(src) == "table" and src.format or "image", loops = img.loops, meta = img.meta })
return require("@rosetta/codecs/video/Video").fromFrames(frames, delays, { format = type(src) == "table" and src.format or "image", loops = img.loops, meta = img.meta })
end
F.video.fromFrames = function(images: any, delays: any?, opts: Options?): (any, Err.Err?)
return Video.fromFrames(images, delays, opts)
return require("@rosetta/codecs/video/Video").fromFrames(images, delays, opts)
end
F.video.codecs = Video
F.model.loadTextures = function(scene: any, opts: Options?): (any, { [number]: Err.Err })
local errs: { [number]: Err.Err } = {}
@@ -820,7 +847,7 @@ F.model.loadTextures = function(scene: any, opts: Options?): (any, { [number]: E
data = resolve(tex.uri)
end
if data ~= nil then
local img, err = F.load(data, { category = "image", name = tex.uri, data = true })
local img, err = F.load(data, { category = "image", name = tex.uri, data = true, maxSide = opts and opts.maxSide, yield = opts and opts.yield, yieldRows = opts and opts.yieldRows, maxPixels = opts and opts.maxPixels })
if img then
tex.image = img
elseif err then
@@ -834,7 +861,7 @@ end
local OPS: { [string]: () -> any } = {
image = function()
return ImageOps
return require("@rosetta/ops/ImageOps")
end,
mesh = function()
return require("@rosetta/ops/MeshOps")
@@ -879,4 +906,26 @@ F.ops = setmetatable({}, {
end,
}) :: any
-- F.Rbx (codecs/model/Rbx), F.video.codecs (codecs/video/Video): required on first use
setmetatable(F, {
__index = function(t: any, k: string): any
if k == "Rbx" then
local m = require("@rosetta/codecs/model/Rbx")
rawset(t, k, m)
return m
end
return nil
end,
})
setmetatable(F.video, {
__index = function(t: any, k: string): any
if k == "codecs" then
local m = require("@rosetta/codecs/video/Video")
rawset(t, k, m)
return m
end
return nil
end,
})
return F
+222 -38
View File
@@ -61,6 +61,54 @@ local function curve(f: Blend.File, fc: Blend.View): Curve?
return { path = path, index = fc:num("array_index") or 0, keys = keys, extend = fc:num("extend") or 0, modifiers = #mods }
end
-- an action's f-curves: the legacy list, or (4.4+ layered actions) the channel bags of the strips of every layer whose
-- slot handle matches (handle nil: the first layer's first strip's first channel bag)
local function fcurves(f: Blend.File, act: Blend.View, handle: number?): { Blend.View }
local list: { Blend.View } = act:list("curves", "FCurve")
if #list > 0 or not act:has("layer_array") then
return list
end
local datas = act:pointers("strip_keyframe_data_array", act:num("strip_keyframe_data_array_num"))
for _, la in act:pointers("layer_array", act:num("layer_array_num")) do
local lblk = la and Blend.resolve(f, la, act.block)
local layer = lblk and Blend.struct(f, lblk, 0, "ActionLayer")
if layer then
for _, sa in layer:pointers("strip_array", layer:num("strip_array_num")) do
local sblk = sa and Blend.resolve(f, sa, act.block)
local strip = sblk and Blend.struct(f, sblk, 0, "ActionStrip")
local di = strip and strip:num("data_index")
local dblk = di and datas[di + 1] and Blend.resolve(f, datas[di + 1], act.block)
local kd = dblk and Blend.struct(f, dblk, 0, "ActionStripKeyframeData")
if kd then
for _, ba in kd:pointers("channelbag_array", kd:num("channelbag_array_num")) do
local bblk = ba and Blend.resolve(f, ba, act.block)
local bag = bblk and (Blend.struct(f, bblk, 0, "ActionChannelBag") or Blend.struct(f, bblk, 0, "ActionChannelbag"))
if bag and (handle == nil or (bag:num("slot_handle") or 0) == handle) then
for _, ca in bag:pointers("fcurve_array", bag:num("fcurve_array_num")) do
local cblk = ca and Blend.resolve(f, ca, act.block)
local fc = cblk and Blend.struct(f, cblk, 0, "FCurve")
if fc then
table.insert(list, fc)
end
end
if handle == nil then
return list
end
end
end
end
if handle == nil then
return list
end
end
end
if handle == nil then
return list
end
end
return list
end
function Anim.curves(f: Blend.File, adt: Blend.View?): ({ Curve }?, string?)
if not adt then
return nil, nil
@@ -69,41 +117,8 @@ function Anim.curves(f: Blend.File, adt: Blend.View?): ({ Curve }?, string?)
if not act then
return nil, nil
end
local list: { Blend.View } = act:list("curves", "FCurve")
if #list == 0 and act:has("layer_array") then
local handle = adt:num("slot_handle") or 0
local datas = act:pointers("strip_keyframe_data_array", act:num("strip_keyframe_data_array_num"))
for _, la in act:pointers("layer_array", act:num("layer_array_num")) do
local lblk = la and Blend.resolve(f, la, act.block)
local layer = lblk and Blend.struct(f, lblk, 0, "ActionLayer")
if layer then
for _, sa in layer:pointers("strip_array", layer:num("strip_array_num")) do
local sblk = sa and Blend.resolve(f, sa, act.block)
local strip = sblk and Blend.struct(f, sblk, 0, "ActionStrip")
local di = strip and strip:num("data_index")
local dblk = di and datas[di + 1] and Blend.resolve(f, datas[di + 1], act.block)
local kd = dblk and Blend.struct(f, dblk, 0, "ActionStripKeyframeData")
if kd then
for _, ba in kd:pointers("channelbag_array", kd:num("channelbag_array_num")) do
local bblk = ba and Blend.resolve(f, ba, act.block)
local bag = bblk and (Blend.struct(f, bblk, 0, "ActionChannelBag") or Blend.struct(f, bblk, 0, "ActionChannelbag"))
if bag and (bag:num("slot_handle") or 0) == handle then
for _, ca in bag:pointers("fcurve_array", bag:num("fcurve_array_num")) do
local cblk = ca and Blend.resolve(f, ca, act.block)
local fc = cblk and Blend.struct(f, cblk, 0, "FCurve")
if fc then
table.insert(list, fc)
end
end
end
end
end
end
end
end
end
local out: { Curve } = {}
for _, fc in list do
for _, fc in fcurves(f, act, adt:num("slot_handle") or 0) do
local c = curve(f, fc)
if c then
table.insert(out, c)
@@ -112,6 +127,156 @@ function Anim.curves(f: Blend.File, adt: Blend.View?): ({ Curve }?, string?)
return out, act:idName()
end
-- ------------------------------------------------------------------------------------------------ raw actions
local INTERPOLATION: { [number]: string } = {
[0] = "CONSTANT", [1] = "LINEAR", [2] = "BEZIER", [3] = "BACK", [4] = "BOUNCE", [5] = "CIRC", [6] = "CUBIC",
[7] = "ELASTIC", [8] = "EXPO", [9] = "QUAD", [10] = "QUART", [11] = "QUINT", [12] = "SINE",
}
local EASING: { [number]: string } = { [0] = "AUTO", [1] = "EASE_IN", [2] = "EASE_OUT", [3] = "EASE_IN_OUT" }
local HANDLE: { [number]: string } = { [0] = "FREE", [1] = "AUTO", [2] = "VECTOR", [3] = "ALIGNED", [4] = "AUTO_CLAMPED" }
local ACT_FRAME_RANGE = 0x1000
-- FModifier.type, flag (FMODIFIER_FLAG_MUTED 8, RANGERESTRICT 16, USEINFLUENCE 32)
local MOD_TYPE: { [number]: string } = {
[1] = "GENERATOR", [2] = "FNGENERATOR", [3] = "ENVELOPE", [4] = "CYCLES", [5] = "NOISE", [6] = "FILTER", [7] = "PYTHON",
[8] = "LIMITS", [9] = "STEPPED",
}
local CYCLE_MODE: { [number]: string } = { [0] = "NONE", [1] = "REPEAT", [2] = "REPEAT_OFFSET", [3] = "MIRROR" }
local FN_TYPE: { [number]: string } = { [0] = "SIN", [1] = "COS", [2] = "TAN", [3] = "SQRT", [4] = "LN", [5] = "SINC" }
local NOISE_BLEND: { [number]: string } = { [0] = "REPLACE", [1] = "ADD", [2] = "SUBTRACT", [3] = "MULTIPLY" }
local function bit(v: number?, mask: number): boolean
return bit32.band(v or 0, mask) ~= 0
end
local function modifier(f: Blend.File, m: Blend.View): { [string]: any }
local t = m:num("type") or 0
local flag = m:num("flag") or 0
local e: { [string]: any } = { type = MOD_TYPE[t] or tostring(t), name = m:str("name") }
e.mute = bit(flag, 8)
e.use_restricted_range = bit(flag, 16)
e.use_influence = bit(flag, 32)
e.influence = m:num("influence") or 1
e.frame_start, e.frame_end = m:num("sfra") or 0, m:num("efra") or 0
e.blend_in, e.blend_out = m:num("blendin") or 0, m:num("blendout") or 0
local d = m:deref("data", 0)
if not d then
return e
end
local kind = e.type
if kind == "GENERATOR" then
-- mode 0 expanded polynomial, 1 factorised; flag FCM_GENERATOR_ADDITIVE 1
e.mode = if (d:num("mode") or 0) == 1 then "POLYNOMIAL_FACTORISED" else "POLYNOMIAL"
e.use_additive = bit(d:num("flag"), 1)
e.poly_order = d:num("poly_order") or 1
local at, size = d:data("coefficients")
local n = math.min(d:num("arraysize") or 0, size // 4)
local c = {}
for k = 0, n - 1 do
c[k + 1] = f.f32(f.buf, (at :: number) + k * 4)
end
e.coefficients = c
elseif kind == "FNGENERATOR" then
e.function_type = FN_TYPE[d:num("type") or 0]
e.amplitude, e.phase_multiplier = d:num("amplitude"), d:num("phase_multiplier")
e.phase_offset, e.value_offset = d:num("phase_offset"), d:num("value_offset")
e.use_additive = bit(d:num("flag"), 1)
elseif kind == "ENVELOPE" then
e.reference_value, e.default_min, e.default_max = d:num("midval"), d:num("min"), d:num("max")
local points = {}
for _, p in d:array("data", "FCM_EnvelopeData") do
table.insert(points, { frame = p:num("time"), min = p:num("min"), max = p:num("max") })
end
e.control_points = points
elseif kind == "CYCLES" then
e.mode_before, e.mode_after = CYCLE_MODE[d:num("before_mode") or 1], CYCLE_MODE[d:num("after_mode") or 1]
e.cycles_before, e.cycles_after = d:num("before_cycles") or 0, d:num("after_cycles") or 0
elseif kind == "NOISE" then
e.blend_type = NOISE_BLEND[d:num("modification") or 0]
e.scale, e.strength, e.phase, e.offset, e.depth = d:num("size"), d:num("strength"), d:num("phase"), d:num("offset"), d:num("depth")
elseif kind == "LIMITS" then
-- flag FCM_LIMIT_XMIN 1, XMAX 2, YMIN 4, YMAX 8
local r = d:sub("rect")
local fl = d:num("flag")
e.use_min_x, e.use_max_x, e.use_min_y, e.use_max_y = bit(fl, 1), bit(fl, 2), bit(fl, 4), bit(fl, 8)
if r then
e.min_x, e.max_x, e.min_y, e.max_y = r:num("xmin"), r:num("xmax"), r:num("ymin"), r:num("ymax")
end
elseif kind == "STEPPED" then
-- the API's frame_start / frame_end here are the stepping limits (flag FCM_STEPPED_NO_BEFORE 1, NO_AFTER 2)
e.frame_step, e.frame_offset = d:num("step_size"), d:num("offset")
e.use_frame_start, e.use_frame_end = bit(d:num("flag"), 1), bit(d:num("flag"), 2)
e.frame_start, e.frame_end = d:num("start_frame"), d:num("end_frame")
end
return e
end
-- an f-curve as Blender's API shows it: { data_path, bone?, path, array_index, extrapolation, keys, modifiers }, and
-- its keys' frame span
function Anim.fcurve(f: Blend.File, fc: Blend.View): ({ [string]: any }, number, number)
local lo: number, hi: number = math.huge, -math.huge
local path = fc:cstring("rna_path") or ""
local kind, who, rest = Anim.split(path)
local keys: { { [string]: any } } = {}
for _, b in fc:array("bezt", "BezTriple") do
local v = b:vec("vec")
if v and #v >= 9 then
local x: number = v[4]
local k: { [string]: any } = { co = { x, v[5] }, handle_left = { v[1], v[2] }, handle_right = { v[7], v[8] } }
k.interpolation = INTERPOLATION[b:num("ipo") or 2] or "BEZIER"
k.easing = EASING[b:num("easing") or 0] or "AUTO"
k.handle_left_type, k.handle_right_type = HANDLE[b:num("h1") or 0], HANDLE[b:num("h2") or 0]
k.back, k.amplitude, k.period = b:num("back") or 1.70158, b:num("amplitude") or 0.8, b:num("period") or 4.1
table.insert(keys, k)
lo, hi = math.min(lo, x), math.max(hi, x)
end
end
if #keys == 0 then
for _, p in fc:array("fpt", "FPoint") do
local v = p:vec("vec")
if v and #v >= 2 then
local x: number = v[1]
local k: { [string]: any } = { co = { x, v[2] } }
k.interpolation = "LINEAR"
table.insert(keys, k)
lo, hi = math.min(lo, x), math.max(hi, x)
end
end
end
local entry: { [string]: any } = { data_path = path, path = if kind == "pose.bones" then rest else path, keys = keys }
entry.bone = if kind == "pose.bones" then who else nil
entry.array_index = fc:num("array_index") or 0
entry.extrapolation = if (fc:num("extend") or 0) == 1 then "LINEAR" else "CONSTANT"
local mods = {}
for _, m in fc:list("modifiers", "FModifier") do
table.insert(mods, modifier(f, m))
end
entry.modifiers = mods
return entry, lo, hi
end
-- an action as Blender's API shows it: frame_range (the manual range, else the keys' span, at least one frame) and
-- every f-curve with its keyframe points
function Anim.raw(f: Blend.File, act: Blend.View): { [string]: any }
local curves: { { [string]: any } } = {}
local lo: number, hi: number = math.huge, -math.huge
for _, fc in fcurves(f, act, nil) do
local entry, a, b = Anim.fcurve(f, fc)
lo, hi = math.min(lo, a), math.max(hi, b)
table.insert(curves, entry)
end
if bit32.band(act:num("flag") or 0, ACT_FRAME_RANGE) ~= 0 and act:has("frame_start") then
lo = act:num("frame_start") or 0
hi = act:num("frame_end") or 0
elseif lo > hi then
lo, hi = 0, 0
end
if hi <= lo then
hi = lo + 1
end
return { frame_range = { lo, hi }, curves = curves }
end
-- pre-2.5 IPO curves (Object.ipo / Key.ipo): the curve's adrcode picks the channel; object rotations are in units of
-- 10 degrees; the interpolation and extrapolation (0 constant, 1 linear; cyclic ones as constant) are per curve
local OB_ADR: { [number]: { any } } = {
@@ -332,11 +497,30 @@ function Anim.range(curves: { Curve }): (number, number)
return lo, hi
end
-- RNA path 'kind["name"].rest': name ends at the first unescaped '"]', rest may hold more subscripts
function Anim.split(path: string): (string?, string?, string)
local kind, name, rest = string.match(path, '^(%w[%w_%.]-)%["(.-)"%]%.([%w_]+)$')
if kind and name and rest then
name = string.gsub(name, '\\(.)', "%1")
return kind, name, rest
local kind, pos = string.match(path, '^(%w[%w_%.]-)%["()')
if kind then
local at: number = pos :: any
local i = at
while true do
local q = string.find(path, '"', i, true)
if not q then
break
end
local bs = 0
while q - bs - 1 >= at and string.byte(path, q - bs - 1) == 92 do
bs += 1
end
if bs % 2 == 0 then
if string.sub(path, q + 1, q + 2) == "]." and q + 3 <= #path then
local name = string.gsub(string.sub(path, at, q - 1), '\\(.)', "%1")
return kind, name, string.sub(path, q + 3)
end
break
end
i = q + 1
end
end
return nil, nil, path
end
+534
View File
@@ -0,0 +1,534 @@
--!strict
-- model/blend/Armature: the rig data of an armature as Blender's Python API names it: bones (head / tail / roll in
-- armature space, deform, connect, wire), bone collections (4.x BoneCollection arrays and lists; before 4.0 the layers
-- and bone groups converted as Blender 4.0's versioning does), bone colours (BoneColor; bone group colours before 4.0),
-- pose bones (custom shapes, locks, rotation mode, IK settings) and constraint stacks (bConstraint and the data structs
-- of IK, copy rotation / location / scale / transforms, damped track, limit rotation / location / scale, child of,
-- action, transform, stretch to, armature, floor, limit distance, track to, locked track; the common fields for the
-- rest), bone inheritance and b-bone settings, the stored pose basis. Flags from DNA_armature_types.h,
-- DNA_action_types.h, DNA_constraint_types.h.
local Blend = require("@rosetta/containers/Blend")
local Armature = {}
export type Target = number | string -- a scene node index, or the object's name when it is not in the scene
export type Resolve = (ob: Blend.View?) -> Target?
export type Color = { palette: string, normal: { number }?, select: { number }?, active: { number }? }
-- Blender's default theme (userdef_default_theme.c): bone colour sets THEME01..THEME20 as normal, select, active
local THEME = {
{ 0x9a0000, 0xbd1111, 0xf70a0a }, { 0xf74018, 0xf66913, 0xfa9900 }, { 0x1e9109, 0x59b70b, 0x83ef1d },
{ 0x0a3694, 0x3667df, 0x5ec1ef }, { 0xa9294e, 0xc1416a, 0xf05d91 }, { 0x430c78, 0x543aa3, 0x8764d5 },
{ 0x24785a, 0x3c9579, 0x6fb6ab }, { 0x4b707c, 0x6a8691, 0x9bc2cd }, { 0xf4c90c, 0xeec236, 0xf3ff00 },
{ 0x1e2024, 0x484c56, 0xffffff }, { 0x6f2f6a, 0x9845be, 0xd330d6 }, { 0x6c8e22, 0x7fb022, 0xbbef5b },
{ 0x8d8d8d, 0xb0b0b0, 0xdedede }, { 0x834326, 0x8b5811, 0xbd6a11 }, { 0x08310e, 0x1c430b, 0x34622b },
{ 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 },
}
local function rgb(hex: number): { number }
return { bit32.rshift(hex, 16) / 255, bit32.band(bit32.rshift(hex, 8), 255) / 255, bit32.band(hex, 255) / 255 }
end
function Armature.colorSets(): { { normal: { number }, select: { number }, active: { number } } }
local out = {}
for i, s in THEME do
out[i] = { normal = rgb(s[1]), select = rgb(s[2]), active = rgb(s[3]) }
end
return out
end
local ROTMODE: { [number]: string } = { [0] = "QUATERNION", [1] = "XYZ", [2] = "XZY", [3] = "YXZ", [4] = "YZX", [5] = "ZXY", [6] = "ZYX", [-1] = "AXIS_ANGLE" }
local SPACE: { [number]: string } = { [0] = "WORLD", [1] = "LOCAL", [2] = "POSE", [3] = "LOCAL_WITH_PARENT", [5] = "CUSTOM", [6] = "LOCAL_OWNER_ORIENT" }
local EULER_ORDER: { [number]: string } = { [0] = "AUTO", [1] = "XYZ", [2] = "XZY", [3] = "YXZ", [4] = "YZX", [5] = "ZXY", [6] = "ZYX" }
local TRACK: { [number]: string } = { [0] = "TRACK_X", [1] = "TRACK_Y", [2] = "TRACK_Z", [3] = "TRACK_NEGATIVE_X", [4] = "TRACK_NEGATIVE_Y", [5] = "TRACK_NEGATIVE_Z" }
local ROT_MIX: { [number]: string } = { [0] = "REPLACE", [1] = "OFFSET", [2] = "ADD", [3] = "BEFORE", [4] = "AFTER" }
local TRANS_MIX: { [number]: string } = { [0] = "REPLACE", [1] = "BEFORE", [2] = "AFTER", [3] = "BEFORE_FULL", [4] = "BEFORE_SPLIT", [5] = "AFTER_FULL", [6] = "AFTER_SPLIT" }
local TYPE: { [number]: string } = {
[1] = "CHILD_OF", [2] = "TRACK_TO", [3] = "IK", [4] = "FOLLOW_PATH", [5] = "LIMIT_ROTATION", [6] = "LIMIT_LOCATION",
[7] = "LIMIT_SCALE", [8] = "COPY_ROTATION", [9] = "COPY_LOCATION", [10] = "COPY_SCALE", [11] = "PYTHON", [12] = "ACTION",
[13] = "LOCKED_TRACK", [14] = "LIMIT_DISTANCE", [15] = "STRETCH_TO", [16] = "FLOOR", [17] = "RIGID_BODY_JOINT",
[18] = "CLAMP_TO", [19] = "TRANSFORM", [20] = "SHRINKWRAP", [21] = "DAMPED_TRACK", [22] = "SPLINE_IK",
[23] = "COPY_TRANSFORMS", [24] = "MAINTAIN_VOLUME", [25] = "PIVOT", [26] = "FOLLOW_TRACK", [27] = "CAMERA_SOLVER",
[28] = "OBJECT_SOLVER", [29] = "TRANSFORM_CACHE", [30] = "ARMATURE", [31] = "GEOMETRY_ATTRIBUTE",
}
-- constraint types with a head_tail (bConstraint.headtail) in Blender's API
local HEAD_TAIL: { [string]: boolean } = {
COPY_LOCATION = true, COPY_TRANSFORMS = true, DAMPED_TRACK = true, TRACK_TO = true, LOCKED_TRACK = true,
STRETCH_TO = true, LIMIT_DISTANCE = true,
}
local CONSTRAINT_OFF, CONSTRAINT_BBONE_SHAPE = 0x200, 0x400
local BONE_CONNECTED, BONE_HIDDEN_P, BONE_NO_DEFORM, BONE_DRAWWIRE = 0x10, 0x40, 0x1000, 0x20000
local PCHAN_DRAW_NO_CUSTOM_BONE_SIZE = 1
-- bPoseChannel.protectflag (OB_LOCK_*) and ikflag (BONE_IK_*)
local LOCK_LOC, LOCK_ROT, LOCK_SCALE, LOCK_ROTW, LOCK_ROT4D = { 1, 2, 4 }, { 8, 16, 32 }, { 64, 128, 256 }, 512, 1024
local IK_NO_DOF, IK_LIMIT = { 1, 2, 4 }, { 8, 16, 32 }
local AXES = { "x", "y", "z" }
local XYZ: { [number]: string } = { [0] = "X", [1] = "Y", [2] = "Z" }
-- bActionConstraint.type, .mix_mode
local ACTION_CHANNEL: { [number]: string } = {
[0] = "ROTATION_X", [1] = "ROTATION_Y", [2] = "ROTATION_Z", [10] = "SCALE_X", [11] = "SCALE_Y", [12] = "SCALE_Z",
[20] = "LOCATION_X", [21] = "LOCATION_Y", [22] = "LOCATION_Z",
}
local ACTION_MIX: { [number]: string } = { [0] = "AFTER_FULL", [1] = "AFTER", [2] = "BEFORE", [3] = "BEFORE_FULL", [4] = "BEFORE_SPLIT", [5] = "AFTER_SPLIT" }
local MAP: { [number]: string } = { [0] = "LOCATION", [1] = "ROTATION", [2] = "SCALE" }
-- the driver target rotation modes (DTAR_ROTMODE_*)
local FROM_ROT: { [number]: string } = {
[0] = "AUTO", [1] = "XYZ", [2] = "XZY", [3] = "YXZ", [4] = "YZX", [5] = "ZXY", [6] = "ZYX", [7] = "QUATERNION",
[8] = "SWING_TWIST_X", [9] = "SWING_TWIST_Y", [10] = "SWING_TWIST_Z",
}
local MIX_LOC: { [number]: string } = { [0] = "ADD", [1] = "REPLACE" }
local MIX_ROT: { [number]: string } = { [0] = "ADD", [1] = "REPLACE", [2] = "BEFORE", [3] = "AFTER" }
local MIX_SCALE: { [number]: string } = { [0] = "REPLACE", [1] = "MULTIPLY" }
local VOLUME: { [number]: string } = { [0] = "VOLUME_XZX", [1] = "VOLUME_X", [2] = "VOLUME_Z", [3] = "NO_VOLUME" }
local KEEP_AXIS: { [number]: string } = { [0] = "PLANE_X", [1] = "SWING_Y", [2] = "PLANE_Z" }
local FLOOR: { [number]: string } = { [0] = "FLOOR_X", [1] = "FLOOR_Y", [2] = "FLOOR_Z", [3] = "FLOOR_NEGATIVE_X", [4] = "FLOOR_NEGATIVE_Y", [5] = "FLOOR_NEGATIVE_Z" }
local DIST_MODE: { [number]: string } = { [0] = "LIMITDIST_INSIDE", [1] = "LIMITDIST_OUTSIDE", [2] = "LIMITDIST_ONSURFACE" }
local UP: { [number]: string } = { [0] = "UP_X", [1] = "UP_Y", [2] = "UP_Z" }
local LOCK: { [number]: string } = { [0] = "LOCK_X", [1] = "LOCK_Y", [2] = "LOCK_Z" }
-- Bone.inherit_scale_mode, bbone_prev_type / bbone_next_type, bbone_mapping_mode
local INHERIT_SCALE: { [number]: string } = { [0] = "FULL", [1] = "FIX_SHEAR", [2] = "AVERAGE", [3] = "NONE", [4] = "NONE_LEGACY", [5] = "ALIGNED" }
local HANDLE_TYPE: { [number]: string } = { [0] = "AUTO", [1] = "ABSOLUTE", [2] = "RELATIVE", [3] = "TANGENT" }
local MAPPING: { [number]: string } = { [0] = "STRAIGHT", [1] = "CURVED" }
local BONE_HINGE, BONE_NO_SCALE, BONE_NO_LOCAL_LOCATION, BONE_RELATIVE_PARENTING, BONE_ADD_PARENT_END_ROLL = 0x200, 0x8000, 0x400000, 0x800000, 0x1000000
local function bit(v: number?, mask: number): boolean
return bit32.band(v or 0, mask) ~= 0
end
local function bits(v: number?, masks: { number }): { boolean }
return { bit(v, masks[1]), bit(v, masks[2]), bit(v, masks[3]) }
end
local function vec3(v: Blend.View, name: string, fallback: { number }?): { number }?
local x = v:vec(name)
if x and #x >= 3 then
return { x[1], x[2], x[3] }
end
return fallback and table.clone(fallback)
end
local function text(v: Blend.View, name: string): string?
local s = v:str(name)
return if s and s ~= "" then s else nil
end
-- ThemeWireColor: char solid[4], select[4], active[4] (sRGB bytes)
local function wire(v: Blend.View?): { [string]: { number } }?
if not v then
return nil
end
local out: { [string]: { number } } = {}
for _, pair in { { "normal", "solid" }, { "select", "select" }, { "active", "active" } } do
local key, field = pair[1], pair[2]
local fld = v.struct.byName[field]
local o = fld and v.offset + fld.offset
if not o or o + 3 > buffer.len(v.file.buf) then
return nil
end
local b = v.file.buf
out[key] = { buffer.readu8(b, o) / 255, buffer.readu8(b, o + 1) / 255, buffer.readu8(b, o + 2) / 255 }
end
return out
end
-- palette: 0 default, 1..20 the theme sets, -1 custom (BoneColor.palette_index, bActionGroup.customCol); the colours
-- are the custom ones, or the default theme's set
local function color(index: number?, custom: Blend.View?): Color?
if not index or index == 0 then
return nil
end
local c: Color = { palette = if index < 0 then "CUSTOM" else string.format("THEME%02d", index) }
local w = if index < 0 then wire(custom) else nil
if w then
c.normal, c.select, c.active = w.normal, w.select, w.active
elseif index > 0 and THEME[index] then
local s = THEME[index]
c.normal, c.select, c.active = rgb(s[1]), rgb(s[2]), rgb(s[3])
end
return c
end
local function boneColor(v: Blend.View): Color?
local bc = v:sub("color")
if not bc then
return nil
end
return color(bc:num("palette_index"), bc:sub("custom"))
end
-- ------------------------------------------------------------------------------------------------ bones
export type Collections = {
list: { { name: string, visible: boolean, parent: string? } },
byBone: { [string]: { string } }, -- bone name -> its collections, in collection order
}
-- 4.1+: collection_array with child_index / child_count; 4.0: the collections list; before 4.0 the used layers
-- ("Layer N", hidden when the layer is off) and then the bone groups (hidden), as Blender's 4.0 versioning converts them
function Armature.collections(arm: Blend.View, bones: { Blend.View }, pose: Blend.View?): Collections
local out: Collections = { list = {}, byBone = {} }
local byAddr: { [any]: string } = {}
for _, b in bones do
if b.block then
byAddr[b.block.addr] = b:str("name") or ""
end
end
local function add(name: string, members: { string })
for _, m in members do
local l = out.byBone[m] or {}
out.byBone[m] = l
table.insert(l, name)
end
end
local VISIBLE = 1
local array = arm:has("collection_array") and arm:pointers("collection_array", arm:num("collection_array_num") or 0) or {}
local cols: { Blend.View } = {}
if #array > 0 then
for _, addr in array do
local blk = addr and Blend.resolve(arm.file, addr, arm.block)
local v = blk and Blend.struct(arm.file, blk, 0, "BoneCollection")
if v then
table.insert(cols, v)
end
end
elseif arm:has("collections") then
cols = arm:list("collections", "BoneCollection")
end
if #cols > 0 then
local parent: { [number]: string } = {}
for i, c in cols do
local first, n = c:num("child_index") or 0, c:num("child_count") or 0
for k = first + 1, math.min(first + n, #cols) do
parent[k] = c:str("name")
end
local _ = i
end
for i, c in cols do
local name = c:str("name") or ""
table.insert(out.list, { name = name, visible = bit(c:num("flags"), VISIBLE), parent = parent[i] })
local members = {}
for _, m in c:list("bones", "BoneCollectionMember") do
local n = byAddr[m:ptr("bone")]
if n then
table.insert(members, n)
end
end
add(name, members)
end
return out
end
local used, shown = arm:num("layer_used"), arm:num("layer")
if used then
for layer = 0, 31 do
local mask = bit32.lshift(1, layer)
if bit(used, mask) then
local name = "Layer " .. (layer + 1)
table.insert(out.list, { name = name, visible = bit(shown, mask) })
local members = {}
for _, b in bones do
if bit(b:num("layer"), mask) then
table.insert(members, b:str("name") or "")
end
end
add(name, members)
end
end
end
if pose then
local groups = pose:list("agroups", "bActionGroup")
local members: { [number]: { string } } = {}
for _, pc in pose:list("chanbase", "bPoseChannel") do
local g = pc:num("agrp_index") or 0
if g > 0 and groups[g] then
members[g] = members[g] or {}
table.insert(members[g], pc:str("name") or "")
end
end
for g, grp in groups do
local name = grp:str("name") or ""
table.insert(out.list, { name = name, visible = false })
add(name, members[g] or {})
end
end
return out
end
-- a Bone's own fields: head_local / tail_local / roll in armature space (the roll is already in arm_mat, the rest
-- matrix); color from the Bone (4.x) or from the bone group of its pose channel (before 4.0)
function Armature.bone(bone: Blend.View, pc: Blend.View?, pose: Blend.View?): { [string]: any }
local flag = bone:num("flag") or 0
local e: { [string]: any } = {
deform = not bit(flag, BONE_NO_DEFORM),
use_connect = bit(flag, BONE_CONNECTED),
show_wire = bit(flag, BONE_DRAWWIRE),
hide = bit(flag, BONE_HIDDEN_P),
head_local = vec3(bone, "arm_head"),
tail_local = vec3(bone, "arm_tail"),
roll = bone:num("arm_roll"),
use_inherit_rotation = not bit(flag, BONE_HINGE),
use_local_location = not bit(flag, BONE_NO_LOCAL_LOCATION),
use_relative_parent = bit(flag, BONE_RELATIVE_PARENTING),
}
local ism = bone:num("inherit_scale_mode")
e.inherit_scale = if ism then INHERIT_SCALE[ism] else (if bit(flag, BONE_NO_SCALE) then "NONE_LEGACY" else "FULL") -- BONE_NO_SCALE before 2.81
e.bbone_segments = bone:num("segments") or 1
e.bbone_x, e.bbone_z = bone:num("xwidth"), bone:num("zwidth")
e.bbone_easein, e.bbone_easeout = bone:num("ease1") or 1, bone:num("ease2") or 1
e.bbone_rollin, e.bbone_rollout = bone:num("roll1") or 0, bone:num("roll2") or 0
e.bbone_curveinx, e.bbone_curveinz = bone:num("curveInX") or 0, bone:num("curveInY") or 0 -- curveInY is the API's z
e.bbone_curveoutx, e.bbone_curveoutz = bone:num("curveOutX") or 0, bone:num("curveOutY") or 0
for _, side in { "in", "out" } do
local cap = if side == "in" then "In" else "Out"
local v = vec3(bone, "scale_" .. side)
if not v then
-- before 3.0: scaleIn (x) and scale_in_y (z); before 2.8 one value for both
local x = bone:num("scale" .. cap) or 1
v = { x, 1, bone:num("scale_" .. side .. "_y") or x }
end
e["bbone_scale" .. side] = v
end
e.bbone_handle_type_start = HANDLE_TYPE[bone:num("bbone_prev_type") or 0]
e.bbone_handle_type_end = HANDLE_TYPE[bone:num("bbone_next_type") or 0]
local prev, nxt = bone:deref("bbone_prev", 0, "Bone"), bone:deref("bbone_next", 0, "Bone")
e.bbone_custom_handle_start = if prev then prev:str("name") else nil
e.bbone_custom_handle_end = if nxt then nxt:str("name") else nil
e.use_endroll_as_inroll = if bone:has("bbone_flag") then bit(bone:num("bbone_flag"), 1) else bit(flag, BONE_ADD_PARENT_END_ROLL)
e.bbone_mapping_mode = MAPPING[bone:num("bbone_mapping_mode") or 0]
if bone:has("color") then
e.color = boneColor(bone)
elseif pc and pose then
local g = pc:num("agrp_index") or 0
local grp = if g > 0 then pose:list("agroups", "bActionGroup")[g] else nil
if grp then
e.color = color(grp:num("customCol"), grp:sub("cs"))
end
end
return e
end
-- ------------------------------------------------------------------------------------------------ constraints
local function constraintData(e: { [string]: any }, kind: string, d: Blend.View, resolve: Resolve)
local flag = d:num("flag") or 0
if kind == "IK" then
-- CONSTRAINT_IK_TIP / ROT / STRETCH / POS, NO_POS_X.. / NO_ROT_X..; type 0 copy pose, 1 distance
e.pole_target = resolve(d:deref("poletar", 0, "Object"))
e.pole_subtarget = text(d, "polesubtarget")
e.pole_angle = d:num("poleangle")
e.chain_count = d:num("rootbone")
e.iterations = d:num("iterations")
e.weight = d:num("weight")
e.orient_weight = d:num("orientweight")
e.use_tail = bit(flag, 1)
e.use_rotation = bit(flag, 2)
e.use_stretch = bit(flag, 16)
e.use_location = bit(flag, 32)
-- lock_* are the inverse of the NO_POS / NO_ROT bits, as Blender's API defines them
e.lock_location_x, e.lock_location_y, e.lock_location_z = not bit(flag, 256), not bit(flag, 512), not bit(flag, 1024)
e.lock_rotation_x, e.lock_rotation_y, e.lock_rotation_z = not bit(flag, 2048), not bit(flag, 4096), not bit(flag, 8192)
e.ik_type = if (d:num("type") or 0) == 1 then "DISTANCE" else "COPY_POSE"
e.distance = d:num("dist")
elseif kind == "COPY_ROTATION" then
-- ROTLIKE_X 1, Y 2, Z 4, X_INVERT 16, Y_INVERT 32, Z_INVERT 64, OFFSET 128 (mix_mode OFFSET before 2.82)
e.use_x, e.use_y, e.use_z = bit(flag, 1), bit(flag, 2), bit(flag, 4)
e.invert_x, e.invert_y, e.invert_z = bit(flag, 16), bit(flag, 32), bit(flag, 64)
e.euler_order = EULER_ORDER[d:num("euler_order") or 0]
local mix = d:num("mix_mode")
e.mix_mode = if mix then ROT_MIX[mix] else (if bit(flag, 128) then "OFFSET" else "REPLACE")
elseif kind == "COPY_LOCATION" then
-- LOCLIKE_X 1, Y 2, Z 4, X_INVERT 16, Y_INVERT 32, Z_INVERT 64, OFFSET 128
e.use_x, e.use_y, e.use_z = bit(flag, 1), bit(flag, 2), bit(flag, 4)
e.invert_x, e.invert_y, e.invert_z = bit(flag, 16), bit(flag, 32), bit(flag, 64)
e.use_offset = bit(flag, 128)
elseif kind == "COPY_SCALE" then
-- SIZELIKE_X 1, Y 2, Z 4, OFFSET 8, MULTIPLY 16 (use_add is its inverse), UNIFORM 32
e.use_x, e.use_y, e.use_z = bit(flag, 1), bit(flag, 2), bit(flag, 4)
e.use_offset = bit(flag, 8)
e.use_add = not bit(flag, 16)
e.use_make_uniform = bit(flag, 32)
e.power = d:num("power") or 1
elseif kind == "ACTION" then
-- flag: ACTCON_BONE_USE_OBJECT_ACTION 1, ACTCON_USE_EVAL_TIME 2
local act = d:deref("act", 0, "bAction")
e.action = if act then act:idName() else nil
e.transform_channel = ACTION_CHANNEL[d:num("type") or 20]
e.frame_start, e.frame_end = d:num("start") or 1, d:num("end") or 1
e.min, e.max = d:num("min") or 0, d:num("max") or 0
e.mix_mode = ACTION_MIX[d:num("mix_mode") or 0]
e.use_bone_object_action = bit(flag, 1)
e.use_eval_time = bit(flag, 2)
e.eval_time = d:num("eval_time") or 0
elseif kind == "TRANSFORM" then
e.map_from, e.map_to = MAP[d:num("from") or 0], MAP[d:num("to") or 0]
local map = d.struct.byName.map
for i, a in AXES do
local o = map and d.offset + map.offset + i - 1
e["map_to_" .. a .. "_from"] = XYZ[if o and o < buffer.len(d.file.buf) then buffer.readu8(d.file.buf, o) else i - 1]
end
e.use_motion_extrapolate = (d:num("expo") or 0) ~= 0
e.from_rotation_mode = FROM_ROT[d:num("from_rotation_mode") or 0]
e.to_euler_order = EULER_ORDER[d:num("to_euler_order") or 0]
e.mix_mode = MIX_LOC[d:num("mix_mode_loc") or 0]
e.mix_mode_rot = MIX_ROT[d:num("mix_mode_rot") or 0]
e.mix_mode_scale = MIX_SCALE[d:num("mix_mode_scale") or 0]
for _, side in { "from", "to" } do
for _, suffix in { "", "_rot", "_scale" } do
local lo, hi = d:vec(side .. "_min" .. suffix), d:vec(side .. "_max" .. suffix)
for i, a in AXES do
e[side .. "_min_" .. a .. suffix] = lo and lo[i] or 0
e[side .. "_max_" .. a .. suffix] = hi and hi[i] or 0
end
end
end
elseif kind == "STRETCH_TO" then
-- STRETCHTOCON_USE_BULGE_MIN 1, MAX 2
e.rest_length = d:num("orglength")
e.bulge = d:num("bulge")
e.volume = VOLUME[d:num("volmode") or 0]
e.keep_axis = KEEP_AXIS[d:num("plane") or 0]
e.use_bulge_min, e.use_bulge_max = bit(flag, 1), bit(flag, 2)
e.bulge_min, e.bulge_max, e.bulge_smooth = d:num("bulge_min"), d:num("bulge_max"), d:num("bulge_smooth")
elseif kind == "ARMATURE" then
-- CONSTRAINT_ARMATURE_QUATERNION 1, ENVELOPE 2, CUR_LOCATION 4
e.use_deform_preserve_volume, e.use_bone_envelopes, e.use_current_location = bit(flag, 1), bit(flag, 2), bit(flag, 4)
elseif kind == "FLOOR" then
-- flag: MINMAX_USEROT 4
e.floor_location = FLOOR[d:num("minmaxflag") or 2]
e.offset = d:num("offset") or 0
e.use_rotation = bit(flag, 4)
elseif kind == "LIMIT_DISTANCE" then
e.distance = d:num("dist")
e.limit_mode = DIST_MODE[d:num("mode") or 0]
elseif kind == "TRACK_TO" then
-- reserved1 the track axis, reserved2 the up axis; flags TARGET_Z_UP 1
e.track_axis = TRACK[d:num("reserved1") or 1]
e.up_axis = UP[d:num("reserved2") or 2]
e.use_target_z = bit(d:num("flags"), 1)
elseif kind == "LOCKED_TRACK" then
e.track_axis = TRACK[d:num("trackflag") or 1]
e.lock_axis = LOCK[d:num("lockflag") or 2]
elseif kind == "COPY_TRANSFORMS" then
e.mix_mode = TRANS_MIX[d:num("mix_mode") or 0]
e.remove_target_shear = bit(flag, 1)
elseif kind == "DAMPED_TRACK" then
e.track_axis = TRACK[d:num("trackflag") or 1]
elseif kind == "LIMIT_ROTATION" then
-- LIMIT_XROT 1, YROT 2, ZROT 4; flag2 LIMIT_TRANSFORM 2
for i, a in AXES do
e["use_limit_" .. a] = bit(flag, bit32.lshift(1, i - 1))
e["min_" .. a] = d:num(a .. "min")
e["max_" .. a] = d:num(a .. "max")
end
e.use_transform_limit = bit(d:num("flag2"), 2)
e.euler_order = EULER_ORDER[d:num("euler_order") or 0]
-- LIMIT_ROT_LEGACY 8; files before 4.2 keep the old behaviour (Blender's versioning sets it)
e.use_legacy_behavior = bit(flag, 8) or d.file.version < 402
elseif kind == "LIMIT_LOCATION" or kind == "LIMIT_SCALE" then
-- LIMIT_XMIN 1, XMAX 2, YMIN 4, YMAX 8, ZMIN 16, ZMAX 32; flag2 LIMIT_TRANSFORM 2
for i, a in AXES do
e["use_min_" .. a] = bit(flag, bit32.lshift(1, (i - 1) * 2))
e["use_max_" .. a] = bit(flag, bit32.lshift(2, (i - 1) * 2))
e["min_" .. a] = d:num(a .. "min")
e["max_" .. a] = d:num(a .. "max")
end
e.use_transform_limit = bit(d:num("flag2"), 2)
elseif kind == "CHILD_OF" then
-- CHILDOF_LOCX 1 .. SIZEZ 256, SET_INVERSE 512
for i, a in AXES do
e["use_location_" .. a] = bit(flag, bit32.lshift(1, i - 1))
e["use_rotation_" .. a] = bit(flag, bit32.lshift(8, i - 1))
e["use_scale_" .. a] = bit(flag, bit32.lshift(64, i - 1))
end
e.set_inverse_pending = bit(flag, 512)
local m = d:vec("invmat")
e.inverse_matrix = if m and #m == 16 then m else nil -- column-major
end
end
-- a constraint stack (ListBase of bConstraint) in evaluation order
function Armature.constraints(owner: Blend.View, resolve: Resolve): { { [string]: any } }
local out = {}
for _, c in owner:list("constraints", "bConstraint") do
local t = c:num("type") or 0
local kind = TYPE[t] or tostring(t)
local flag = c:num("flag") or 0
local e: { [string]: any } = {
type = kind,
name = c:str("name") or "",
influence = c:num("enforce") or 1,
mute = bit(flag, CONSTRAINT_OFF),
owner_space = SPACE[c:num("ownspace") or 0],
target_space = SPACE[c:num("tarspace") or 0],
}
if HEAD_TAIL[kind] then
e.head_tail = c:num("headtail") or 0
e.use_bbone_shape = bit(flag, CONSTRAINT_BBONE_SHAPE)
end
if e.owner_space == "CUSTOM" or e.target_space == "CUSTOM" then
e.space_object = resolve(c:deref("space_object", 0, "Object"))
e.space_subtarget = text(c, "space_subtarget")
end
local d = c:deref("data", 0)
if d then
if d:has("tar") then
e.target = resolve(d:deref("tar", 0, "Object"))
end
e.subtarget = text(d, "subtarget")
if d:has("targets") then
local targets = {}
for _, ct in d:list("targets", "bConstraintTarget") do
table.insert(targets, { target = resolve(ct:deref("tar", 0, "Object")), subtarget = text(ct, "subtarget"), weight = ct:num("weight") })
end
e.targets = targets
end
constraintData(e, kind, d, resolve)
end
table.insert(out, e)
end
return out
end
-- ------------------------------------------------------------------------------------------------ pose bones
-- a bPoseChannel's settings into e: constraint targets through resolve, the custom shape object through shape
function Armature.pose(e: { [string]: any }, pc: Blend.View, resolve: Resolve, shape: Resolve)
local protect = pc:num("protectflag") or 0
local ik = pc:num("ikflag") or 0
e.rotation_mode = ROTMODE[pc:num("rotmode") or 0] or "QUATERNION"
e.lock_location = bits(protect, LOCK_LOC)
e.lock_rotation = bits(protect, LOCK_ROT)
e.lock_rotation_w = bit(protect, LOCK_ROTW)
e.lock_rotations_4d = bit(protect, LOCK_ROT4D)
e.lock_scale = bits(protect, LOCK_SCALE)
local custom = pc:deref("custom", 0, "Object")
if custom then
e.custom_shape = shape(custom)
end
local tx = pc:deref("custom_tx", 0, "bPoseChannel")
e.custom_shape_transform = if tx then text(tx, "name") else nil
e.custom_shape_translation = vec3(pc, "custom_translation", { 0, 0, 0 })
e.custom_shape_rotation_euler = vec3(pc, "custom_rotation_euler", { 0, 0, 0 })
local s = pc:num("custom_scale") or 1 -- before 3.0: one uniform scale
e.custom_shape_scale_xyz = vec3(pc, "custom_scale_xyz", { s, s, s })
e.use_custom_shape_bone_size = not bit(pc:num("drawflag"), PCHAN_DRAW_NO_CUSTOM_BONE_SIZE)
e.custom_shape_wire_width = pc:num("custom_shape_wire_width")
e.ik_stretch = pc:num("ikstretch") or 0
local lo, hi, stiff = pc:vec("limitmin"), pc:vec("limitmax"), pc:vec("stiffness")
for i, a in AXES do
e["lock_ik_" .. a] = bit(ik, IK_NO_DOF[i])
e["use_ik_limit_" .. a] = bit(ik, IK_LIMIT[i])
e["ik_min_" .. a] = lo and lo[i] or -math.pi
e["ik_max_" .. a] = hi and hi[i] or math.pi
e["ik_stiffness_" .. a] = stiff and stiff[i] or 0
end
e.pose_color = if pc:has("color") then boneColor(pc) else nil
-- the stored basis (rotation_quaternion w, x, y, z; rotation_axis_angle angle, x, y, z)
e.location = vec3(pc, "loc", { 0, 0, 0 })
local q = pc:vec("quat")
e.rotation_quaternion = if q and #q >= 4 then { q[1], q[2], q[3], q[4] } else { 1, 0, 0, 0 }
e.rotation_euler = vec3(pc, "eul", { 0, 0, 0 })
local axis = vec3(pc, "rotAxis", { 0, 1, 0 }) :: { number }
e.rotation_axis_angle = { pc:num("rotAngle") or 0, axis[1], axis[2], axis[3] }
e.scale = vec3(pc, "size", nil) or vec3(pc, "scale", { 1, 1, 1 })
e.constraints = Armature.constraints(pc, resolve)
end
return Armature
+173
View File
@@ -0,0 +1,173 @@
--!strict
-- model/blend/Driver: drivers (AnimData.drivers: FCurves with a ChannelDriver, its DriverVars and DriverTargets) and
-- ID properties (IDProperty groups: custom properties) as data, in Blender's Python API names. Never evaluated.
-- Enums from DNA_anim_types.h and DNA_ID.h.
local Blend = require("@rosetta/containers/Blend")
local Anim = require("@rosetta/model/blend/Anim")
local Driver = {}
export type Resolve = (id: Blend.View?) -> (number | string)?
-- ChannelDriver.type; flag DRIVER_FLAG_USE_SELF 64
local TYPE: { [number]: string } = { [0] = "AVERAGE", [1] = "SCRIPTED", [2] = "SUM", [3] = "MIN", [4] = "MAX" }
local VAR_TYPE: { [number]: string } = { [0] = "SINGLE_PROP", [1] = "ROTATION_DIFF", [2] = "LOC_DIFF", [3] = "TRANSFORMS", [4] = "CONTEXT_PROP" }
-- DriverTarget.transChan, rotation_mode (DTAR_ROTMODE_*), context_property
local TRANSFORM: { [number]: string } = {
[0] = "LOC_X", [1] = "LOC_Y", [2] = "LOC_Z", [3] = "ROT_X", [4] = "ROT_Y", [5] = "ROT_Z", [6] = "SCALE_X",
[7] = "SCALE_Y", [8] = "SCALE_Z", [9] = "SCALE_AVG", [10] = "ROT_W",
}
local ROTATION_MODE: { [number]: string } = {
[0] = "AUTO", [1] = "XYZ", [2] = "XZY", [3] = "YXZ", [4] = "YZX", [5] = "ZXY", [6] = "ZYX", [7] = "QUATERNION",
[8] = "SWING_TWIST_X", [9] = "SWING_TWIST_Y", [10] = "SWING_TWIST_Z",
}
local CONTEXT: { [number]: string } = { [0] = "ACTIVE_SCENE", [1] = "ACTIVE_VIEW_LAYER" }
-- ID codes (two characters) to the API's id_type
local ID_TYPE: { [string]: string } = {
OB = "OBJECT", ME = "MESH", AR = "ARMATURE", KE = "KEY", MA = "MATERIAL", SC = "SCENE", WO = "WORLD", CA = "CAMERA",
LA = "LIGHT", TE = "TEXTURE", AC = "ACTION", GR = "COLLECTION", NT = "NODETREE", IM = "IMAGE", TX = "TEXT",
CU = "CURVE", LT = "LATTICE", MB = "META", SK = "SPEAKER", PA = "PARTICLE", LS = "LINESTYLE", GD = "GREASEPENCIL",
MC = "MOVIECLIP", MK = "MASK", PL = "PALETTE", CF = "CACHEFILE", WS = "WORKSPACE", LP = "LIGHT_PROBE", VO = "VOLUME",
PT = "POINTCLOUD", CV = "CURVES", GP = "GREASEPENCIL_V3", SO = "SOUND", VF = "FONT", BR = "BRUSH", LI = "LIBRARY",
WM = "WINDOWMANAGER", SN = "SCREEN",
}
local function bit(v: number?, mask: number): boolean
return bit32.band(v or 0, mask) ~= 0
end
local function idType(f: Blend.File, code: number?): string
if not code or code == 0 then
return "OBJECT"
end
local lo, hi = bit32.band(code, 255), bit32.band(bit32.rshift(code, 8), 255)
local a, b = if f.little then lo else hi, if f.little then hi else lo
local s = string.char(a, b)
return ID_TYPE[s] or s
end
-- a DriverTarget: id resolved to a node (objects in the scene) or the ID's name; flag DTAR_FLAG_LOCALSPACE 4,
-- DTAR_FLAG_LOCAL_CONSTS 8 (with LOCALSPACE: the API's LOCAL_SPACE, alone TRANSFORM_SPACE); options
-- DTAR_OPTION_USE_FALLBACK 1
local function target(f: Blend.File, t: Blend.View, resolve: Resolve): { [string]: any }
local flag = t:num("flag") or 0
local e: { [string]: any } = { id = resolve(t:deref("id", 0)), id_type = idType(f, t:num("idtype")) }
e.data_path = t:cstring("rna_path") or ""
e.bone_target = t:str("pchan_name") or ""
e.transform_type = TRANSFORM[t:num("transChan") or 0]
e.transform_space = if not bit(flag, 4) then "WORLD_SPACE" elseif bit(flag, 8) then "LOCAL_SPACE" else "TRANSFORM_SPACE"
e.rotation_mode = ROTATION_MODE[t:num("rotation_mode") or 0]
e.context_property = CONTEXT[t:num("context_property") or 0]
if t:has("fallback_value") then
e.use_fallback_value = bit(t:num("options"), 1)
e.fallback_value = t:num("fallback_value")
end
return e
end
-- the driver f-curves of an AnimData: Anim.fcurve's fields plus driver = { type, expression, use_self, variables }
function Driver.list(f: Blend.File, adt: Blend.View?, resolve: Resolve): { { [string]: any } }
local out = {}
if not adt then
return out
end
for _, fc in adt:list("drivers", "FCurve") do
local entry = Anim.fcurve(f, fc)
local d = fc:deref("driver", 0, "ChannelDriver")
if d then
local variables = {}
for _, v in d:list("variables", "DriverVar") do
local targets = {}
local list = v:get("targets")
local n = math.min(v:num("num_targets") or 1, if type(list) == "table" then #list else 0)
for k = 1, n do
table.insert(targets, target(f, list[k], resolve))
end
table.insert(variables, { name = v:str("name") or "", type = VAR_TYPE[v:num("type") or 0] or "SINGLE_PROP", targets = targets })
end
entry.driver = {
type = TYPE[d:num("type") or 0] or "AVERAGE",
expression = d:str("expression") or "",
use_self = bit(d:num("flag"), 64),
variables = variables,
}
end
table.insert(out, entry)
end
return out
end
-- ------------------------------------------------------------------------------------------------ ID properties
-- IDProperty.type: STRING 0, INT 1, FLOAT 2, ARRAY 5, GROUP 6, ID 7, DOUBLE 8, IDPARRAY 9, BOOLEAN 10
local function value(p: Blend.View, depth: number): any
local t = p:num("type") or -1
local f = p.file
local d = p:sub("data")
if not d or depth > 32 then
return nil
end
local valField = d.struct.byName.val
local valAt = valField and d.offset + valField.offset
if t == 1 then
return d:num("val")
elseif t == 10 then
return (d:num("val") or 0) ~= 0
elseif t == 2 then
return if valAt and valAt + 4 <= buffer.len(f.buf) then f.f32(f.buf, valAt) else nil
elseif t == 8 then
return if valAt and valAt + 8 <= buffer.len(f.buf) then f.f64(f.buf, valAt) else nil
elseif t == 0 then
local at, size = d:data("pointer")
if not at then
return ""
end
local s = buffer.readstring(f.buf, at, math.min(size, math.max(p:num("len") or size, 0)))
local z = string.find(s, "\0", 1, true)
return if z then string.sub(s, 1, z - 1) else s
elseif t == 5 then
local at, size = d:data("pointer")
local sub = p:num("subtype") or 1
local width = if sub == 8 then 8 elseif sub == 10 then 1 else 4
local n = math.min(p:num("len") or 0, size // width)
local out = table.create(n)
for k = 0, n - 1 do
local o = (at :: number) + k * width
out[k + 1] = if sub == 2 then f.f32(f.buf, o) elseif sub == 8 then f.f64(f.buf, o) elseif sub == 10 then buffer.readu8(f.buf, o) ~= 0 else f.i32(f.buf, o)
end
return out
elseif t == 6 then
local out = {}
for _, c in d:list("group", "IDProperty") do
local name = c:str("name")
if name then
out[name] = value(c, depth + 1)
end
end
return out
elseif t == 7 then
local id = d:deref("pointer", 0)
return if id then id:idName() else nil
elseif t == 9 then
local out = {}
for k, c in d:array("pointer", "IDProperty") do
out[k] = value(c, depth + 1)
end
return out
end
return nil
end
-- a properties group as { [name] = number | boolean | string | array | table } (the pre-3.0 "_RNA_UI" metadata left out)
function Driver.props(group: Blend.View?): { [string]: any }?
if not group or (group:num("type") or -1) ~= 6 then
return nil
end
local out = value(group, 0)
if type(out) ~= "table" then
return nil
end
out._RNA_UI = nil
return if next(out) ~= nil then out else nil
end
return Driver
+264 -41
View File
@@ -2,10 +2,13 @@
-- model/blend/Material: Blender materials to Scene PBR materials. With nodes: the Principled BSDF (the one feeding the
-- material output, else the first): Base Color, Metallic, Roughness, Alpha, Emission (Color) x Emission Strength
-- (KHR_materials_emissive_strength above 1, as Blender's glTF exporter writes it), images linked directly to Base
-- Color / Emission and through a Normal Map node to Normal (its Strength as the scale), a Separate RGB / Color node to
-- Roughness (G) and Metallic (B), UV Map nodes for the texCoord. Without nodes (or before 2.8 without a
-- Principled node): Material.r / g / b / alpha, metallic, roughness. Images: packed files as encoded bytes, external
-- ones as uris (with the bytes when opts.files / opts.resolve has them).
-- Color / Emission / Roughness / Metallic and through a Normal Map node to Normal (its Strength as the scale), a
-- Separate RGB / Color node to Roughness (G) and Metallic (B), UV Map nodes for the texCoord; links are followed
-- through reroutes, Mix / MixRGB (A then B), Hue-Saturation, Bright-Contrast, Gamma, Invert, RGB Curves, Color Ramp
-- and node groups; a linked input that reaches no image takes a neutral value (base colour 0.8 grey, Blender's
-- default; metallic 0, roughness 0.5) and is flagged. Without nodes (or before 2.8 without a Principled node):
-- Material.r / g / b / alpha, metallic, roughness. Images: packed files as encoded bytes, external ones as uris (with
-- the bytes when opts.files / opts.resolve has them); tiled (UDIM) images keep the <UDIM> token in the uri.
local Blend = require("@rosetta/containers/Blend")
local Types = require("@rosetta/Types")
@@ -71,6 +74,34 @@ local function texture(ctx: Ctx, img: Blend.View, sampler: Types.Sampler?): numb
end
end
local tex: Types.Texture = { name = name, sampler = sampler }
local tiles: { { [string]: any } }? = nil
if (img:num("source") or 0) == 6 then -- IMA_SRC_TILED
tiles = {}
for _, t in img:list("tiles", "ImageTile") do
local label = t:str("label")
table.insert(tiles :: any, { number = t:num("tile_number") or 1001, label = if label and label ~= "" then label else nil })
end
if #(tiles :: any) == 0 then
table.insert(tiles :: any, { number = 1001 })
end
if path and not string.find(path, "<UDIM>", 1, true) and not string.find(path, "<UVTILE>", 1, true) then
-- the tile number in the file name becomes the token, as Blender's versioning does for older files
local first = tostring((tiles :: any)[1].number)
local dir, file = string.match(path, "^(.-)([^/\\]*)$")
local a, b = nil, nil
local from = 1
while true do
local x, y = string.find(file or "", first, from, true)
if not x then
break
end
a, b, from = x, y, x + 1
end
if a and b and file then
path = (dir or "") .. string.sub(file, 1, a - 1) .. "<UDIM>" .. string.sub(file, b + 1)
end
end
end
if pf then
local blk = pf:target("data")
local size = pf:num("size") or 0
@@ -87,7 +118,8 @@ local function texture(ctx: Ctx, img: Blend.View, sampler: Types.Sampler?): numb
uri = string.gsub(uri, "\\", "/")
if not tex.data then
tex.uri = uri
local data = fetch(ctx, uri)
local first = if tiles then tostring(tiles[1].number) else nil
local data = fetch(ctx, if first then (string.gsub(string.gsub(uri, "<UDIM>", first), "<UVTILE>", "u1_v1")) else uri)
if data then
tex.data = data
tex.mime = sniffMime(data, 0, buffer.len(data), uri)
@@ -95,7 +127,12 @@ local function texture(ctx: Ctx, img: Blend.View, sampler: Types.Sampler?): numb
tex.mime = sniffMime(buffer.create(0), 0, 0, uri)
end
end
tex.extras = { blend = { filepath = path } }
tex.extras = { blend = { filepath = path, tiles = tiles } }
if tiles then
for _, t in tiles do
t.filename = (string.gsub(uri, "<UDIM>", tostring(t.number)))
end
end
end
if not tex.data and not tex.uri then
tex.extras = { blend = { generated = true } }
@@ -108,17 +145,22 @@ local function texture(ctx: Ctx, img: Blend.View, sampler: Types.Sampler?): numb
return idx
end
type Node = { view: Blend.View, idname: string, inputs: { [string]: Blend.View }, outputs: { [any]: string } }
type Graph = { nodes: { [any]: Node }, links: { [any]: { node: Node, socket: string } } } -- links by tosock addr
type Node = { view: Blend.View, idname: string, inputs: { [string]: Blend.View }, byId: { [string]: Blend.View }, first: Blend.View?, outputs: { [any]: string }, outIds: { [any]: string } }
type Link = { node: Node, socket: string, ident: string }
type Graph = { nodes: { [any]: Node }, links: { [any]: Link } } -- links by tosock addr
local function graph(tree: Blend.View): Graph
local g: Graph = { nodes = {}, links = {} }
for _, n in tree:list("nodes", "bNode") do
local node: Node = { view = n, idname = n:str("idname") or "", inputs = {}, outputs = {} }
local node: Node = { view = n, idname = n:str("idname") or "", inputs = {}, byId = {}, outputs = {}, outIds = {} }
for _, s in n:list("inputs", "bNodeSocket") do
local id = s:str("identifier") or s:str("name") or ""
local nm = s:str("name") or id
node.inputs[nm] = s
node.first = node.first or s
node.byId[id] = s
if node.inputs[nm] == nil then
node.inputs[nm] = s
end
if node.inputs[id] == nil then
node.inputs[id] = s
end
@@ -126,6 +168,7 @@ local function graph(tree: Blend.View): Graph
for _, s in n:list("outputs", "bNodeSocket") do
if s.block then
node.outputs[s.block.addr] = s:str("name") or ""
node.outIds[s.block.addr] = s:str("identifier") or s:str("name") or ""
end
end
if n.block then
@@ -136,7 +179,7 @@ local function graph(tree: Blend.View): Graph
local from, fs, to = l:ptr("fromnode"), l:ptr("fromsock"), l:ptr("tosock")
local fn = from and g.nodes[from]
if fn and to ~= nil and bit32.band(l:num("flag") or 0, 0x10) == 0 then
g.links[to] = { node = fn, socket = (fs and fn.outputs[fs]) or "" }
g.links[to] = { node = fn, socket = (fs and fn.outputs[fs]) or "", ident = (fs and fn.outIds[fs]) or "" }
end
end
return g
@@ -152,7 +195,7 @@ local function input(n: Node, ...: string): Blend.View?
return nil
end
local function link(g: Graph, s: Blend.View?): { node: Node, socket: string }?
local function link(g: Graph, s: Blend.View?): Link?
if not s or not s.block then
return nil
end
@@ -171,23 +214,87 @@ local function value(s: Blend.View?, kind: string): any
return v and v:num("value")
end
local function imageRef(ctx: Ctx, g: Graph, uvNames: any, s: Blend.View?, through: string?): (Types.TextureRef?, Node?)
-- pass-through nodes: the inputs (by identifier) that may lead to an image, in the order tried
local PASS: { [string]: { string } } = {
NodeReroute = { "Input" }, ShaderNodeMix = { "A_Color", "B_Color" }, ShaderNodeMixRGB = { "Color1", "Color2" },
ShaderNodeHueSaturation = { "Color" }, ShaderNodeBrightContrast = { "Color" }, ShaderNodeGamma = { "Color" },
ShaderNodeInvert = { "Color" }, ShaderNodeRGBCurve = { "Color" }, ShaderNodeValToRGB = { "Fac" },
}
type Hit = { node: Node, g: Graph, output: string }
type Frame = { node: Node, g: Graph }
local function groupGraph(n: Node): Graph?
local tree = n.view:deref("id", 0, "bNodeTree")
return if tree then graph(tree) else nil
end
-- the first image texture node a socket reaches through pass-through nodes and node groups (via: the nodes passed),
-- else the node it is linked to (reroutes skipped)
local function trace(g: Graph, s: Blend.View?, via: { string }, stack: { Frame }, depth: number): (Hit?, Node?)
local l = link(g, s)
if not l then
if not l or depth > 64 then
return nil, nil
end
local n = l.node
if through and n.idname == through then
local inner = input(n, "Color", "Image")
local ref, tn = imageRef(ctx, g, uvNames, inner, nil)
return ref, if ref then n else tn
end
if n.idname ~= "ShaderNodeTexImage" then
if n.idname == "ShaderNodeTexImage" then
return { node = n, g = g, output = l.socket }, n
elseif n.idname == "ShaderNodeGroup" then
local inner = groupGraph(n)
local out: Node? = nil
for _, x in if inner then inner.nodes else {} do
if x.idname == "NodeGroupOutput" and (out == nil or bit32.band(x.view:num("flag") or 0, 2) ~= 0) then
out = x
end
end
local sock = out and out.byId[l.ident]
if inner and sock then
local stack2 = table.clone(stack)
table.insert(stack2, { node = n, g = g })
local sub = {}
local hit = trace(inner, sock, sub, stack2, depth + 1)
if hit then
table.insert(via, n.idname)
table.move(sub, 1, #sub, #via + 1, via)
return hit, n
end
end
return nil, n
elseif n.idname == "NodeGroupInput" and #stack > 0 then
local top = stack[#stack]
local outer = top.node.byId[l.ident]
local stack2 = table.clone(stack)
table.remove(stack2)
if outer then
return trace(top.g, outer, via, stack2, depth + 1)
end
return nil, n
end
local ids = PASS[n.idname]
if ids then
for _, id in ids do
local sock = n.byId[id] or (if n.idname == "NodeReroute" then n.first else nil)
local sub = {}
local hit, last = trace(g, sock, sub, stack, depth + 1)
if hit then
table.insert(via, n.idname)
table.move(sub, 1, #sub, #via + 1, via)
return hit, n
end
if n.idname == "NodeReroute" then
return nil, last or n
end
end
end
return nil, n
end
-- the TextureRef of an image texture node (its sampler, its UV Map node's texCoord)
local function refOf(ctx: Ctx, uvNames: any, hit: Hit): Types.TextureRef?
local n, g = hit.node, hit.g
local img = n.view:deref("id", 0, "Image")
if not img then
return nil, n
return nil
end
local sampler: Types.Sampler = {}
local custom = false
@@ -207,7 +314,7 @@ local function imageRef(ctx: Ctx, g: Graph, uvNames: any, s: Blend.View?, throug
end
local t = texture(ctx, img, if custom then sampler else nil)
if not t then
return nil, n
return nil
end
local ref: Types.TextureRef = { texture = t }
local vec = link(g, input(n, "Vector"))
@@ -218,7 +325,31 @@ local function imageRef(ctx: Ctx, g: Graph, uvNames: any, s: Blend.View?, throug
ref.texCoord = uvNames[name]
end
end
return ref, n
return ref
end
local function imageRef(ctx: Ctx, g: Graph, uvNames: any, s: Blend.View?): (Types.TextureRef?, Node?, { string }, Hit?)
local via = {}
local hit, last = trace(g, s, via, {}, 0)
if not hit then
return nil, last, via, nil
end
return refOf(ctx, uvNames, hit), last, via, hit
end
-- the vertex colour layer a Vertex Color / Attribute node reads
local function vertexColor(n: Node?): string?
if not n then
return nil
end
if n.idname == "ShaderNodeVertexColor" then
local st = n.view:deref("storage", 0, "NodeShaderVertexColor")
return st and st:str("layer_name") or ""
elseif n.idname == "ShaderNodeAttribute" then
local st = n.view:deref("storage", 0, "NodeShaderAttribute")
return st and st:str("name") or ""
end
return nil
end
local function principled(g: Graph): Node?
@@ -282,47 +413,139 @@ function Material.get(ctx: Ctx, mv: Blend.View): number
end
m.metallic = value(input(bsdf, "Metallic"), "float") or m.metallic
m.roughness = value(input(bsdf, "Roughness"), "float") or m.roughness
local bref = imageRef(ctx, g, uvNames, input(bsdf, "Base Color"), nil)
local linked: { [string]: string } = {}
local via: { [string]: { string } } = {}
-- node names as Blender 3.4+ shows them (its versioning turns shader MixRGB nodes into Mix nodes)
local function api(idname: string): string
return if idname == "ShaderNodeMixRGB" and f.version < 304 then "ShaderNodeMix" else idname
end
local function resolve(key: string, sock: Blend.View?): (Types.TextureRef?, Node?, Hit?)
if not link(g :: Graph, sock) then
return nil, nil, nil
end
local ref, last, passed, hit = imageRef(ctx, g :: Graph, uvNames, sock)
if ref then
if #passed > 0 then
for i, x in passed do
passed[i] = api(x)
end
via[key] = passed
end
end
return ref, last, hit
end
local function unresolved(key: string, sock: Blend.View?)
local l = link(g :: Graph, sock)
if l then
local _, last = trace(g :: Graph, sock, {}, {}, 0) -- reroutes skipped
linked[key] = api((last or l.node).idname)
end
end
local baseSock = input(bsdf, "Base Color")
local bref, blast = resolve("baseColor", baseSock)
if bref then
m.baseColorTexture = bref
m.baseColor = { 1, 1, 1, alpha }
elseif link(g, baseSock) then
local layer = vertexColor(blast)
if layer then
extras.vertexColor = layer
m.baseColor = { 1, 1, 1, alpha }
else
m.baseColor = { 0.8, 0.8, 0.8, alpha } -- Blender's default base colour, never the linked socket's value
unresolved("baseColor", baseSock)
end
end
local aref = imageRef(ctx, g, uvNames, input(bsdf, "Alpha"), nil)
local alphaSock = input(bsdf, "Alpha")
local aref = resolve("alpha", alphaSock)
if aref and not m.baseColorTexture then
m.baseColorTexture = aref
elseif not aref and link(g, alphaSock) then
m.baseColor[4] = 1
unresolved("alpha", alphaSock)
end
local nref, nnode = imageRef(ctx, g, uvNames, input(bsdf, "Normal"), "ShaderNodeNormalMap")
if nref then
nref.scale = if nnode then value(nnode.inputs.Strength, "float") or 1 else 1
m.normalTexture = nref
local nl = link(g, input(bsdf, "Normal"))
if nl and nl.node.idname == "ShaderNodeNormalMap" then
local nref = resolve("normal", input(nl.node, "Color"))
if nref then
nref.scale = value(nl.node.inputs.Strength, "float") or 1
m.normalTexture = nref
else
unresolved("normal", input(bsdf, "Normal"))
end
elseif nl and nl.node.idname == "ShaderNodeBump" then
local href = resolve("bump", input(nl.node, "Height"))
if href then
extras.bumpTexture = href
extras.bumpStrength = value(input(nl.node, "Strength"), "float") or 1
extras.bumpDistance = value(input(nl.node, "Distance"), "float") or 1
else
unresolved("normal", input(bsdf, "Normal"))
end
elseif nl then
unresolved("normal", input(bsdf, "Normal"))
end
local rl = link(g, input(bsdf, "Roughness"))
local ml = link(g, input(bsdf, "Metallic"))
local sep = (rl and rl.node) or (ml and ml.node)
if sep and (sep.idname == "ShaderNodeSeparateRGB" or sep.idname == "ShaderNodeSeparateColor") then
local mref = imageRef(ctx, g, uvNames, input(sep, "Image", "Color"), nil)
if mref then
m.metallicRoughnessTexture = mref
if rl then
m.roughness = 1
local channelOf = { Red = "R", Green = "G", Blue = "B", R = "R", G = "G", B = "B", Alpha = "A", Color = "R", Fac = "R" }
local function scalar(key: string, sock: Blend.View?): boolean?
local l = link(g :: Graph, sock)
if not l then
return nil
end
local sep = l.node
if sep.idname == "ShaderNodeSeparateRGB" or sep.idname == "ShaderNodeSeparateColor" then
local ref = resolve(key, input(sep, "Image", "Color"))
if ref then
m.metallicRoughnessTexture = m.metallicRoughnessTexture or table.clone(ref)
local r = table.clone(ref) :: any
r.channel = channelOf[l.socket] or l.socket
extras[key .. "Texture"] = r
return true
end
if ml then
m.metallic = 1
else
local ref, _, hit = resolve(key, sock)
if ref and hit then
local r = ref :: any
r.channel = channelOf[hit.output] or hit.output
extras[key .. "Texture"] = r
return true
end
end
unresolved(key, sock)
return false
end
local rs = scalar("roughness", input(bsdf, "Roughness"))
if rs == true then
m.roughness = 1
elseif rs == false then
m.roughness = 0.5
end
local ms = scalar("metallic", input(bsdf, "Metallic"))
if ms == true then
m.metallic = 1
elseif ms == false then
m.metallic = 0
end
local es = input(bsdf, "Emission Color", "Emission")
local ecol = value(es, "rgba") or { 0, 0, 0, 1 }
local strength = value(input(bsdf, "Emission Strength"), "float") or 1
local eref = imageRef(ctx, g, uvNames, es, nil)
local eref = resolve("emissive", es)
if eref then
m.emissiveTexture = eref
ecol = { 1, 1, 1, 1 }
elseif link(g, es) then
ecol = { 0, 0, 0, 1 }
unresolved("emissive", es)
end
emissive(m, ecol, strength)
if not eref and m.emissive[1] == 0 and m.emissive[2] == 0 and m.emissive[3] == 0 then
m.emissive = { 0, 0, 0 }
end
if next(linked) ~= nil then
extras.linked = linked
end
if next(via) ~= nil then
extras.via = via
end
local alphaLinked = link(g, input(bsdf, "Alpha")) ~= nil
if alpha < 1 or alphaLinked then
local bm = mv:num("blend_method") or 0
+83 -30
View File
@@ -236,6 +236,75 @@ end
export type Limits = { maxVertices: number? }
-- edge count and per-edge readers (vertex 1, vertex 2, sharp): ".edge_verts" / "sharp_edge" attributes or MEdge
local function edgeReaders(f: Blend.File, me: Blend.View, layers: { Layer }): (number, ((number) -> number)?, ((number) -> number)?, ((number) -> boolean)?)
local ne = count(me, "totedge", "edges_num")
local ev = find(layers, "edge", "int2", ".edge_verts")
local se = find(layers, "edge", "bool", "sharp_edge")
local medge = find(layers, "edge", "MEdge") or legacy(f, me, "medge", "MEdge", "edge")
if ne == 0 then
return 0, nil, nil, nil
end
if ev then
local er = reader(f, ev)
local sr = if se then reader(f, se) else nil
return ne, function(i: number): number
return er(i, 0)
end, function(i: number): number
return er(i, 1)
end, function(i: number): boolean
return sr ~= nil and sr(i, 0) ~= 0
end
elseif medge then
local a, b, fl = fieldReader(f, medge, "v1"), fieldReader(f, medge, "v2"), fieldReader(f, medge, "flag")
if a and b then
local ser = if se then reader(f, se) else nil
return ne, function(i: number): number
return a(i, 0)
end, function(i: number): number
return b(i, 0)
end, function(i: number): boolean
if ser then
return ser(i, 0) ~= 0
end
return fl ~= nil and bit32.band(fl(i, 0), ME_SHARP) ~= 0
end
end
end
return ne, nil, nil, nil
end
-- edges no face uses, as u32 vertex pairs (rig widgets are usually edges only)
function Mesh.looseEdges(f: Blend.File, me: Blend.View, poly: Poly): buffer
local ne, v1, v2 = edgeReaders(f, me, poly.layers)
if not v1 or not v2 then
return buffer.create(0)
end
local nv = poly.nv
local used: { [number]: boolean } = {}
local cv, fs = poly.cornerVert, poly.faceStart
for fi = 0, poly.nf - 1 do
local s0, s1 = buffer.readu32(fs, fi * 4), buffer.readu32(fs, fi * 4 + 4)
for c = s0, s1 - 1 do
local a, b = buffer.readu32(cv, c * 4), buffer.readu32(cv, (if c + 1 < s1 then c + 1 else s0) * 4)
used[math.min(a, b) * nv + math.max(a, b)] = true
end
end
local out = {}
for i = 0, ne - 1 do
local a, b = v1(i), v2(i)
if a ~= b and a >= 0 and b >= 0 and a < nv and b < nv and not used[math.min(a, b) * nv + math.max(a, b)] then
table.insert(out, a)
table.insert(out, b)
end
end
local buf = buffer.create(#out * 4)
for k, v in out do
buffer.writeu32(buf, (k - 1) * 4, v)
end
return buf
end
function Mesh.read(f: Blend.File, me: Blend.View, limits: Limits?): (Poly?, string?)
local layers = Mesh.layers(f, me)
local nv = count(me, "totvert", "verts_num")
@@ -515,10 +584,6 @@ function Mesh.read(f: Blend.File, me: Blend.View, limits: Limits?): (Poly?, stri
poly.customNormals = d
end
-- sharp edges
local ne = count(me, "totedge", "edges_num")
local ev = find(layers, "edge", "int2", ".edge_verts")
local se = find(layers, "edge", "bool", "sharp_edge")
local medge = find(layers, "edge", "MEdge") or legacy(f, me, "medge", "MEdge", "edge")
local flags = me:num("flag") or 0
local smoothresh = me:num("smoothresh")
local autoSmooth = f.version < 401 and bit32.band(flags, ME_AUTOSMOOTH) ~= 0
@@ -526,27 +591,8 @@ function Mesh.read(f: Blend.File, me: Blend.View, limits: Limits?): (Poly?, stri
poly.autoSmooth = smoothresh or math.rad(30)
end
local useSharp = f.version >= 401 or autoSmooth
if useSharp and ne > 0 then
local v1, v2, sharp
if ev and se then
local er, sr = reader(f, ev), reader(f, se)
v1 = function(i: number): number return er(i, 0) end
v2 = function(i: number): number return er(i, 1) end
sharp = function(i: number): boolean return sr(i, 0) ~= 0 end
elseif medge then
local a, b, fl = fieldReader(f, medge, "v1"), fieldReader(f, medge, "v2"), fieldReader(f, medge, "flag")
if a and b and fl then
v1 = function(i: number): number return a(i, 0) end
v2 = function(i: number): number return b(i, 0) end
local ser = if se then reader(f, se) else nil
sharp = function(i: number): boolean
if ser then
return ser(i, 0) ~= 0
end
return bit32.band(fl(i, 0), ME_SHARP) ~= 0
end
end
end
if useSharp then
local ne, v1, v2, sharp = edgeReaders(f, me, layers)
if v1 and v2 and sharp then
for i = 0, ne - 1 do
if sharp(i) then
@@ -591,7 +637,7 @@ function Mesh.read(f: Blend.File, me: Blend.View, limits: Limits?): (Poly?, stri
end
-- shape keys: { name, value, relative (0-based), data: f32 x 3 per vertex } in file order, and the reference index
export type Shape = { name: string, value: number, relative: number, data: buffer, mute: boolean, min: number, max: number }
export type Shape = { name: string, value: number, relative: number, data: buffer, mute: boolean, min: number, max: number, vgroup: string? }
function Mesh.shapes(f: Blend.File, me: Blend.View, nv: number): ({ Shape }, number?, Blend.View?)
local key = me:deref("key", 0, "Key")
if not key then
@@ -601,6 +647,7 @@ function Mesh.shapes(f: Blend.File, me: Blend.View, nv: number): ({ Shape }, num
local refAddr = key:ptr("refkey")
local out: { Shape } = {}
local ref: number? = nil
local index = 0
for i, kb in blocks do
local blk = kb:target("data")
local d = buffer.create(nv * 12)
@@ -613,15 +660,21 @@ function Mesh.shapes(f: Blend.File, me: Blend.View, nv: number): ({ Shape }, num
end
end
end
if kb.block and kb.block.addr == refAddr then
local isRef = kb.block ~= nil and kb.block.addr == refAddr
if isRef then
ref = i
else
index += 1
end
local stored = kb:str("name")
-- unnamed in old files: named as Blender's 2.45 versioning does (Basis, Key 1, Key 2, ...)
local name: string = if stored and stored ~= "" then stored elseif isRef then "Basis" else "Key " .. index
table.insert(out, {
-- unnamed in old files: Key 0 (the basis), Key 1, ...
name = kb:str("name") or ("Key " .. (i - 1)), value = kb:num("curval") or 0, relative = kb:num("relative") or 0, data = d,
mute = bit32.band(kb:num("flag") or 0, 2) ~= 0,
name = name, value = kb:num("curval") or 0, relative = kb:num("relative") or 0, data = d,
mute = bit32.band(kb:num("flag") or 0, 1) ~= 0, -- KEYBLOCK_MUTE
min = kb:num("slidermin") or 0,
max = kb:num("slidermax") or 1,
vgroup = if kb:str("vgroup") ~= "" then kb:str("vgroup") else nil,
})
end
if ref == nil and #out > 0 then
+76 -18
View File
@@ -258,8 +258,80 @@ end
export type Built = { mesh: Types.Mesh, slots: { number }, vertexSource: { { number } } }
-- slots[k] = the scene material of slot k - 1 (or 0 for none); skin maps deform groups to joints
function Prim.build(poly: MeshT.Poly, slots: { number }, opts: Options?, skin: Skinning?, shapes: { MeshT.Shape }?, ref: number?): Built
-- morph targets of the output vertices (vsrc: their mesh vertices): each key minus its relative key, times the weight
-- of the key's vertex group, as Blender evaluates relative keys
local function targetDeltas(poly: MeshT.Poly, vsrc: { number }, shapes: { MeshT.Shape }, ref: number, groups: { string }?): { { [string]: Types.Accessor } }
local n = #vsrc
local targets: { { [string]: Types.Accessor } } = {}
for k, s in shapes do
if k ~= ref then
local rel = shapes[s.relative + 1] or shapes[ref]
local base = rel.data
local def: number? = nil
if s.vgroup and groups then
for gi, g in groups do
if g == s.vgroup then
def = gi - 1
end
end
end
local t = table.create(n * 3) :: { number }
for i = 1, n do
local v = vsrc[i]
local w: number = 1
if def then
w = 0
local list = poly.weights and poly.weights[v + 1] or {}
for q = 1, #list - 1, 2 do
if list[q] == def then
w = list[q + 1]
end
end
end
for c = 0, 2 do
t[(i - 1) * 3 + c + 1] = (readf32(s.data, (v * 3 + c) * 4) - readf32(base, (v * 3 + c) * 4)) * w
end
end
table.insert(targets, { POSITION = accessor(t, 3) } :: { [string]: Types.Accessor })
end
end
return targets
end
-- a "lines" primitive of the given edges (u32 vertex pairs), with the morph targets the face primitives have
function Prim.lines(poly: MeshT.Poly, edges: buffer, shapes: { MeshT.Shape }?, ref: number?, groups: { string }?): Types.Primitive?
local ne = buffer.len(edges) // 8
if ne == 0 then
return nil
end
local out: { [number]: number } = {}
local vsrc: { number } = {}
local I = buffer.create(ne * 8)
for k = 0, ne * 2 - 1 do
local v = readu32(edges, k * 4)
local o = out[v]
if not o then
o = #vsrc
out[v] = o
table.insert(vsrc, v)
end
writeu32(I, k * 4, o)
end
local n = #vsrc
local P = buffer.create(n * 12)
for i = 1, n do
buffer.copy(P, (i - 1) * 12, poly.pos, vsrc[i] * 12, 12)
end
local prim: Types.Primitive = { attributes = { POSITION = Scene.accessor(P, "f32", 3, n) }, indices = Scene.accessor(I, "u32", 1, ne * 2), mode = "lines" }
if shapes and ref and #shapes > 1 then
prim.targets = targetDeltas(poly, vsrc, shapes, ref, groups)
end
return prim
end
-- slots[k] = the scene material of slot k - 1 (or 0 for none); skin maps deform groups to joints; vgroups names the
-- vertex groups (def_nr + 1) for shape keys limited to one
function Prim.build(poly: MeshT.Poly, slots: { number }, opts: Options?, skin: Skinning?, shapes: { MeshT.Shape }?, ref: number?, vgroups: { string }?): Built
local triangulateOn = not (opts and opts.triangulate == false)
local flipV = not (opts and opts.flipV == false)
local withNormals = not (opts and opts.normals == false)
@@ -409,21 +481,7 @@ function Prim.build(poly: MeshT.Poly, slots: { number }, opts: Options?, skin: S
prim.material = mat
end
if shapes and ref and #shapes > 1 then
local base = shapes[ref].data
local targets: { { [string]: Types.Accessor } } = {}
for k, s in shapes do
if k ~= ref then
local t = table.create(n * 3) :: { number }
for i = 1, n do
local v = vsrc[i]
for c = 0, 2 do
t[(i - 1) * 3 + c + 1] = readf32(s.data, (v * 3 + c) * 4) - readf32(base, (v * 3 + c) * 4)
end
end
table.insert(targets, { POSITION = accessor(t, 3) } :: { [string]: Types.Accessor })
end
end
prim.targets = targets
prim.targets = targetDeltas(poly, vsrc, shapes, ref, vgroups)
end
table.insert(mesh.primitives, prim)
table.insert(sources, vsrc)
@@ -432,7 +490,7 @@ function Prim.build(poly: MeshT.Poly, slots: { number }, opts: Options?, skin: S
local w = {}
for k, s in shapes do
if k ~= ref then
table.insert(w, s.value)
table.insert(w, if s.mute then 0 else s.value) -- Blender skips muted keys
end
end
mesh.weights = w
+336 -23
View File
@@ -1,10 +1,10 @@
--!strict
-- model/blend/Read: a parsed .blend (containers/Blend) to a Scene: the current scene's objects (from its collections,
-- or Base list before 2.8) with their transforms (euler orders, quaternion, axis angle, delta transforms, parent
-- inverse; bone parents), meshes (model/blend/Mesh, model/blend/Prim), materials (Principled BSDF node or the legacy
-- colour), images (packed bytes or external uris), cameras, lights (watts to candela / lux as Blender's glTF exporter
-- does: 683 lm/W, / 4 pi for point and spot), armatures (bones to joint nodes with the saved pose), skins, shape keys
-- and actions sampled into channels.
-- inverse; bone, vertex and triangle parents), meshes (model/blend/Mesh, model/blend/Prim), materials (Principled
-- BSDF node or the legacy colour), images (packed bytes or external uris), cameras, lights (watts to candela / lux as Blender's glTF exporter
-- does: 683 lm/W, / 4 pi for point and spot), armatures (bones to joint nodes with the saved pose, rig data through
-- model/blend/Armature), skins, shape keys and actions sampled into channels.
local Blend = require("@rosetta/containers/Blend")
local Types = require("@rosetta/Types")
local Mat4 = require("@rosetta/codecs/model/Mat4")
@@ -13,6 +13,8 @@ local Mesh = require("@rosetta/model/blend/Mesh")
local Prim = require("@rosetta/model/blend/Prim")
local Anim = require("@rosetta/model/blend/Anim")
local Material = require("@rosetta/model/blend/Material")
local Armature = require("@rosetta/model/blend/Armature")
local Driver = require("@rosetta/model/blend/Driver")
local Read = {}
@@ -22,17 +24,19 @@ type M4 = { number }
export type Options = {
triangulate: boolean?,
flipV: boolean?,
looseEdges: boolean?, -- edges outside faces as "lines" primitives (default false; always for custom shape widgets)
collections: boolean?, -- collections as nodes (default true)
scene: string?, -- the scene to read (default: the file's current scene)
sampleStep: number?, -- frames between animation samples (default 1)
animations: boolean?, -- default true
rawActions: boolean?, -- every action's f-curves in meta.blend.actions (default true)
resolve: ((uri: string) -> any)?,
files: { [string]: any }?,
maxVertices: number?,
}
local OB_EMPTY, OB_MESH, OB_LAMP, OB_CAMERA, OB_ARMATURE = 0, 1, 10, 11, 25
local PARSKEL, PARBONE = 4, 7
local PARSKEL, PARVERT1, PARVERT3, PARBONE = 4, 5, 6, 7
local LA_LOCAL, LA_SUN, LA_SPOT, LA_HEMI, LA_AREA = 0, 1, 2, 3, 4
local EULER = { [1] = "xyz", [2] = "xzy", [3] = "yxz", [4] = "yzx", [5] = "zxy", [6] = "zyx" }
local TYPE_NAME: { [number]: string } = {
@@ -172,6 +176,18 @@ local function mat4(v: Blend.View?, ...: string): M4?
end
-- ------------------------------------------------------------------------------------------------ scene
type ArmInfo = {
joints: { number },
names: { [string]: number },
rest: { M4 },
restLocal: { M4 },
bones: { Blend.View },
deform: { boolean },
node: number,
poseNames: { [string]: Blend.View },
arm: Blend.View,
pose: Blend.View?,
}
type Ctx = {
f: Blend.File,
scene: Types.Scene,
@@ -183,7 +199,9 @@ type Ctx = {
meshes: { [string]: number },
materials: { [any]: number },
textures: { [any]: number },
armatures: { [any]: { joints: { number }, names: { [string]: number }, rest: { M4 }, restLocal: { M4 }, bones: { Blend.View }, deform: { boolean }, node: number, poseNames: { [string]: Blend.View } } },
armatures: { [any]: ArmInfo },
widgets: { [any]: Blend.View }, -- custom shape objects by address
widgetOrder: { any },
prefix: { [number]: M4 }, -- node -> the matrix before its basis (parent inverse, bone tail offset)
props: { [number]: Props },
meta: { [string]: any },
@@ -230,7 +248,7 @@ local function armature(ctx: Ctx, ob: Blend.View, node: number)
end
end
end
local info = { joints = {}, names = {}, rest = {}, restLocal = {}, bones = {}, deform = {}, node = node, poseNames = poseNames }
local info: ArmInfo = { joints = {}, names = {}, rest = {}, restLocal = {}, bones = {}, deform = {}, node = node, poseNames = poseNames, arm = arm, pose = pose }
local function walk(list: { Blend.View }, parentJoint: number?, parentRest: M4?, depth: number)
if depth > 256 then
return
@@ -400,20 +418,56 @@ local function groupNames(ob: Blend.View, me: Blend.View): { string }
return out
end
local function mesh(ctx: Ctx, ob: Blend.View, node: number)
local function shapeExtras(shapes: { Mesh.Shape }, ref: number?): ({ string }, { { [string]: any } })
local names: { string }, list: { { [string]: any } } = {}, {}
for k, sh in shapes do
if k ~= ref then
table.insert(names, sh.name)
end
local rel = shapes[sh.relative + 1]
local e: { [string]: any } = { name = sh.name, value = sh.value, slider_min = sh.min, slider_max = sh.max, mute = sh.mute }
e.relative_key = if rel then rel.name else nil
e.vertex_group = sh.vgroup
table.insert(list, e)
end
return names, list
end
-- an object as a constraint target or custom shape: its node, else its name; widgets records custom shapes
local function resolver(ctx: Ctx, widgets: boolean): Armature.Resolve
return function(ob: Blend.View?): Armature.Target?
if not ob then
return nil
end
local addr = ob.block and ob.block.addr
if widgets and addr ~= nil and not ctx.widgets[addr] then
ctx.widgets[addr] = ob
table.insert(ctx.widgetOrder, addr)
end
local node = if addr ~= nil then ctx.objects[addr] else nil
if node then
return node
end
return ob:idName()
end
end
-- the scene mesh of an object's mesh data (shared between objects with the same data, slots and armature)
local function meshOf(ctx: Ctx, ob: Blend.View, lines: boolean): (number?, ArmInfo?)
local f = ctx.f
local me = ob:deref("data", 0, "Mesh")
if not me then
return
return nil, nil
end
local slots = slotMaterials(ctx, ob, me)
local armOb = deformArmature(ctx, ob)
local armInfo = armOb and armOb.block and ctx.armatures[armOb.block.addr]
local key = tostring(me.block and me.block.index) .. ":" .. table.concat(slots, ",") .. ":" .. tostring(armOb and armOb.block and armOb.block.index)
local key = tostring(me.block and me.block.index) .. ":" .. table.concat(slots, ",") .. ":" .. tostring(armOb and armOb.block and armOb.block.index) .. (if lines then ":lines" else "")
local skin: Prim.Skinning? = nil
local groups = groupNames(ob, me)
if armInfo then
local joints = {}
for gi, name in groupNames(ob, me) do
for gi, name in groups do
local j = armInfo.names[name]
if j and armInfo.deform[j] then
joints[gi - 1] = j - 1
@@ -428,9 +482,26 @@ local function mesh(ctx: Ctx, ob: Blend.View, node: number)
error(err or "bad mesh", 0)
end
local shapes, ref = Mesh.shapes(f, me, poly.nv)
local built = Prim.build(poly, slots, { triangulate = ctx.opts.triangulate, flipV = ctx.opts.flipV }, skin, shapes, ref)
local built = Prim.build(poly, slots, { triangulate = ctx.opts.triangulate, flipV = ctx.opts.flipV }, skin, shapes, ref, groups)
local m = built.mesh
m.extras = { blend = { vertices = poly.nv, faces = poly.nf, corners = poly.nc, generation = poly.generation, uvs = #poly.uvs, colors = #poly.colors, shapes = #shapes } }
local extras: { [string]: any } = { vertices = poly.nv, faces = poly.nf, corners = poly.nc, generation = poly.generation, uvs = #poly.uvs, colors = #poly.colors, shapes = #shapes }
m.extras = { blend = extras }
if lines then
local lp = Prim.lines(poly, Mesh.looseEdges(f, me, poly), shapes, ref, groups)
if lp then
table.insert(m.primitives, lp)
extras.looseEdges = (lp.indices :: Types.Accessor).count // 2
end
end
if #shapes > 1 then
local key = me:deref("key", 0, "Key")
local kd = Driver.list(f, key and key:deref("adt", 0, "AnimData"), resolver(ctx, false))
extras.shape_key_drivers = if #kd > 0 then kd else nil
local names, list = shapeExtras(shapes, ref)
m.extras = { blend = extras, targetNames = names }
extras.shape_keys = list
extras.reference_key = if ref then shapes[ref].name else nil
end
table.insert(ctx.scene.meshes, m)
idx = #ctx.scene.meshes
ctx.meshes[key] = idx
@@ -440,6 +511,15 @@ local function mesh(ctx: Ctx, ob: Blend.View, node: number)
ctx.meta.shapeKeys[idx] = { key = me:deref("key", 0, "Key"), mesh = me, shapes = shapes, ref = ref }
end
end
return idx, armInfo
end
local function mesh(ctx: Ctx, ob: Blend.View, node: number)
local addr = ob.block and ob.block.addr
local idx, armInfo = meshOf(ctx, ob, ctx.opts.looseEdges == true or (addr ~= nil and ctx.widgets[addr] ~= nil))
if not idx then
return
end
local n = ctx.scene.nodes[node]
n.mesh = idx
if ctx.scene.meshes[idx].weights then
@@ -474,6 +554,57 @@ local function skins(ctx: Ctx)
end
end
-- Object.partype as the API names it (PARSKEL is "ARMATURE" under an armature, "LATTICE" under a lattice)
local PARENT_TYPE: { [number]: string } = { [0] = "OBJECT", [4] = "ARMATURE", [5] = "VERTEX", [6] = "VERTEX_3", [7] = "BONE" }
-- vertex positions of a mesh object (its own data, no modifiers or shape keys), for vertex parents; nil if unavailable
local function parentVertices(ctx: Ctx, par: Blend.View, indices: { number }): { { number } }?
if (par:num("type") or -1) ~= OB_MESH then
return nil
end
local me = par:deref("data", 0, "Mesh")
local ok, poly = pcall(Mesh.read, ctx.f, me :: any, { maxVertices = ctx.opts.maxVertices })
if not ok or not poly or not me then
return nil
end
local out = {}
for k, i in indices do
if i < 0 or i >= poly.nv then
return nil
end
out[k] = { buffer.readf32(poly.pos, i * 12), buffer.readf32(poly.pos, i * 12 + 4), buffer.readf32(poly.pos, i * 12 + 8) }
end
return out
end
-- Blender's tri_to_quat (math_geom.cc) as a rotation matrix: z along the triangle normal, x along v1 -> v2
local function triFrame(v1: { number }, v2: { number }, v3: { number }): M4
local function sub(a: { number }, b: { number }): { number }
return { a[1] - b[1], a[2] - b[2], a[3] - b[3] }
end
local function norm(a: { number }): { number }
local l = math.sqrt(a[1] * a[1] + a[2] * a[2] + a[3] * a[3])
return if l > 0 then { a[1] / l, a[2] / l, a[3] / l } else a
end
local e1, e2 = sub(v2, v1), sub(v3, v2) -- normal_tri_v3: (v1 - v2) x (v2 - v3)
local a, b = sub(v1, v2), sub(v2, v3)
local no = norm({ a[2] * b[3] - a[3] * b[2], a[3] * b[1] - a[1] * b[3], a[1] * b[2] - a[2] * b[1] })
local n = norm({ no[2], -no[1], 0 })
if n[1] == 0 and n[2] == 0 then
n = { 1, 0, 0 }
end
local angle = -0.5 * math.acos(math.clamp(no[3], -1, 1))
local q1 = { n[1] * math.sin(angle), n[2] * math.sin(angle), 0, math.cos(angle) } -- x, y, z, w
local m1 = Mat4.fromQuat(q1)
local inv = Mat4.inverseFull(m1) or Mat4.identity()
local vx, vy = Mat4.point(inv, e1[1], e1[2], e1[3])
local l = math.sqrt(vx * vx + vy * vy)
local angle2 = if l > 0 then 0.5 * math.atan2(vy / l, vx / l) else 0
local q2 = { 0, 0, math.sin(angle2), math.cos(angle2) }
local _ = e2
return Mat4.mul(m1, Mat4.fromQuat(q2))
end
local function object(ctx: Ctx, ob: Blend.View, under: number?, depth: number): number?
local addr = ob.block and ob.block.addr
if addr ~= nil and ctx.objects[addr] then
@@ -484,6 +615,7 @@ local function object(ctx: Ctx, ob: Blend.View, under: number?, depth: number):
end
local parentOb = ob:deref("parent", 0, "Object")
local parentNode: number? = under
local vertexFallback = false
local prefix = Mat4.identity()
local partype = ob:num("partype") or 0
if parentOb then
@@ -492,6 +624,7 @@ local function object(ctx: Ctx, ob: Blend.View, under: number?, depth: number):
parentNode = pn
prefix = mat4(ob, "parentinv") or Mat4.identity()
if partype == PARBONE then
-- the joint node is the bone's head frame (rest x pose); Blender parents to the tail
local info = parentOb.block and ctx.armatures[parentOb.block.addr]
local bone = ob:str("parsubstr") or ""
local j = info and info.names[bone]
@@ -500,6 +633,26 @@ local function object(ctx: Ctx, ob: Blend.View, under: number?, depth: number):
local len = info.bones[j]:num("length") or 0
prefix = Mat4.mul(Mat4.translation(0, len, 0), prefix)
end
elseif partype == PARVERT1 or partype == PARVERT3 then
local idx = { ob:num("par1") or 0 }
if partype == PARVERT3 then
idx = { ob:num("par1") or 0, ob:num("par2") or 0, ob:num("par3") or 0 }
end
local vs = parentVertices(ctx, parentOb, idx)
if vs and partype == PARVERT3 then
local m = triFrame(vs[1], vs[2], vs[3])
m[13], m[14], m[15] = (vs[1][1] + vs[2][1] + vs[3][1]) / 3, (vs[1][2] + vs[2][2] + vs[3][2]) / 3, (vs[1][3] + vs[2][3] + vs[3][3]) / 3
prefix = Mat4.mul(m, prefix)
elseif vs then
-- the parent's rotation and scale do not apply: world = T(parent world x vertex) x parentinv x basis,
-- expressed under the parent node for its saved world matrix
local pw = worldOf(ctx, pn)
local wx, wy, wz = Mat4.point(pw, vs[1][1], vs[1][2], vs[1][3])
local inv = Mat4.inverseFull(pw) or Mat4.identity()
prefix = Mat4.mul(Mat4.mul(inv, Mat4.translation(wx, wy, wz)), prefix)
else
vertexFallback = true
end
end
end
end
@@ -519,17 +672,31 @@ local function object(ctx: Ctx, ob: Blend.View, under: number?, depth: number):
local t = ob:num("type") or -1
local extras: { [string]: any } = { type = TYPE_NAME[t] or tostring(t) }
node.extras = { blend = extras }
if parentOb then
local pt = PARENT_TYPE[partype] or tostring(partype)
if partype == PARSKEL and (parentOb:num("type") or -1) == 22 then
pt = "LATTICE"
end
extras.parent_type = pt
extras.matrix_parent_inverse = mat4(ob, "parentinv")
if partype == PARBONE then
extras.parent_bone = ob:str("parsubstr")
elseif partype == PARVERT1 or partype == PARVERT3 then
extras.parent_vertices = if partype == PARVERT1 then { ob:num("par1") or 0 } else { ob:num("par1") or 0, ob:num("par2") or 0, ob:num("par3") or 0 }
extras.parent_vertices_unresolved = if vertexFallback then true else nil -- parented to the object instead
end
end
local lay = ob:num("lay")
if lay and ctx.f.version < 280 then
extras.layers = lay
end
local mods = {}
for _, md in ob:list("modifiers") do
table.insert(mods, { name = md:sub("modifier") and (md:sub("modifier") :: Blend.View):str("name") or md:str("name") or "", type = (string.gsub(md.struct.name, "ModifierData$", "")) })
-- Object.visibility_flag (2.8+): OB_HIDE_VIEWPORT 1, OB_HIDE_RENDER 4; restrictflag before: VIEW 1, RENDER 4
local vis = ob:num("visibility_flag") or ob:num("restrictflag") or 0
if bit32.band(vis, 1) ~= 0 then
extras.hide_viewport = true
end
if #mods > 0 then
extras.modifiers = mods
ctx.meta.modifiers[node.name or tostring(idx)] = mods
if bit32.band(vis, 4) ~= 0 then
extras.hide_render = true
end
if t == OB_ARMATURE then
armature(ctx, ob, idx)
@@ -543,6 +710,129 @@ local function object(ctx: Ctx, ob: Blend.View, under: number?, depth: number):
return idx
end
-- ------------------------------------------------------------------------------------------------ rigs
-- ModifierData.type names as the API gives them, from the struct name ("SimpleDeformModifierData" -> SIMPLE_DEFORM)
local MOD_NAME: { [string]: string } = {
LaplacianSmooth = "LAPLACIANSMOOTH", LaplacianDeform = "LAPLACIANDEFORM", WeightVGEdit = "VERTEX_WEIGHT_EDIT",
WeightVGMix = "VERTEX_WEIGHT_MIX", WeightVGProximity = "VERTEX_WEIGHT_PROXIMITY", UVProject = "UV_PROJECT",
UVWarp = "UV_WARP", MeshSeqCache = "MESH_SEQUENCE_CACHE", Softbody = "SOFT_BODY", ParticleSystem = "PARTICLE_SYSTEM",
ParticleInstance = "PARTICLE_INSTANCE", Fluidsim = "FLUID_SIMULATION", Smoke = "SMOKE", Surface = "SURFACE",
MeshToVolume = "MESH_TO_VOLUME", VolumeToMesh = "VOLUME_TO_MESH",
}
-- the modifier stack (ModifierData.mode: eModifierMode_Realtime 1, Render 2); ARMATURE with its settings
-- (ArmatureModifierData.deformflag: ARM_DEF_VGROUP 1, ENVELOPE 2, QUATERNION 4, INVERT_VGROUP 16)
local function modifiers(ob: Blend.View, resolve: Armature.Resolve): { { [string]: any } }
local out = {}
for _, md in ob:list("modifiers") do
local head = md:sub("modifier") or md
local raw = string.gsub(md.struct.name, "ModifierData$", "")
local kind = MOD_NAME[raw] or string.upper((string.gsub(raw, "(%l)(%u)", "%1_%2")))
local mode = head:num("mode") or 3
local e: { [string]: any } = { type = kind, name = head:str("name") or "" }
e.show_viewport = bit32.band(mode, 1) ~= 0
e.show_render = bit32.band(mode, 2) ~= 0
if kind == "ARMATURE" then
local flag = md:num("deformflag") or 1
e.object = resolve(md:deref("object", 0, "Object"))
e.use_vertex_groups = bit32.band(flag, 1) ~= 0
e.use_bone_envelopes = bit32.band(flag, 2) ~= 0
e.use_deform_preserve_volume = bit32.band(flag, 4) ~= 0
e.invert_vertex_group = bit32.band(flag, 16) ~= 0
e.use_multi_modifier = (md:num("multi") or 0) ~= 0
local vg = md:str("defgrp_name")
e.vertex_group = if vg and vg ~= "" then vg else nil
end
table.insert(out, e)
end
return out
end
local function rigs(ctx: Ctx)
local target, shape = resolver(ctx, false), resolver(ctx, true)
for node = 1, #ctx.scene.nodes do
local ob = ctx.objView[node]
local extras = ob and (ctx.scene.nodes[node].extras :: any).blend
if not ob or not extras then
continue
end
local list = Armature.constraints(ob, target)
if #list > 0 then
extras.constraints = list
end
local mods = modifiers(ob, target)
if #mods > 0 then
extras.modifiers = mods
ctx.meta.modifiers[ctx.scene.nodes[node].name or tostring(node)] = mods
end
local id = ob:sub("id")
extras.props = Driver.props(id and id:deref("properties", 0, "IDProperty"))
local drivers = Driver.list(ctx.f, ob:deref("adt", 0, "AnimData"), target)
extras.drivers = if #drivers > 0 then drivers else nil
local dataBlock = ob:target("data")
local data = dataBlock and Blend.struct(ctx.f, dataBlock)
local dataDrivers = if data and data:has("adt") then Driver.list(ctx.f, data:deref("adt", 0, "AnimData"), target) else {}
if ctx.f.version < 500 and dataBlock and dataBlock.code == "AR" then
-- Blender 5.0 moved bone visibility to pose bones: its versioning moves bones["x"].hide drivers to the object
local kept = {}
for _, d in dataDrivers do
local bone = string.match(d.data_path, '^bones%["(.-)"%]%.hide$')
if bone then
d.data_path, d.bone, d.path = "pose." .. d.data_path, bone, "hide"
table.insert(drivers, d)
else
table.insert(kept, d)
end
end
dataDrivers = kept
extras.drivers = if #drivers > 0 then drivers else nil
end
extras.data_drivers = if #dataDrivers > 0 then dataDrivers else nil
local info = ob.block and ctx.armatures[ob.block.addr]
if info then
local cols = Armature.collections(info.arm, info.bones, info.pose)
extras.bone_collections = cols.list
for j, bone in info.bones do
local name = bone:str("name") or ""
local pc = info.poseNames[name]
local e = (ctx.scene.nodes[info.joints[j]].extras :: any).blend
for k, v in Armature.bone(bone, pc, info.pose) do
e[k] = v
end
e.collections = cols.byBone[name] or {}
e.bone_props = Driver.props(bone:deref("prop", 0, "IDProperty"))
e.props = if pc then Driver.props(pc:deref("prop", 0, "IDProperty")) else nil
if pc then
Armature.pose(e, pc, target, shape)
end
end
end
end
end
-- every custom shape object: its node (and mesh) when it is in the scene, else its mesh only
local function widgetList(ctx: Ctx): { { [string]: any } }
local list = {}
for _, addr in ctx.widgetOrder do
local ob = ctx.widgets[addr]
local t = ob:num("type") or -1
local w: { [string]: any } = { name = ob:idName() or "", type = TYPE_NAME[t] or tostring(t) }
local node = ctx.objects[addr]
if node then
w.node = node
w.mesh = ctx.scene.nodes[node].mesh
local e = ctx.scene.nodes[node].extras :: any
if e and e.blend then
e.blend.widget = true
end
elseif t == OB_MESH then
w.mesh = (meshOf(ctx, ob, true))
end
table.insert(list, w)
end
return list
end
-- ------------------------------------------------------------------------------------------------ animation
local function apply(props: Props, curves: { Curve }, frame: number, prefix: string?, name: string?): Props
local p: Props = {}
@@ -695,8 +985,8 @@ local function animations(ctx: Ctx)
local tracks = {}
local touched = {}
for _, c in j.curves do
local kind, who = Anim.split(c.path)
if kind == "pose.bones" and who and info.names[who] then
local kind, who, rest = Anim.split(c.path)
if kind == "pose.bones" and who and info.names[who] and string.find(rest, "^[%w_]+$") then
touched[info.names[who]] = true
end
end
@@ -734,7 +1024,7 @@ local function animations(ctx: Ctx)
v = math.clamp(Anim.evaluate(c, fr), math.min(s.min, s.max), math.max(s.min, s.max)) -- the slider range
end
end
buffer.writef32(out, ((i - 1) * count + k) * 4, v)
buffer.writef32(out, ((i - 1) * count + k) * 4, if s.mute then 0 else v)
k += 1
end
end
@@ -791,7 +1081,7 @@ function Read.scene(f: Blend.File, opts: Options?): (Types.Scene?, string?)
}
local ctx: Ctx = {
f = f, scene = scene, opts = o, objects = {}, objView = {}, parentOf = {}, world = {}, meshes = {}, materials = {},
textures = {}, armatures = {}, prefix = {}, props = {}, meta = meta, pending = {},
textures = {}, armatures = {}, prefix = {}, props = {}, meta = meta, pending = {}, widgets = {}, widgetOrder = {},
}
local order: { { ob: Blend.View, under: number? } } = {}
if sc then
@@ -870,6 +1160,7 @@ function Read.scene(f: Blend.File, opts: Options?): (Types.Scene?, string?)
local u = a ~= nil and firstUnder[a] or nil
object(ctx, e.ob, if u and u > 0 then u else nil, 0)
end
rigs(ctx)
for node = 1, #scene.nodes do
local ob = ctx.objView[node]
if ob and (ob:num("type") or -1) == OB_MESH then
@@ -877,6 +1168,28 @@ function Read.scene(f: Blend.File, opts: Options?): (Types.Scene?, string?)
end
end
skins(ctx)
local mb: { [string]: any } = {}
if next(ctx.armatures) ~= nil then
mb.widgets = widgetList(ctx)
mb.bone_color_sets = Armature.colorSets()
end
-- every action in the file by name (assigned or not: action constraints and the NLA refer to them)
if o.rawActions ~= false then
local acts: { [string]: any } = {}
for _, b in Blend.blocks(f, "AC") do
local act = Blend.struct(f, b, 0, "bAction")
local name = act and act:idName()
if act and name and not acts[name] then
acts[name] = Anim.raw(f, act)
end
end
if next(acts) ~= nil then
mb.actions = acts
end
end
if next(mb) ~= nil then
scene.meta.blend = mb
end
if o.animations ~= false then
animations(ctx)
end
+6 -2
View File
@@ -4,9 +4,11 @@
-- file's own SDNA). Supports: the scene's objects and collections, transforms with parent inverse and bone parents,
-- meshes of every storage generation (MFace, MPoly / MLoop, attribute layers, AttributeStorage) with UV maps, colour
-- attributes, custom normals, material slots; Principled BSDF materials; packed and external images; cameras; lights;
-- armatures, skins (vertex groups, top 4 weights), shape keys; actions sampled into channels.
-- armatures, skins (vertex groups, top 4 weights), shape keys (relative keys, vertex groups); actions sampled into
-- channels, and every action's raw f-curves in meta.blend.actions; rig data (bone collections / layers, colours,
-- custom shapes, pose settings, constraint stacks), drivers and custom properties as extras (data, never evaluated).
-- Not supported: modifiers (listed in meta.source.modifiers), curves / text / metaballs / grease pencil / volumes,
-- NLA strips, drivers, constraints, f-curve modifiers, linked libraries, collection instances.
-- NLA strips, driver and constraint evaluation, f-curve modifiers, linked libraries, collection instances.
-- ------------------------------------------------------------------------------------------------ requires
local Err = require("@rosetta/core/Err")
@@ -32,10 +34,12 @@ local BlendFormat = {
export type DecodeOptions = {
triangulate: boolean?, -- default true (false: "polygons" primitives)
flipV: boolean?, -- default true (glTF's top-left UV origin)
looseEdges: boolean?, -- edges outside faces as "lines" primitives (default false; always for custom shape widgets)
collections: boolean?, -- collections as nodes (default true)
scene: string?, -- a scene by name (default: the file's current scene)
sampleStep: number?, -- frames between animation samples (default 1)
animations: boolean?, -- default true
rawActions: boolean?, -- every action's f-curves and keys in meta.blend.actions (default true)
resolve: ((uri: string) -> any)?, -- external images
files: { [string]: any }?,
maxBytes: number?, -- decompressed size limit (default 2^31)
+10
View File
@@ -460,6 +460,16 @@ function Read.scene(doc: any, bin: buffer?, fetch: Fetch, opts: any?): (Types.Sc
return nil, Err.new(Err.CORRUPT, "bad mesh " .. (i - 1))
end
local mesh: Types.Mesh = { name = str(m.name), primitives = {}, weights = if type(m.weights) == "table" then table.clone(m.weights) else nil, extras = keep(m, nil) }
-- morph target names: the extras.targetNames convention (Blender's exporter, three.js, Babylon)
local tn = type(m.extras) == "table" and m.extras.targetNames
if type(tn) == "table" and #tn > 0 then
local names = {}
for k, v in tn do
names[k] = if type(v) == "string" then v else tostring(v)
end
mesh.extras = mesh.extras or {}
;(mesh.extras :: any).targetNames = names
end
for k, p in arr(m.primitives) do
if type(p) ~= "table" or type(p.attributes) ~= "table" then
return nil, Err.new(Err.CORRUPT, string.format("mesh %d primitive %d: no attributes", i - 1, k - 1))
+6
View File
@@ -445,6 +445,12 @@ function Write.build(scene: Types.Scene, opts: Options?): (Out?, Err.Err?)
end
g.weights = mesh.weights
restore(g, mesh.extras)
local tn = mesh.extras and (mesh.extras :: any).targetNames
if type(tn) == "table" and #tn > 0 and g.extras == nil then
local ex = object()
ex.targetNames = table.clone(tn)
g.extras = ex
end
table.insert(meshes, g)
end
local cameras: { any } = {}
+89 -1
View File
@@ -732,7 +732,10 @@ local function defaultFor(name: string, k: number): number
return 0
end
function MeshOps.merge(input: any, opts: { byMaterial: boolean?, method: string? }?): (any, Err.Err?)
-- opts.targets: morph targets concatenated by name (mesh.extras.targetNames, else prim.extras.targetNames; unnamed
-- ones by index), zero where a primitive lacks one; the result's extras.targetNames / extras.weights name them and
-- give their default weights (node weights, else mesh weights)
function MeshOps.merge(input: any, opts: { byMaterial: boolean?, method: string?, targets: boolean? }?): (any, Err.Err?)
local placed: { Types.Placed } = {}
if type(input) ~= "table" then
return nil, Err.new(Err.ARG, "merge: expected a Scene or a list of Primitives")
@@ -746,6 +749,9 @@ function MeshOps.merge(input: any, opts: { byMaterial: boolean?, method: string?
end
local groups: { [number]: { Primitive } } = {}
local order: { number } = {}
local withTargets = opts ~= nil and opts.targets == true
local keysOf: { [Primitive]: { any } } = {} -- per baked primitive: the key (name or index) of each target
local weightOf: { [any]: number } = {}
local allPoints = #placed > 0
for _, pl in placed do
if pl.primitive.mode ~= "points" then
@@ -765,6 +771,27 @@ function MeshOps.merge(input: any, opts: { byMaterial: boolean?, method: string?
for name, a in t.attributes do
copy.attributes[name] = MeshOps.f32(a)
end
if withTargets and t.targets and #t.targets > 0 then
local mesh = if input.kind == "scene" and pl.mesh > 0 then input.meshes[pl.mesh] else nil
local node = if input.kind == "scene" and pl.node > 0 then input.nodes[pl.node] else nil
local names = mesh and mesh.extras and mesh.extras.targetNames or (p.extras and (p.extras :: any).targetNames)
local weights = node and node.weights or (mesh and mesh.weights)
local keys, targets = {}, {}
for k, tg in t.targets do
local key = if type(names) == "table" and type(names[k]) == "string" then names[k] else k
keys[k] = key
if weightOf[key] == nil then
weightOf[key] = weights and weights[k] or 0
end
local own = {}
for name, a in tg do
own[name] = MeshOps.f32(a)
end
targets[k] = own
end
copy.targets = targets
keysOf[copy] = keys
end
if pl.matrix ~= Scene.IDENTITY then
local ok, terr = MeshOps.transform(copy, pl.matrix)
if not ok then
@@ -810,6 +837,56 @@ function MeshOps.merge(input: any, opts: { byMaterial: boolean?, method: string?
end
attrs[name] = Scene.accessor(out, "f32", comps, nv)
end
local targets: { { [string]: Accessor } }? = nil
local targetKeys: { any } = {}
if withTargets then
local index: { [any]: number } = {}
for _, p in list do
for _, key in keysOf[p] or {} do
if not index[key] then
table.insert(targetKeys, key)
index[key] = #targetKeys
end
end
end
if #targetKeys > 0 then
local out: { { [string]: Accessor } } = {}
for ti, key in targetKeys do
local comps: { [string]: number } = {}
for _, p in list do
for k, pk in keysOf[p] or {} do
if pk == key then
for name, a in (p.targets :: any)[k] do
comps[name] = math.max(comps[name] or 0, a.components)
end
end
end
end
local tgt: { [string]: Accessor } = {}
for name, nc in comps do
local buf = buffer.create(nv * nc * 4) -- zero where a primitive lacks the target
local base = 0
for _, p in list do
local cnt = vertexCount(p)
for k, pk in keysOf[p] or {} do
local a = if pk == key then (p.targets :: any)[k][name] else nil
if a then
for v = 0, math.min(cnt, a.count) - 1 do
for c = 0, math.min(nc, a.components) - 1 do
writef32(buf, ((base + v) * nc + c) * 4, readf32(a.data, (v * a.components + c) * 4))
end
end
end
end
base += cnt
end
tgt[name] = Scene.accessor(buf, "f32", nc, nv)
end
out[ti] = tgt
end
targets = out
end
end
local idx = buffer.create(ni * 4)
local base, at = 0, 0
for _, p in list do
@@ -820,11 +897,22 @@ function MeshOps.merge(input: any, opts: { byMaterial: boolean?, method: string?
at += n
base += vertexCount(p)
end
local extras: { [string]: any }? = nil
if targets then
local names, weights = {}, {}
for k, key in targetKeys do
names[k] = if type(key) == "string" then key else tostring(key)
weights[k] = weightOf[key] or 0
end
extras = { targetNames = names, weights = weights }
end
return {
attributes = attrs,
indices = if points then nil else Scene.accessor(idx, "u32", 1, ni),
mode = if points then "points" else "triangles",
material = material,
targets = targets,
extras = extras,
}
end
if opts and opts.byMaterial then
+9 -4
View File
@@ -71,8 +71,12 @@ do
for i = 0, 63 do
buffer.writeu16(q, i * 2, 1 + rand(40))
end
local div = table.create(64, 0) -- fdctQuantize's divisors: q * 8
for i = 1, 64 do
div[i] = buffer.readu16(q, (i - 1) * 2) * 8
end
local coef = buffer.create(128)
Dct.fdctQuantize(src, 8, 0, 0, 8, 8, q, coef, 0)
Dct.fdctQuantize(src, 8, 0, 0, 8, 8, div, coef, 0)
for v = 0, 7 do
for u = 0, 7 do
local s = 0
@@ -88,6 +92,7 @@ do
end
end
t:check(worst <= 0.75, "fdct + quantise within rounding of the float reference: " .. worst)
local div1 = table.create(64, 8)
local rt = 0
for _ = 1, 100 do
local src = buffer.create(64)
@@ -95,7 +100,7 @@ do
buffer.writeu8(src, i, rand(256))
end
local coef = buffer.create(128)
Dct.fdctQuantize(src, 8, 0, 0, 8, 8, ones, coef, 0)
Dct.fdctQuantize(src, 8, 0, 0, 8, 8, div1, coef, 0)
local plane = buffer.create(128)
Dct.idctBlock(coef, 0, ones, plane, 0, 8, 2, 128, 255)
for i = 0, 63 do
@@ -112,8 +117,8 @@ do
end
end
local a, b = buffer.create(128), buffer.create(128)
Dct.fdctQuantize(small, 3, 0, 0, 3, 2, ones, a, 0)
Dct.fdctQuantize(ext, 8, 0, 0, 8, 8, ones, b, 0)
Dct.fdctQuantize(small, 3, 0, 0, 3, 2, div1, a, 0)
Dct.fdctQuantize(ext, 8, 0, 0, 8, 8, div1, b, 0)
t:check(buffer.tostring(a) == buffer.tostring(b), "edge replication")
end
+91
View File
@@ -161,6 +161,97 @@ do
end, samples, { mutations = 3, garbage = 300 })
end
-- zlibStream: split input ranges (junk between them), a small output window, a sink that takes fixed-size records
local function stream(b: buffer, pieces: number, window: number?, record: number): (string?, any)
local n = buffer.len(b)
local big = buffer.create(n + pieces * 7)
buffer.fill(big, 0, 0xCD)
local ranges = {}
local at, w = 0, 0
for i = 1, pieces do
local len = if i == pieces then n - at else (n - at) // (pieces - i + 1)
buffer.copy(big, w, b, at, len)
table.insert(ranges, { w, len })
at += len
w += len + 7
end
local parts = {}
local size, err = Deflate.zlibStream(big, ranges, function(out: buffer, from: number, to: number): number
table.insert(parts, buffer.readstring(out, from, to - from))
return (to - from) % record
end, window)
if not size then
return nil, err
end
return table.concat(parts), size
end
do
local cases, other = 0, nil
for _, c in Fx.cases do
if c.kind == "zlib" then
local want = Fx.corpora[c.corpus]
local b = buffer.fromstring(c.data)
other = other or b
for _, v in { { 1, nil, 1 }, { 3, 1, 777 }, { 9, 5000, 4096 } } do
local got, size = stream(b, math.min(v[1], buffer.len(b)), v[2], v[3])
t:check(got == want and size == #want, string.format("%s: zlibStream %d ranges, window %s: %s", c.name, v[1], tostring(v[2]), tostring(size)))
end
cases += 1
end
end
t:note("zlibStream: %d zlib streams match, split and through small windows", cases)
-- a sink that yields while another inflate runs in between
local src = buffer.create(300000)
for i = 0, 299999 do
buffer.writeu8(src, i, (i * 13 + (i // 1000) * 7 + (i // 7) % 11) % 256)
end
local z = assert(Deflate.zlibCompress(src, { level = 6 }))
local got = {}
local co = coroutine.wrap(function(): any
return Deflate.zlibStream(z, { { 0, buffer.len(z) } }, function(out: buffer, from: number, to: number): number
table.insert(got, buffer.readstring(out, from, to - from))
coroutine.yield()
return 0
end, 4096)
end)
local res = co()
local yields = 0
while res == nil do
yields += 1
local mid = Deflate.zlib(z)
t:check(mid and buffer.len(mid) == 300000, "inflate while a stream is suspended")
res = co()
end
t:check(res == 300000 and table.concat(got) == buffer.tostring(src), "zlibStream across yields (" .. yields .. ")")
local bad = buffer.fromstring(buffer.tostring(z))
buffer.writeu8(bad, buffer.len(bad) - 1, 0)
local _, e = Deflate.zlibStream(bad, { { 0, buffer.len(bad) } }, function()
return 0
end)
t:check(e and e.code == Err.CHECKSUM, "zlibStream Adler-32: " .. tostring(e))
local _, e2 = Deflate.zlibStream(z, { { 0, buffer.len(z) } }, function()
return -1
end)
t:check(e2 and e2.code == Err.CORRUPT, "zlibStream sink abort: " .. tostring(e2))
local _, e3 = Deflate.zlibStream(z, { { 0, buffer.len(z) + 1 } }, function()
return 0
end)
t:check(e3 and e3.code == Err.ARG, "zlibStream range out of bounds")
local samples = {}
for i, c in Fx.cases do
if c.kind == "zlib" and i % 5 == 0 then
table.insert(samples, c.data)
end
end
t:fuzz("zlibStream", function(b: buffer)
local half = buffer.len(b) // 2
return Deflate.zlibStream(b, { { 0, half }, { half, buffer.len(b) - half } }, function(_: buffer, from: number, to: number): number
return (to - from) % 5
end, 100)
end, samples, { mutations = 3, garbage = 100 })
end
-- peek: the first bytes of a gzip / zlib / raw stream without inflating the rest
do
local src = buffer.create(100000)
+210
View File
@@ -0,0 +1,210 @@
-- detect tests: lazy detection (Sniffs.luau, cost order, extension first) against the eager reference (every format
-- module's own sniff, registry order) on samples of every fixture module, with and without names and categories;
-- which modules a first detect loads. Fixtures: tools/fixtures/detect.py.
local T = require("@tests/T")
local Registry = require("@rosetta/Registry")
local loads: { string } = {}
for _, e in Registry do
local load = e.load
e.load = function(): any
table.insert(loads, e.path)
return load()
end
end
local F = require("@rosetta")
local Bytes = require("@rosetta/core/Bytes")
local Input = require("@rosetta/core/Input")
local Sniffs = require("@rosetta/Sniffs")
local Blobs1 = require("@tests/gen/detect_blobs_1")
local Blobs2 = require("@tests/gen/detect_blobs_2")
local Blobs3 = require("@tests/gen/detect_blobs_3")
local Blobs4 = require("@tests/gen/detect_blobs_4")
local t = T.suite("detect")
-- 1. a first detect of a PNG loads no format module, with or without its name
local PNG = buffer.fromstring("\137PNG\r\n\26\n\0\0\0\rIHDR\0\0\0\1\0\0\0\1\8\6\0\0\0\31\21\196\137\0\0\0\rIDATx\218c\248\255\255?\0\5\254\2\254\167\53\129\132\0\0\0\0IEND\174B`\130")
t:eq(F.detect(PNG, { name = "a.png" }), "png", "png with name")
t:eq(F.detect(PNG), "png", "png without name")
t:eq(F.detect(PNG, { name = "a.jpg" }), "png", "png named .jpg")
t:eq(#loads, 0, "no format module loaded (" .. table.concat(loads, " ") .. ")")
local junk = buffer.create(4096)
for i = 0, 4095 do
buffer.writeu8(junk, i, (i * 7919) % 251)
end
F.detect(junk)
local need = 0
for _, e in Registry do
if e.sniff == 2 then
need += 1
end
end
t:check(#loads <= need + 1, "unknown data loads only the modules that sniff themselves: " .. table.concat(loads, " "))
t:note("unknown data: %d format modules loaded (%s)", #loads, table.concat(loads, " "))
-- 2. the eager reference: each module's own sniff in registry order, the extension's format at 1 returns at once,
-- archive/br (a trial decode, at most 0.3) last
local modules: { [string]: any } = {}
for _, e in Registry do
modules[e.path] = e.load()
end
local function refDetect(buf: buffer, name: string?, category: string?): any
local ext = Input.extension(name)
local best, bestScore, bestIdx = nil, 0, 0
local late: { number } = {}
for idx, e in Registry do
if (category == nil or e.category == category) and (e.caps.decode or e.caps.open) then
if e.name == "br" then
table.insert(late, idx)
continue
end
local ok, score = pcall(modules[e.path].sniff, Bytes.reader(buf))
if ok and type(score) == "number" and score > 0 then
local extHit = ext and table.find(e.extensions, ext)
if extHit then
score += 0.01
end
if score > bestScore then
best, bestScore, bestIdx = e, score, idx
if extHit and score >= 1.01 then
return e
end
end
end
end
end
for _, idx in late do
local e = Registry[idx]
local extHit = ext and table.find(e.extensions, ext)
local cap = 0.3 + (if extHit then 0.01 else 0)
if cap > bestScore or (cap == bestScore and idx < bestIdx) then
local ok, score = pcall(modules[e.path].sniff, Bytes.reader(buf))
if ok and type(score) == "number" and score > 0 then
if extHit then
score += 0.01
end
if score > bestScore or (score == bestScore and idx < bestIdx) then
best, bestScore, bestIdx = e, score, idx
end
end
end
end
if best then
return best
end
if ext then
for _, e in Registry do
if (category == nil or e.category == category) and e.name == ext then
return e
end
end
for _, e in Registry do
if (category == nil or e.category == category) and table.find(e.extensions, ext) then
return e
end
end
end
return nil
end
local function refName(buf: buffer, name: string?, category: string?): string?
local e = refDetect(buf, name, category)
if not e then
return nil
end
local m = modules[e.path]
if type(m.variant) == "function" then
local ok, v = pcall(m.variant, Bytes.reader(buf))
if ok and type(v) == "string" then
return v
end
end
return e.name
end
local blobs: { { from: string, data: string } } = {}
for _, part in { Blobs1, Blobs2, Blobs3, Blobs4 } do
for _, b in part :: any do
table.insert(blobs, b)
end
end
local rng = T.rng(7)
for n = 0, 40 do
local b = buffer.create(n * 7)
for i = 0, n * 7 - 1 do
buffer.writeu8(b, i, rng(256) - 1)
end
table.insert(blobs, { from = "random", data = buffer.tostring(b) })
end
table.insert(blobs, { from = "junk", data = buffer.tostring(junk) })
table.insert(blobs, { from = "png", data = buffer.tostring(PNG) })
t:check(#blobs > 1000, "samples from the fixture modules (" .. #blobs .. ")")
-- 3. every copied sniff scores as the module's own, and every score is in 0..1 (the cost order relies on it)
local copied, diff, over = 0, 0, 0
for _, e in Registry do
local s = (Sniffs :: any)[e.path]
t:eq(s ~= nil, e.sniff < 2, e.path .. ": in Sniffs.luau as Registry.sniff says")
if s then
copied += 1
end
end
for _, b in blobs do
local buf = buffer.fromstring(b.data)
for _, e in Registry do
local own = modules[e.path].sniff
local ok1, s1 = pcall(own, Bytes.reader(buf))
if ok1 and type(s1) == "number" and s1 > 1 then
over += 1
t:note("%s scores %s on a sample of %s", e.path, tostring(s1), b.from)
end
local s = (Sniffs :: any)[e.path]
if s then
local ok2, s2 = pcall(s, Bytes.reader(buf))
if ok1 ~= ok2 or (ok1 and s1 ~= s2) then
diff += 1
if diff <= 10 then
t:note("%s on a sample of %s: module %s, copy %s", e.path, b.from, tostring(s1), tostring(s2))
end
end
end
end
end
t:eq(diff, 0, "copied sniffs score as the modules do")
t:eq(over, 0, "no sniff scores over 1")
-- 4. F.detect = the reference: no name, the reference's own extension, a wrong one, an unknown one; and per category
local runs, mismatch = 0, 0
local function same(buf: buffer, from: string, name: string?, category: string?)
local want = refName(buf, name, category)
local got = F.detect(buf, { name = name, category = category })
runs += 1
if got ~= want then
mismatch += 1
if mismatch <= 10 then
t:note("sample of %s, name %s, category %s: got %s, want %s", from, tostring(name), tostring(category), tostring(got), tostring(want))
end
end
end
for _, b in blobs do
local buf = buffer.fromstring(b.data)
same(buf, b.from, nil, nil)
local e = refDetect(buf, nil, nil)
if e then
same(buf, b.from, "x." .. e.extensions[1], nil)
same(buf, b.from, nil, e.category)
end
same(buf, b.from, "x.png", nil)
same(buf, b.from, "x.txt", nil)
same(buf, b.from, "x.bin", "audio")
end
t:eq(mismatch, 0, "F.detect matches the eager reference (" .. runs .. " detects)")
t:note("%d samples, %d detects, %d of %d sniffs copied into Sniffs.luau", #blobs, runs, copied, #Registry)
t:fuzz("detect", function(b: buffer): any
return F.detect(b)
end, { PNG, junk })
t:done()
+32
View File
@@ -69,4 +69,36 @@ function R.samples(cases: { any }, every: number?): { string }
return samples
end
-- the reference k x k box reduction of an rgba8 Image (the PNG decoder's maxSide / reduce): the alpha-weighted mean,
-- halves up, a fully transparent block is 0, 0, 0, 0
function R.box(img: Types.Image, k: number): Types.Image
local w, h, px = img.width, img.height, img.pixels
local ow, oh = (w + k - 1) // k, (h + k - 1) // k
local out = Types.Image.new(ow, oh)
for oy = 0, oh - 1 do
for ox = 0, ow - 1 do
local r, g, b, a, n = 0, 0, 0, 0, 0
for y = oy * k, math.min(oy * k + k, h) - 1 do
for x = ox * k, math.min(ox * k + k, w) - 1 do
local o = (y * w + x) * 4
local al = buffer.readu8(px, o + 3)
r += buffer.readu8(px, o) * al
g += buffer.readu8(px, o + 1) * al
b += buffer.readu8(px, o + 2) * al
a += al
n += 1
end
end
local o = (oy * ow + ox) * 4
if a > 0 then
buffer.writeu8(out.pixels, o, (r + a // 2) // a)
buffer.writeu8(out.pixels, o + 1, (g + a // 2) // a)
buffer.writeu8(out.pixels, o + 2, (b + a // 2) // a)
buffer.writeu8(out.pixels, o + 3, (a + n // 2) // n)
end
end
end
return out
end
return R
+18
View File
@@ -6,6 +6,7 @@ local Crc32 = require("@rosetta/core/Crc32")
local Err = require("@rosetta/core/Err")
local Types = require("@rosetta/Types")
local Cases = require("@tests/gen/apng_cases")
local R = require("@tests/image/_raster")
local t = T.suite("apng")
@@ -145,6 +146,23 @@ do
t:check(Png.composite({} :: any) == nil, "composite of a non-image")
end
do
-- reduce: every frame is box-reduced on its own; offsets are divided (rounded down)
local frames = 0
for _, c in Cases do
local full = decode(c.data)
local img, err = decode(c.data, { reduce = 2 })
t:check(img and #img.frames == #full.frames, c.name .. " reduce 2: " .. tostring(err))
for i, f in full.frames do
local g = img.frames[i]
t:check(g.x == f.x // 2 and g.y == f.y // 2 and g.delay == f.delay and g.dispose == f.dispose, c.name .. " reduce 2: frame " .. i .. " fields")
t:check(same(g.image, R.box(f.image, 2)), c.name .. " reduce 2: frame " .. i .. " pixels")
frames += 1
end
end
t:note("reduce 2: %d frames match the box reduction of the full frames", frames)
end
do
local samples = {}
for _, c in Cases do
+49
View File
@@ -272,6 +272,52 @@ do
t:note("%d truncated files, %d decoded partially", count, partial)
end
do
-- maxSide picks the smallest scale (up to 8) that fits: the same pixels as djpeg -scale 1/n
local checked, yielded = 0, 0
for _, c in Dec do
if c.refs then
local byScale = {}
for _, r in c.refs do
byScale[r.scale] = r
end
for _, r in c.refs do
local m = math.max(r.width, r.height)
local img, err = decode(c.data, { maxSide = m })
local s = img and img.meta.source.scale
local ref = s and byScale[s]
t:check(img and img.width <= m and img.height <= m and s <= r.scale, c.name .. " maxSide " .. m .. ": " .. tostring(err))
if ref then
t:check(Crc32.of(img.pixels) == ref.crc, c.name .. " maxSide " .. m .. ": pixels match djpeg 1/" .. s)
checked += 1
end
end
local r1 = byScale[1]
if r1 then
-- yield: called, may suspend the coroutine, and the pixels do not change
local calls = 0
local co = coroutine.wrap(function(): any
return decode(c.data, { yield = function()
calls += 1
coroutine.yield(false)
end })
end)
local img = co()
while img == false do
img = co()
end
t:check(img and Crc32.of(img.pixels) == r1.crc and (calls > 0 or r1.height <= 8), c.name .. ": yielding decode")
yielded += 1
end
end
end
t:note("maxSide: %d decodes bit-exact with djpeg -scale; yield: %d files", checked, yielded)
local _, e = decode(file("photo_q90_420"), { maxSide = 0 })
t:check(e and e.code == Err.ARG, "maxSide 0")
local big = decode(file("photo_q90_420"), { maxSide = 1 })
t:check(big and big.meta.source.scale == 8 and big.width == 20, "maxSide below 1/8 stops at 1/8")
end
do
local samples = {}
for i, c in Dec do
@@ -285,6 +331,9 @@ do
t:fuzz("decode 1/8", function(b: buffer)
return Jpeg.decode(Bytes.reader(b), { scale = 8 })
end, samples, { mutations = 2, garbage = 30 })
t:fuzz("decode maxSide + yield", function(b: buffer)
return Jpeg.decode(Bytes.reader(b), { maxSide = 30, yield = function() end })
end, samples, { mutations = 2, keepHeader = 2 })
end
t:done()
+90
View File
@@ -7,6 +7,8 @@ local Err = require("@rosetta/core/Err")
local Types = require("@rosetta/Types")
local Suite = require("@tests/gen/png_suite")
local Gen = require("@tests/gen/png_gen")
local Big = require("@tests/gen/png_big16")
local R = require("@tests/image/_raster")
local t = T.suite("png")
@@ -124,6 +126,91 @@ do
t:check(e2 and e2.code == Err.ARG, "unknown colorType returns Err.ARG")
end
do
-- maxSide / reduce: the box reduction of the full decode, for every colour type, depth and interlace
local n = 0
local function cases(list: { any })
for _, c in list do
if not c.corrupt then
local full = decode(c.data)
for _, k in { 2, 4, 8 } do
local img, err = decode(c.data, { reduce = k })
local want = R.box(full, k)
t:check(img and img.width == want.width and img.height == want.height, c.name .. " reduce " .. k .. ": " .. tostring(err))
t:check(img and buffer.tostring(img.pixels) == buffer.tostring(want.pixels), c.name .. " reduce " .. k .. ": pixels")
n += 1
end
local m = math.max(1, (math.max(c.width, c.height) + 2) // 3)
local img = decode(c.data, { maxSide = m })
t:check(img and img.width <= m and img.height <= m and img.meta.source.reduce >= 1, c.name .. " maxSide " .. m)
local k = img.meta.source.reduce
t:check(k == 1 or (c.width + k // 2 - 1) // (k // 2) > m or (c.height + k // 2 - 1) // (k // 2) > m, c.name .. " maxSide: the smallest factor")
t:check(buffer.tostring(img.pixels) == buffer.tostring((if k == 1 then full else R.box(full, k)).pixels), c.name .. " maxSide " .. m .. ": pixels")
end
end
end
cases(Suite)
cases(Gen)
t:note("reduce: %d decodes match the reference box reduction", n)
local _, e = decode(Gen[1].data, { reduce = 3 })
t:check(e and e.code == Err.ARG, "reduce 3: " .. tostring(e))
local _, e2 = decode(Gen[1].data, { maxSide = 0 })
t:check(e2 and e2.code == Err.ARG, "maxSide 0: " .. tostring(e2))
local _, e3 = decode(Gen[1].data, { yield = 1 })
t:check(e3 and e3.code == Err.ARG, "yield not a function: " .. tostring(e3))
end
do
-- 2048 x 2048 16-bit RGB in 8 KB IDATs: full, maxSide 512, and a yielding decode inside a coroutine
local b = buffer.fromstring(Big.data)
local full, err = decode(b)
t:check(full and full.width == 2048 and Crc32.of(full.pixels) == Big.crc, "16-bit 2048x2048: " .. tostring(err))
local small = decode(b, { maxSide = 512 })
t:check(small and small.width == 512 and small.height == 512 and small.meta.source.reduce == 4, "16-bit maxSide 512: size")
t:check(small and buffer.tostring(small.pixels) == buffer.tostring(R.box(full, 4).pixels), "16-bit maxSide 512: pixels")
local calls = 0
local co = coroutine.create(function(): any
return decode(b, { maxSide = 512, yieldRows = 64, yield = function()
calls += 1
coroutine.yield()
end })
end)
local ok, res = coroutine.resume(co)
local resumes = 0
while ok and coroutine.status(co) ~= "dead" do
resumes += 1
ok, res = coroutine.resume(co)
end
t:check(ok and res and buffer.tostring(res.pixels) == buffer.tostring(small.pixels), "yielding decode: same pixels")
t:check(calls == 2048 // 64 and resumes == calls, string.format("yield: %d calls every 64 rows, %d resumes", calls, resumes))
t:note("16-bit 2048x2048 in %d IDATs: full and maxSide 512 match, %d yields", #Big.data // 8204, calls)
end
do
-- yield on every PngSuite / generated image (plain and Adam7): called, and the pixels do not change
local bad, total = 0, 0
for _, list in { Suite, Gen } do
for _, c in list :: { any } do
if not c.corrupt then
local calls = 0
local img = decode(c.data, { yieldRows = 1, yield = function()
calls += 1
end })
local k = 2
local red = decode(c.data, { reduce = k, yieldRows = 1, yield = function()
calls += 1
end })
if not img or Crc32.of(img.pixels) ~= c.crc or calls < c.height or not red then
bad += 1
end
total += 1
end
end
end
t:eq(bad, 0, "yield: every image decodes the same with a yield hook")
t:note("yield: %d images decode the same with a hook on every row", total)
end
do
local samples = {}
for i, c in Suite do
@@ -142,6 +229,9 @@ do
t:fuzz("decode checkCrc", function(b: buffer)
return Png.decode(Bytes.reader(b), { checkCrc = true })
end, samples, { mutations = 2, garbage = 50 })
t:fuzz("decode maxSide + yield", function(b: buffer)
return Png.decode(Bytes.reader(b), { maxSide = 5, yieldRows = 1, yield = function() end })
end, samples, { mutations = 4, keepHeader = 8 })
end
t:done()
+470 -17
View File
@@ -10,6 +10,7 @@ local Bytes = require("@rosetta/core/Bytes")
local Err = require("@rosetta/core/Err")
local Types = require("@rosetta/Types")
local Mat4 = require("@rosetta/codecs/model/Mat4")
local Anim = require("@rosetta/model/blend/Anim")
local Sampler = require("@rosetta/codecs/model/Sampler")
local Versions = require("@tests/gen/blend_versions")
local Files = require("@tests/gen/blend_files")
@@ -144,7 +145,90 @@ local function corners(mesh: any, facemats: { number }, faceSizes: { number }?):
return out
end
local checked = { worlds = 0, meshes = 0, normals = 0, weights = 0, shapes = 0, frames = 0, skinned = 0, curves = 0, materials = 0, cameras = 0, lights = 0 }
-- rig values against bpy: numbers within eps, lists element by element, "" in the reference for nil
local function same(got: any, want: any, eps: number): boolean
if want == "" and got == nil then
return true
end
if type(want) == "number" then
return type(got) == "number" and near(got, want, eps)
end
if type(want) == "table" then
if type(got) ~= "table" or #got ~= #want then
return false
end
for i = 1, #want do
if not same(got[i], want[i], eps) then
return false
end
end
return true
end
return got == want
end
-- custom properties: tables key by key (arrays element by element), numbers within 1e-5
local function deepSame(got: any, want: any): boolean
if type(want) == "table" then
if type(got) ~= "table" then
return false
end
for k, v in want do
if not deepSame(got[k], v) then
return false
end
end
for k in got do
if want[k] == nil then
return false
end
end
return true
end
if type(want) == "number" then
return type(got) == "number" and near(got, want, 1e-5)
end
return got == want
end
local DRIVEN = {} -- a reference value bpy evaluated through a driver: not compared
local function angleNear(a: number?, b: number, eps: number): boolean
if not a then
return false
end
local d = (a - b) % (2 * math.pi)
return d < eps or 2 * math.pi - d < eps
end
local REQUIRED: { [string]: { string } } = {
IK = { "chain_count", "pole_target", "pole_subtarget", "pole_angle", "use_tail", "use_stretch", "iterations", "weight" },
COPY_ROTATION = { "use_x", "use_y", "use_z", "invert_x", "invert_y", "invert_z", "mix_mode", "euler_order" },
COPY_LOCATION = { "use_x", "use_y", "use_z", "invert_x", "invert_y", "invert_z", "use_offset", "head_tail" },
COPY_SCALE = { "use_x", "use_y", "use_z", "use_offset", "power", "use_add", "use_make_uniform" },
COPY_TRANSFORMS = { "mix_mode", "head_tail" },
DAMPED_TRACK = { "track_axis", "head_tail" },
LIMIT_ROTATION = { "use_limit_x", "use_limit_y", "use_limit_z", "min_x", "max_x", "min_z", "max_z", "use_transform_limit", "use_legacy_behavior" },
LIMIT_LOCATION = { "use_min_x", "use_max_x", "use_min_z", "use_max_z", "min_x", "max_x", "min_z", "max_z", "use_transform_limit" },
CHILD_OF = { "inverse_matrix", "use_location_x", "use_rotation_y", "use_scale_x", "use_scale_z", "set_inverse_pending" },
ACTION = { "action", "transform_channel", "frame_start", "frame_end", "min", "max", "mix_mode", "use_bone_object_action", "use_eval_time", "eval_time" },
TRANSFORM = { "map_from", "map_to", "map_to_x_from", "map_to_y_from", "map_to_z_from", "use_motion_extrapolate", "from_rotation_mode",
"to_euler_order", "mix_mode", "mix_mode_rot", "mix_mode_scale", "from_min_x", "from_max_z", "to_min_y", "to_max_x",
"from_min_y_rot", "from_max_x_rot", "to_min_z_rot", "to_max_y_rot", "from_min_x_scale", "from_max_y_scale", "to_min_x_scale", "to_max_y_scale" },
STRETCH_TO = { "rest_length", "bulge", "volume", "keep_axis", "use_bulge_min", "use_bulge_max", "bulge_min", "bulge_max", "bulge_smooth" },
ARMATURE = { "use_deform_preserve_volume", "use_bone_envelopes", "use_current_location", "targets" },
FLOOR = { "floor_location", "offset", "use_rotation" },
LIMIT_DISTANCE = { "distance", "limit_mode" },
TRACK_TO = { "track_axis", "up_axis", "use_target_z" },
LOCKED_TRACK = { "track_axis", "lock_axis" },
}
local BONE_KEYS = { "inherit_scale", "use_inherit_rotation", "use_local_location", "use_relative_parent", "bbone_segments",
"bbone_x", "bbone_z", "bbone_easein", "bbone_easeout", "bbone_rollin", "bbone_rollout", "bbone_curveinx", "bbone_curveinz",
"bbone_curveoutx", "bbone_curveoutz", "bbone_scalein", "bbone_scaleout", "bbone_handle_type_start", "bbone_handle_type_end",
"bbone_custom_handle_start", "bbone_custom_handle_end", "use_endroll_as_inroll", "bbone_mapping_mode" }
local COMMON = { "type", "name", "influence", "mute", "target", "subtarget", "owner_space", "target_space" }
local checked = { graphs = 0, drivers = 0, props = 0, actions = 0, rigs = 0, constraints = 0, worlds = 0, meshes = 0, normals = 0, weights = 0, shapes = 0, frames = 0, skinned = 0, curves = 0, materials = 0, cameras = 0, lights = 0 }
local samples = {}
t:check(#Sets.old >= 4, "the old demo files were fetched (" .. #Sets.old .. ")")
@@ -173,7 +257,44 @@ for _, tag in { "old", "279", "293", "35", "41", "cur" } do
local i = objects[o.name]
t:check(i, label .. ": object " .. o.name)
if i then
t:check(nearList(W[i], o.world, 1e-4), label .. ": " .. o.name .. " world\n got " .. fmt(W[i]) .. "\n want " .. fmt(o.world))
-- with the reference's constraints muted (the reader does not evaluate them: bone-parented objects follow
-- the stored pose)
local wantW = o.worldMuted or o.world
t:check(nearList(W[i], wantW, 1e-4), label .. ": " .. o.name .. " world\n got " .. fmt(W[i]) .. "\n want " .. fmt(wantW))
local e = scene.nodes[i].extras.blend
t:check((e.hide_viewport == true) == o.hide_viewport and (e.hide_render == true) == o.hide_render, label .. ": " .. o.name .. " hide flags")
-- parenting and the modifier stack as the API names them
if o.parent ~= "" and o.parent_type then
t:eq(e.parent_type, o.parent_type, label .. ": " .. o.name .. " parent_type")
t:eq(e.parent_bone or "", if o.parent_type == "BONE" then o.parent_bone else "", label .. ": " .. o.name .. " parent_bone")
if o.parent_info and o.parent_info.matrix_parent_inverse then
t:check(nearList(e.matrix_parent_inverse, o.parent_info.matrix_parent_inverse, 1e-5), label .. ": " .. o.name .. " matrix_parent_inverse")
if string.sub(o.parent_type, 1, 6) == "VERTEX" then
local want = table.move(o.parent_info.parent_vertices, 1, if o.parent_type == "VERTEX" then 1 else 3, 1, {})
t:check(same(e.parent_vertices, want, 0) and not e.parent_vertices_unresolved, label .. ": " .. o.name .. " parent_vertices")
end
end
end
-- Blender's versioning adds modifiers to old files (particle systems before 2.5, "Auto Smooth" before 4.1)
local modsRef = {}
for _, rm in o.modifier_info or {} do
if not (src.version < 401 and rm.type == "NODES" and rm.name == "Auto Smooth") then
table.insert(modsRef, rm)
end
end
if o.modifier_info and src.version >= 250 then
t:eq(#(e.modifiers or {}), #modsRef, label .. ": " .. o.name .. " modifiers")
for k, rm in modsRef do
local m = (e.modifiers or {})[k] or {}
for key, want in rm do
local got = m[key]
if key == "object" and type(got) == "number" then
got = scene.nodes[got].name
end
t:check(same(got, want, 0), label .. ": " .. o.name .. " modifier " .. rm.name .. " " .. key .. ": got " .. tostring(got) .. ", want " .. tostring(want))
end
end
end
checked.worlds += 1
end
end
@@ -196,8 +317,12 @@ for _, tag in { "old", "279", "293", "35", "41", "cur" } do
t:eq(e.vertices, mi.vertices, label .. ": " .. o.name .. " vertices")
local tris = 0
local lo, hi = { math.huge, math.huge, math.huge }, { -math.huge, -math.huge, -math.huge }
local facePrims = 0
for _, p in mesh.primitives do
tris += p.indices.count // 3
if p.mode ~= "lines" then
tris += p.indices.count // 3
facePrims += 1
end
local P = read(p.attributes.POSITION)
for v = 0, p.attributes.POSITION.count - 1 do
for k = 1, 3 do
@@ -219,7 +344,7 @@ for _, tag in { "old", "279", "293", "35", "41", "cur" } do
end
t:eq(e.faces, mi.faces, label .. ": " .. o.name .. " faces")
t:eq(e.corners, mi.corners, label .. ": " .. o.name .. " corners")
t:eq(#mesh.primitives, (function()
t:eq(facePrims, (function()
local u, n = {}, 0
for _, m in mi.facemats do
if not u[m] then
@@ -331,20 +456,52 @@ for _, tag in { "old", "279", "293", "35", "41", "cur" } do
end
end
t:eq(#(mesh.weights or {}), #mi.shapes - 1, label .. ": " .. o.name .. " morph weights")
local names = mesh.extras.targetNames or {}
local keys = mesh.extras.blend.shape_keys or {}
t:eq(#keys, #mi.shapes, label .. ": " .. o.name .. " extras.blend.shape_keys")
t:eq(mesh.extras.blend.reference_key, mi.reference, label .. ": " .. o.name .. " reference key")
local groupWeight = {}
for v, list in mi.weights or {} do
for _, g in list do
groupWeight[g[1] .. "/" .. (v - 1)] = g[2]
end
end
local driven = {}
for _, d in o.shape_key_drivers or {} do
driven[d.data_path] = true
end
for k, s in mi.shapes do
local e = keys[k] or {}
local valueDriven = driven['key_blocks["' .. s.name .. '"].value']
t:check(e.name == s.name and e.relative_key == s.relative and e.mute == s.mute and (e.vertex_group or "") == s.vertex_group
and near(e.slider_min, s.slider_min, 1e-6) and near(e.slider_max, s.slider_max, 1e-6)
and (o.shapeAction or valueDriven or near(e.value, s.value, 1e-6)), label .. ": " .. o.name .. " shape key " .. s.name .. " fields")
end
local ti = 0
local worst = 0
for k, s in mi.shapes do
if k ~= refIndex then
ti += 1
t:eq(names[ti], s.name, label .. ": " .. o.name .. " targetNames[" .. ti .. "]")
if not o.shapeAction then -- animated values are checked per frame below
t:check(near(mesh.weights[ti], s.value, 1e-6), label .. ": " .. o.name .. " " .. s.name .. " weight")
t:check(near(mesh.weights[ti], if s.mute then 0 else s.value, 1e-6), label .. ": " .. o.name .. " " .. s.name .. " weight")
end
-- the delta from the relative key, times the key's vertex group weight
local rel = refIndex
for q, r in mi.shapes do
if r.name == s.relative then
rel = q
end
end
for ci, cv in if mi.cornerVerts then cs else {} do
local tgt = cv[1].targets and cv[1].targets[ti]
local get = tgt and read(tgt.POSITION)
local v = mi.cornerVerts[ci]
for q = 1, 3 do
local want = s.co[v * 3 + q] - mi.shapes[refIndex].co[v * 3 + q]
local want = s.co[v * 3 + q] - mi.shapes[rel].co[v * 3 + q]
if s.vertex_group ~= "" then
want *= groupWeight[s.vertex_group .. "/" .. v] or 0
end
worst = math.max(worst, if get then math.abs(get(cv[2], q - 1) - want) else math.huge)
end
end
@@ -364,8 +521,10 @@ for _, tag in { "old", "279", "293", "35", "41", "cur" } do
local g = glMats[m.name]
if m.extras.blend.principled and g then
local pbr = g.pbrMetallicRoughness or {}
t:check(nearList(m.baseColor, pbr.baseColorFactor or { 1, 1, 1, 1 }, 1e-5), label .. ": " .. m.name .. " base colour " .. fmt(m.baseColor))
t:check(near(m.metallic, pbr.metallicFactor or 1, 1e-5) and near(m.roughness, pbr.roughnessFactor or 1, 1e-5), label .. ": " .. m.name .. " metallic / roughness")
-- an input linked to no image: the exporter writes its own guess, the reader a neutral value (checked below)
local linked = m.extras.blend.linked or {}
t:check(linked.baseColor or nearList(m.baseColor, pbr.baseColorFactor or { 1, 1, 1, 1 }, 1e-5), label .. ": " .. m.name .. " base colour " .. fmt(m.baseColor))
t:check((linked.metallic or near(m.metallic, pbr.metallicFactor or 1, 1e-5)) and (linked.roughness or near(m.roughness, pbr.roughnessFactor or 1, 1e-5)), label .. ": " .. m.name .. " metallic / roughness")
t:check(nearList(m.emissive, g.emissiveFactor or { 0, 0, 0 }, 1e-5), label .. ": " .. m.name .. " emissive " .. fmt(m.emissive))
local ges = g.extensions and g.extensions.KHR_materials_emissive_strength
local es = m.extensions and m.extensions.KHR_materials_emissive_strength
@@ -373,11 +532,72 @@ for _, tag in { "old", "279", "293", "35", "41", "cur" } do
t:eq(string.upper(m.alphaMode), g.alphaMode or "OPAQUE", label .. ": " .. m.name .. " alpha mode")
t:eq(m.baseColorTexture ~= nil, pbr.baseColorTexture ~= nil, label .. ": " .. m.name .. " base colour texture")
t:eq(m.emissiveTexture ~= nil, g.emissiveTexture ~= nil, label .. ": " .. m.name .. " emissive texture")
t:eq(m.normalTexture ~= nil, g.normalTexture ~= nil, label .. ": " .. m.name .. " normal texture")
-- the exporter writes a bump height map as the normal texture; the reader keeps it as extras.blend.bumpTexture
t:eq(m.normalTexture ~= nil or m.extras.blend.bumpTexture ~= nil, g.normalTexture ~= nil, label .. ": " .. m.name .. " normal texture")
-- images found through pass-through nodes, as the exporter finds them: base colour, and roughness as its
-- metallic-roughness texture
local function texName(ref: any): string?
return ref and scene.textures[ref.texture] and scene.textures[ref.texture].name
end
local function glName(info: any): string?
local tx = info and gl.textures and gl.textures[info.index + 1]
local im = tx and tx.source and gl.images and gl.images[tx.source + 1]
return im and im.name
end
if pbr.baseColorTexture and texName(m.baseColorTexture) then
t:check(string.find(glName(pbr.baseColorTexture) or "", texName(m.baseColorTexture) :: string, 1, true) == 1, label .. ": " .. m.name .. " base colour image " .. tostring(texName(m.baseColorTexture)) .. " / " .. tostring(glName(pbr.baseColorTexture)))
end
t:eq(m.metallicRoughnessTexture ~= nil or m.extras.blend.roughnessTexture ~= nil or m.extras.blend.metallicTexture ~= nil, pbr.metallicRoughnessTexture ~= nil, label .. ": " .. m.name .. " metallic / roughness texture")
if g.normalTexture and m.normalTexture then
t:check(near(m.normalTexture.scale, g.normalTexture.scale or 1, 1e-5), label .. ": " .. m.name .. " normal scale")
end
checked.materials += 1
-- the graph against bpy: the image each input reaches, the nodes passed, vertex colours, unresolved links
for _, rm in ref.materials do
if rm.name ~= m.name then
continue
end
local KEYS = { ["Base Color"] = "baseColor", Roughness = "roughness", Metallic = "metallic", Normal = "normal", Alpha = "alpha", ["Emission Color"] = "emissive", Emission = "emissive" }
local e = m.extras.blend
for input, rg in rm.graph or {} do
local key = KEYS[input]
local what = label .. ": " .. m.name .. " " .. input
local ref = if key == "baseColor" then m.baseColorTexture elseif key == "normal" then (m.normalTexture or e.bumpTexture)
elseif key == "emissive" then m.emissiveTexture else e[key .. "Texture"]
if rg.image then
local tex = ref and scene.textures[ref.texture]
t:check(tex and tex.name == rg.image.name, what .. " image " .. tostring(tex and tex.name) .. " / " .. rg.image.name)
local viaKey = if key == "normal" and rg.linked == "ShaderNodeBump" then "bump" else key
t:check(same((e.via or {})[viaKey] or {}, rg.via, 0), what .. " via")
if key == "roughness" or key == "metallic" then
t:eq(ref and ref.channel, if rg.output == "Alpha" then "A" else "R", what .. " channel")
end
if rg.image.tiles and tex then
local tiles = tex.extras.blend.tiles or {}
t:eq(#tiles, #rg.image.tiles, what .. " tiles")
for q, rt in rg.image.tiles do
local tile = tiles[q] or {}
t:check(tile.number == rt.number and (tile.label or tostring(tile.number)) == rt.label, what .. " tile " .. rt.number)
end
t:eq(tex.uri, (string.gsub(rg.image.filepath, "^//", "")), what .. " uri with the <UDIM> token")
t:check(tex.data and buffer.tostring(tex.data) == Files["udim.1001.png"], what .. " the first tile's bytes")
end
if rg.linked == "ShaderNodeBump" then
t:check(near(e.bumpStrength, rg.strength, 1e-5) and near(e.bumpDistance, rg.distance, 1e-5), what .. " bump strength / distance")
end
elseif rg.vertexColor then
t:eq(e.vertexColor, rg.vertexColor, what .. " vertex colour")
else
t:eq((e.linked or {})[key], rg["end"], what .. " flagged as linked")
if key == "baseColor" then
t:check(nearList({ m.baseColor[1], m.baseColor[2], m.baseColor[3] }, { 0.8, 0.8, 0.8 }, 1e-6), what .. " neutral grey")
elseif key == "metallic" then
t:eq(m.metallic, 0, what .. " neutral metallic")
end
end
checked.graphs += 1
end
end
elseif not m.extras.blend.principled then
for _, rm in ref.materials do
if rm.name == m.name then
@@ -456,7 +676,9 @@ for _, tag in { "old", "279", "293", "35", "41", "cur" } do
for _, n in scene.nodes do
if n.mesh then
for _, p in scene.meshes[n.mesh].primitives do
got += p.indices.count // 3
if p.mode ~= "lines" then
got += p.indices.count // 3
end
end
end
end
@@ -466,12 +688,222 @@ for _, tag in { "old", "279", "293", "35", "41", "cur" } do
for k, s in scene.skins do
t:eq(#s.joints, #gl.skins[k].joints, label .. ": skin joints")
end
-- bones at the saved frame (the rest pose here)
for armName, list in ref.armatures do
local aw = W[objects[armName]]
for _, b in list do
local j = bones[b.name]
t:check(j and nearList(W[j], Scene.mul(aw, b["local"]), 1e-4), label .. ": bone " .. b.name)
-- bones at the saved frame: the saved pose (constraints muted in the reference)
for key, want in ref.posedBones do
local j = bones[string.match(key, "/(.+)$")]
t:check(j and nearList(W[j], want, 1e-4), label .. ": bone " .. key)
end
-- rig data against bpy (Blender 5.x reads the old files through its versioning: layers and bone groups as
-- collections, bone group colours as bone colours)
local function nameOf(v: any): any
return if type(v) == "number" then scene.nodes[v].name else v
end
local function compareTable(got: { [string]: any }, want: { [string]: any }, keys: { string }, what: string)
for _, k in keys do
if want[k] == nil and (k == "target" or k == "subtarget") then
t:check(got[k] == nil, what .. ": no " .. k)
continue
end
t:check(want[k] ~= nil, what .. ": the reference has " .. k)
if want[k] == DRIVEN then
continue
end
local g = got[k]
if k == "target" or k == "pole_target" or k == "custom_shape" then
g = nameOf(g)
elseif k == "targets" and type(g) == "table" then
local named = {}
for i, x in g do
named[i] = { target = nameOf(x.target), subtarget = x.subtarget, weight = x.weight }
end
local ok = #named == #want[k]
for i, x in want[k] do
local y = named[i] or {}
ok = ok and y.target == x.target and (y.subtarget or "") == x.subtarget and near(y.weight or -1, x.weight, 1e-5)
end
t:check(ok, what .. " targets")
continue
end
t:check(same(g, want[k], 1e-5), what .. " " .. k .. ": got " .. tostring(g) .. ", want " .. tostring(want[k]))
end
end
local function compareColor(got: any, want: any, what: string)
if want.palette == "DEFAULT" then
t:check(got == nil, what .. ": default colour")
else
-- bpy's custom colours are the stored ones (zero for a theme set in 4.x); the reader gives the theme's
local custom = want.palette == "CUSTOM"
t:check(got and got.palette == want.palette and got.normal and (not custom or nearList(got.normal, want.normal, 1e-5) and nearList(got.select, want.select, 1e-5) and nearList(got.active, want.active, 1e-5)), what .. ": colour " .. want.palette)
end
end
local function compareDrivers(got: { any }?, want: { any }, what: string)
local list = got or {}
t:eq(#list, #want, what .. " drivers")
for k, rd in want do
local d = list[k] or { keys = {}, modifiers = {}, driver = { variables = {} } }
local w = what .. " driver " .. rd.data_path
t:check(d.data_path == rd.data_path and d.array_index == rd.array_index and d.extrapolation == rd.extrapolation, w)
t:eq(#d.keys, #rd.keys, w .. " keys")
for q, rk in rd.keys do
local ck = d.keys[q] or {}
t:check(nearList(ck.co, rk.co, 1e-5) and ck.interpolation == rk.interpolation, w .. " key " .. q)
end
local dr, rr = d.driver or { variables = {} }, rd.driver
t:check(dr.type == rr.type and dr.expression == rr.expression and dr.use_self == rr.use_self, w .. " type / expression / use_self: " .. tostring(dr.type) .. " " .. tostring(dr.expression) .. " " .. tostring(dr.use_self))
t:eq(#dr.variables, #rr.variables, w .. " variables")
for q, rv in rr.variables do
local v = dr.variables[q] or { targets = {} }
t:check(v.name == rv.name and v.type == rv.type and #v.targets == #rv.targets, w .. " variable " .. rv.name)
for i, rt in rv.targets do
local tg = v.targets[i] or {}
for _, key in { "id_type", "data_path", "bone_target", "transform_type", "transform_space", "rotation_mode", "context_property" } do
t:check(tg[key] == rt[key], w .. " variable " .. rv.name .. " target " .. i .. " " .. key .. ": got " .. tostring(tg[key]) .. ", want " .. tostring(rt[key]))
end
t:check(same(nameOf(tg.id), rt.id, 0), w .. " variable " .. rv.name .. " target id")
end
end
t:eq(#d.modifiers, #rd.modifiers, w .. " modifiers")
for q, rm in rd.modifiers do
local m = d.modifiers[q] or {}
for key, rv in rm do
if m[key] ~= nil or key == "type" then
t:check(same(m[key], rv, 1e-5), w .. " modifier " .. rm.type .. " " .. key .. ": got " .. tostring(m[key]) .. ", want " .. tostring(rv))
end
end
end
checked.drivers += 1
end
end
for _, o in ref.objects do
local i = objects[o.name]
if i and o.drivers then
local e = scene.nodes[i].extras.blend
t:check(deepSame(e.props or {}, o.props), label .. ": " .. o.name .. " props")
compareDrivers(e.drivers, o.drivers, label .. ": " .. o.name)
compareDrivers(e.data_drivers, o.data_drivers, label .. ": " .. o.name .. " data")
local m = scene.nodes[i].mesh and scene.meshes[scene.nodes[i].mesh]
compareDrivers(m and m.extras.blend.shape_key_drivers, o.shape_key_drivers, label .. ": " .. o.name .. " shape keys")
checked.props += 1
end
end
local POSE_KEYS = { "custom_shape", "custom_shape_transform", "custom_shape_translation", "custom_shape_rotation_euler",
"custom_shape_scale_xyz", "use_custom_shape_bone_size", "lock_location", "lock_rotation", "lock_rotation_w",
"lock_rotations_4d", "lock_scale", "rotation_mode", "ik_stretch", "location", "rotation_quaternion", "rotation_euler",
"rotation_axis_angle", "scale" }
for _, a in { "x", "y", "z" } do
for _, k in { "lock_ik_", "use_ik_limit_", "ik_min_", "ik_max_", "ik_stiffness_" } do
table.insert(POSE_KEYS, k .. a)
end
end
for armName, rig in ref.rigs or {} do
local ae = scene.nodes[objects[armName]].extras.blend
t:eq(#ae.bone_collections, #rig.collections, label .. ": " .. armName .. " bone collections")
for k, c in rig.collections do
local g = ae.bone_collections[k] or {}
t:check(g.name == c.name and g.visible == c.visible and (g.parent or "") == c.parent, label .. ": collection " .. c.name)
end
for _, b in rig.bones do
local e = scene.nodes[bones[b.name]].extras.blend
local what = label .. ": bone " .. b.name
t:check(e.deform == b.deform and e.use_connect == b.use_connect and e.show_wire == b.show_wire, what .. " flags")
t:check(nearList(e.head_local, b.head_local, 1e-5) and nearList(e.tail_local, b.tail_local, 1e-5), what .. " head / tail")
t:check(angleNear(e.roll, b.roll, 1e-4), what .. " roll " .. tostring(e.roll) .. " / " .. b.roll)
t:check(same(e.collections, b.collections, 0), what .. " collections " .. table.concat(e.collections, ",") .. " / " .. table.concat(b.collections, ","))
compareColor(e.color, b.color, what)
compareColor(e.pose_color, b.pose.color, what .. " pose")
compareTable(e, b.pose, POSE_KEYS, what)
local bk = {}
for _, k in BONE_KEYS do
if b.bone[k] ~= nil then
table.insert(bk, k)
end
end
compareTable(e, b.bone, bk, what)
if b.pose.props then
t:check(deepSame(e.props or {}, b.pose.props) and deepSame(e.bone_props or {}, b.pose.bone_props), what .. " props / bone_props")
checked.props += 1
end
t:eq(#e.constraints, #b.pose.constraints, what .. " constraints")
for k, rc in b.pose.constraints do
-- bpy reports driven settings as evaluated; the file keeps the last stored value
rc = table.clone(rc)
for _, o in ref.objects do
if o.name == armName then
for _, d in o.drivers or {} do
local key = string.match(d.data_path, '^pose%.bones%["' .. b.name:gsub("%p", "%%%0") .. '"%]%.constraints%["' .. rc.name:gsub("%p", "%%%0") .. '"%]%.([%w_]+)$')
if key then
rc[key] = DRIVEN
end
end
end
end
local c = e.constraints[k] or {}
local keys = table.clone(COMMON)
for _, x in REQUIRED[rc.type] or {} do
table.insert(keys, x)
end
compareTable(c, rc, keys, what .. " constraint " .. rc.name)
for key, v in c do -- everything else the reader gives, where bpy has it
if rc[key] ~= nil and rc[key] ~= DRIVEN and type(v) ~= "table" and key ~= "target" and key ~= "pole_target" then
t:check(same(v, rc[key], 1e-5), what .. " constraint " .. rc.name .. " " .. key .. ": got " .. tostring(v) .. ", want " .. tostring(rc[key]))
end
end
checked.constraints += 1
end
end
checked.rigs += 1
end
if next(ref.rigs or {}) then
local mb = scene.meta.blend
for k, cs in ref.themeBoneColors do
local g = mb.bone_color_sets[k]
t:check(g and nearList(g.normal, cs.normal, 1e-5) and nearList(g.select, cs.select, 1e-5) and nearList(g.active, cs.active, 1e-5), label .. ": theme bone colours " .. k)
end
-- every custom shape is a widget: a scene node, or a mesh outside the scene; edge-only widgets as lines
local shapes = {}
for _, rig in ref.rigs do
for _, b in rig.bones do
if b.pose.custom_shape ~= "" then
shapes[b.pose.custom_shape] = true
end
end
end
for _, w in mb.widgets do
t:check(shapes[w.name], label .. ": widget " .. w.name .. " is a custom shape")
shapes[w.name] = nil
t:check(w.node == nil or (scene.nodes[w.node].name == w.name and scene.nodes[w.node].extras.blend.widget == true), label .. ": widget node")
local m = w.mesh and scene.meshes[w.mesh]
local lines = 0
for _, p in m and m.primitives or {} do
if p.mode == "lines" then
lines += p.indices.count // 2
end
end
t:check(lines > 0, label .. ": widget " .. w.name .. " edges (" .. lines .. ")")
end
t:check(next(shapes) == nil, label .. ": every custom shape is listed")
end
-- every action, raw: frame range, f-curves, keyframe points (bpy's first layer / strip / channel bag)
for name, ra in if src.version >= 250 then ref.allActions or {} else {} do -- older files: IPOs Blender converts on load
local a = scene.meta.blend and scene.meta.blend.actions and scene.meta.blend.actions[name]
t:check(a and nearList(a.frame_range, ra.frame_range, 1e-5), label .. ": action " .. name .. " frame range")
if not a then
continue
end
t:eq(#a.curves, #ra.curves, label .. ": action " .. name .. " curves")
for k, rc in ra.curves do
local c = a.curves[k] or { keys = {} }
local what = label .. ": action " .. name .. " " .. rc.data_path .. "[" .. rc.array_index .. "]"
t:check(c.data_path == rc.data_path and c.array_index == rc.array_index and c.extrapolation == rc.extrapolation, what)
local bone, prop = string.match(rc.data_path, '^pose%.bones%["(.-)"%]%.([%w_]+)$')
t:check(c.bone == bone and c.path == (prop or rc.data_path), what .. " bone / path")
t:eq(#c.keys, #rc.keys, what .. " keys")
for q, rk in rc.keys do
local ck = c.keys[q] or {}
t:check(nearList(ck.co, rk.co, 1e-5) and nearList(ck.handle_left, rk.handle_left, 1e-4) and nearList(ck.handle_right, rk.handle_right, 1e-4)
and ck.interpolation == rk.interpolation and ck.easing == rk.easing, what .. " key " .. q)
end
checked.actions += 1
end
end
-- f-curves through the evaluator, at every half frame (bezier, linear, constant, extrapolation)
@@ -551,7 +983,16 @@ for _, tag in { "old", "279", "293", "35", "41", "cur" } do
for name, values in p.shapes do
local i = objects[name]
local w = pose[i] and pose[i].weights or scene.nodes[i].weights
local want = table.move(values, 2, #values, 1, {})
local want = {}
for _, o in ref.objects do
if o.name == name then
for k, s in o.mesh.shapes do
if s.name ~= o.mesh.reference then
table.insert(want, if s.mute then 0 else values[k])
end
end
end
end
-- pre-2.5 IPO bezier keys: Blender recomputes auto handles when converting them; we keep the stored ones
local eps = if tag == "old" then 1e-2 else 1e-3
t:check(nearList(w, want, eps), label .. ": frame " .. frame .. " " .. name .. " shape values " .. fmt(w) .. " / " .. fmt(want))
@@ -609,6 +1050,7 @@ for _, tag in { "old", "279", "293", "35", "41", "cur" } do
end
end
end
t:note("checked: %d rigs, %d constraints, %d raw action curves, %d drivers, %d property sets, %d material inputs", checked.rigs, checked.constraints, checked.actions, checked.drivers, checked.props, checked.graphs)
t:note("checked: %d world matrices, %d meshes, %d corner normal sets, %d weight sets, %d shape key sets, %d f-curves, %d posed frames, %d skinned frames, %d materials, %d cameras, %d lights",
checked.worlds, checked.meshes, checked.normals, checked.weights, checked.shapes, checked.curves, checked.frames, checked.skinned, checked.materials, checked.cameras, checked.lights)
@@ -646,6 +1088,17 @@ t:eq(code("BLENDER-v279REND"), Err.TRUNCATED, "a truncated block header")
t:eq(code("BLENDERxv279" .. string.rep("\0", 24)), Err.CORRUPT, "bad pointer size")
t:eq(code("BLENDER-v279ENDB" .. string.rep("\0", 20)), Err.CORRUPT, "no DNA1 block")
for _, c in {
{ 'pose.bones["FK-RibCage"].constraints["ik_spine"].influence', "pose.bones", "FK-RibCage", 'constraints["ik_spine"].influence' },
{ 'pose.bones["Arm.L"].location', "pose.bones", "Arm.L", "location" },
{ 'key_blocks["Smile"].value', "key_blocks", "Smile", "value" },
{ 'pose.bones["a\\"b"].scale', "pose.bones", 'a"b', "scale" },
{ "location", nil, nil, "location" },
} do
local kind, who, rest = Anim.split(c[1])
t:check(kind == c[2] and who == c[3] and rest == c[4], "split " .. c[1] .. ": " .. tostring(kind) .. " " .. tostring(who) .. " " .. rest)
end
t:fuzz("decode", function(b: buffer)
return B.decode(Bytes.reader(b))
end, samples, { mutations = 24 })
+5
View File
@@ -229,6 +229,11 @@ do
t:check(#skin.animations == 1 and skin.animations[1].channels[1].path == "rotation", "skin animation")
local morph = load("SimpleMorph/glTF")
t:check(#morph.meshes[1].primitives[1].targets == 2 and morph.meshes[1].weights[1] == 0.5, "morph targets, weights")
-- mesh.extras.targetNames: written as glTF mesh extras, read back from them
morph.meshes[1].extras = { targetNames = { "first", "second" } }
local named = decode(Gltf.encode(morph, { binary = true }) :: buffer) :: any
local tn = named and named.meshes[1].extras and named.meshes[1].extras.targetNames
t:check(tn and tn[1] == "first" and tn[2] == "second", "targetNames round trip")
local q = load("AnimatedMorphCube/glTF-Quantized")
local qp = q.meshes[1].primitives[1]
t:check(qp.attributes.NORMAL.type == "snorm8" and qp.targets and qp.targets[1].POSITION.type == "i16", "quantized normals / target deltas")
+38
View File
@@ -290,6 +290,44 @@ do
t:check(e and e.code == Err.ARG, "merge junk")
end
-- merge with morph targets: by name across meshes, zero where missing, deltas through the node's linear part only
do
local s = S.new()
local tri = { 0, 0, 0, 1, 0, 0, 0, 1, 0 }
local a = { attributes = { POSITION = f32(tri, 3) }, mode = "triangles", targets = {
{ POSITION = f32({ 0, 0, 1, 0, 0, 1, 0, 0, 1 }, 3) }, { POSITION = f32({ 1, 0, 0, 1, 0, 0, 1, 0, 0 }, 3) },
} }
local b = { attributes = { POSITION = f32(tri, 3) }, mode = "triangles", targets = {
{ POSITION = f32({ 0, 2, 0, 0, 2, 0, 0, 2, 0 }, 3) }, { POSITION = f32({ 0, 0, 3, 0, 0, 3, 0, 0, 3 }, 3) },
} }
local c = { attributes = { POSITION = f32(tri, 3) }, mode = "triangles" }
s.meshes = {
{ primitives = { a }, weights = { 0.5, 0.25 }, extras = { targetNames = { "smile", "blink" } } },
{ primitives = { b }, weights = { 0.75, 1 }, extras = { targetNames = { "blink", "puff" } } },
{ primitives = { c } },
}
s.nodes = {
{ children = {}, mesh = 1, scale = { 2, 2, 2 } },
{ children = {}, mesh = 2, translation = { 5, 0, 0 } },
{ children = {}, mesh = 3 },
}
s.roots = { 1, 2, 3 }
t:check(MeshOps.merge(s).targets == nil, "merge drops targets by default")
local m = MeshOps.merge(s, { targets = true }) :: any
local names = m.extras and m.extras.targetNames or {}
t:check(#m.targets == 3 and names[1] == "smile" and names[2] == "blink" and names[3] == "puff", "targets merged by name")
t:check(m.extras.weights[1] == 0.5 and m.extras.weights[2] == 0.25 and m.extras.weights[3] == 1, "default weights (first mesh wins)")
local function d(ti: number, v: number, k: number): number
return get(m.targets[ti].POSITION, v, k)
end
t:check(near(d(1, 0, 2), 2) and near(d(1, 3, 2), 0) and near(d(1, 6, 2), 0), "smile: scaled by the node, zero elsewhere")
t:check(near(d(2, 0, 0), 2) and near(d(2, 3, 1), 2) and near(d(2, 6, 0), 0), "blink from both meshes, translation ignored")
t:check(near(d(3, 3, 2), 3) and near(d(3, 0, 2), 0), "puff from the second mesh only")
t:check(get(a.targets[1].POSITION, 0, 2) == 1, "the source targets are untouched")
local list = MeshOps.merge({ a, c }, { targets = true }) :: any
t:check(#list.targets == 2 and list.extras.targetNames[1] == "1", "a list of primitives: targets by index")
end
do
local s = S.fromPrimitive(MeshOps.triangulate(cube()) :: any)
s.nodes[1].translation = { 1, 2, 3 }
+284
View File
@@ -0,0 +1,284 @@
-- video decoder control tests: the cooperative yield hook (H.264, VP8, MPEG-1, rgba / scale conversions), disposable
-- packets and skipDisposable, frame reuse (opts.reuse, v:release, decoder:release); outputs against ffmpeg's CRCs.
-- Fixtures: tools/fixtures/h264.py (h264_containers), tools/fixtures/videoctl.py, tools/fixtures/videobench.py.
local T = require("@tests/T")
local F = require("@rosetta")
local Crc32 = require("@rosetta/core/Crc32")
local Video = require("@rosetta/codecs/video/Video")
local Disposable = require("@rosetta/codecs/video/Video/Disposable")
local H264 = require("@rosetta/codecs/video/H264")
local Vp8 = require("@rosetta/codecs/image/Vp8")
local Yuv = require("@rosetta/codecs/image/Yuv")
local H264Cases = require("@tests/gen/h264_containers")
local Vp8Cases = require("@tests/gen/videoctl_vp8")
local Bench = require("@tests/gen/videobench")
local t = T.suite("video/control")
local function crcs(v: any, rgba: boolean?): ({ number }, { number }, any)
local out, idx = {}, {}
while true do
local f, err = v:nextFrame()
if not f then
return out, idx, err
end
table.insert(out, Crc32.of(f.image.pixels))
table.insert(idx, f.index)
end
end
local function same(a: { number }, b: { number }): boolean
if #a ~= #b then
return false
end
for i = 1, #a do
if a[i] ~= b[i] then
return false
end
end
return true
end
local function ivfFrames(b: buffer): { buffer }
local out = {}
local p = buffer.readu16(b, 6)
while p + 12 <= buffer.len(b) do
local n = buffer.readu32(b, p)
if p + 12 + n > buffer.len(b) then
break
end
local f = buffer.create(n)
buffer.copy(f, 0, b, p + 12, n)
table.insert(out, f)
p += 12 + n
end
return out
end
-- yield: the hook suspends a coroutine at every call; frames stay identical
local function stepped(data: any, opts: { [string]: any }): ({ number }, number, number)
local calls = 0
local o = table.clone(opts)
o.audio = false
o.yield = function()
calls += 1
coroutine.yield()
end
local v = assert(F.video.open(data, o))
local got: { number } = {}
local co = coroutine.create(function()
got = crcs(v)
end)
local steps = 0
while coroutine.status(co) ~= "dead" do
local ok, err = coroutine.resume(co)
assert(ok, err)
steps += 1
end
return got, calls, steps
end
local yieldInputs = {
{ "h264 mp4", H264Cases[2].data },
{ "vp8 webm", Vp8Cases[1].webm },
}
for _, c in Bench do
if c.size == "320x240" and (c.name == "mpeg1.ts" or c.name == "vp8.webm") then
table.insert(yieldInputs, { c.name, c.data })
end
end
for _, c in yieldInputs do
for _, opts in { {}, { rgba = true }, { maxSide = 64 }, { maxSide = 64, rgba = true } } do
local tag = string.format("%s rgba=%s maxSide=%s", c[1], tostring(opts.rgba), tostring(opts.maxSide))
local o = table.clone(opts)
o.audio = false
local want = crcs(assert(F.video.open(c[2], o)))
local got, calls, steps = stepped(c[2], opts)
t:check(#want > 0 and same(got, want), tag .. ": frames identical under the yield hook")
t:check(calls > #want and steps == calls + 1, string.format("%s: hook called %d times for %d frames, %d steps", tag, calls, #want, steps))
end
end
do -- Yuv.toRgba: the hook every 16 rows, same pixels
local img = F.Types.Image.new(40, 70, "yuv420p")
for i = 0, buffer.len(img.pixels) - 1 do
buffer.writeu8(img.pixels, i, (i * 7) % 256)
end
local calls = 0
local a = assert(Yuv.imageToRgba(img))
local out = F.Types.Image.new(40, 70, "rgba8")
local b = assert(Yuv.imageToRgba(img, out, function()
calls += 1
end))
t:check(b == out and buffer.tostring(a.pixels) == buffer.tostring(b.pixels), "imageToRgba into an out Image, with a hook")
t:eq(calls, 4, "toRgba hook calls (rows 16, 32, 48, 64)")
local s1 = Yuv.imageScale(img, 20, 30)
calls = 0
local s2 = Yuv.imageScale(img, 20, 30, F.Types.Image.new(20, 30, "yuv420p"), function()
calls += 1
end)
t:check(buffer.tostring(s1.pixels) == buffer.tostring(s2.pixels) and calls > 0, "imageScale into an out Image, with a hook")
end
-- disposable packets: H.264 (nal_ref_idc 0) in every container, and skipDisposable keeps the rest bit-exact
for _, c in H264Cases do
local v = assert(F.video.open(c.data, { audio = false }))
local d = v.demuxer
local n, nd, agree = 0, 0, true
for p in d:packets(v.track.id) do
n += 1
if p.disposable then
nd += 1
end
if (p.disposable == true) ~= (Video.isDisposable(v.track, p)) then
agree = false
end
end
local want = if string.sub(c.name, 1, 7) == "cabac_b" then 9 else 0
t:eq(nd, want, c.name .. ": disposable packets")
t:check(agree, c.name .. ": packet.disposable == Video.isDisposable")
local v2 = assert(F.video.open(c.data, { audio = false, skipDisposable = true }))
local got, idx, err = crcs(v2)
local good = 0
for i, crc in got do
if c.frames[idx[i]] == crc then
good += 1
end
end
t:check(err == nil and #got == #c.frames - nd and good == #got, string.format("%s: skipDisposable %d frames shown of %d, %d bit-exact at their index", c.name, #got, #c.frames, good))
end
do -- H.264 decoder API: skipped frames keep their place
local c = H264Cases[1]
assert(c.name == "cabac_b.h264")
local all = assert(H264.decodeAll(c.data))
local some = assert(H264.decodeAll(c.data, { skipDisposable = true }))
local skipped, good = 0, 0
for i, f in some do
if f.skipped then
skipped += 1
t:check(f.image == nil and f.pts == all[i].pts, "skipped frame " .. i .. ": no image, its pts")
elseif Crc32.of(f.image.pixels) == c.frames[i] then
good += 1
end
end
t:check(#some == #all and skipped == 9 and good == #all - 9, string.format("decodeAll skipDisposable: %d skipped, %d / %d bit-exact", skipped, good, #all - 9))
local au = H264.accessUnits(c.data)
local hits = 0
for i = 1, #au, 3 do
local b = buffer.create(au[i + 1])
buffer.copy(b, 0, buffer.fromstring(c.data), au[i], au[i + 1])
if Video.isDisposable("h264", b) then
hits += 1
end
end
t:eq(hits, 9, "Annex B access units: disposable")
end
-- VP8: frames refreshing no reference (two temporal layers)
for _, c in Vp8Cases do
local frames = ivfFrames(buffer.fromstring(c.ivf))
local nd, ndrop = 0, 0
local dec, skipDec = Vp8.newDecoder(), Vp8.newDecoder()
local exact, skipped, wrong = 0, 0, 0
for i, f in frames do
local disp, drop = Disposable.vp8(f)
nd += if disp then 1 else 0
ndrop += if drop then 1 else 0
local full = assert(dec:decodeFrame(f))
local img, err = skipDec:decodeFrame(f, nil, nil, { skipDisposable = true })
if img then
exact += if Crc32.of(img.pixels) == Crc32.of(full.pixels) and Crc32.of(full.pixels) == c.crcs[i] then 1 else 0
elseif err == nil then
skipped += 1
wrong += if disp then 0 else 1
end
end
t:check(nd >= 8 and ndrop == 0, string.format("%s: %d of %d frames disposable, %d droppable", c.name, nd, #frames, ndrop))
t:check(skipped == nd and wrong == 0 and exact == #frames - nd, string.format("%s: decodeFrame skipDisposable skipped %d, %d others bit-exact", c.name, skipped, exact))
local v = assert(F.video.open(c.webm, { audio = false }))
local pd = 0
for p in v.demuxer:packets(v.track.id) do
pd += if p.disposable then 1 else 0
end
t:eq(pd, nd, c.name .. ": webm packet.disposable")
local got, idx = crcs(assert(F.video.open(c.webm, { audio = false, skipDisposable = true })))
local good = 0
for i, crc in got do
good += if c.crcs[idx[i]] == crc then 1 else 0
end
t:check(#got == #frames - nd and good == #got, string.format("%s: webm skipDisposable %d shown, %d bit-exact at their index", c.name, #got, good))
end
-- reuse: frames identical, Images recycled
local reuseInputs = {
{ "h264 mp4", H264Cases[2].data },
{ "h264 ts", H264Cases[4].data },
{ "vp8 webm", Vp8Cases[1].webm },
}
for _, c in Bench do
if c.size == "320x240" and c.name ~= "raw.y4m" then
table.insert(reuseInputs, { c.name, c.data })
end
end
for _, c in reuseInputs do
for _, opts in { {}, { rgba = true }, { maxSide = 64 } } do
local tag = string.format("%s rgba=%s maxSide=%s", c[1], tostring(opts.rgba), tostring(opts.maxSide))
local o = table.clone(opts)
o.audio = false
local want = crcs(assert(F.video.open(c[2], o)))
o.reuse = true
local v = assert(F.video.open(c[2], o))
local got, seen, again = {}, {}, 0
while true do
local f = v:nextFrame()
if not f then
break
end
table.insert(got, Crc32.of(f.image.pixels))
if seen[f.image.pixels] then
again += 1
end
seen[f.image.pixels] = true
end
t:check(same(got, want), tag .. ": reuse frames identical")
local recycles = c[1] ~= "mjpeg.avi" or opts.rgba or opts.maxSide
t:check(not recycles or again > 0, string.format("%s: %d of %d frames in a recycled buffer", tag, again, #got))
end
end
do -- v:release and decoder:release
local c = H264Cases[2]
local v = assert(F.video.open(c.data, { audio = false }))
local a = assert(v:nextFrame())
local ca = Crc32.of(a.image.pixels)
v:release(a)
local b = assert(v:nextFrame())
t:check(b.image == a.image and Crc32.of(b.image.pixels) == c.frames[2] and ca == c.frames[1], "v:release: the next frame reuses the Image")
local dec = assert(H264.newDecoder())
t:check(not dec:release(F.Types.Image.new(176, 144, "yuv420p")), "H264 decoder:release refuses a foreign Image")
local vd = Vp8.newDecoder()
local f1 = ivfFrames(buffer.fromstring(Vp8Cases[1].ivf))
local i1 = assert(vd:decodeFrame(f1[1]))
local k1 = Crc32.of(i1.pixels)
t:check(vd:release(i1), "Vp8 decoder:release")
local i2 = assert(vd:decodeFrame(f1[2]))
t:check(i2 == i1 and k1 == Vp8Cases[1].crcs[1] and Crc32.of(i2.pixels) == Vp8Cases[1].crcs[2], "Vp8: the released Image holds the next frame")
end
local samples = {}
for _, c in H264Cases do
table.insert(samples, buffer.fromstring(string.sub(c.data, 1, 4000)))
end
for _, f in ivfFrames(buffer.fromstring(Vp8Cases[1].ivf)) do
if #samples < 12 then
table.insert(samples, f)
end
end
t:fuzz("Disposable.check", function(b: buffer)
Disposable.check("h264", b, nil)
Disposable.check("h264", b, buffer.fromstring("\1\100\0\31\255\225\0"))
return Disposable.check("vp8", b)
end, samples)
t:done()
+13 -1
View File
@@ -2,7 +2,9 @@
# Timings (bash tools/bench.sh [core [filter]]): tools/bench.luau under luau --codegen -O2 and under LuaJIT (the module build,
# build/_modules/luajit). "core" runs tools/bench_core.luau (inflate / deflate, checksums, rbxm / rbxmx, json / xml,
# F.detect, gltf / obj, the other decompressors) under luau -O2, luau --codegen -O2 and LuaJIT; a filter keeps the lines
# whose label contains it.
# whose label contains it. "mixed" (LuaJIT only) runs tools/bench_image.luau and tools/bench_video.luau each on its own,
# then tools/bench_mixed.luau: core, audio, video and image in one process, marking the lines that run more than 1.3x
# slower there (trace pollution between codecs).
cd "$(dirname "$0")/.." || exit 1
LUAU=${LUAU:-$(command -v luau || nix shell nixpkgs#luau -c sh -c 'command -v luau')}
LUAJIT=${LUAJIT:-$(command -v luajit || nix shell nixpkgs#luajit -c sh -c 'command -v luajit')}
@@ -15,5 +17,15 @@ if [ "$1" = core ]; then
"$LUAJIT" -e "$LJPATH" build/_modules/luajit/tools/bench_core.lua "$2"
exit 0
fi
if [ "$1" = mixed ]; then
tmp=$(mktemp -d)
for s in image video; do
"$LUAJIT" -e "$LJPATH" build/_modules/luajit/tools/bench_$s.lua > "$tmp/$s" || exit 1
done
"$LUAJIT" -e "$LJPATH" build/_modules/luajit/tools/bench_mixed.lua "$tmp/image" "$tmp/video"
status=$?
rm -r "$tmp"
exit $status
fi
"$LUAU" --codegen -O2 tools/bench.luau
"$LUAJIT" -e "$LJPATH" build/_modules/luajit/tools/bench.lua
+59
View File
@@ -46,6 +46,9 @@ if want("jpeg") then
end)
end
local b0 = buffer.fromstring(JB.files[1].data)
bench("jpeg decode 1/4", 3, JB.width * JB.height * 4, function()
Jpeg.decode(Bytes.reader(b0), { scale = 4 })
end)
bench("jpeg decode 1/8 (DC only)", 3, JB.width * JB.height * 4, function()
Jpeg.decode(Bytes.reader(b0), { scale = 8 })
end)
@@ -70,6 +73,62 @@ if want("png", "imageops") then
bench("png encode rgba8", 2, img.width * img.height * 4, function()
Png.encode(img)
end)
-- 4096 x 4096 16-bit RGB (a normal-map export): sub / up / Paeth rows in stored deflate blocks, 8 KB IDATs
local Adler32 = require("@rosetta/core/Adler32")
local W = 4096
local stride = W * 6 + 1
local raw = buffer.create(stride * W)
local seed = 12345
for i = 0, stride * 7 - 1 do
seed = (seed * 1103515245 + 12345) % 2147483648
buffer.writeu8(raw, i, seed // 65536 % 256)
end
for y = 0, W - 1 do
if y >= 7 then
buffer.copy(raw, y * stride, raw, (y % 7) * stride, stride)
end
buffer.writeu8(raw, y * stride, ({ 1, 2, 4, 4 })[y % 4 + 1])
end
local nraw = buffer.len(raw)
local nblocks = (nraw + 65534) // 65535
local z = buffer.create(2 + nraw + nblocks * 5 + 4)
buffer.writeu8(z, 0, 0x78)
buffer.writeu8(z, 1, 0x01)
local zo = 2
for i = 0, nblocks - 1 do
local len = math.min(65535, nraw - i * 65535)
buffer.writeu8(z, zo, if i == nblocks - 1 then 1 else 0)
buffer.writeu16(z, zo + 1, len)
buffer.writeu16(z, zo + 3, 65535 - len)
buffer.copy(z, zo + 5, raw, i * 65535, len)
zo += 5 + len
end
buffer.writeu32(z, zo, bit32.byteswap(Adler32.raw(raw, 0, nraw)))
raw = nil :: any
local nz = buffer.len(z)
local nidat = (nz + 8191) // 8192
local p16 = buffer.create(33 + nz + nidat * 12 + 12)
buffer.writestring(p16, 0, "\137PNG\r\n\26\n\0\0\0\13IHDR")
buffer.writeu32(p16, 16, bit32.byteswap(W))
buffer.writeu32(p16, 20, bit32.byteswap(W))
buffer.writestring(p16, 24, "\16\2\0\0\0")
local po = 33
for i = 0, nidat - 1 do
local len = math.min(8192, nz - i * 8192)
buffer.writeu32(p16, po, bit32.byteswap(len))
buffer.writestring(p16, po + 4, "IDAT")
buffer.copy(p16, po + 8, z, i * 8192, len)
po += 12 + len
end
buffer.writestring(p16, po, "\0\0\0\0IEND")
z = nil :: any
bench("png decode 4096^2 rgb16", 1, W * W * 4, function()
assert(Png.decode(Bytes.reader(p16)))
end)
bench("png decode 4096^2 rgb16 maxSide 1024", 1, W * W * 4, function()
assert(Png.decode(Bytes.reader(p16), { maxSide = 1024 }))
end)
p16 = nil :: any
local Ops = require("@rosetta/ops/ImageOps")
local n = img.width * img.height * 4
bench("imageops resize 1/2 bilinear", 2, n, function()
+85
View File
@@ -0,0 +1,85 @@
-- Mixed-workload check (bash tools/bench.sh mixed), LuaJIT only: bench_core, bench_audio, bench_video and bench_image
-- in one process, as an app that decodes many formats runs them, the video and image lines against each bench run
-- alone (the files of its arguments, written by bench.sh). LuaJIT's traces, blacklists and penalties are per process:
-- a shared helper blacklisted by one codec, or a side trace that never compiles, slows every later caller, which the
-- per-codec benches never show. Lines more than 1.3x slower mixed than alone are marked.
local jit = (_G :: any).jit
if jit == nil then
print("bench_mixed: LuaJIT only (bash tools/bench.sh mixed)")
return
end
local G = _G :: any
local loadfile, io = G.loadfile, G.io
local imageAlone, videoAlone = ...
-- "luajit <label> <ms> ms ...": label -> ms, the first time each label is printed
local function parse(lines: { string }): ({ [string]: number }, { string })
local ms, order = {}, {}
for _, l in lines do
local label, v = string.match(l, "^luajit%s+(.-)%s+([%d%.]+) ms")
if label and ms[label] == nil then
ms[label] = tonumber(v) :: number
table.insert(order, label)
end
end
return ms, order
end
local function readLines(path: string): { string }
local f = assert(io.open(path, "r"), "bench_mixed: cannot read " .. path)
local lines = {}
for l in f:lines() do
table.insert(lines, l)
end
f:close()
return lines
end
-- runs build/_modules/luajit/tools/<name>.lua in this process and returns what it printed
local print0 = G.print
local function run(name: string): { string }
local lines = {}
G.print = function(...)
local parts = table.pack(...)
for i = 1, parts.n do
parts[i] = tostring(parts[i])
end
table.insert(lines, table.concat(parts :: any, "\t"))
end
local chunk = assert(loadfile("build/_modules/luajit/tools/" .. name .. ".lua"))
local ok, err = pcall(chunk)
G.print = print0
assert(ok, err)
return lines
end
jit.opt.start("maxtrace=8000", "maxmcode=65536")
print0("bench_mixed: core, audio, video, image in one process")
run("bench_core")
run("bench_audio")
local video = run("bench_video")
local image = run("bench_image")
local marked, total = 0, 0
local function compare(title: string, alonePath: string?, mixedLines: { string })
if not alonePath then
return
end
local alone = parse(readLines(alonePath))
local mixed, order = parse(mixedLines)
print0(string.format("%-8s %-40s %10s %10s %7s", title, "", "alone ms", "mixed ms", "ratio"))
for _, label in order do
local a, m = alone[label], mixed[label]
if a and a > 0 then
local r = m / a
total += 1
if r > 1.3 then
marked += 1
end
print0(string.format("%-8s %-40s %10.2f %10.2f %6.2fx%s", "luajit", label, a, m, r, if r > 1.3 then " <<" else ""))
end
end
end
compare("image", imageAlone, image)
compare("video", videoAlone, video)
print0(string.format("bench_mixed: %d of %d lines more than 1.3x slower mixed than alone", marked, total))
+19 -9
View File
@@ -1,13 +1,15 @@
#!/usr/bin/env python3
# Brotli static data generator (python3 -I tools/brotli_static.py [brotli-source-dir]): writes
# src/Rosetta/codecs/compress/Brotli/Static.luau from the official brotli C sources (MIT; licenses/brotli-LICENSE.txt):
# the 122784-byte RFC 7932 static dictionary (c/common/dictionary_inc.h, stored deflated + base64), the context
# lookup table (c/common/context.c) and the 121 word transforms (c/common/transform.c).
# src/Rosetta/codecs/compress/Brotli/Dictionary.luau and Static.luau from the official brotli C sources (MIT;
# licenses/brotli-LICENSE.txt): the 122784-byte RFC 7932 static dictionary (c/common/dictionary_inc.h, stored
# deflated + base64; a module of its own, loaded on the first dictionary reference), and its size and CRC-32, the
# context lookup table (c/common/context.c) and the 121 word transforms (c/common/transform.c).
# Without an argument the source comes from `nix build nixpkgs#brotli.src`.
import base64, os, re, subprocess, sys, zlib
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
OUT = os.path.join(ROOT, "src", "Rosetta", "codecs", "Brotli", "Static.luau")
OUT = os.path.join(ROOT, "src", "Rosetta", "codecs", "compress", "Brotli", "Static.luau")
OUT_DICT = os.path.join(ROOT, "src", "Rosetta", "codecs", "compress", "Brotli", "Dictionary.luau")
def c_array(text, name):
@@ -49,18 +51,26 @@ def main():
trans = c_array(tr_text, "kTransformsData")
assert len(psmap) == 50 and len(trans) == 363
z = zlib.compress(dictionary, 9)
dlines = [
"--!strict",
"-- codecs/compress/Brotli/Dictionary: GENERATED by tools/brotli_static.py from the brotli C sources (MIT, Google; see",
"-- licenses/brotli-LICENSE.txt) - do not edit. The RFC 7932 static dictionary (122784 bytes, deflated, base64).",
"return {",
"\tdictionary = {",
]
dlines += ['\t\t"%s",' % c for c in b64_chunks(z)] + ["\t},", "}", ""]
with open(OUT_DICT, "w") as f:
f.write("\n".join(dlines))
lines = [
"--!strict",
"-- codecs/compress/Brotli/Static: GENERATED by tools/brotli_static.py from the brotli C sources (MIT, Google; see",
"-- licenses/brotli-LICENSE.txt) - do not edit. The RFC 7932 static dictionary (122784 bytes, deflated, base64),",
"-- the context lookup table (Appendix B, 4 modes x 512) and the 121 word transforms (Appendix B).",
"-- licenses/brotli-LICENSE.txt) - do not edit. The RFC 7932 static dictionary's size and CRC-32 (the dictionary is in",
"-- Brotli/Dictionary), the context lookup table (Appendix B, 4 modes x 512) and the 121 word transforms (Appendix B).",
"return {",
"\tdictionarySize = %d," % len(dictionary),
"\tdictionaryCrc = %d," % zlib.crc32(dictionary),
"\tdictionary = {",
]
lines += ['\t\t"%s",' % c for c in b64_chunks(z)]
lines += ["\t},", "\tcontext = {"]
lines += ["\tcontext = {"]
lines += ['\t\t"%s",' % c for c in b64_chunks(ctx)]
lines += ["\t},"]
lines += ['\tprefixSuffix = "%s",' % base64.b64encode(ps).decode()]
+169 -14
View File
@@ -38,7 +38,7 @@
# --check-rbxm: lune reads build/Rosetta.rbxm, .rbxmx and rojo's build of default.project.json; same tree and sources.
# --where <Rosetta.luau|rosetta.lua> <line> | <Rosetta.rbxm> <chunk> <line>: the source file and line of a bundle
# line (a Roblox error in the chunked build reads "...Rosetta.<chunk>:<line>").
import json, os, re, shutil, subprocess, sys
import json, os, re, shutil, struct, subprocess, sys, zlib
HERE = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, HERE)
@@ -249,7 +249,10 @@ def bundle_roblox():
# module with no entry yet requires its chunk (require(script:FindFirstChild(name)); under the luau CLI, with no
# `script`, require("@self/" .. name) over the same files in build/_modules/chunked/Rosetta). So requiring the root
# loads Core (what the root runs at load time) and every other chunk on first use, per Actor.
# Chunks: Core; one per hot codec (HOT); the rest packed per family (top folder, or codecs/<category>) in path order.
# Chunks: Core; Detect (DETECT: what F.detect runs, apart from Core); one per hot codec (HOT); then one per unit (a
# format folder, a codec or container with its submodules, a core or host module), named after it (image_bmp,
# containers_Riff, host_Roblox). So opening a format compiles its own modules and what they use, nothing packed
# beside them (load_check).
# A --!native module's functions get @native (a chunk can mix native and non-native modules); a chunk with no native
# module has none. Outputs: build/Rosetta.rbxm (LZ4, written by model/rbxm under the luau CLI), build/Rosetta.rbxmx,
# build/Rosetta.rbxm.linemap.json ({chunk: [[first line, source file], ...]}).
@@ -257,25 +260,32 @@ CHUNK_SRC_MAX = 256 * 1024
CHUNK_IR_MAX = 1 << 18
CHUNK_ASM_MAX = 4 << 20
CHUNKED = os.path.join(MODULES, "chunked", "Rosetta")
DETECT = ["Sniffs"] # F.detect: Sniffs.luau and what it requires at load time (core/Sniff), one small chunk
HOT = [
("Mpeg2", ["codecs/video/Mpeg2", "codecs/video/Mpeg1", "codecs/video/Dsp"]),
("H263", ["codecs/video/H263"]),
("H264Cabac", ["codecs/video/H264/Cabac", "codecs/video/H264/CabacTables"]), # the entropy coder a stream uses
("H264Cavlc", ["codecs/video/H264/Cavlc", "codecs/video/H264/CavlcTables"]),
("H264", ["codecs/video/H264"]),
("Theora", ["codecs/video/Theora"]),
("Legacy", ["codecs/video/Legacy"]),
("MpegTs", ["containers/MpegTs", "containers/MpegEs", "containers/MpegPs"]),
("Dct", ["codecs/image/Dct"]),
("Jpeg", ["codecs/image/Jpeg"]),
("Vp8", ["codecs/image/Vp8", "codecs/image/Vp8L"]),
("Vp8", ["codecs/image/Vp8"]),
("Vp8L", ["codecs/image/Vp8L"]),
("Bcn", ["codecs/image/Bcn"]),
("Png", ["image/png"]),
("Deflate", ["codecs/compress/Deflate"]),
("BrotliDictionary", ["codecs/compress/Brotli/Dictionary"]), # on the first dictionary reference
("Brotli", ["codecs/compress/Brotli"]),
("Lzma", ["codecs/compress/Lzma"]),
("Zstd", ["codecs/compress/Zstd"]),
("Mpa", ["codecs/audio/Mpa"]),
("OpusEncoder", ["codecs/audio/Opus/CeltEncoder"]),
("Opus", ["codecs/audio/Opus"]),
("Vorbis", ["codecs/audio/Vorbis"]),
("AacSbr", ["codecs/audio/Aac/" + m for m in ("Sbr", "SbrBits", "SbrDct", "SbrHf", "SbrQmf", "SbrTables", "Ps")]),
("Aac", ["codecs/audio/Aac"]),
("Flac", ["codecs/audio/Flac"]),
("Musepack", ["codecs/audio/Musepack"]),
@@ -291,18 +301,18 @@ def under(key, prefix):
return key == prefix or key.startswith(prefix + "/")
def family(key):
parts = key.split("/")
if len(parts) == 1:
return "Root"
return "_".join(parts[:2]) if parts[0] == "codecs" and len(parts) > 2 else parts[0]
def eager(src):
"""the includes a module runs at load time: those on a line with no indentation (a top-level statement; style)"""
return {m.group(1) for line in src.split("\n") if line[:1] not in ("\t", " ") for m in INCLUDES.finditer(line)}
def unit(key):
"""what one format or shared module brings: its folder (image/png, containers/IsoBmff, codecs/text/Text), or the
module itself at the top level"""
parts = key.split("/")
return "/".join(parts[:3] if parts[0] == "codecs" else parts[:2])
def plan_chunks(mods):
"""[(chunk name, [module keys])], deterministic: Core, HOT, then the rest packed per family"""
left = dict(mods)
@@ -331,16 +341,23 @@ def plan_chunks(mods):
core.add(k)
todo += sorted(eager(mods[k][0]))
pack("Core", sorted(core))
detect, todo = set(), [k for k in DETECT if k in left]
while todo:
k = todo.pop()
if k in left and k not in detect:
detect.add(k)
todo += sorted(eager(mods[k][0]))
pack("Detect", sorted(detect))
for name, prefixes in HOT:
keys = [k for k in left if any(under(k, p) for p in prefixes)]
if not keys:
sys.exit("bundle: HOT chunk %s matches no module" % name)
pack(name, keys)
fams = {}
units = {}
for k in left:
fams.setdefault(family(k), []).append(k)
for f in sorted(fams):
pack(f, fams[f])
units.setdefault(unit(k), []).append(k)
for u in sorted(units):
pack(u.replace("/", "_"), units[u])
return chunks
@@ -435,6 +452,7 @@ def bundle_chunked(mods, native, deps):
if not text.startswith("--!optimize 2\n"):
sys.exit("bundle: chunk %s does not start with --!optimize 2" % name)
codegen_check([("Rosetta", root)] + sources, chunks, native)
detect_check(root, sources)
write_rbxm(root, sources)
@@ -482,6 +500,143 @@ def codegen_check(sources, chunks, native):
if bad:
sys.exit("bundle: chunk budget:\n " + "\n ".join(bad))
# ------------------------------------------------------------------------------------------------ detect check
# F.detect on common inputs loads the Detect chunk only (DETECT_CASES: a header and a name), and Detect stays under
# DETECT_MAX source bytes: requiring the root and a first F.detect compile Core + Detect, nothing else. Run under the
# luau CLI on a copy of the chunked tree whose root records the chunks it requires.
DETECT_MAX = 160 * 1024
DETECT_CASES = [ # (format, header, file name)
("mp4", "\\0\\0\\0\\32ftypisom\\0\\0\\2\\0isomiso2avc1mp41\\0\\0\\0\\8free", "x.mp4"),
("png", "\\137PNG\\r\\n\\26\\n\\0\\0\\0\\13IHDR\\0\\0\\0\\1\\0\\0\\0\\1\\8\\6\\0\\0\\0", "x.png"),
("jpeg", "\\255\\216\\255\\224\\0\\16JFIF\\0\\1\\1\\0\\0\\1\\0\\1\\0\\0", "x.jpg"),
("wav", "RIFF\\36\\0\\0\\0WAVEfmt \\16\\0\\0\\0\\1\\0\\1\\0\\68\\172\\0\\0\\136\\88\\1\\0\\2\\0\\16\\0", "x.wav"),
("mp3", "ID3\\3\\0\\0\\0\\0\\0\\0\\255\\251\\144\\100", "x.mp3"),
("vorbis", "OggS\\0\\2\\0\\0\\0\\0\\0\\0\\0\\0\\1\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\1\\30\\1vorbis", "x.ogg"),
("gltf", "glTF\\2\\0\\0\\0\\20\\0\\0\\0", "x.glb"),
("gif", "GIF89a\\1\\0\\1\\0\\0\\0\\0", "x.gif"),
("zip", "PK\\3\\4\\20\\0\\0\\0\\0\\0", "x.zip"),
("flac", "fLaC\\0\\0\\0\\34", "x.flac"),
]
DETECT_CHECK = """local F = require("./Rosetta")
local __ROSETTA_CHUNKS = F._chunksLoaded
local out = {}
for _, c in __CASES__ do
local before = #__ROSETTA_CHUNKS
local name = F.detect(buffer.fromstring(c[2]), { name = c[3] })
local got = {}
for i = before + 1, #__ROSETTA_CHUNKS do
table.insert(got, __ROSETTA_CHUNKS[i])
end
table.insert(out, c[1] .. "\\t" .. tostring(name) .. "\\t" .. table.concat(got, " "))
end
print(table.concat(out, "\\n"))
"""
def detect_check(root, sources):
d = os.path.join(MODULES, "chunked", "detect_check")
shutil.rmtree(d, ignore_errors=True)
shutil.copytree(CHUNKED, os.path.join(d, "Rosetta"))
hook = "\trequire(m)(__FILES, __include)\n"
if hook not in root:
sys.exit("bundle: detect check: the root's chunk require changed")
with open(os.path.join(d, "Rosetta", "init.luau"), "w") as f:
f.write(root.replace(hook, "\ttable.insert(__CHUNKS_LOADED, name)\n" + hook).replace(
"local __FILES = {}", "local __CHUNKS_LOADED = {}\nlocal __FILES = {}", 1).replace(
"\nreturn Rosetta\n", "\nRosetta._chunksLoaded = __CHUNKS_LOADED\nreturn Rosetta\n"))
cases = "{ " + ", ".join('{ "%s", "%s", "%s" }' % c for c in DETECT_CASES) + " }"
with open(os.path.join(d, "check.luau"), "w") as f:
f.write(DETECT_CHECK.replace("__CASES__", cases))
r = subprocess.run(tool("luau") + ["check.luau"], capture_output=True, text=True, cwd=d)
if r.returncode != 0:
sys.exit("bundle: detect check failed:\n" + (r.stdout + r.stderr)[-3000:])
bad = []
for line in r.stdout.strip().split("\n"):
case, name, got = (line.split("\t") + [""])[:3]
if name != case:
bad.append("%s detected as %s" % (case, name))
if [x for x in got.split() if x != "Detect"]:
bad.append("detect %s loads chunks %s (only Detect: copy what its sniff reads, tools/sniff_extract.py)"
% (case, got))
size = len(dict(sources)["Detect"])
if size > DETECT_MAX:
bad.append("Detect: %d source bytes > %d" % (size, DETECT_MAX))
if bad:
sys.exit("bundle: detect check:\n " + "\n ".join(bad))
print("bundle: Rosetta.rbxm detect loads Detect only (%s), %.0f KB" % (
", ".join(c[0] for c in DETECT_CASES), size / 1024))
load_check(d)
# load_check: the first load of a format, each in a fresh VM, requires exactly the chunks listed (its own units and
# what they use; a chunk that shows up here unasked is packed or required too eagerly). The H.264 and AAC cases read
# tests/gen (skipped without the fixtures).
LOAD_PNG = bytes([137, 80, 78, 71, 13, 10, 26, 10]) + b"".join(
struct.pack(">I", len(d)) + t + d + struct.pack(">I", zlib.crc32(t + d))
for t, d in [(b"IHDR", struct.pack(">IIBBBBB", 16, 16, 8, 6, 0, 0, 0)),
(b"IDAT", zlib.compress(b"".join(b"\1" + bytes(range(64)) for _ in range(16)))), (b"IEND", b"")])
LOAD_CASES = [ # (name, Luau expression whose value is printed, expected value, the chunks it may require)
("unknown", 'F.detect(buffer.fromstring(string.rep("\\201\\7\\99\\3\\250\\17\\0\\44", 8)), { name = "x.bin" })',
"macbinary", ["Detect", "Brotli", "core_Crc32", "core_Base64"]),
("png", "(F.image.load(buffer.fromstring(%s)) :: any).width" % "".join(
'"' + "".join("\\%03d" % c for c in LOAD_PNG) + '"'), "16",
["Detect", "Png", "Deflate", "core_Adler32", "core_Crc32", "core_Bits", "codecs_entropy_Huffman", "containers_Chunks"]),
]
FIXTURE_CASES = [ # (fixture module, file, what opens it, the first value's field, its value, the chunks besides Detect)
("h264_containers", "baseline.mp4", "video", "width", "176", [
"video_mp4", "containers_IsoBmff", "containers_Demux", "codecs_video_Video", "codecs_image_Yuv", "H264",
"H264Cavlc"]),
("h264_containers", "cabac_b.mp4", "video", "width", "176", [
"video_mp4", "containers_IsoBmff", "containers_Demux", "codecs_video_Video", "codecs_image_Yuv", "H264",
"H264Cabac"]),
("m4a_aac", "aac_stereo_128k.m4a", "audio", "n", "4096", [
"audio_m4a", "codecs_audio_Pcm", "codecs_audio_Stream", "containers_IsoBmff", "Aac", "core_Bits",
"codecs_audio_Mdct"]),
("m4a_he", "he_aac_v2.m4a", "audio", "n", "4096", [
"audio_m4a", "codecs_audio_Pcm", "codecs_audio_Stream", "containers_IsoBmff", "Aac", "core_Bits",
"codecs_audio_Mdct", "AacSbr"]),
]
LOAD_FIXTURE = """(function()
for _, c in require("../../../../tests/gen/%s") do
if c.name == "%s" then
local d = assert(F.%s.open(buffer.fromstring(c.data)))
if "%s" == "width" then
local f: any = assert(d:nextFrame())
return (f.image or f).width
end
local _, n = d:read(4096)
return n
end
end
return nil
end)()"""
def load_check(d):
cases = list(LOAD_CASES)
for mod, name, cat, field, want, chunks in FIXTURE_CASES:
if os.path.isfile(os.path.join(ROOT, "tests", "gen", mod + ".luau")):
cases.append((name, LOAD_FIXTURE % (mod, name, cat, field), want, ["Detect"] + chunks))
bad = []
for name, expr, want, allowed in cases:
script = os.path.join(d, "load.luau")
with open(script, "w") as f:
f.write('local F = require("./Rosetta")\nlocal n = #F._chunksLoaded\nlocal v = %s\n'
'print(tostring(v))\nprint(table.concat(F._chunksLoaded, " ", n + 1))\n' % expr)
r = subprocess.run(tool("luau") + ["load.luau"], capture_output=True, text=True, cwd=d)
out = r.stdout.strip().split("\n")
if r.returncode != 0 or len(out) != 2:
bad.append("%s: %s" % (name, (r.stdout + r.stderr)[-500:]))
continue
if out[0] != want:
bad.append("%s: got %s, want %s" % (name, out[0], want))
got = out[1].split()
if sorted(got) != sorted(allowed):
bad.append("%s loads %s, want %s" % (name, " ".join(got), " ".join(allowed)))
if bad:
sys.exit("bundle: load check:\n " + "\n ".join(bad))
print("bundle: Rosetta.rbxm first loads require only their own chunks (%s)" % ", ".join(c[0] for c in cases))
def long_string(s):
n = 0
+6 -1
View File
@@ -8,6 +8,7 @@
# INPUTS = ["tests/fixtures/pngsuite", ...] # optional: files / dirs whose change triggers a rebuild
# def generate(ctx): ... # ctx.emit("png_suite", value), ctx.nix("imagemagick", [...]), ...
# A generator is skipped while all its outputs are newer than itself and its INPUTS (--force reruns it).
# LAST = True runs it after the others; it also reruns when any other generator's output changed (it reads them)
#
# ctx.emit(name, value): writes tests/gen/<name>.luau returning value. Python values map to Luau: bytes -> string
# literal (any bytes), str -> string literal, int / float / bool, list / tuple -> array, dict -> table (string keys
@@ -123,12 +124,16 @@ def main():
if "--list" in sys.argv:
print("\n".join(names))
return
mods = {name: load(os.path.join(GENERATORS, name + ".py")) for name in names}
names.sort(key=lambda n: bool(getattr(mods[n], "LAST", False)))
for name in names:
if args and not any(a in name for a in args):
continue
path = os.path.join(GENERATORS, name + ".py")
mod = load(path)
mod = mods[name]
inputs = [path, os.path.abspath(__file__)] + [os.path.join(ROOT, p) for p in getattr(mod, "INPUTS", [])]
if getattr(mod, "LAST", False):
inputs += [os.path.join(stamps, n) for n in names if n != name and not getattr(mods[n], "LAST", False)]
stamp = os.path.join(stamps, name)
if not force and os.path.exists(stamp):
outs = open(stamp).read().split("\n")
+627
View File
@@ -7,6 +7,20 @@
# keys, actions on bones / objects / shape keys (bezier, linear, constant), a bone parent
# scene_<ver>_z.blend scene_<ver> saved compressed (gzip before 3.0, zstd after)
# compat_<ver>.blend 2.7x only: the "legacy mesh format" save (MFace tessellated faces)
# ctl_<ver>.blend a control rig: deform / control bones, layers + bone groups (before 4.0) or bone
# collections and colours (4.x), custom shapes (a hidden widget in the scene, one outside it),
# pose-bone constraints (IK, copy rotation / location / transforms, damped track, limit
# rotation, child of, stretch to), lock and IK flags; shape keys with slider ranges, mute,
# relative keys, a vertex group, and a shape-key action; an unassigned action driven by an
# action constraint; transform / armature / floor / limit distance / track to / locked
# track constraints; bone inheritance and b-bone settings; a saved pose basis; drivers
# (every variable type, keys, modifiers) on the rig, its data and the shape keys; custom
# properties on pose bones, bones and objects; vertex, vertex-triangle and lattice parents,
# an object parented to a bone
# mat_<ver>.blend material graphs: images through Mix / MixRGB, Hue-Saturation, Bright-Contrast, Gamma,
# Invert, RGB Curves, Color Ramp, reroutes and node groups; roughness images linked directly
# or through a ramp; vertex colours; bump; unresolved links; a UDIM image with two tiles
# (2.82+, the tiles as udim.1001.png / udim.1002.png next to the file)
import bpy, sys, os, math
out = sys.argv[sys.argv.index("--") + 1]
@@ -394,8 +408,621 @@ def rig_file():
save(os.path.join(out, "rig_%s.blend" % TAG))
def setp(obj, attr, value):
if hasattr(obj, attr):
try:
setattr(obj, attr, value)
except (TypeError, ValueError, AttributeError):
pass
def ctl_file():
reset()
sc = bpy.context.scene
tgt = link(bpy.data.objects.new("Tgt", None))
tgt.location = (1, 2, 3)
tgt.rotation_euler = (0.2, 0.4, 0.1)
cv = [(math.cos(a * math.pi / 4), math.sin(a * math.pi / 4), 0) for a in range(8)]
circle = bpy.data.meshes.new("WGT_circle")
circle.from_pydata(cv, [(a, (a + 1) % 8) for a in range(8)], [])
circle.update()
wcircle = bpy.data.objects.new("WGT_circle", circle)
if OLD:
wcircle.use_fake_user = True
else:
wgts = bpy.data.collections.new("Widgets") # not linked to the scene
wgts.objects.link(wcircle)
box = bpy.data.meshes.new("WGT_box")
box.from_pydata([(x, y, z) for z in (0, 1) for y in (-0.5, 0.5) for x in (-0.5, 0.5)],
[(0, 1), (1, 3), (3, 2), (2, 0), (4, 5), (5, 7), (7, 6), (6, 4), (0, 4), (1, 5), (2, 6), (3, 7)], [])
box.update()
wbox = link(bpy.data.objects.new("WGT_box", box))
wbox.location = (0, 0, -3)
if OLD:
wbox.hide = True
else:
wbox.hide_viewport = True
wbox.hide_render = True
arm_data = bpy.data.armatures.new("CtlData")
rig = link(bpy.data.objects.new("Ctl", arm_data))
rig.location = (0.5, -1, 0.25)
rig.rotation_euler = (0.1, 0, 0.3)
rig.scale = (1, 1, 1.5)
if OLD:
sc.objects.active = rig
else:
bpy.context.view_layer.objects.active = rig
bpy.ops.object.mode_set(mode="EDIT")
eb = arm_data.edit_bones
spec = ( # name, head, tail, roll, parent, connect, deform
("root", (0, 0, 0), (0, 1, 0), 0.0, None, False, False),
("spine", (0, 0, 0.2), (0, 0.1, 1.2), 0.4, "root", False, True),
("upper", (0, 0.1, 1.2), (0.8, 0.1, 1.3), -0.7, "spine", True, True),
("lower", (0.8, 0.1, 1.3), (1.6, 0.3, 1.1), 1.1, "upper", True, True),
("hand_ik", (1.6, 0.3, 1.1), (1.6, 0.8, 1.1), 0.0, "root", False, False),
("pole", (0.8, -1, 1.3), (0.8, -1.3, 1.3), 0.2, "root", False, False),
("limit", (-0.5, 0, 0.5), (-0.5, 0, 1.1), 2.5, "root", False, True),
)
for name, head, tail, roll, parent, connect, deform in spec:
b = eb.new(name)
b.head, b.tail, b.roll = head, tail, roll
if parent:
b.parent = eb[parent]
b.use_connect = connect
b.use_deform = deform
up, lo = eb["hand_ik"], eb["lower"] # b-bone settings on a bone that deforms nothing (skinning stays linear)
setp(eb["upper"], "inherit_scale", "ALIGNED")
setp(eb["upper"], "use_inherit_scale", False)
setp(lo, "use_inherit_rotation", False)
setp(lo, "use_local_location", False)
setp(eb["limit"], "use_relative_parent", True)
up.bbone_segments = 4
up.bbone_x, up.bbone_z = 0.05, 0.08
setp(up, "bbone_easein", 0.5)
setp(up, "bbone_easeout", 1.5)
setp(up, "bbone_rollin", 0.2)
setp(up, "bbone_curveinx", 0.1)
setp(up, "bbone_curveinz", -0.1)
setp(up, "bbone_curveoutx", 0.3)
setp(up, "bbone_scalein", (1.0, 1.0, 1.2))
setp(up, "bbone_handle_type_start", "ABSOLUTE")
setp(up, "bbone_custom_handle_start", eb["spine"])
setp(up, "bbone_handle_type_end", "TANGENT")
setp(up, "bbone_custom_handle_end", eb["pole"])
bpy.ops.object.mode_set(mode="OBJECT")
bones = arm_data.bones
bones["root"].show_wire = True
pose = rig.pose.bones
if V >= (4, 0):
ctrl = arm_data.collections.new("Ctrl")
try:
ik = arm_data.collections.new("IK", parent=ctrl)
except TypeError:
ik = arm_data.collections.new("IK")
deform = arm_data.collections.new("Deform")
mch = arm_data.collections.new("MCH")
for c in list(arm_data.collections):
for b in list(c.bones):
c.unassign(b)
for n in ("root", "hand_ik", "pole"):
ctrl.assign(bones[n])
for n in ("hand_ik", "pole"):
ik.assign(bones[n])
for n in ("spine", "upper", "lower", "limit"):
deform.assign(bones[n])
mch.assign(bones["limit"])
ik.is_visible = False
mch.is_visible = False
bones["root"].color.palette = "THEME04"
bones["pole"].color.palette = "CUSTOM"
bones["pole"].color.custom.normal = (1.0, 0.0, 0.0)
bones["pole"].color.custom.select = (0.0, 1.0, 0.0)
bones["pole"].color.custom.active = (0.0, 0.0, 1.0)
pose["spine"].color.palette = "THEME09"
else:
layers = {"root": (0,), "hand_ik": (0, 1), "pole": (0, 1), "spine": (16,), "upper": (16,), "lower": (16,), "limit": (16, 31)}
for n, ls in layers.items():
bones[n].layers = [i in ls for i in range(32)]
arm_data.layers = [i in (0, 16) for i in range(32)]
g1 = rig.pose.bone_groups.new(name="Ctrls")
g1.color_set = "THEME04"
g2 = rig.pose.bone_groups.new(name="Custom")
g2.color_set = "CUSTOM"
g2.colors.normal = (1.0, 0.0, 0.0)
g2.colors.select = (0.0, 1.0, 0.0)
g2.colors.active = (0.0, 0.0, 1.0)
pose["root"].bone_group = g1
pose["hand_ik"].bone_group = g1
pose["pole"].bone_group = g2
# custom shapes
pose["root"].custom_shape = wcircle
setp(pose["root"], "custom_shape_scale", 1.5)
setp(pose["root"], "custom_shape_scale_xyz", (1.5, 0.5, 2.0))
pose["spine"].custom_shape = wbox
pose["spine"].custom_shape_transform = pose["root"]
setp(pose["spine"], "custom_shape_translation", (0, 0.1, 0))
setp(pose["spine"], "custom_shape_rotation_euler", (0.1, 0.2, 0.3))
setp(pose["spine"], "use_custom_shape_bone_size", False)
pose["pole"].custom_shape = wcircle
# locks, rotation modes, IK settings
pose["root"].lock_location = (True, True, True)
pose["spine"].rotation_mode = "QUATERNION"
pose["spine"].lock_rotation = (True, False, True)
pose["spine"].lock_rotation_w = True
pose["spine"].lock_rotations_4d = True
pose["limit"].lock_scale = (False, True, False)
pose["upper"].ik_stretch = 0.1
pose["upper"].lock_ik_y = True
pose["upper"].use_ik_limit_x = True
pose["upper"].ik_min_x = -0.5
pose["upper"].ik_max_x = 0.7
pose["upper"].ik_stiffness_z = 0.25
pose["lower"].rotation_mode = "YZX"
pose["hand_ik"].rotation_mode = "AXIS_ANGLE"
# constraints
c = pose["spine"].constraints.new("COPY_ROTATION")
c.name = "CopyRot"
c.target = tgt
c.use_y = False
c.invert_x = True
setp(c, "mix_mode", "ADD")
c.owner_space, c.target_space = "LOCAL_WITH_PARENT", "LOCAL"
c.influence = 0.75
c = pose["upper"].constraints.new("COPY_LOCATION")
c.target, c.subtarget = rig, "root"
c.use_offset = True
c.use_z = False
c.invert_z = True
c.head_tail = 0.5
c.target_space = "POSE"
c = pose["upper"].constraints.new("LIMIT_LOCATION")
c.use_min_x, c.min_x = True, -0.25
c.use_max_z, c.max_z = True, 0.75
c.use_transform_limit = True
c = pose["upper"].constraints.new("COPY_SCALE")
c.target = tgt
c.use_y = False
c.use_offset = True
c = pose["lower"].constraints.new("IK")
c.target, c.subtarget = rig, "hand_ik"
c.pole_target, c.pole_subtarget = rig, "pole"
c.pole_angle = -1.2
c.chain_count = 2
c.use_tail = True
c.use_stretch = False
c.iterations = 300
c.weight = 0.6
c = pose["hand_ik"].constraints.new("COPY_TRANSFORMS")
c.target = tgt
setp(c, "mix_mode", "BEFORE")
c.influence = 0.3
c.mute = True
c = pose["pole"].constraints.new("DAMPED_TRACK")
c.target, c.subtarget = rig, "lower"
c.track_axis = "TRACK_NEGATIVE_Z"
c.head_tail = 0.25
c = pose["limit"].constraints.new("LIMIT_ROTATION")
c.use_limit_x, c.min_x, c.max_x = True, -0.3, 0.4
c.use_limit_z, c.min_z, c.max_z = True, -1.0, 1.0
c.owner_space = "LOCAL"
c = pose["limit"].constraints.new("CHILD_OF")
c.name = "Parent"
c.target = tgt
c.use_rotation_y = False
c.use_scale_x = False
from mathutils import Matrix
c.inverse_matrix = Matrix(((1, 0, 0, 0.5), (0, 0, -1, 0.25), (0, 1, 0, -1), (0, 0, 0, 1)))
c = pose["limit"].constraints.new("STRETCH_TO")
c.target = tgt
c.influence = 0.5
c.rest_length = 0.75
c.bulge = 1.5
c.volume = "VOLUME_X"
c.keep_axis = "PLANE_Z"
setp(c, "use_bulge_min", True)
setp(c, "bulge_min", 0.5)
setp(c, "use_bulge_max", True)
setp(c, "bulge_max", 2.0)
setp(c, "bulge_smooth", 0.3)
c = pose["limit"].constraints.new("TRANSFORM")
c.target = tgt
c.map_from, c.map_to = "ROTATION", "SCALE"
c.map_to_x_from, c.map_to_y_from, c.map_to_z_from = "Z", "X", "Y"
setp(c, "from_max_x_rot", 2.356194)
setp(c, "from_min_y_rot", -0.5)
setp(c, "to_max_y_scale", 0.65)
setp(c, "to_min_x_scale", 0.9)
setp(c, "mix_mode_scale", "MULTIPLY")
setp(c, "from_rotation_mode", "SWING_TWIST_Y")
setp(c, "to_euler_order", "ZXY")
c.use_motion_extrapolate = True
c = pose["limit"].constraints.new("FLOOR")
c.target = tgt
c.floor_location = "FLOOR_NEGATIVE_Y"
c.offset = 0.2
c.use_rotation = True
c = pose["pole"].constraints.new("TRACK_TO")
c.target, c.subtarget = rig, "upper"
c.track_axis, c.up_axis = "TRACK_NEGATIVE_Y", "UP_X"
c.use_target_z = True
c = pose["root"].constraints.new("LOCKED_TRACK")
c.target = tgt
c.track_axis, c.lock_axis = "TRACK_X", "LOCK_Z"
c = pose["root"].constraints.new("LIMIT_DISTANCE")
c.target = tgt
c.distance = 2.5
c.limit_mode = "LIMITDIST_OUTSIDE"
c = pose["upper"].constraints["Copy Scale"]
setp(c, "use_make_uniform", True)
setp(c, "use_add", True)
setp(c, "power", 0.5)
if V >= (2, 80):
c = pose["spine"].constraints.new("ARMATURE")
t = c.targets.new()
t.target, t.subtarget, t.weight = rig, "root", 0.75
c.use_deform_preserve_volume = True
c.use_bone_envelopes = True
c.use_current_location = True
# an action only the action constraint uses: keys on hand_ik / limit, then unassigned
for f, loc, eul in ((1, (0, 0, 0), (0, 0, 0)), (10, (0.5, 0.1, 0), (0.3, 0, -0.2)), (25, (0, 0.4, 0.2), (-0.4, 0.2, 0))):
pose["hand_ik"].location = loc
pose["hand_ik"].keyframe_insert("location", frame=f)
pose["limit"].rotation_euler = eul
pose["limit"].keyframe_insert("rotation_euler", frame=f)
act = rig.animation_data.action
act.name = "CtlAct"
act.use_fake_user = True
curves = act.fcurves if hasattr(act, "fcurves") and V < (5, 0) else [c for l in act.layers for st in l.strips for b in st.channelbags for c in b.fcurves]
for fc in curves:
if fc.data_path.endswith("location"):
for kp in fc.keyframe_points:
kp.interpolation = "LINEAR"
elif fc.array_index == 1:
fc.keyframe_points[1].interpolation = "QUAD"
fc.keyframe_points[1].easing = "EASE_OUT"
fc.extrapolation = "LINEAR"
rig.animation_data.action = None
pose["hand_ik"].location = (0, 0, 0)
pose["limit"].rotation_euler = (0, 0, 0)
c = pose["hand_ik"].constraints.new("ACTION")
c.target, c.subtarget = rig, "pole"
c.action = act
c.transform_channel = "LOCATION_Y"
c.target_space = "LOCAL"
c.frame_start, c.frame_end = 0, 40
c.min, c.max = -0.05, 0.05
setp(c, "mix_mode", "AFTER")
setp(c, "use_eval_time", False)
setp(c, "eval_time", 0.25)
c.influence = 0.5
# a saved pose basis
pose["spine"].location = (0.01, 0.02, 0.03) # no rotation above the hinge bone (not modelled by joint nodes)
pose["pole"].rotation_quaternion = (0.9, 0.1, 0.3, 0.2)
pose["lower"].rotation_euler = (0.1, -0.2, 0.3)
pose["hand_ik"].rotation_axis_angle = (0.4, 0, 0, 1)
pose["limit"].scale = (1, 1.25, 0.8)
# shape keys on a mesh parented to the rig
fv = [(x * 0.5, 0, z * 0.5) for z in range(3) for x in range(3)]
ff = [(0, 1, 4, 3), (1, 2, 5, 4), (3, 4, 7, 6), (4, 5, 8, 7)]
face = link(bpy.data.objects.new("Face", mesh("FaceMesh", fv, ff)))
face.parent = rig
face.location = (0, -0.5, 0)
face.modifiers.new("Armature", "ARMATURE").object = rig
vg = face.vertex_groups.new(name="upper")
vg.add([6, 7, 8], 1.0, "REPLACE")
vg.add([3, 4, 5], 0.4, "REPLACE")
face.vertex_groups.new(name="spine").add(list(range(6)), 1.0, "REPLACE")
face.shape_key_add(name="Basis")
smile = face.shape_key_add(name="Smile")
for i, p in enumerate(smile.data):
p.co = (p.co[0], p.co[1] + 0.1 * i, p.co[2])
smile.slider_min, smile.slider_max = -0.5, 2.0
smile.value = 1.5
blink = face.shape_key_add(name="Blink")
for i, p in enumerate(blink.data):
p.co = (p.co[0] + 0.05 * i, p.co[1] + 0.1 * i, p.co[2] - 0.02 * i)
blink.relative_key = smile
blink.mute = True
blink.vertex_group = "upper"
blink.value = 0.5
puff = face.shape_key_add(name="Puff")
for i, p in enumerate(puff.data):
p.co = (p.co[0] * 1.2, p.co[1] - 0.05, p.co[2])
puff.value = 0.3
for f, v in ((1, 0.0), (10, 2.0), (20, -0.5)):
smile.value = v
smile.keyframe_insert("value", frame=f)
smile.value = 1.5
# vertex / triangle / lattice / bone parents
from mathutils import Matrix
anchor = link(bpy.data.objects.new("Anchor", mesh("AnchorMesh", [(0, 0, 0), (1, 0.2, 0), (0.3, 1, 0.4), (0.5, 0.5, 1)], [(0, 1, 2), (0, 2, 3)])))
anchor.location, anchor.rotation_euler, anchor.scale = (2, -2, 1), (0.3, 0.2, 0.5), (1, 1.5, 1)
update()
vkid = link(bpy.data.objects.new("VertKid", None))
vkid.parent, vkid.parent_type = anchor, "VERTEX"
vkid.parent_vertices = (2, 0, 0)
vkid.location = (0.1, 0.2, 0.3)
vkid.matrix_parent_inverse = Matrix.Translation((0.5, 0, -0.25))
tkid = link(bpy.data.objects.new("TriKid", None))
tkid.parent, tkid.parent_type = anchor, "VERTEX_3"
tkid.parent_vertices = (1, 2, 3)
tkid.location, tkid.rotation_euler = (0.2, 0, 0.1), (0.1, 0.4, 0)
lat = link(bpy.data.objects.new("Lat", bpy.data.lattices.new("LatData")))
lat.location = (-2, 1, 0)
caged = link(bpy.data.objects.new("Caged", mesh("CagedMesh", [(0, 0, 0), (1, 0, 0), (0, 1, 0)], [(0, 1, 2)])))
caged.parent = lat
setp(caged, "parent_type", "LATTICE")
caged.location = (0.25, 0, 0)
caged.modifiers.new("Lattice", "LATTICE").object = lat
bkid = link(bpy.data.objects.new("BoneKid", None))
bkid.parent, bkid.parent_type, bkid.parent_bone = rig, "BONE", "lower"
bkid.location = (0.1, 0.05, 0)
face.modifiers["Armature"].use_multi_modifier = True
am = caged.modifiers.new("Unbound", "ARMATURE") # no object: deforms nothing, its settings are data
am.use_deform_preserve_volume, am.use_bone_envelopes, am.use_vertex_groups = True, True, False
am.vertex_group, am.invert_vertex_group = "spine", True
am.show_viewport = False
sub = wbox.modifiers.new("Smooth", "SUBSURF")
sub.show_render = False
# custom properties (ID properties)
props = pose["root"]
props["ik_arm"] = 1.0
props["count"] = 3
props["label"] = "left"
props["weights"] = [0.25, 0.5, 0.75]
props["flags"] = [1, 2, 3]
props["nested"] = {"inner": 2.5, "name": "deep"}
if V >= (3, 0):
props["on"] = True
bones["spine"]["bone_prop"] = 7
rig["rig_prop"] = 0.5
face["face_prop"] = "smile"
if V >= (4, 2):
pose["limit"].constraints["Limit Rotation"].use_legacy_behavior = True
# drivers (data only for the reader: on constraint settings and a muted shape key, so the checked pose is unchanged)
def drive(owner, path, kind, expression="", index=-1):
fc = owner.driver_add(path) if index < 0 else owner.driver_add(path, index)
fc.driver.type = kind
if expression:
fc.driver.expression = expression
return fc
fc = drive(rig, 'pose.bones["limit"].constraints["Stretch To"].bulge_smooth', "SCRIPTED", "max(0, (distance - 0.4 * s) / 2) + ik")
setp(fc.driver, "use_self", True)
v = fc.driver.variables.new()
v.name, v.type = "distance", "LOC_DIFF"
v.targets[0].id, v.targets[0].bone_target = rig, "hand_ik"
v.targets[1].id, v.targets[1].bone_target = tgt, ""
v.targets[1].transform_space = "LOCAL_SPACE"
v = fc.driver.variables.new()
v.name, v.type = "s", "TRANSFORMS"
v.targets[0].id, v.targets[0].bone_target = rig, "upper"
v.targets[0].transform_type, v.targets[0].transform_space = "SCALE_Y", "TRANSFORM_SPACE"
setp(v.targets[0], "rotation_mode", "SWING_TWIST_Y")
v = fc.driver.variables.new()
v.name, v.type = "ik", "SINGLE_PROP"
v.targets[0].id = rig
v.targets[0].data_path = 'pose.bones["root"]["ik_arm"]'
for m in list(fc.modifiers):
fc.modifiers.remove(m)
fc.keyframe_points.insert(0.0, 0.0)
fc.keyframe_points.insert(1.0, 1.0)
for k in fc.keyframe_points:
k.interpolation = "LINEAR"
fc.extrapolation = "LINEAR"
fc = drive(rig, 'pose.bones["upper"].constraints["Copy Scale"].influence', "SUM")
v = fc.driver.variables.new()
v.name, v.type = "angle", "ROTATION_DIFF"
v.targets[0].id, v.targets[0].bone_target = rig, "spine"
v.targets[1].id, v.targets[1].bone_target = rig, "upper"
gen = fc.modifiers[0] if len(fc.modifiers) else fc.modifiers.new("GENERATOR")
gen.mode = "POLYNOMIAL"
gen.poly_order = 2
gen.coefficients = (0.5, 2.0, -1.0)
gen.use_additive = True
gen.influence = 0.8
gen.use_influence = True
lim = fc.modifiers.new("LIMITS")
lim.use_max_y, lim.max_y = True, 2.0
lim.mute = True
st = fc.modifiers.new("STEPPED")
st.frame_step = 2.0
st.use_restricted_range = True
st.frame_start, st.frame_end = 1.0, 10.0
fc = drive(rig, 'pose.bones["pole"].constraints["Damped Track"].head_tail', "MIN")
v = fc.driver.variables.new()
v.name = "z"
v.targets[0].id = tgt
v.targets[0].data_path = "location.z"
for m in list(fc.modifiers):
fc.modifiers.remove(m)
fc.modifiers.new("CYCLES")
nz = fc.modifiers.new("NOISE")
nz.scale, nz.strength = 2.0, 0.5
if V >= (4, 0):
v = fc.driver.variables.new()
v.name, v.type = "frame", "CONTEXT_PROP"
v.targets[0].context_property = "ACTIVE_SCENE"
v.targets[0].data_path = "frame_current"
fc = drive(arm_data, "bones[\"pole\"].bbone_x", "MAX")
v = fc.driver.variables.new()
v.name = "w"
v.targets[0].id_type = "ARMATURE"
v.targets[0].id = arm_data
v.targets[0].data_path = "bones[\"upper\"].bbone_x"
fc = drive(face.data.shape_keys, 'key_blocks["Blink"].value', "AVERAGE")
v = fc.driver.variables.new()
v.name, v.type = "rot", "TRANSFORMS"
v.targets[0].id, v.targets[0].bone_target = rig, "lower"
v.targets[0].transform_type, v.targets[0].transform_space = "ROT_X", "LOCAL_SPACE"
setp(v.targets[0], "rotation_mode", "XZY")
sc.frame_set(1)
update()
save(os.path.join(out, "ctl_%s.blend" % TAG))
def mat_file():
reset()
old_mix = V < (3, 4)
diffuse = image("diffuse", 4, 4, lambda x, y: [x / 3, y / 3, 0.5, 1.0])
rough = image("rough", 4, 4, lambda x, y: [0.25 + x / 8] * 3 + [1.0])
bump = image("height", 4, 4, lambda x, y: [(x + y) / 6] * 3 + [1.0])
nrm = image("nrm", 4, 4, lambda x, y: [0.5, 0.5, 1.0, 1.0])
udim = None
if V >= (2, 82):
paths = []
for tile, col in ((1001, (1.0, 0.0, 0.0)), (1002, (0.0, 0.0, 1.0))):
p = os.path.join(out, "udim.%d.png" % tile)
t = bpy.data.images.new("udim_%d" % tile, 2, 2)
t.pixels = list(col + (1.0,)) * 4
t.filepath_raw = p
t.file_format = "PNG"
t.save()
bpy.data.images.remove(t)
paths.append(p)
udim = bpy.data.images.load(paths[0])
udim.name = "udim"
udim.source = "TILED"
if len(udim.tiles) < 2:
udim.tiles.new(1002)
udim.tiles[0].label = "front"
udim.filepath = "//" + os.path.basename(udim.filepath.replace("1001", "<UDIM>" if V >= (3, 0) else "1001"))
def material(name):
m = bpy.data.materials.new(name)
bsdf = principled(m, (0.8, 0.8, 0.8, 1.0), 0.0, 0.5)
return m, m.node_tree, bsdf
def tex(nt, img):
t = nt.nodes.new("ShaderNodeTexImage")
t.image = img
return t
def mix(nt, a, b, fac):
if old_mix:
n = nt.nodes.new("ShaderNodeMixRGB")
ia, ib, f, o = n.inputs["Color1"], n.inputs["Color2"], n.inputs["Fac"], n.outputs["Color"]
else:
n = nt.nodes.new("ShaderNodeMix")
n.data_type = "RGBA"
ia, ib, f, o = n.inputs[6], n.inputs[7], n.inputs[0], n.outputs[2]
if a:
nt.links.new(a, ia)
if b:
nt.links.new(b, ib)
if fac:
nt.links.new(fac, f)
return o
def vcol(nt):
if V >= (2, 81):
n = nt.nodes.new("ShaderNodeVertexColor")
n.layer_name = "Col"
else:
n = nt.nodes.new("ShaderNodeAttribute")
n.attribute_name = "Col"
return n.outputs["Color"]
def ramp(nt, src):
n = nt.nodes.new("ShaderNodeValToRGB")
nt.links.new(src, n.inputs["Fac"])
return n.outputs["Color"]
def reroute(nt, src):
n = nt.nodes.new("NodeReroute")
nt.links.new(src, n.inputs[0])
return n.outputs[0]
mats = []
# body: Mix(A = image, B = HueSat(image), Fac = ramp(vertex colour)); roughness image linked directly
m, nt, b = material("MatBody")
img = udim or diffuse
hs = nt.nodes.new("ShaderNodeHueSaturation")
nt.links.new(tex(nt, img).outputs["Color"], hs.inputs["Color"])
nt.links.new(mix(nt, tex(nt, img).outputs["Color"], hs.outputs["Color"], ramp(nt, vcol(nt))), b.inputs["Base Color"])
nt.links.new(tex(nt, rough).outputs["Color"], b.inputs["Roughness"])
mats.append(m)
# hands: Mix(A = image, Fac = ramp(vertex colour)), B unlinked
m, nt, b = material("MatHands")
nt.links.new(mix(nt, tex(nt, diffuse).outputs["Color"], None, ramp(nt, vcol(nt))), b.inputs["Base Color"])
nt.links.new(tex(nt, rough).outputs["Color"], b.inputs["Roughness"])
mats.append(m)
# hair: reroutes; roughness through a reroute and a ramp
m, nt, b = material("MatHair")
nt.links.new(reroute(nt, reroute(nt, tex(nt, diffuse).outputs["Color"])), b.inputs["Base Color"])
nt.links.new(reroute(nt, ramp(nt, tex(nt, rough).outputs["Color"])), b.inputs["Roughness"])
mats.append(m)
# eyebrows: vertex colour
m, nt, b = material("MatVcol")
nt.links.new(vcol(nt), b.inputs["Base Color"])
mats.append(m)
# jeans: image, normal map, roughness image linked directly, metallic through Separate RGB (packed)
m, nt, b = material("MatJeans")
nt.links.new(tex(nt, diffuse).outputs["Color"], b.inputs["Base Color"])
nm = nt.nodes.new("ShaderNodeNormalMap")
nt.links.new(tex(nt, nrm).outputs["Color"], nm.inputs["Color"])
nt.links.new(nm.outputs["Normal"], b.inputs["Normal"])
nt.links.new(tex(nt, rough).outputs["Color"], b.inputs["Roughness"])
mats.append(m)
# a chain of colour adjustments
m, nt, b = material("MatChain")
src = tex(nt, diffuse).outputs["Color"]
for idname in ("ShaderNodeRGBCurve", "ShaderNodeInvert", "ShaderNodeGamma", "ShaderNodeBrightContrast"):
n = nt.nodes.new(idname)
nt.links.new(src, n.inputs["Color"])
src = n.outputs["Color"]
nt.links.new(src, b.inputs["Base Color"])
mats.append(m)
# a node group: an image inside it, and a pass-through of an outside image
grp = bpy.data.node_groups.new("TexGroup", "ShaderNodeTree")
gi, go = grp.nodes.new("NodeGroupInput"), grp.nodes.new("NodeGroupOutput")
if hasattr(grp, "interface"):
grp.interface.new_socket("Tint", in_out="INPUT", socket_type="NodeSocketColor")
grp.interface.new_socket("Color", in_out="OUTPUT", socket_type="NodeSocketColor")
grp.interface.new_socket("Through", in_out="OUTPUT", socket_type="NodeSocketColor")
else:
grp.inputs.new("NodeSocketColor", "Tint")
grp.outputs.new("NodeSocketColor", "Color")
grp.outputs.new("NodeSocketColor", "Through")
inner = grp.nodes.new("ShaderNodeTexImage")
inner.image = rough
grp.links.new(inner.outputs["Color"], go.inputs[0])
grp.links.new(gi.outputs[0], go.inputs[1])
m, nt, b = material("MatGroup")
gn = nt.nodes.new("ShaderNodeGroup")
gn.node_tree = grp
nt.links.new(tex(nt, diffuse).outputs["Color"], gn.inputs[0])
nt.links.new(gn.outputs[1], b.inputs["Base Color"])
nt.links.new(gn.outputs[0], b.inputs["Roughness"])
mats.append(m)
# bump, and unresolved links (a noise texture, a math node)
m, nt, b = material("MatBump")
bp = nt.nodes.new("ShaderNodeBump")
bp.inputs["Strength"].default_value = 0.5
bp.inputs["Distance"].default_value = 0.2
nt.links.new(tex(nt, bump).outputs["Color"], bp.inputs["Height"])
nt.links.new(bp.outputs["Normal"], b.inputs["Normal"])
nz = nt.nodes.new("ShaderNodeTexNoise")
nt.links.new(nz.outputs["Color"], b.inputs["Base Color"])
b.inputs["Base Color"].default_value = (0.0, 0.0, 0.0, 1.0)
mt = nt.nodes.new("ShaderNodeMath")
nt.links.new(mt.outputs[0], b.inputs["Metallic"])
b.inputs["Metallic"].default_value = 0.9
mats.append(m)
for i, m in enumerate(mats):
me = mesh("Quad" + m.name, [(0, 0, 0), (1, 0, 0), (1, 1, 0), (0, 1, 0)], [(0, 1, 2, 3)])
uv(me, "UVMap", lambda k: ((k % 2) * 1.0, (k // 2) * 1.0))
byte_colors(me, "Col")
me.materials.append(m)
ob = link(bpy.data.objects.new("Quad" + m.name, me))
ob.location = (i * 1.5, 0, 0)
update()
save(os.path.join(out, "mat_%s.blend" % TAG))
scene_file()
rig_file()
ctl_file()
mat_file()
if OLD:
scene_file()
save(os.path.join(out, "compat_%s.blend" % TAG), compat=True)
+312 -5
View File
@@ -2,7 +2,9 @@
# <this> -- <json list of .blend paths> <out dir>): opens each file (old ones through Blender's versioning) and writes
# <out dir>/<file>.json with the reference values (object world matrices, mesh counts / bounds / attribute sums / corner normals,
# vertex groups, shape keys, materials, images, cameras, lights, bones, f-curve values, posed world matrices per frame),
# and exports a .glb of each file (Z up, no modifiers) whose JSON part is returned as "gltf".
# the rig data of each armature (bone head / tail / roll, collections, colours, custom shapes, locks, IK settings,
# constraints with every RNA property of their type) and the default theme's bone colour sets; posed matrices are
# taken with every constraint muted (the reader does not evaluate constraints). It exports a .glb of each file (Z up, no modifiers) whose JSON part is returned as "gltf".
import bpy, sys, os, json, struct, math
args = sys.argv[sys.argv.index("--") + 1:]
@@ -62,6 +64,8 @@ def mesh_info(ob):
if me.shape_keys:
k = me.shape_keys
info["shapes"] = [{"name": b.name, "value": r6(b.value), "relative": b.relative_key.name,
"slider_min": r6(b.slider_min), "slider_max": r6(b.slider_max), "mute": bool(b.mute),
"vertex_group": b.vertex_group,
"co": [r6(p.co[c]) for p in b.data for c in range(3)]} for b in k.key_blocks]
info["reference"] = k.reference_key.name
info["modifiers"] = [m.type for m in ob.modifiers]
@@ -89,9 +93,115 @@ def linked_image(s):
return "?" + n.bl_idname
PASS = {"NodeReroute": ["Input"], "ShaderNodeMix": ["A_Color", "B_Color"], "ShaderNodeMixRGB": ["Color1", "Color2"],
"ShaderNodeHueSaturation": ["Color"], "ShaderNodeBrightContrast": ["Color"], "ShaderNodeGamma": ["Color"],
"ShaderNodeInvert": ["Color"], "ShaderNodeRGBCurve": ["Color"], "ShaderNodeValToRGB": ["Fac"]}
def by_identifier(sockets, ident):
for s in sockets:
if s.identifier == ident:
return s
return None
def trace(sock, via, stack, depth=0):
"""bpy's view of the reader's rules: (end node, from-socket name, group stack) of the first image, else the last node"""
if depth > 64 or not sock.is_linked:
return None, None
link = sock.links[0]
n, out = link.from_node, link.from_socket
if n.bl_idname == "ShaderNodeTexImage":
return n, out.name
if n.bl_idname == "ShaderNodeGroup" and n.node_tree:
outs = [x for x in n.node_tree.nodes if x.bl_idname == "NodeGroupOutput"]
if outs:
inner = by_identifier(outs[0].inputs, out.identifier)
if inner is not None:
via.append(n.bl_idname)
r, nm = trace(inner, via, stack + [n], depth + 1)
if r is not None and r.bl_idname == "ShaderNodeTexImage":
return r, nm
via.pop()
return n, out.name
if n.bl_idname == "NodeGroupInput" and stack:
g = stack[-1]
outer = by_identifier(g.inputs, out.identifier)
if outer is not None:
return trace(outer, via, stack[:-1], depth + 1)
return n, out.name
if n.bl_idname in PASS:
last = n
for ident in PASS[n.bl_idname]:
s = by_identifier(n.inputs, ident) or (n.inputs.get(ident) if hasattr(n.inputs, "get") else None)
if s is None and n.bl_idname == "NodeReroute":
s = n.inputs[0]
if s is None:
continue
sub = []
r, nm = trace(s, sub, stack, depth + 1)
if r is not None and r.bl_idname == "ShaderNodeTexImage":
via.append(n.bl_idname)
via.extend(sub)
return r, nm
if n.bl_idname == "NodeReroute":
return (r, nm) if r is not None else (n, out.name)
return last, out.name
return n, out.name
def image_info(img):
info = {"name": img.name, "source": img.source, "filepath": img.filepath}
if img.source == "TILED":
info["tiles"] = [{"number": t.number, "label": t.label} for t in img.tiles]
return info
def graph_info(m):
out = {}
if not m.node_tree:
return out
bsdf = None # the reader's choice: the Principled BSDF linked to an output's Surface, else the first
for n in m.node_tree.nodes:
if n.bl_idname == "ShaderNodeOutputMaterial" and n.inputs["Surface"].is_linked:
f = n.inputs["Surface"].links[0].from_node
if f.bl_idname == "ShaderNodeBsdfPrincipled":
bsdf = f
if bsdf is None:
bsdf = next((n for n in m.node_tree.nodes if n.bl_idname == "ShaderNodeBsdfPrincipled"), None)
if bsdf is None:
return out
for name in ("Base Color", "Metallic", "Roughness", "Normal", "Alpha", "Emission Color", "Emission"):
s = bsdf.inputs.get(name)
if s is None or not s.is_linked:
continue
sock = s
e = {"linked": s.links[0].from_node.bl_idname}
if name == "Normal" and e["linked"] in ("ShaderNodeNormalMap", "ShaderNodeBump"):
nn = s.links[0].from_node
sock = nn.inputs["Color"] if e["linked"] == "ShaderNodeNormalMap" else nn.inputs["Height"]
if e["linked"] == "ShaderNodeBump":
e["strength"] = r6(nn.inputs["Strength"].default_value)
e["distance"] = r6(nn.inputs["Distance"].default_value)
via = []
n, outname = trace(sock, via, [])
if n is not None and n.bl_idname == "ShaderNodeTexImage" and n.image:
e["image"] = image_info(n.image)
e["via"] = via
e["output"] = outname
elif n is not None:
e["end"] = n.bl_idname
if n.bl_idname == "ShaderNodeVertexColor":
e["vertexColor"] = n.layer_name
elif n.bl_idname == "ShaderNodeAttribute":
e["vertexColor"] = n.attribute_name
out[name] = e
return out
def material_info(m):
info = {"name": m.name, "diffuse": [r6(x) for x in m.diffuse_color], "metallic": r6(m.metallic), "roughness": r6(m.roughness),
"use_nodes": bool(m.use_nodes), "cull": bool(m.use_backface_culling)}
"use_nodes": bool(m.use_nodes), "cull": bool(m.use_backface_culling), "graph": graph_info(m)}
if m.node_tree:
for n in m.node_tree.nodes:
if n.bl_idname == "ShaderNodeBsdfPrincipled":
@@ -122,6 +232,180 @@ def fcurves(act):
return out
def rna_value(v):
if v is None:
return ""
if isinstance(v, bpy.types.ID):
return v.name
if isinstance(v, (bpy.types.PoseBone, bpy.types.Bone)):
return v.name
if isinstance(v, bool):
return v
if isinstance(v, (int, float)):
return r6(v)
if isinstance(v, str):
return v
if hasattr(v, "col"): # a Matrix
return [r6(x) for x in mat(v)]
try:
return [rna_value(x) for x in v]
except TypeError:
return None
SKIP = {"rna_type", "show_expanded", "active", "is_valid", "is_override_data_editable", "error_location",
"error_rotation", "targets", "space_object", "space_subtarget"}
BONE_KEYS = ("inherit_scale", "use_inherit_rotation", "use_local_location", "use_relative_parent", "bbone_segments",
"bbone_x", "bbone_z", "bbone_easein", "bbone_easeout", "bbone_rollin", "bbone_rollout", "bbone_curveinx",
"bbone_curveinz", "bbone_curveoutx", "bbone_curveoutz", "bbone_scalein", "bbone_scaleout",
"bbone_handle_type_start", "bbone_handle_type_end", "bbone_custom_handle_start", "bbone_custom_handle_end",
"use_endroll_as_inroll", "bbone_mapping_mode")
def action_fcurves(act):
if V >= (4, 4) and hasattr(act, "layers") and len(act.layers) > 0:
for strip in act.layers[0].strips:
for bag in strip.channelbags:
return list(bag.fcurves)
return []
return list(act.fcurves)
def action_info(act):
curves = []
for fc in action_fcurves(act):
keys = [{"co": [r6(k.co[0]), r6(k.co[1])], "interpolation": k.interpolation, "easing": k.easing,
"handle_left": [r6(k.handle_left[0]), r6(k.handle_left[1])],
"handle_right": [r6(k.handle_right[0]), r6(k.handle_right[1])]} for k in fc.keyframe_points]
curves.append({"data_path": fc.data_path, "array_index": fc.array_index, "extrapolation": fc.extrapolation, "keys": keys})
return {"frame_range": [r6(act.frame_range[0]), r6(act.frame_range[1])], "curves": curves}
def modifier_info(m):
e = {"type": m.type, "name": m.name, "show_viewport": m.show_viewport, "show_render": m.show_render}
if m.type == "ARMATURE":
e.update({"object": m.object.name if m.object else "", "use_vertex_groups": m.use_vertex_groups,
"use_bone_envelopes": m.use_bone_envelopes, "use_deform_preserve_volume": m.use_deform_preserve_volume,
"use_multi_modifier": m.use_multi_modifier, "vertex_group": m.vertex_group,
"invert_vertex_group": m.invert_vertex_group})
return e
def props_info(owner):
out = {}
for k in owner.keys():
if k == "_RNA_UI":
continue
v = owner[k]
if hasattr(v, "to_dict"):
v = v.to_dict()
elif hasattr(v, "to_list"):
v = v.to_list()
out[k] = v
return out
MOD_KEYS = ("type", "mode", "use_additive", "coefficients", "poly_order", "mute", "influence", "use_influence",
"use_restricted_range", "frame_start", "frame_end", "blend_in", "blend_out")
def driver_info(fc):
d = fc.driver
variables = []
for v in d.variables:
targets = []
for t in v.targets:
targets.append({"id": t.id.name if t.id else "", "id_type": t.id_type, "data_path": t.data_path,
"bone_target": t.bone_target, "transform_type": t.transform_type,
"transform_space": t.transform_space, "rotation_mode": t.rotation_mode,
"context_property": t.context_property})
variables.append({"name": v.name, "type": v.type, "targets": targets})
mods = []
for m in fc.modifiers:
e = {}
for k in MOD_KEYS:
if hasattr(m, k):
e[k] = rna_value(getattr(m, k))
mods.append(e)
return {"data_path": fc.data_path, "array_index": fc.array_index, "extrapolation": fc.extrapolation,
"keys": [{"co": [r6(k.co[0]), r6(k.co[1])], "interpolation": k.interpolation} for k in fc.keyframe_points],
"driver": {"type": d.type, "expression": d.expression, "use_self": d.use_self, "variables": variables},
"modifiers": mods}
def drivers_of(idb):
ad = getattr(idb, "animation_data", None)
return [driver_info(fc) for fc in ad.drivers] if ad else []
def constraint_info(c):
out = {}
if c.type == "ARMATURE":
out["targets"] = [{"target": t.target.name if t.target else "", "subtarget": t.subtarget, "weight": r6(t.weight)} for t in c.targets]
for prop in c.bl_rna.properties:
k = prop.identifier
if k in SKIP or prop.type == "COLLECTION":
continue
try:
v = rna_value(getattr(c, k))
except Exception: # noqa: BLE001
continue
if v is not None:
out[k] = v
return out
def color_info(c):
return {"palette": c.palette, "normal": [r6(x) for x in c.custom.normal], "select": [r6(x) for x in c.custom.select],
"active": [r6(x) for x in c.custom.active]}
def rig_info(ob):
arm = ob.data
bones = []
for b in arm.bones:
_, roll = bpy.types.Bone.AxisRollFromMatrix(b.matrix_local.to_3x3())
pb = ob.pose.bones[b.name]
pose = {
"custom_shape": pb.custom_shape.name if pb.custom_shape else "",
"custom_shape_transform": pb.custom_shape_transform.name if pb.custom_shape_transform else "",
"custom_shape_translation": [r6(x) for x in pb.custom_shape_translation],
"custom_shape_rotation_euler": [r6(x) for x in pb.custom_shape_rotation_euler],
"custom_shape_scale_xyz": [r6(x) for x in pb.custom_shape_scale_xyz],
"use_custom_shape_bone_size": pb.use_custom_shape_bone_size,
"lock_location": list(pb.lock_location), "lock_rotation": list(pb.lock_rotation),
"lock_rotation_w": pb.lock_rotation_w, "lock_rotations_4d": pb.lock_rotations_4d,
"lock_scale": list(pb.lock_scale), "rotation_mode": pb.rotation_mode, "ik_stretch": r6(pb.ik_stretch),
"color": color_info(pb.color),
"constraints": [constraint_info(c) for c in pb.constraints],
}
for a in "xyz":
for k in ("lock_ik_", "use_ik_limit_", "ik_min_", "ik_max_", "ik_stiffness_"):
pose[k + a] = rna_value(getattr(pb, k + a))
for k in ("location", "rotation_quaternion", "rotation_euler", "rotation_axis_angle", "scale"):
pose[k] = rna_value(getattr(pb, k))
pose["props"] = props_info(pb)
pose["bone_props"] = props_info(b)
info = {}
for k in BONE_KEYS:
if hasattr(b, k):
info[k] = rna_value(getattr(b, k))
bones.append({"name": b.name, "head_local": [r6(x) for x in b.head_local], "tail_local": [r6(x) for x in b.tail_local], "bone": info,
"roll": r6(roll), "deform": b.use_deform, "use_connect": b.use_connect, "show_wire": b.show_wire,
"collections": [c.name for c in b.collections], "color": color_info(b.color), "pose": pose})
cols = [{"name": c.name, "visible": c.is_visible, "parent": c.parent.name if c.parent else ""} for c in arm.collections_all]
return {"bones": bones, "collections": cols}
def theme_colors():
out = []
for cs in bpy.context.preferences.themes[0].bone_color_sets:
out.append({"normal": [r6(x) for x in cs.normal], "select": [r6(x) for x in cs.select], "active": [r6(x) for x in cs.active]})
return out
FRAMES = [1 + 0.5 * i for i in range(43)] # 1 .. 22 (past the last key: extrapolation)
@@ -140,11 +424,19 @@ def dump(path):
obs = list(sc.objects)
ref = {"version": list(bpy.data.version), "fps": sc.render.fps / sc.render.fps_base, "frameStart": sc.frame_start,
"frameCurrent": sc.frame_current, "resolution": [sc.render.resolution_x, sc.render.resolution_y],
"objects": [], "materials": [], "images": [], "cameras": {}, "lights": {}, "armatures": {}, "actions": {}}
"objects": [], "materials": [], "images": [], "cameras": {}, "lights": {}, "armatures": {}, "actions": {},
"rigs": {}, "themeBoneColors": theme_colors(),
"allActions": {a.name: action_info(a) for a in bpy.data.actions}}
for ob in obs:
o = {"name": ob.name, "type": ob.type, "parent": ob.parent.name if ob.parent else "", "parent_type": ob.parent_type,
"parent_bone": ob.parent_bone, "world": [r6(x) for x in mat(ob.matrix_world)],
"collections": [c.name for c in ob.users_collection]}
"collections": [c.name for c in ob.users_collection], "hide_viewport": ob.hide_viewport,
"hide_render": ob.hide_render, "props": props_info(ob), "drivers": drivers_of(ob),
"parent_info": {"matrix_parent_inverse": [r6(x) for x in mat(ob.matrix_parent_inverse)],
"parent_vertices": list(ob.parent_vertices)} if ob.parent else {},
"modifier_info": [modifier_info(m) for m in ob.modifiers],
"data_drivers": drivers_of(ob.data) if ob.data is not None and ob.type in ("ARMATURE", "MESH") else [],
"shape_key_drivers": drivers_of(ob.data.shape_keys) if ob.type == "MESH" and ob.data.shape_keys else []}
if ob.type == "MESH":
o["mesh"] = mesh_info(ob)
if ob.animation_data and ob.animation_data.action:
@@ -168,6 +460,9 @@ def dump(path):
if ob.type == "ARMATURE":
ref["armatures"][ob.name] = [{"name": b.name, "parent": b.parent.name if b.parent else "", "deform": b.use_deform,
"local": [r6(x) for x in mat(b.matrix_local)], "length": r6(b.length)} for b in ob.data.bones]
ref["rigs"][ob.name] = rig_info(ob)
if ob.constraints:
o["constraints"] = [constraint_info(c) for c in ob.constraints]
for m in bpy.data.materials:
ref["materials"].append(material_info(m))
for im in bpy.data.images:
@@ -175,6 +470,18 @@ def dump(path):
ref["images"].append({"name": im.name, "filepath": im.filepath, "packed": im.packed_file.size if im.packed_file else 0,
"source": im.source})
# posed world matrices: objects, pose bones (world), shape key values
for ob in obs:
for c in ob.constraints:
c.mute = True
if ob.type == "ARMATURE":
for pb in ob.pose.bones:
for c in pb.constraints:
c.mute = True
sc.frame_set(sc.frame_current)
for o in ref["objects"]:
o["worldMuted"] = [r6(x) for x in mat(bpy.data.objects[o["name"]].matrix_world)]
ref["posedBones"] = {ob.name + "/" + pb.name: [r6(x) for x in mat(ob.matrix_world @ pb.matrix)]
for ob in obs if ob.type == "ARMATURE" for pb in ob.pose.bones}
poses = []
if ref["actions"]:
for f in FRAMES:
@@ -187,7 +494,7 @@ def dump(path):
p["bones"][ob.name + "/" + pb.name] = [r6(x) for x in mat(ob.matrix_world @ pb.matrix)]
if ob.type == "MESH" and ob.data.shape_keys:
p["shapes"][ob.name] = [r6(b.value) for b in ob.data.shape_keys.key_blocks]
if ob.type == "MESH" and any(m.type == "ARMATURE" for m in ob.modifiers) and f == math.floor(f):
if ob.type == "MESH" and any(m.type == "ARMATURE" and m.object and m.show_viewport for m in ob.modifiers) and f == math.floor(f):
ev = ob.evaluated_get(bpy.context.evaluated_depsgraph_get())
em = ev.to_mesh()
w = ob.matrix_world
+8 -2
View File
@@ -7,7 +7,7 @@
# old demos (fetched, never committed; 32-bit pointers, big-endian SGI / PowerPC files among them), with references
# from Blender 4.1 (5.0 dropped big-endian files).
# tests/gen/blend_<ver>.luau { { name, data, ref } } (<ver>: 279, 293, 35, 41, cur, old)
# tests/gen/blend_files.luau sibling files the scenes refer to ({ ["outside.png"] = bytes })
# tests/gen/blend_files.luau sibling files the scenes refer to ({ ["outside.png"] = bytes, UDIM tiles })
import json, os, shutil, subprocess, tempfile
INPUTS = ["tools/fixtures/_blend_make.py", "tools/fixtures/_blend_ref.py"]
@@ -118,6 +118,7 @@ def generate(ctx):
if not ok:
raise RuntimeError("blend: the reference Blender failed: " + log[-2000:])
sibling = None
tiles = {}
for tag, (out, files) in made.items():
cases = []
for f in files:
@@ -132,10 +133,15 @@ def generate(ctx):
ctx.emit("blend_" + name, cases)
if sibling is None and os.path.exists(os.path.join(out, "outside.png")):
sibling = open(os.path.join(out, "outside.png"), "rb").read()
for tile in ("udim.1001.png", "udim.1002.png"):
if tile not in tiles and os.path.exists(os.path.join(out, tile)):
tiles[tile] = open(os.path.join(out, tile), "rb").read()
for tag, _ in OLD + [("cur", None)]:
if tag not in made:
ctx.emit("blend_" + tag, [])
ctx.emit("blend_old", old_samples(ctx, tmp))
ctx.emit("blend_files", {"outside.png": sibling or b""})
files = {"outside.png": sibling or b""}
files.update(tiles)
ctx.emit("blend_files", files)
ctx.emit("blend_versions", sorted(made.keys()))
shutil.rmtree(tmp, ignore_errors=True)
+56
View File
@@ -0,0 +1,56 @@
# Detection fixtures (tools/fixtures.py): samples of every other fixture module, for tests/detect.luau (lazy detection
# against the eager reference). Runs after the other generators (LAST) and reads their tests/gen output.
# tests/gen/detect_blobs_<1..4>.luau { { from = "<module>", data = <bytes> } }: up to PER_MODULE string literals of
# 16 bytes or more per module, evenly spaced, cut to CUT bytes, without repeats
import hashlib, os, re
LAST = True
PER_MODULE = 6
CUT = 16384
PARTS = 4
PART_BYTES = 5_000_000
HEADER = "-- generated by tools/fixtures.py"
LITERAL = re.compile(rb'"([^"]*)"')
ESCAPE = re.compile(rb"\\x([0-9a-f]{2})")
def decode(raw):
return ESCAPE.sub(lambda m: bytes([int(m.group(1), 16)]), raw)
def generate(ctx):
names = sorted(f[:-5] for f in os.listdir(ctx.gen) if f.endswith(".luau") and not f.startswith("detect_"))
seen, blobs = set(), []
for name in names:
with open(os.path.join(ctx.gen, name + ".luau"), "rb") as f:
text = f.read()
if not text.startswith(HEADER.encode()):
continue
lits = [m.span(1) for m in LITERAL.finditer(text) if m.end(1) - m.start(1) >= 16]
lits = [(a, b) for a, b in lits if len(decode(text[a:min(b, a + 64)])) >= 16]
if not lits:
continue
step = max(1, len(lits) / PER_MODULE)
picks = sorted({int(i * step) for i in range(PER_MODULE)} & set(range(len(lits))))
for i in picks:
a, b = lits[i]
data = decode(text[a:min(b, a + CUT * 4)])[:CUT]
h = hashlib.sha1(data).digest()
if h in seen:
continue
seen.add(h)
blobs.append({"from": name, "data": data})
parts, cur, size = [], [], 0
for b in blobs:
if size + len(b["data"]) > PART_BYTES and cur:
parts.append(cur)
cur, size = [], 0
cur.append(b)
size += len(b["data"])
parts.append(cur)
if len(parts) > PARTS:
raise SystemExit("fixtures/detect: %d parts, raise PARTS (and the requires in tests/detect.luau)" % len(parts))
while len(parts) < PARTS:
parts.append([])
for i, p in enumerate(parts, 1):
ctx.emit("detect_blobs_%d" % i, p)
+12 -1
View File
@@ -1,5 +1,6 @@
# Docs inputs for the .blend section of docs/guide/scene.md (tools/fixtures.py; tools/docs_check.py explains the
# inputs): a small rig saved zstd-compressed by the nixpkgs Blender (a two-bone armature, a skinned cylinder with a
# inputs): a small rig saved zstd-compressed by the nixpkgs Blender (a two-bone armature with a control bone in a bone
# collection, a damped track constraint and an edge-only custom shape outside the scene, a skinned cylinder with a
# shape key, a bone action and a Principled material).
# tests/gen/docs_blend.luau { files = { ["rig.blend"] = bytes }, vars = { riggedBlendBytes = "rig.blend" } }
import importlib.util, os, shutil, subprocess, tempfile
@@ -19,7 +20,16 @@ a = arm.edit_bones.new("lower")
a.head, a.tail = (0, 0, 0), (0, 0, 1)
b = arm.edit_bones.new("upper")
b.head, b.tail, b.parent, b.use_connect = (0, 0, 1), (0, 0, 2), a, True
c = arm.edit_bones.new("ctrl")
c.head, c.tail, c.use_deform = (0.5, 0, 2), (0.5, 0, 2.5), False
bpy.ops.object.mode_set(mode="OBJECT")
arm.collections.new("Controls").assign(arm.bones["ctrl"])
ring = bpy.data.meshes.new("WGT_ring")
ring.from_pydata([(math.cos(k * math.pi / 4), math.sin(k * math.pi / 4), 0) for k in range(8)], [(k, (k + 1) % 8) for k in range(8)], [])
bpy.data.collections.new("Widgets").objects.link(bpy.data.objects.new("WGT_ring", ring))
rig.pose.bones["ctrl"].custom_shape = bpy.data.objects["WGT_ring"]
track = rig.pose.bones["upper"].constraints.new("DAMPED_TRACK")
track.target, track.subtarget = rig, "ctrl"
ring = [(math.cos(k * math.pi / 3) * 0.3, math.sin(k * math.pi / 3) * 0.3) for k in range(6)]
verts = [(x, y, z) for z in (0, 1, 2) for x, y in ring]
faces = [(r * 6 + k, r * 6 + (k + 1) % 6, (r + 1) * 6 + (k + 1) % 6, (r + 1) * 6 + k) for r in range(2) for k in range(6)]
@@ -41,6 +51,7 @@ for i in range(18):
up.add([i], (i // 6) * 0.5, "REPLACE")
tube.shape_key_add(name="Basis")
bulge = tube.shape_key_add(name="Bulge")
bulge.slider_max = 2.0
for p in bulge.data:
p.co = (p.co[0] * 1.4, p.co[1] * 1.4, p.co[2])
pb = rig.pose.bones["upper"]
+30
View File
@@ -4,6 +4,8 @@
# tests/gen/png_gen.luau images written by a small PNG writer here: every colour type and bit depth, plain and
# Adam7, odd sizes, every filter, split IDATs, tRNS keys; with the CRC-32 of the RGBA8 pixels
# tests/gen/png_bench.luau 1024 x 768 RGBA / RGB / Adam7 / palette images for tools/bench.luau
# tests/gen/png_big16.luau a 2048 x 2048 16-bit RGB image in 8 KB IDATs (rows alternate between two patterns, every
# 97th row is noise under a random filter), with the CRC-32 of its RGBA8 pixels
import os, random, struct, zlib
INPUTS = ["tests/fixtures/pngsuite", "tests/fixtures/pngsuite_ref.txt"]
@@ -163,3 +165,31 @@ def generate(ctx):
bench.append((label, data, zlib.crc32(exp)))
ctx.emit("png_bench", [{"name": l, "width": 1024, "height": 768, "crc": c, "data": d} for l, d, c in bench])
# --- a large 16-bit image that stays small compressed (rows repeat at a distance of two rows: 24578 bytes)
w = h = 2048
pat = []
for k in range(2):
pat.append([((x * 97 + k * 4000) & 0xFFFF, (x * x * 13 + k * 777) & 0xFFFF, (x * 7919 + k * 31337) & 0xFFFF) for x in range(w)])
def row16(px):
return b"".join(struct.pack(">HHH", *p) for p in px)
def row8(px):
return b"".join(bytes((p[0] >> 8, p[1] >> 8, p[2] >> 8, 255)) for p in px)
raws = [row16(p) for p in pat]
rgba = [row8(p) for p in pat]
out, exp, prev = bytearray(), [], None
for y in range(h):
if y % 97 == 50:
px = [(rng.randrange(65536), rng.randrange(65536), rng.randrange(65536)) for _ in range(w)]
raw, r8, ft = row16(px), row8(px), rng.randrange(1, 5)
else:
raw, r8, ft = raws[y % 2], rgba[y % 2], 0
out += filt(raw, prev, 6, ft) if ft else b"\0" + raw
exp.append(r8)
prev = raw
z = zlib.compress(bytes(out), 9)
data = b"\x89PNG\r\n\x1a\n" + chunk(b"IHDR", struct.pack(">IIBBBBB", w, h, 16, 2, 0, 0, 0))
for i in range(0, len(z), 8192):
data += chunk(b"IDAT", z[i:i + 8192])
data += chunk(b"IEND", b"")
ctx.emit("png_big16", {"width": w, "height": h, "crc": zlib.crc32(b"".join(exp)), "data": data})
+37
View File
@@ -0,0 +1,37 @@
# Decoder control fixtures (tools/fixtures.py, for tests/video/control.luau): VP8 with two temporal layers (ffmpeg's
# libvpx, ts_layering_mode 2: every other inter frame refreshes no reference), as IVF and WebM, with and without error
# resilience; ffmpeg's vp8 decode gives the CRC-32 of every shown yuv420p frame.
# tests/gen/videoctl_vp8.luau { { name, ivf, webm, width, height, crcs } }
import importlib.util, os, tempfile
_spec = importlib.util.spec_from_file_location("_video_helpers", os.path.join(os.path.dirname(os.path.abspath(__file__)), "_video.py"))
V = importlib.util.module_from_spec(_spec)
_spec.loader.exec_module(V)
INPUTS = ["tools/fixtures/_video.py"]
LAYERS = ["-ts-parameters", "ts_number_layers=2:ts_target_bitrate=150,300:ts_rate_decimator=2,1:ts_periodicity=2:"
"ts_layer_id=0,1:ts_layering_mode=2"]
def crcs(path):
out = V.ffmpeg(["-c:v", "vp8", "-i", path, "-fps_mode", "passthrough", "-f", "framehash", "-hash", "crc32", "-"])
res = []
for line in out.decode().splitlines():
if line and not line.startswith("#"):
res.append(int(line.split(",")[5].strip(), 16))
return res
def generate(ctx):
tmp = tempfile.mkdtemp(prefix="videoctl_")
out = []
for name, extra in (("layers", []), ("layers_er", ["-error-resilient", "1"])):
ivf = os.path.join(tmp, name + ".ivf")
webm = os.path.join(tmp, name + ".webm")
V.ffmpeg(["-f", "lavfi", "-i", "testsrc2=size=176x144:rate=25", "-frames:v", "20", "-pix_fmt", "yuv420p",
"-c:v", "libvpx", "-b:v", "300k"] + extra + LAYERS + ["-f", "ivf", ivf])
V.ffmpeg(["-i", ivf, "-c", "copy", webm])
out.append({"name": name, "ivf": open(ivf, "rb").read(), "webm": open(webm, "rb").read(), "width": 176,
"height": 144, "crcs": crcs(ivf)})
ctx.emit("videoctl_vp8", out)
+48 -1
View File
@@ -3,6 +3,8 @@
# src/Rosetta/<category>/<fmt>/init.luau and writes
# src/Rosetta/Registry.luau a static list (Roblox has no dynamic require): each format's contract metadata, copied
# from its init.luau, and a load() that requires the module on first use
# src/Rosetta/Sniffs.luau each format's sniff, copied with what it reaches (tools/sniff_extract.py), so detection
# runs without requiring the format modules
# docs/FORMATS.md the capability matrix, from each contract's caps
# README.md the format table (read / write) and the codec + container list, between the markers
# <!-- formats:begin --> / <!-- formats:end --> and <!-- codecs:begin --> / <!-- codecs:end -->
@@ -11,6 +13,9 @@
# --check: exit 1 when any of them is out of date (tools/lint.sh runs this).
import os, re, sys
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
import sniff_extract
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SRC = os.path.join(ROOT, "src", "Rosetta")
CATEGORIES = ["image", "audio", "video", "model", "cad", "font", "archive", "data", "vector", "layered", "subtitle",
@@ -50,6 +55,9 @@ def scan():
sys.exit("gen_registry: %s/%s/init.luau: missing contract fields %s" % (cat, fmt, ", ".join(missing)))
c["path"] = cat + "/" + fmt
c["folder_category"] = cat
text = open(init).read()
c["sniff_cost"], c["sniff_block"], self_name = sniff_extract.extract(text, c["path"])
c["variant"] = sniff_extract.has_variant(text, self_name)
formats.append(c)
return formats
@@ -60,6 +68,8 @@ def registry(formats):
"-- Registry: GENERATED by tools/gen_registry.py from the format folders - do not edit.",
"-- One entry per format: the contract metadata (copied from its init.luau) and load(), which requires the format",
"-- module on first use (a static require, as Roblox needs). Order: category, then name.",
"-- sniff: where detection finds the format's sniff (tools/sniff_extract.py): 0 Sniffs.luau, 1 Sniffs.luau reaching a",
"-- codec / container on first call, 2 the format module. variant: the module has variant(r).",
"export type Entry = {",
"\tname: string,",
"\tcategory: string,",
@@ -68,6 +78,8 @@ def registry(formats):
"\tmime: { string },",
"\tdeps: { string },",
"\tcaps: { [string]: any },",
"\tsniff: number,",
"\tvariant: boolean?,",
"\tload: () -> any,",
"}",
"",
@@ -83,6 +95,8 @@ def registry(formats):
"\t\tmime = %s," % c["mime"],
"\t\tdeps = %s," % c["deps"],
"\t\tcaps = %s," % c["caps"],
"\t\tsniff = %d," % c["sniff_cost"],
] + (["\t\tvariant = true,"] if c["variant"] else []) + [
"\t\tload = function()",
'\t\t\treturn require("@rosetta/%s")' % c["path"],
"\t\tend,",
@@ -92,6 +106,38 @@ def registry(formats):
return "\n".join(out)
def sniffs(formats):
out = [
"--!strict",
"--!optimize 2",
"-- Sniffs: GENERATED by tools/gen_registry.py from the format folders - do not edit.",
"-- Each format's sniff (format path -> sniff(r)), copied from its init.luau with the top-level locals and types it",
"-- reaches (tools/sniff_extract.py), so detection requires no format module. Requires outside core/ are proxies that",
"-- require on first use. Formats whose sniff needs their module (Registry sniff = 2) are not here.",
"local S: { [string]: (any) -> number } = {}",
"",
"local function lazy(load: () -> any): any",
"\tlocal proxy = {}",
"\treturn setmetatable(proxy, {",
"\t\t__index = function(_, k: any): any",
"\t\t\tlocal m = load()",
"\t\t\tsetmetatable(proxy, { __index = m })",
"\t\t\treturn m[k]",
"\t\tend,",
"\t})",
"end",
"",
] + sniff_extract.shared_lines()
for c in formats:
if c["sniff_block"] is None:
continue
out.append("do -- %s" % c["path"])
out += c["sniff_block"]
out += ["end", ""]
out += ["return S", ""]
return "\n".join(out)
def caps_dict(lit):
"""{ decode = true, depths = { 8 } } -> ordered [(key, text)] at the top level."""
body = lit.strip()[1:-1]
@@ -220,6 +266,7 @@ def main():
readme_path = os.path.join(ROOT, "README.md")
outputs = {
os.path.join(SRC, "Registry.luau"): registry(formats),
os.path.join(SRC, "Sniffs.luau"): sniffs(formats),
os.path.join(ROOT, "docs", "FORMATS.md"): formats_md(formats),
readme_path: readme(formats, readme_path),
}
@@ -239,7 +286,7 @@ def main():
sys.exit(1)
print("gen_registry: up to date (%d formats)" % len(formats))
else:
print("gen_registry: %d formats -> src/Rosetta/Registry.luau, docs/FORMATS.md, README.md%s" % (
print("gen_registry: %d formats -> src/Rosetta/Registry.luau, Sniffs.luau, docs/FORMATS.md, README.md%s" % (
len(formats), "" if stale else " (unchanged)"))
+6 -3
View File
@@ -9,7 +9,7 @@
# NATIVE native code never throws: a --!native module has no error( / assert( and requires no module that has
# one; an @native function body has no error( / assert(. A format's init.luau is never --!native.
# LAYERS requires go downward: core < Types < host; core, Types < codecs < containers < formats (<category>/<fmt>)
# < ops < api (init, Registry). core / codecs / containers / ops may require their own layer; a format
# < ops < api (init, Registry, Sniffs). core / codecs / containers / ops may require their own layer; a format
# may require its own folder but never another format; only the api requires host.
# codecs live in a domain folder: codecs/<domain>/<Name> (CODEC_DOMAINS).
# DEPS a format folder's requires outside itself are exactly the contract's deps = { ... }.
@@ -19,7 +19,8 @@
# tests/<category>/<fmt>.luau with a fuzz pass (:fuzz().
# DUP no copy-pasted code: a function body of DUP_LINES (12) or more code lines whose tokens (comments and
# whitespace dropped, identifiers kept) equal another module's function body fails; move it down to a
# shared module (core / codecs / containers) and call it from both.
# shared module (core / codecs / containers) and call it from both. Sniffs.luau (generated copies of the
# formats' sniffs) is not compared.
# DOCS docs/STYLE.md's layer block names every codec (codecs/<domain>/<Name>), container and core module in the
# tree; README.md's generated format table and codec list (<!-- formats:begin --> ... <!-- codecs:end -->)
# match tools/gen_registry.py's output; README.md links every docs/guide page, docs/API.md and
@@ -69,7 +70,7 @@ def resolve(target):
def layer(mod):
"""(rank, group) of a module path"""
top = mod.split("/")[0] if mod else ""
if mod in ("", "Registry"):
if mod in ("", "Registry", "Sniffs"):
return 6, "api"
if top == "core":
return 0, "core"
@@ -296,6 +297,8 @@ TOKEN = re.compile(r'"(?:[^"\\]|\\.)*"|\'(?:[^\'\\]|\\.)*\'|\[=*\[.*?\]=*\]|[A-Z
FUNC = re.compile(r"^(\s*)(?:local\s+)?function\b")
bodies = {}
for f, lines in text.items():
if mods[f] == "Sniffs":
continue
for i, line in enumerate(lines):
m = FUNC.match(line)
if not m:
+389
View File
@@ -0,0 +1,389 @@
#!/usr/bin/env python3
# Sniff extraction for tools/gen_registry.py: copies each format's sniff function out of its init.luau, with the
# top-level locals, types and statements it reaches, so src/Rosetta/Sniffs.luau can sniff without requiring the
# format module. A format whose sniff reaches its own module table (or a forward-declared local) is not copied: the api
# loads the module to sniff it. Requires the copy reaches: core/* as they are; any other module through a proxy that
# requires it on first field access (sniff time).
# cost 0: the copy needs only core/*; 1: it reaches a proxied module; 2: not copied (the module sniffs).
# A field the copy reads from a proxied module (Aac.adts, Zstd.MAGIC) is copied too when it reaches only core/*,
# literals and other such fields (of that module or of modules it requires; FIELD_MAX bytes at most per module): once,
# at the top of Sniffs.luau, onto the module's shared proxy, which then loads its module only for the fields left (a
# decoder). So detection runs Sniffs alone (build/Rosetta.rbxm: one small chunk), not the codecs behind the proxies.
import os, re
SRC = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "src", "Rosetta")
FIELD_MAX = 16384
KEYWORDS = set("and break continue do else elseif end false for function if in local nil not or repeat return then "
"true until while type export typeof".split())
NAME = r"[A-Za-z_]\w*"
def clean(text):
"""text with string, comment and long-bracket contents blanked (newlines kept), same length"""
out, i, n = [], 0, len(text)
while i < n:
c = text[i]
if c == "-" and text.startswith("--", i):
m = re.match(r"--\[(=*)\[", text[i:])
if m:
j = text.find("]" + m.group(1) + "]", i + len(m.group(0)))
j = n if j < 0 else j + len(m.group(1)) + 2
else:
j = text.find("\n", i)
j = n if j < 0 else j
out.append(re.sub(r"[^\n]", " ", text[i:j]))
i = j
elif c == "[" and re.match(r"\[(=*)\[", text[i:]):
m = re.match(r"\[(=*)\[", text[i:])
j = text.find("]" + m.group(1) + "]", i + len(m.group(0)))
j = n if j < 0 else j + len(m.group(1)) + 2
out.append('"' + re.sub(r"[^\n]", " ", text[i + 1:j - 1]) + '"')
i = j
elif c in "\"'":
j = i + 1
while j < n and text[j] != c and text[j] != "\n":
j += 2 if text[j] == "\\" else 1
j = min(j + 1, n)
out.append(c + " " * (j - i - 2) + c if j - i >= 2 else text[i:j])
i = j
else:
out.append(c)
i += 1
return "".join(out)
def split_top(s):
"""split s on commas outside brackets"""
parts, depth, cur = [], 0, ""
for ch in s:
if ch in "({[<":
depth += 1
elif ch in ")}]>":
depth -= 1
if ch == "," and depth == 0:
parts.append(cur)
cur = ""
else:
cur += ch
parts.append(cur)
return parts
def statements(text):
"""[(first line, last line, cleaned text)] of the top-level statements (0-based inclusive line numbers)"""
lines = text.split("\n")
cl = clean(text).split("\n")
starts = [i for i, l in enumerate(cl) if l[:1] not in ("", " ", "\t") and not re.match(r"(end|until)\b|[}\])]", l)]
out = []
for k, s in enumerate(starts):
e = (starts[k + 1] if k + 1 < len(starts) else len(lines)) - 1
while e > s and cl[e].strip() == "":
e -= 1
out.append((s, e, "\n".join(cl[s:e + 1])))
return out
def free_names(code):
"""identifiers read by code that are not field / method names or table / type keys ({ name = ..., name: T }; an
over-approximation: locals are included)"""
code = re.sub(r"([{,]\s*)" + NAME + r"(\s*(=(?!=)|:\s))", r"\1\2", code)
return {m.group(1) for m in re.finditer(r"(?<![.:\w])\s*(" + NAME + r")", code)} - KEYWORDS
def defines(st):
"""(names, kind) a top-level statement declares: kind 'local', 'func', 'type', 'forward' or None"""
m = re.match(r"local\s+function\s+(" + NAME + ")", st)
if m:
return [m.group(1)], "func"
m = re.match(r"(?:export\s+)?type\s+(" + NAME + ")", st)
if m:
return [m.group(1)], "type"
m = re.match(r"local\s+(.*)", st, re.S)
if m:
rest = m.group(1)
depth, cut = 0, None
for i, ch in enumerate(rest):
if ch in "({[":
depth += 1
elif ch in ")}]":
depth -= 1
elif ch == "=" and depth == 0 and rest[i + 1:i + 2] != "=" and rest[i - 1:i] not in ("=", "~", "<", ">"):
cut = i
break
head = rest if cut is None else rest[:cut]
names = [p.split(":")[0].strip() for p in split_top(head.split("\n")[0] if cut is None else head)]
return [n for n in names if re.fullmatch(NAME, n)], ("forward" if cut is None else "local")
return [], None
REQUIRE = re.compile(r'^local\s+(' + NAME + r')\s*=\s*require\("@rosetta/([\w/]+)"\)\s*$')
def extract(text, path):
"""(cost, block lines or None, module table name) for one format's init.luau"""
lines = text.split("\n")
sts = statements(text)
sniff_i, self_name = None, None
for i, (s, e, st) in enumerate(sts):
m = re.match(r"function\s+(" + NAME + r")\.sniff\s*\(", st)
if m:
sniff_i, self_name = i, m.group(1)
if sniff_i is None:
return 2, None, None
defs = [] # (statement index, name, kind)
for i, (s, e, st) in enumerate(sts):
names, kind = defines(st)
for n in names:
defs.append((i, n, kind))
def_names = {n for _, n, _ in defs}
# top-level statements that are not declarations: assignments, loops (a table filled at load time)
others = [i for i, (s, e, st) in enumerate(sts) if defines(st)[1] is None and i != sniff_i]
def resolve(name, before):
best = None
for i, n, kind in defs:
if n == name and i < before:
best = (i, kind)
return best
include, lazy, todo, bad = set(), {}, [sniff_i], False
reached = set()
while todo:
i = todo.pop()
if i in include:
continue
include.add(i)
st = sts[i][2]
body = st
if i == sniff_i:
body = st[st.index("("):]
for n in free_names(body):
if n == self_name:
bad = True
continue
r = resolve(n, i)
if r is None:
continue
j, kind = r
if kind == "forward":
bad = True
continue
reached.add(n)
req = REQUIRE.match(lines[sts[j][0]]) if sts[j][0] == sts[j][1] else None
if req and not req.group(2).startswith("core/"):
lazy[j] = (req.group(1), req.group(2))
continue
todo.append(j)
# load-time statements that touch a reached local (a lookup table filled by a loop)
for k in others:
if k not in include and re.match(r"(function\s+)?" + re.escape(self_name) + r"\b|return\b", sts[k][2]) is None:
if free_names(sts[k][2]) & reached:
todo.append(k)
if bad:
return 2, None, self_name
left = {}
for j, (alias, mod) in lazy.items():
left[j] = share(mod, used_fields(alias, [sts[i][2] for i in include])) # the fields that load mod
USED.add(mod)
# a non-function statement that reads a proxied module runs at load time: the proxy would load it at once
for i in include:
if i != sniff_i and defines(sts[i][2])[1] not in ("func", "type"):
for j, (alias, _) in lazy.items():
if alias in free_names(sts[i][2]) and (left[j] or not re.search(
r"(?<![.:\w])" + re.escape(alias) + r"\s*\.", sts[i][2])):
return 2, None, self_name
block = []
for i in sorted(set(include) | set(lazy)):
s, e, st = sts[i]
if i in lazy:
alias, mod = lazy[i]
block.append("local %s = %s" % (alias, shared_name(mod)))
elif i == sniff_i:
src = "\n".join(lines[s:e + 1])
src = re.sub(r"^function\s+" + re.escape(self_name) + r"\.sniff\s*\(", 'S["%s"] = function(' % path, src)
block.append(src)
else:
src = "\n".join(lines[s:e + 1])
block.append(re.sub(r"^export\s+type\b", "type", src))
return (1 if any(reaches_left(m) for _, m in lazy.values()) else 0), block, self_name
# ------------------------------------------------------------------------------------------------ shared field copies
# SHARED: module -> [fields the sniffs read, fields left to the proxy]; one table per module at the top of Sniffs.luau
# (shared_lines), a lazy proxy when a field is left, with the copied fields set on it.
SHARED = {}
USED = set() # the modules the sniffs read (emit also adds what their copies read)
def shared_name(mod):
return "P_" + re.sub(r"\W", "_", mod)
def used_fields(alias, texts):
pat = re.compile(r"(?<![.:\w])" + re.escape(alias) + r"\s*\.\s*(" + NAME + ")")
return {f for t in texts for f in pat.findall(t)}
def module_file(mod):
for p in (os.path.join(SRC, mod + ".luau"), os.path.join(SRC, mod, "init.luau")):
if os.path.isfile(p):
return p
return None
def field_statements(mod, fields, depth):
"""(lines, self name, required modules) of the top-level statements module mod needs for fields (function M.f /
M.f = ..., with the locals, types, M fields, load-time statements and fields of required modules they reach), or
None"""
path = module_file(mod)
if path is None:
return None
with open(path) as f:
text = f.read()
lines = text.split("\n")
sts = statements(text)
self_name = None
for s, e, st in sts:
m = re.match(r"return\s+(" + NAME + r")\s*$", st)
if m:
self_name = m.group(1)
if self_name is None:
return None
field_at = {}
for i, (s, e, st) in enumerate(sts):
m = re.match(r"(?:function\s+)?" + re.escape(self_name) + r"\s*\.\s*(" + NAME + r")\s*(\(|=(?!=))", st)
if m and m.group(1) not in field_at:
field_at[m.group(1)] = i
defs = []
for i, (s, e, st) in enumerate(sts):
names, kind = defines(st)
for n in names:
defs.append((i, n, kind))
others = [i for i, (s, e, st) in enumerate(sts) if defines(st)[1] is None and i not in field_at.values()
and not re.match(r"return\b", st)]
def resolve(name, before):
best = None
for i, n, kind in defs:
if n == name and i < before:
best = (i, kind)
return best
include, reqs, todo, reached, got = set(), {}, [], set(), set()
for f in fields:
if f not in field_at:
return None
todo.append(field_at[f])
got.add(f)
while todo:
while todo:
i = todo.pop()
if i in include:
continue
include.add(i)
st = sts[i][2]
for f in used_fields(self_name, [st]):
if f in field_at:
got.add(f)
todo.append(field_at[f])
for n in free_names(st):
if n == self_name:
continue
r = resolve(n, i)
if r is None:
continue
j, kind = r
if kind == "forward":
return None
if kind == "local" and re.search(r"^[ \t]*" + re.escape(n) + r"\s*=(?!=)", text, re.M):
return None # module state (a cache): a copy would hold a second one
reached.add(n)
req = REQUIRE.match(lines[sts[j][0]]) if sts[j][0] == sts[j][1] else None
if req and not req.group(2).startswith("core/"):
reqs[j] = req.group(1), req.group(2)
continue
todo.append(j)
# load-time statements that fill a reached local or field (a table built by a loop)
for k in others:
if k not in include and (free_names(sts[k][2]) & reached or used_fields(self_name, [sts[k][2]]) & got):
todo.append(k)
out, deps = [], []
for i in sorted(include | set(reqs)):
s, e, st = sts[i]
if i in reqs:
alias, sub = reqs[i]
used = used_fields(alias, [sts[k][2] for k in include])
if depth >= 3 or not used or alias in free_names(" ".join(
re.sub(r"(?<![.:\w])" + re.escape(alias) + r"\s*\.\s*" + NAME, "", sts[k][2]) for k in include)):
return None # the module table itself is used, not only its fields
share(sub, used, depth + 1) # a field left there loads sub when the copy reaches it
deps.append(sub)
out.append("local %s = %s" % (alias, shared_name(sub)))
else:
out.append(re.sub(r"^export\s+type\b", "type", "\n".join(lines[s:e + 1])))
if sum(len(x) + 1 for x in out) > FIELD_MAX:
return None
return out, self_name, deps
def share(mod, fields, depth=0):
"""registers fields of mod for Sniffs.luau; -> the fields left to the proxy"""
e = SHARED.setdefault(mod, [set(), set()])
new = set(fields) - e[0] - e[1]
if new:
if field_statements(mod, sorted(new | e[0]), depth) is not None:
e[0] |= new
else:
for f in sorted(new): # each field alone: some may copy
if field_statements(mod, sorted(e[0] | {f}), depth) is not None:
e[0].add(f)
else:
e[1].add(f)
return set(fields) & e[1]
def reaches_left(mod, seen=None):
"""a sniff reading mod may load a module (a field left to a proxy, there or in what the copies read)"""
seen = set() if seen is None else seen
if mod in seen:
return False
seen.add(mod)
copied, left = SHARED[mod]
got = field_statements(mod, sorted(copied), 0) if copied else None
return bool(left) or (got is not None and any(reaches_left(d, seen) for d in got[2]))
def shared_lines():
"""the top of Sniffs.luau: the shared proxies / copies, each after the modules its copies read"""
out, done = [], set()
def emit(mod):
if mod in done:
return
done.add(mod)
copied, left = SHARED[mod]
got = field_statements(mod, sorted(copied), 0) if copied else ([], None, [])
body, self_name, deps = got
for d in deps:
emit(d)
name = shared_name(mod)
if left:
out.append('local %s = lazy(function()\n\treturn require("@rosetta/%s")\nend)' % (name, mod))
else:
out.append("local %s: any = {}" % name)
if copied:
out.append("do -- %s: %s" % (mod, ", ".join(sorted(copied))))
out.append("local %s = {}" % self_name)
out.extend(body)
out.extend("%s.%s = %s.%s" % (name, f, self_name, f) for f in sorted(copied))
out.append("end")
out.append("")
for mod in sorted(USED):
emit(mod)
return out
def has_variant(text, self_name):
return self_name is not None and re.search(r"^function\s+" + re.escape(self_name) + r"\.variant\s*\(", text, re.M) is not None