ws-polish: README / STYLE module lists and format counts from the tree, checked by a DOCS lint rule
tools/lint_rules.py DOCS: the README and STYLE layout blocks must name every codecs/<domain>/<Name>, containers/ and core/ module; README's format counts must match docs/FORMATS.md; the guide index must link every guide page. STYLE's 'use what exists' table lists the wave-3 shared modules.
This commit is contained in:
1 parent
42e96a0964
commit
84fb8f42f1
4 files changed
+132
-37
No files matched your search
+25
-8
@@ -23,17 +23,23 @@ src/Formats/
|
||||
mesh / layers / audio / music; ImageOps, ...)
|
||||
<category>/<fmt>/ formats (layer 5) image audio video model cad font archive data
|
||||
vector layered subtitle music playlist
|
||||
containers/ containers (layer 4) Chunks, Riff, IsoBmff, Ebml, Ogg, Zip, Tar, ...
|
||||
containers/ containers (layer 4) Archive AudioWrap Avi Chunks Cpio Demux Ebml
|
||||
Fat Iso9660 IsoBmff MacFile MpegEs MpegPs
|
||||
MpegTs Ogg Riff Tar Zip
|
||||
codecs/<domain>/<Name> codecs (layer 3) generic algorithms, by domain:
|
||||
compress/ Deflate Lzma Zstd Brotli Bzip2 Lzw Lz4 entropy/ Huffman RangeCoder
|
||||
image/ Jpeg Dct Vp8 Vp8L Pixels Yuv Quantize Raster Blend
|
||||
audio/ Opus Vorbis Flac Mpa Aac Alac Mdct Pcm Stream Resample VorbisComment Tracker SoundFont
|
||||
video/ H264 Mpeg1 Video (the video codec registry) text/ Json Xml Text Url
|
||||
font/ TrueType Cff model/ Mat4 MeshFlatten Rbx
|
||||
compress/ Brotli Bzip2 Deflate Explode Lz4 Lzh Lzma Lzw Lzx PackBits Quantum UnixCompress Xxh32 Zstd
|
||||
entropy/ Huffman RangeCoder
|
||||
image/ Bcn Blend Dct Etc Half Jpeg Pixels Quantize Raster Texel Texture Vp8 Vp8L Yuv
|
||||
audio/ Aac Ac3 Adpcm Alac Ape ApeTag Flac Hively Mdct MidiRender Mpa Musepack Opus Pcm Qoa Resample
|
||||
SoundFont Stream Tracker Tta Vorbis VorbisComment WavPack
|
||||
video/ Dsp H263 H264 Legacy Mpeg1 Mpeg2 Theora Video (the video codec registry)
|
||||
text/ Json Nbt Text Url Xml
|
||||
font/ Bitmap Cff GlyphNames TrueType
|
||||
model/ Draco Mat4 MeshFlatten Minecraft Polygon Rbx Rig Sampler Vrml
|
||||
host/ host (layer 2) runtime adapters; only the api uses them
|
||||
Types.luau types (layer 1) standard types + constructors
|
||||
core/ core (layer 0) Bytes, Bits, Err, Crc32, Adler32, Base64, Md5,
|
||||
Input, Sniff (runtime-neutral primitives)
|
||||
core/ core (layer 0) Adler32 Base64 Bits Bytes Crc16 Crc32 Err Input
|
||||
Md5 Sniff (runtime-neutral primitives)
|
||||
```
|
||||
|
||||
LAYERS: a module requires only what is below it. core requires core; Types requires core; codecs require core, Types
|
||||
@@ -207,6 +213,17 @@ them. Anything generic goes down a layer and is called:
|
||||
| sniffing text (BOM) / magic | `core/Sniff` |
|
||||
| private-submodule errors -> Err | `core/Err.from` |
|
||||
| UTF-8 code points, text decoding | `codecs/text/Text` |
|
||||
| ADPCM (IMA, MS, ADX, PS-ADPCM, DSP, Flash, ModPlug) | `codecs/audio/Adpcm` |
|
||||
| APE tags | `codecs/audio/ApeTag` |
|
||||
| GPU texture pixels (BCn, ETC / EAC, uncompressed texel layouts, half floats) | `codecs/image/Texture` (`Bcn`, `Etc`, `Texel`, `Half`) |
|
||||
| animation channels sampled at a time; game-model frames, joints and skins -> Scene | `codecs/model/Sampler`, `codecs/model/Rig` |
|
||||
| polygons with holes -> triangles | `codecs/model/Polygon` |
|
||||
| NBT / SNBT values; Minecraft block states and colours | `codecs/text/Nbt`, `codecs/model/Minecraft` |
|
||||
| Roblox instance trees and property values | `codecs/model/Rbx` |
|
||||
| bitmap fonts as a Font; PostScript glyph names | `codecs/font/Bitmap`, `codecs/font/GlyphNames` |
|
||||
| CRC-16 (XMODEM / ARC), xxHash32 | `core/Crc16`, `codecs/compress/Xxh32` |
|
||||
| Mac files (data + resource forks), FAT / ISO 9660 file systems, cpio | `containers/MacFile`, `containers/Fat`, `containers/Iso9660`, `containers/Cpio` |
|
||||
| 8x8 IDCT and half-pel motion compensation of MPEG-style video | `codecs/video/Dsp` |
|
||||
|
||||
DUP enforces the direction: a function body of 12 or more code lines repeated token for token in another module
|
||||
fails the lint. When two formats need the same code, move it down (to `codecs/<domain>/` or `containers/`) instead of
|
||||
|
||||
Reference in new issue
Block a user