doc(av1): a compound leaf keeps the flat transform -- the var-tx split is measured worse
Browse files at this commitbbbf1cd0166a2b986a66848662167c542719685bParent: c759b781 changed file +10 -3
- crates/ec-av1/src/encode.rs +10 -3
crates/ec-av1/src/encode.rsmodified+10 -3
| @@ -3194,9 +3194,16 @@ fn code_square_inter( | |||
| 3194 | // A compound winner commits the flat trial it was priced from: | 3194 | // A compound winner commits the flat trial it was priced from: |
| 3195 | // `commit_inter_luma`'s var-tx trial set is single-reference | 3195 | // `commit_inter_luma`'s var-tx trial set is single-reference |
| 3196 | // (`mc_trial`), so a compound leaf codes `tx_depth = 0`. | 3196 | // (`mc_trial`), so a compound leaf codes `tx_depth = 0`. |
| 3197 | - // corner-cut: no var-tx split for a compound leaf -- ceiling is | 3197 | + // lane-av1comp4 BUILT that upgrade (a `commit_inter_luma` |
| 3198 | - // the split gain on 16x16 compound blocks; upgrade path is a | 3198 | + // predicting each half-side trial from BOTH references, verified |
| 3199 | - // compound `commit_inter_luma` taking both references. | 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. | ||
| 3200 | let (levels, tx_depth, dcost) = if info.ref1.is_some() { | 3207 | let (levels, tx_depth, dcost) = if info.ref1.is_some() { |
| 3201 | luma.commit(x, y, side, &luma_new); | 3208 | luma.commit(x, y, side, &luma_new); |
| 3202 | (luma_new.levels.clone(), 0, 0.0) | 3209 | (luma_new.levels.clone(), 0, 0.0) |