forge
Explore
Log in

Don't you dare go Hollow

Pin the film-grain gate below use_ref_frame_mvs's unimplemented path

Browse files at this commit

25e8a4f8934b705d9742f8437566df5667313ec8Ahmet Kaan GümüşParent: 6836b28
  • fix
    • pin the film-grain gate below use_ref_frame_mvs's unimplemented path
Show full message
fix(av1): pin the film-grain gate below use_ref_frame_mvs's unimplemented path

real_aomenc_film_grain_streams_decode_pixel_exact's frame-1 mismatch was
never a grain bug: aomenc turns on temporal MV projection
(use_ref_frame_mvs) by default once order hints are enabled, and
mvstack.rs's documented corner-cut always computes zero_mv_ctx and the
mode-context GLOBALMV_OFFSET bit as if it were off, desyncing the symbol
stream from the first NEARESTMV block that inherits a temporal-adjusted
context. Add --enable-ref-frame-mvs=0 alongside this gate's other
disabled features so it isolates grain synthesis as its own comment
already claims, matching every real-aomenc gate's envelope pattern.
Temporal MV projection stays a separate, unimplemented capability.
crates/ec-av1/src/stream.rsmodified+11 -0
@@ -2580,6 +2580,17 @@ mod tests {
2580 "--enable-palette=0",2580 "--enable-palette=0",
2581 "--enable-intrabc=0",2581 "--enable-intrabc=0",
2582 "--enable-cfl-intra=0",2582 "--enable-cfl-intra=0",
2583+ // Temporal MV projection (`use_ref_frame_mvs`) has no
2584+ // decode path here (`mvstack.rs`'s documented corner-cut:
2585+ // `zero_mv_ctx` and the mode-context GLOBALMV_OFFSET bit
2586+ // are always computed as if it were off) -- this gate
2587+ // isolates grain synthesis, so it must stay inside that
2588+ // envelope like every other feature disabled above, not
2589+ // silently decode a wrong mode context. Root cause of
2590+ // this test's frame-1 mismatch: aomenc turns
2591+ // `use_ref_frame_mvs` on by default once order hints are
2592+ // enabled, unrelated to `--tune-content=film`.
2593+ "--enable-ref-frame-mvs=0",
2583 "--tune-content=film",2594 "--tune-content=film",
2584 "--obu",2595 "--obu",
2585 "-o",2596 "-o",