Commits
Commits on
5f555437677c2595586b8f53212831fc8a9cd7dd2026-09-08
test(av1): re-take the encoder's own stream pins at 8381 / 33016Ahmet Kaan Gümüş · 5f55543
test(av1): re-take the encoder's own stream pins at 8381 / 33016 Same reason as the fix itself: every intra block's tx_depth symbol is now priced at the writer's context row on both frame types, so the depth-versus-split margins moved. Green at the default preset and at EC_AV1_SPEED=6.
fix(av1): the tx_depth symbol is priced at the writer's context on both frame typesAhmet Kaan Gümüş · 4eb77f9
fix(av1): the tx_depth symbol is priced at the writer's context on both frame types Class pricer-context-zero, the last site. A key frame reads the deblock grid (tile::tx_size_ctx_of over Neighbours::record_tx's bands, lane-ctx2's half, restored here); an INTER frame's intra block reads the TXFM_CONTEXT bands instead (tx_size_ctx_txfm, where an inter neighbour votes its own BLOCK size and a skipped inter block publishes its block size), which the encoder published nowhere -- so lane-ctx2 shipped half a fix and the two frame types judged the same depth-versus-split margin against different rows. The bands ride beside MiGrid::cells (one u8 per mi cell, like skips: the cell must stay 16 bytes), filled by record_mi at every publication point -- every coded block, skipped inter blocks and var-tx roots included -- and the rule itself is one function, tile::tx_size_ctx_txfm_of, that the writer's Neighbours::tx_size_ctx_txfm now calls too. encode::tests::the_tx_depth_pricer_uses_the_writers_own_context_row is red before: the grid's row is 0 where the writer codes row 2, and at row 2 a 16x16 depth-0 symbol prices 1.4169 bits against the writer's 0.8110.
Merge branch 'lane-txd' (3c743b34): the full tx_depth context fix measured worse and is reverted; report only (split calibration is the blocker)Ahmet Kaan Gümüş · 8fa4f6aBrowse files
docs(av1): lane-txd report -- both tx_depth context halves built, censused and refutedAhmet Kaan Gümüş · a383f5dBrowse files
Revert the tx_depth context fix: correct pricing measures worseAhmet Kaan Gümüş · 1d2760b
Revert the tx_depth context fix: correct pricing measures worse REFUTED on the 12-frame native gate against a control reproduced in this worktree at 3c106765. Arm = both halves (key frame off the deblock grid, inter frame's intra block off the TXFM_CONTEXT bands the encoder now published per mi cell): | row | control | arm | |--------|--------------|--------------| | film A | +21.0 / -4.8 | +20.9 / -4.8 | | film B | +24.9 / -1.9 | +25.2 / -1.6 | | screen | +14.5 / -33.2| +14.5 / -33.2| | bars 1080p | -2.0 / -17.6 | -2.0 / -17.6 | | bars 2160p | +8.7 / -13.4 | +8.7 / -13.4 | Film B moves the wrong way on BOTH columns by 0.3 while film A gains 0.1 on one, so no keep rule is met (not both-improve, not 0.5-down-and-flat, not flat-within-0.2). Census of the row the writer really codes each `tx_depth` symbol at, over the pin encode's key + inter pictures: key frames ctx0 767 ctx1 457 ctx2 156 (ctx2 11.3%) inter-frame intra ctx0 227 ctx1 731 ctx2 1902 (ctx2 66.5%) libaom's default rows 0 and 1 are identical, so only ctx2 moves a price, and the direction is one-sided: at ctx2 depth 0 costs 0.28 (8x8), 0.61 (16x16), 0.90 (32x32) and 1.54 (64x64) bits LESS than at row 0, while depth 1 costs 0.56-0.76 bits MORE. Correct pricing therefore discourages transform splitting, and it does so on two thirds of an inter frame's intra blocks against one ninth of a key frame's -- which is exactly the row that loses. The gate says the search's residual/lambda calibration was leaning on the row-0 handicap; the symbol price itself is not what is mispriced here. Nothing else consumed the published bands, so the bands, the shared tile::tx_size_ctx_txfm_of, the MiGrid cell band and the re-taken pins go with it (the tree is byte-identical to 3c106765 again). Class pricer-context-zero has no site left that pays.
docs(av1): drop a dangling half-sentence in the stream-pin history commentAhmet Kaan Gümüş · 9419b29Browse files
test(av1): re-take the encoder's own stream pins at 8381 / 33016Ahmet Kaan Gümüş · 4e28683
test(av1): re-take the encoder's own stream pins at 8381 / 33016 Same reason as the fix itself: every intra block's tx_depth symbol is now priced at the writer's context row on both frame types, so the depth-versus-split margins moved. Green at the default preset and at EC_AV1_SPEED=6.
fix(av1): the tx_depth symbol is priced at the writer's context on both frame typesAhmet Kaan Gümüş · b6c0331
fix(av1): the tx_depth symbol is priced at the writer's context on both frame types Class pricer-context-zero, the last site. A key frame reads the deblock grid (tile::tx_size_ctx_of over Neighbours::record_tx's bands, lane-ctx2's half, restored here); an INTER frame's intra block reads the TXFM_CONTEXT bands instead (tx_size_ctx_txfm, where an inter neighbour votes its own BLOCK size and a skipped inter block publishes its block size), which the encoder published nowhere -- so lane-ctx2 shipped half a fix and the two frame types judged the same depth-versus-split margin against different rows. The bands ride beside MiGrid::cells (one u8 per mi cell, like skips: the cell must stay 16 bytes), filled by record_mi at every publication point -- every coded block, skipped inter blocks and var-tx roots included -- and the rule itself is one function, tile::tx_size_ctx_txfm_of, that the writer's Neighbours::tx_size_ctx_txfm now calls too. encode::tests::the_tx_depth_pricer_uses_the_writers_own_context_row is red before: the grid's row is 0 where the writer codes row 2, and at row 2 a 16x16 depth-0 symbol prices 1.4169 bits against the writer's 0.8110.
Merge branch 'lane-ctx2' (2efeb8f6): single-reference candidates pay comp_mode=0 at the writer's context; the key-only tx_size context arm measured worse and is reverted; pins re-taken 8325 / 33014Ahmet Kaan Gümüş · b3d0d7cBrowse files
docs(av1): lane-ctx2 report -- comp_mode term ships, tx_size depth context refutedAhmet Kaan Gümüş · e61e88bBrowse files
Revert "fix(av1): a key frame's tx_depth symbol is priced at the writer's context row"Ahmet Kaan Gümüş · c46955e
Revert "fix(av1): a key frame's tx_depth symbol is priced at the writer's context row" REFUTED on the 12-frame native gate: against its own control (this lane's comp_mode arm) film A goes +21.0/-4.8 -> +21.1/-4.6 and film B +24.9/-1.9 -> +25.0/-1.9, i.e. every film column moves the wrong way for no win anywhere (screen and both bars rows byte-for-byte flat). The keep rule is not met. The likely reason it costs rather than pays: this was HALF the fix -- an inter frame's intra block still prices its tx_depth at row 0 (it reads the TXFM_CONTEXT bands, which the encoder publishes nowhere), so key and inter frames now judge the same depth-versus-split margin against different rows. This reverts commit 7499152e.
fix(av1): a key frame's tx_depth symbol is priced at the writer's context rowAhmet Kaan Gümüş · ae42b5f
fix(av1): a key frame's tx_depth symbol is priced at the writer's context row The writer codes tx_depth off tx_size_ctx -- whether the transform above and the one to the left are at least as wide as this block's own largest transform -- while the RD search priced every block at row 0, the row where both neighbours are narrower and splitting reads cheapest (class pricer-context-zero). The key-frame tile search now keeps the same two bands the writer's record_tx publishes (each coded block's resolved transform side over its own 4x4 units, frame-absolute so a superblock row needs no reset), and code_square prices its tx_depth off tile::tx_size_ctx_of, the writer's own rule, now shared rather than transcribed. Pins re-taken: 8325 / 33014, both hashes new.
fix(av1): the RD pricer pays comp_mode=0 for a single-reference candidateAhmet Kaan Gümüş · ef9e91a
fix(av1): the RD pricer pays comp_mode=0 for a single-reference candidate On a reference_select frame the writer codes a comp_mode symbol ahead of every inter block's reference syntax, but the pricer charged only the compound side (comp_mode=1 inside compound_ref_bits) and the single side nothing at all, so compound carried the whole symbol as a handicap. single_ref_bits now adds comp_mode=0 at the writer's own reference_mode_ctx, and pays nothing on a frame that carries no reference_select bit -- exactly where write_comp_mode returns early. Pins re-taken: 8325 / 33014.
Merge branch 'lane-ctx' (ad3b6f81): the RD pricer reads the writer's contexts for skip, is_inter and the whole compound reference tree; pins re-taken 8311 / 33087Ahmet Kaan Gümüş · 55a7370Browse files
docs(av1): lane-ctx report -- pricer context sites, per-arm gate tables, deferralsAhmet Kaan Gümüş · 6ea5a69Browse files
fix(av1): keep the mi cell at 16 bytes -- the pricer's skip band rides beside itAhmet Kaan Gümüş · c73918f
fix(av1): keep the mi cell at 16 bytes -- the pricer's skip band rides beside it mi_info_cell_stays_compact and mi_info_stays_small_enough_for_a_4k_grid went red: a bool in MiInfo took the cell from 16 to 18 bytes, and that struct is what every mv-stack scan walks. The flag moves to a Vec<bool> beside the cells, filled only by the encoder's record_mi and read only by the stack's above_skip/left_skip. Streams are byte-identical (both pins unchanged).
test(av1): re-take the encoder's own stream pins after the pricer context fixesAhmet Kaan Gümüş · 4ec79bcBrowse files
fix(av1): the RD pricer priced every compound pair as LAST+GOLDEN or LAST+ALTREF at context 0Ahmet Kaan Gümüş · 628f49e
fix(av1): the RD pricer priced every compound pair as LAST+GOLDEN or LAST+ALTREF at context 0 The compound half of the reference tree was four constants: comp_bwdref[0][0] coded 1 (ALTREF) whatever the real partner was, dropping the p6 symbol a BWDREF or ALTREF2 pair also codes, and the uni_comp_ref leaves coded GOLDEN for every forward partner. All of it at CDF row 0 while the writer contexts every one of those symbols off its above/left neighbours. compound_ref_bits now walks tile.rs' write_compound_ref_frames symbol for symbol for the real pair, at comp_reference_type_ctx / single_ref_p*_ctx / uni_comp_ref_p1_ctx, and prices comp_mode at reference_mode_ctx.
fix(av1): the RD pricer's skip and is_inter symbols were priced at CDF context 0Ahmet Kaan Gümüş · b527fb1
fix(av1): the RD pricer's skip and is_inter symbols were priced at CDF context 0 The tile writer contexts skip off its above/left neighbours' own skip flags and is_inter off their intra/inter state; the pricer read row 0 for both, so the skip-versus-residual margin every inter candidate is chosen on came off the wrong CDF row. MvStack now carries the two cells the writer reads (its above/left NeighbourRef plus each side's skip, published by record_mi), and the two new shared pricers read the writer's own contexts. MiInfo gains skip: the encoder search and the tile writer publish the real flag; the decoder's grid publishes false, nothing on that side reads it.
Merge branch 'lane-pricer' (af2b9066): the inter RD pricer charged backward single references as LAST at context 0; it now prices the writer's own single_ref tree at the writer's neighbour contexts; pins re-taken 8535 / 33221Ahmet Kaan Gümüş · 1a66ea2Browse files
docs(av1): lane-pricer report -- reference pricing arms, gate tables, sweepAhmet Kaan Gümüş · 1682663Browse files
test(av1): re-take the encoder's own stream pins after the reference pricer fixAhmet Kaan Gümüş · ca31b37Browse files
Merge branch 'lane-seg2' (291453c1): the sub-8x8 intra reader never read intra_segment_id and stamped a 1x1 mi footprint; film B under libaom adaptive quantization decodes exact at every ladder pointAhmet Kaan Gümüş · 4a5d8eaBrowse files
feat(av1): price the reference symbols at the writer's own neighbour contextsAhmet Kaan Gümüş · 9a0a562
feat(av1): price the reference symbols at the writer's own neighbour contexts Arm 2 of the pricer fix: the search charged every single_ref symbol out of context row 0, where a backward reference reads as almost free (p1=1 costs 0.23 bits against LAST's 2.74). MvStack now carries the two cells write_single_ref derives its contexts from, so the pricer runs the same single_ref_p1..p6 context functions the writer does.
Merge branch 'lane-pareto2' (4142f563): the preset ladder re-priced on the RDOQ tree; preset 6 keeps the extra-reference NEWMV search and the full coefficient breakout; the native gate prices rav1e/libaom/SVT-AV1 at their fast presetsAhmet Kaan Gümüş · 03046ceBrowse files
test(av1): witness -- a segmented key frame with sub-8x8 intra leavesAhmet Kaan Gümüş · 6c9362cBrowse files
fix(av1): price a single reference by the tree the writer codesAhmet Kaan Gümüş · 5d678d5
fix(av1): price a single reference by the tree the writer codes The inter RD pricer charged every BACKWARD single reference (BWDREF, ALTREF2, ALTREF) as if it were LAST -- p1=0,p3=0,p4=0 instead of the p1/p2/p6 chain tile.rs write_single_ref emits -- so an ALTREF block read 1.34 bits of reference syntax where it really costs 4.79, and LAST3 was priced as LAST2. One shared single_ref_bits() now mirrors the writer's whole tree at context 0; the two fixed LAST constants call it too.
fix(av1): a sub-8x8 intra leaf stamps its own mi footprint, not 1x1Ahmet Kaan Gümüş · 120e018
fix(av1): a sub-8x8 intra leaf stamps its own mi footprint, not 1x1 An 8x4/4x8 leaf goes through the same reader as a BLOCK_4X4 split leaf; a 1x1 segment stamp left its second mi cell at segment 0, which a later block read back as the spatial prediction and cdf_index. Adds the EC_SEG / EC_SEGHDR / sub8 EC_ISTEP traces the diff was found with.
Merge branch 'lane-golomb2' (6675a24b): the straddle gate generates its segmented streams by recipe and asserts the block-q span; the Golomb reader bound is libaom's to the bit, comments correctedAhmet Kaan Gümüş · 778c3d3Browse files
fix(av1): a BLOCK_4X4 intra leaf never read its own segment_idAhmet Kaan Gümüş · 96c590f
fix(av1): a BLOCK_4X4 intra leaf never read its own segment_id read_intra_mode_sub8 skipped spec 5.11.6's intra_segment_id entirely, so on a segmented key frame the first sub-8x8 split ate the segment_id symbol's place in the tile (msac desync from that block on) and every 4x4 leaf dequantized with the previous block's SEG_LVL_ALT_Q.
docs(lanes): lane-pareto2 -- reproducible recipe for the SVT-AV1 preset-8 screen point our decoder reads one sample offAhmet Kaan Gümüş · 5f9ef35Browse files
Merge branch 'lane-last2' (9a8e50dd): a second past reference (LAST2) for the leaf chain, witnessed, refuted on both films in both arms, ships off; the pins test encodes at the default preset whatever EC_AV1_SPEED saysAhmet Kaan Gümüş · 5113966Browse files
docs(av1): read_golomb's cap IS libaom's (decodetxb.c:30), so the refusal is a desync symptom, never a reader gapAhmet Kaan Gümüş · 6be36b1
docs(av1): read_golomb's cap IS libaom's (decodetxb.c:30), so the refusal is a desync symptom, never a reader gap Corrects two comments that invited widening the bound, and records the lane.
docs(lanes): lane-pareto2 measurement log -- the Pareto table, the preset-6 lever re-price, what was not measurableAhmet Kaan Gümüş · 0e781dcBrowse files
test(av1): the stream pins are default-preset pins -- encode at speed 0 whatever EC_AV1_SPEED saysAhmet Kaan Gümüş · a50740a
test(av1): the stream pins are default-preset pins -- encode at speed 0 whatever EC_AV1_SPEED says Also: the search-free arm's screen row (byte-identical to the control, LAST2 never fires on the capture).
perf(av1): preset 6 keeps the extra-reference NEWMV search and the full coefficient breakoutAhmet Kaan Gümüş · 73765f0
perf(av1): preset 6 keeps the extra-reference NEWMV search and the full coefficient breakout The ladder was composed off a lever table measured BEFORE RDOQ. Re-priced at preset 6 on the 12-frame film A row of bd_rate_screen_native, this head, the two levers it dropped there are the two cheapest BD points in the table: extra-reference NEWMV buys 2.0 points (+26.6/-0.4 -> +24.4/-2.4) for +15..30% wall and the coefficient breakout 1.2 points (-> +24.8/-1.6) for +11%, i.e. 0.067 and 0.109 points per 1% wall against a frontier of 0.031..0.041. Shipped together, preset 6 reads +23.0/-3.2 film A, +30.7/+3.0 film B, +23.2/-28.5 screen for +27% wall on three serial arms -- and it is now PAST rav1e speed 6 on film A and on the capture. Presets 4 and 5 take both levers by bracketing; 0, 3, 8 and 10 are untouched. The module doc carries the whole re-measured Pareto table, the references at their fast presets and the per-lever re-price.
Merge branch 'lane-txw' (832daabb): the tile writer coded every transform unit as TX_CLASS_2D; V_DCT/H_DCT now take the 1-D class scan, eob row and contexts; wide intra tx set ships screen-gatedAhmet Kaan Gümüş · 08bb725Browse files
docs(txw): the film arm -- the header bit alone moves bytes, which is why the lever is screen-gatedAhmet Kaan Gümüş · 443d56bBrowse files
test(av1): the straddle gate's SEG_LVL_ALT_Q rows are generated by recipe, not two uncommittable film cropsAhmet Kaan Gümüş · 29e03fe
test(av1): the straddle gate's SEG_LVL_ALT_Q rows are generated by recipe, not two uncommittable film crops The two pinned .obu files were crops of a real film in the gitignored shared fixtures dir, so the half of the gate that actually saw the rect dequant defect SKIPped on every fresh clone. Replaced by a synthetic lavfi source -- half flat grey, half heavy noise -- encoded by libaom -aq-mode 1, whose activity segmentation gives segments with distinct quantizers; the new decode::block_q_span() counter asserts that property so the row cannot go blind. Sensitivity re-measured: with e4cab216's six sites reverted the recipe row fails at 384x152 crf 20, frame 0 plane U (160,64), 126 vs 123.
docs(txw): the split suite totals, the invariants and the witness at the final treeAhmet Kaan Gümüş · 3329cf4Browse files
docs(last2): the search-free arm, the fire-share census, the decision (LAST2 ships off) and the handoverAhmet Kaan Gümüş · 707505aBrowse files
test(av1): the native BD gate can price the references at their fast presetsAhmet Kaan Gümüş · fc10b78
test(av1): the native BD gate can price the references at their fast presets EC_AV1_PARETO_REFS=1 runs rav1e speed 8/10, libaom cpu-used 8 and (when the ffmpeg has it) SVT-AV1 preset 8/10 through the SAME arm as the row above, so the Pareto table's wall column is comparable. A reference point our decoder cannot read is a NOTE on these rows, not a gate failure; the two ladders the keep table is read off keep their teeth.
feat(av1): EC_AV1_LAST2_NEW -- the search-free LAST2 arm; native gate prints the reference censusAhmet Kaan Gümüş · bcfe7e8
feat(av1): EC_AV1_LAST2_NEW -- the search-free LAST2 arm; native gate prints the reference census
Merge branch 'lane-d792' (2fb5e976): six rectangular dequant sites used the frame q index instead of the block's (segment ALT_Q); all 27 dequant sites take the block index nowAhmet Kaan Gümüş · df5d11d
Merge branch 'lane-d792' (2fb5e976): six rectangular dequant sites used the frame q index instead of the block's (segment ALT_Q); all 27 dequant sites take the block index now Class: parsed then discarded. Only frame edges force rectangular partitions in the references' streams, so it read as a bottom-straddle defect; the 1920x792 reference ladder decodes 8/8 exact.