forge
Explore
Log in

Don't you dare go Hollow

Lossless lane report

Browse files at this commit

27c4ad5a2d45d05e0cfd0cb74ed043e72be2abb1Ahmet Kaan GümüşParent: 9a5f8e7
  • docs
    • lossless lane report
Show full message
docs(lane): lossless lane report
lanes/lossless.report.mdadded+42 -0
@@ -0,0 +1,42 @@
1+# lane-lossless — AV1 lossless (qindex 0) decode
2+
3+Branch `lane-lossless`, base `7ba28bcd`. Status: IN PROGRESS.
4+
5+## Done (commits b56bb30f, d26c55bb wip)
6+- `transform.rs::inverse_wht4x4` — libaom `av1_iwht4x4_16_add_c`
7+ (`aom_dsp/inv_txfm.c:22`), inputs shifted by `UNIT_QUANT_SHIFT` (2). Test
8+ `transform::lossless_tx_tests::the_walsh_hadamard_round_trip_is_exact` PASSES.
9+- `TxParams::lossless` + `dequant_and_inverse_wht4x4`: the residual of a
10+ lossless unit comes off the WHT, not the DCT/ADST network
11+ (`av1/common/idct.c` `inv_txfm_add`: `if (txfm_param->lossless) { assert(tx_type
12+ == DCT_DCT); av1_iwht4x4_add(...); return; }`).
13+- Per-frame `CodedLossless` flag (`decode::set_lossless`/`lossless`), set in
14+ `stream.rs` where the refusal used to be. A frame MIXING lossless and lossy
15+ segments is still refused by name (all rules are per segment there).
16+- TX_4X4 forcing: `decode_block` (tables/scans/tx swapped to the 4x4 ones),
17+ `decode_leaf8`, and `depth_to_tx_wh` (every HORZ/VERT strip reader) --
18+ libaom `read_tx_size` (`decodeframe.c`): `if (xd->lossless[segment_id])
19+ return TX_4X4;` before anything else.
20+- No `tx_type` symbol, DCT_DCT on every plane: libaom `read_tx_type`
21+ (`decodetxb.c`) returns early at `qindex == 0`; `av1_get_tx_type`
22+ (`blockd.h`) returns DCT_DCT for a lossless block.
23+- `is_cfl_allowed` narrowing (`blockd.h`): under lossless CfL is offered only
24+ when the chroma plane block is BLOCK_4X4, i.e. a luma block <= 8x8
25+ (`decode::cfl_allowed_px`, the one point every intra reader routes through).
26+- `txb_skip_chroma_4` widened 3 -> 6 rows: `get_txb_ctx`'s `+10` rows
27+ (chroma plane block larger than its transform) are reachable at TX_4X4 only
28+ on a lossless frame -- `av1_default_txb_skip_cdfs[0][TX_4X4][10..13]` =
29+ 9961/30242/32117 and are the neutral 16384 in every other q-context, which
30+ is libaom's own confirmation of the rule.
31+
32+## Remaining
33+- The 64x64 synthetic key frame (`ffmpeg -c:v libaom-av1 -crf 0 -b:v 0`) now
34+ parses the whole tile but still differs from ffmpeg at luma sample 0:
35+ desync is inside the first block's coefficients (mode syntax of block 1
36+ matches aomdec's `EC_ISTEP`, block 2's range does not).
37+- Inter-frame readers (`decode_inter_block*`, sub8) not yet forced to TX_4X4.
38+- Filter-stage skips (deblock/CDEF/LR) are header-driven and believed already
39+ handled by the header parser; unverified.
40+- Fixtures + gates: none added yet; the retired refusal gate
41+ `a_lossless_libaom_stream_is_refused_by_name` still asserts the old refusal
42+ and will FAIL until it is swapped for the decode-exact gate.