Files
rosetta/docs/FORMATS.md
T

1.7 KiB

Formats

GENERATED by tools/gen_registry.py from each format's contract (caps) - do not edit. Every format listed here is tested under both runtimes (luau --codegen -O2 and LuaJIT through the build) by bash tools/test.sh.

Category Format Extensions Read Write Capabilities Test
image png .png .apng yes yes animation: true, alpha: true, depths: 1, 2, 4, 8, 16 tests/image/png.luau
audio aiff .aiff .aif .aifc .afc yes yes streaming: true, depths: 8, 16, 24, 32, float: true, lossy: false tests/audio/aiff.luau
audio au .au .snd yes yes streaming: true, depths: 8, 16, 24, 32, float: true, lossy: false tests/audio/au.luau
audio mp3 .mp3 .mp2 .mp1 .mpga yes - streaming: true, seek: true, layers: 1, 2, 3, channels: 2 tests/audio/mp3.luau
audio opus .opus yes - streaming: true, seek: true, lossy: true, channels: 255, rates: 48000 tests/audio/opus.luau
audio voc .voc yes yes streaming: true, depths: 8, 16, lossy: false tests/audio/voc.luau
audio vorbis .ogg .oga yes - streaming: true, seek: true, lossy: true, channels: 255 tests/audio/vorbis.luau
audio wav .wav .wave .rf64 .bw64 yes yes streaming: true, depths: 8, 16, 24, 32, float: true, rf64: true tests/audio/wav.luau

Codecs (layer 1, shared by formats; not loadable on their own):

  • codecs/Deflate: DEFLATE (RFC 1951) decoder and compressor, with the zlib (RFC 1950) and gzip (RFC 1952) wrappers.
  • codecs/Mdct: the MDCT / IMDCT of any window length N divisible by 4 (N / 2 coefficients), through an N / 4-point
  • codecs/Pcm: PCM plumbing shared by audio formats: raw sample formats, streaming Decoders, encoder input sources.