The film B census behind the 64x64 residual arm
Browse files at this commit0d77e3f29e37b193d8cea73079726a7e5494e87bParent: 7b4f91d- docs
- the film B census behind the 64x64 residual arm
1 changed file +19 -0
- crates/ec-av1/src/encode.rs +19 -0
crates/ec-av1/src/encode.rsmodified+19 -0
| @@ -431,6 +431,25 @@ fn b64_root() -> bool { | |||
| 431 | /// takes: a desktop capture's 64x64 superblocks are flat runs whose skip arm | 431 | /// takes: a desktop capture's 64x64 superblocks are flat runs whose skip arm |
| 432 | /// already codes them for nothing, and a residual there only spends bits the | 432 | /// already codes them for nothing, and a residual there only spends bits the |
| 433 | /// intra/palette tools would have spent better. | 433 | /// intra/palette tools would have spent better. |
| 434 | +/// | ||
| 435 | +/// CENSUS on film B (12 frames, q120, `EC_AV1_BITCENSUS=1` + | ||
| 436 | +/// `examples/syntax_census.rs`, both streams read by OUR decoder), off vs on: | ||
| 437 | +/// | ||
| 438 | +/// | | skip-only | + residual | | ||
| 439 | +/// |---|---|---| | ||
| 440 | +/// | 64x64 share, all frames | 36.4% | 38.3% | | ||
| 441 | +/// | 64x64 share, leaf frames | 53.3% | 56.0% | | ||
| 442 | +/// | skip area, all frames | 80.4% | 78.8% | | ||
| 443 | +/// | skip area, leaf frames | 90.2% | 88.5% | | ||
| 444 | +/// | stream bytes | 34,366 | 34,295 | | ||
| 445 | +/// | encoder wall | 13.4s | 9.6s | | ||
| 446 | +/// | ||
| 447 | +/// `base_luma_64` enters the leaf frames' top tables at 5.7%, i.e. the | ||
| 448 | +/// TX_64X64 coefficients are really being coded. The root wins MORE often | ||
| 449 | +/// with a residual to offer (rav1e speed 6's own 64x64 share on this clip is | ||
| 450 | +/// 45.2%), which is also why the arm is 28% FASTER despite costing three more | ||
| 451 | +/// transforms per superblock: a root that wins is four quadrant searches that | ||
| 452 | +/// never run. | ||
| 434 | fn b64_residual() -> bool { | 453 | fn b64_residual() -> bool { |
| 435 | static ENV: std::sync::LazyLock<Option<bool>> = std::sync::LazyLock::new(|| { | 454 | static ENV: std::sync::LazyLock<Option<bool>> = std::sync::LazyLock::new(|| { |
| 436 | crate::envflags::var("EC_AV1_B64RES").ok().map(|v| v != "0") | 455 | crate::envflags::var("EC_AV1_B64RES").ok().map(|v| v != "0") |