forge
Explore
Log in

Don't you dare go Hollow

doc(av1): a compound leaf keeps the flat transform -- the var-tx split is measured worse

Browse files at this commit

bbbf1cd0166a2b986a66848662167c542719685bAhmet Kaan GümüşParent: c759b78
Built the compound commit_inter_luma the previous lane named as the upgrade
path (both references predicting every half-side trial) and swept its split
margin on the BD gate: no margin beats the flat commit on more than one clip,
and 1080p and screen lose at every one. Recorded at the decision site.
crates/ec-av1/src/encode.rsmodified+10 -3
@@ -3194,9 +3194,16 @@ fn code_square_inter(
31943194 // A compound winner commits the flat trial it was priced from:
31953195 // `commit_inter_luma`'s var-tx trial set is single-reference
31963196 // (`mc_trial`), so a compound leaf codes `tx_depth = 0`.
3197- // corner-cut: no var-tx split for a compound leaf -- ceiling is
3198- // the split gain on 16x16 compound blocks; upgrade path is a
3199- // compound `commit_inter_luma` taking both references.
3197+ // lane-av1comp4 BUILT that upgrade (a `commit_inter_luma`
3198+ // predicting each half-side trial from BOTH references, verified
3199+ // byte-identical to this when its split is disabled) and MEASURED
3200+ // it a loss: vs libaom +83.5/+99.7/+54.9 at no margin against the
3201+ // +83.0/+99.9/+54.5 here, and +83.3/+100.2/+54.9, +83.8/+99.5/
3202+ // +54.9, +83.3/+100.0/+54.9 at split margins 0.02/0.05/0.15. A
3203+ // compound block's residual is small enough that the four extra
3204+ // per-unit txb_skip/eob symbols cost more ladder bytes than this
3205+ // encoder's static-CDF estimate prices them at, so the local RD
3206+ // win does not convert. The flat trial stays.
32003207 let (levels, tx_depth, dcost) = if info.ref1.is_some() {
32013208 luma.commit(x, y, side, &luma_new);
32023209 (luma_new.levels.clone(), 0, 0.0)