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

07a8e46ead9e64392384bb053e701f81ccafc40dAhmet Kaan GümüşParent: 1ce9f54
  • 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
@@ -2549,6 +2549,17 @@ mod tests {
2549 "--enable-palette=0",2549 "--enable-palette=0",
2550 "--enable-intrabc=0",2550 "--enable-intrabc=0",
2551 "--enable-cfl-intra=0",2551 "--enable-cfl-intra=0",
2552+ // Temporal MV projection (`use_ref_frame_mvs`) has no
2553+ // decode path here (`mvstack.rs`'s documented corner-cut:
2554+ // `zero_mv_ctx` and the mode-context GLOBALMV_OFFSET bit
2555+ // are always computed as if it were off) -- this gate
2556+ // isolates grain synthesis, so it must stay inside that
2557+ // envelope like every other feature disabled above, not
2558+ // silently decode a wrong mode context. Root cause of
2559+ // this test's frame-1 mismatch: aomenc turns
2560+ // `use_ref_frame_mvs` on by default once order hints are
2561+ // enabled, unrelated to `--tune-content=film`.
2562+ "--enable-ref-frame-mvs=0",
2552 "--tune-content=film",2563 "--tune-content=film",
2553 "--obu",2564 "--obu",
2554 "-o",2565 "-o",