forge
Explore
Log in

Don't you dare go Hollow

edith_codecs

Clone
★ 0

0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits

av1splitqm.report.md41 lines, 1.8 KiBHistoryRawDownload
1# av1splitqm: qm.rs module split (av1split section 5e, steps Q1-Q4)
2
3Goal: mechanical split of `crates/ec-av1/src/qm.rs` (7,046 lines) into `qm/` so no file is over
45,000 lines, with zero behaviour change.
5Base: `main` @ 03942ad3.
6
7## Steps
8| Step | What moved | File |
9|---|---|---|
10| Q1 | `qm.rs` -> `qm/mod.rs` (git mv); `mod tests` body dedented into a child file | `qm/mod.rs`, `qm/tests.rs` |
11| Q2 | `static IWT` levels 0-4 -> `pub(super) const IWT_L0..IWT_L4` | `qm/iwt_a.rs` |
12| Q3 | levels 5-9 -> `IWT_L5..IWT_L9` | `qm/iwt_b.rs` |
13| Q4 | levels 10-14 -> `IWT_L10..IWT_L14`; `static IWT` in mod.rs is now 15 references | `qm/iwt_c.rs` |
14
15Scanner plumbing: none needed. `test_source::module_source("qm")` already reads `src/qm/` as a
16directory, and `stack_budget.rs` lists it as `qm.rs` with that call.
17
18## Line counts
19| File | Lines |
20|---|---:|
21| qm/mod.rs | 165 |
22| qm/iwt_a.rs | 2278 |
23| qm/iwt_b.rs | 2278 |
24| qm/iwt_c.rs | 2278 |
25| qm/tests.rs | 106 |
26
27## Verification
28- Table data: the 100,320 numbers in main's `static IWT` (15 x 2 x 3344) match the concatenation
29 of `iwt_a/b/c.rs` in order, with type annotations and comments ignored.
30- `cargo check -p ec-av1 --tests` on host c after each step: clean. Warnings are main's (12 lib,
31 11 lib-test).
32- Test count: 5 `#[test]` attributes in qm before and after.
33- Full gate on host c, log `~/lanes/av1splitqm/gate.log`:
34 `EC_MEMGUARD_MAX=6G cargo test --release -p ec-av1 -- --test-threads=4`
35 -> `test result: ok. 807 passed; 0 failed; 49 ignored` (lib, 3237s), plus `4 passed; 0 failed`
36 for the second binary. `GATE_EXIT=0`.
37- Not run: clippy. Main is not `-D warnings` clean on this crate, so that gate cannot pass as-is.
38
39## Left
40- Other over-5k files are out of scope for this lane: stream.rs (done by its lane), decode.rs (done),
41 encode.rs, tile.rs, encoder.rs, cdf.rs (sibling lanes).