From a947556705837a2f4965258a64c979a8e7c4edb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sun, 6 Sep 2026 08:15:06 +0300 Subject: [PATCH] test(av1): fold the golden-only ref bank helper into the three-slot one --- crates/ec-av1/src/decode.rs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index 5bff91a3..ea76d5ae 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -35637,16 +35637,10 @@ mod tests { RefPix::ready(refs) } - /// [`last_only`] plus `GOLDEN_FRAME` (index 4 of the name-keyed array): - /// what a frame this encoder writes needs, since every inter frame's - /// `ref_frame_idx[3]` names the slot the key frame left behind and its - /// blocks may code `single_ref` out to it. - fn last_and_golden<'a>(last: &'a Picture, golden: &'a Picture) -> RefPix<'a> { - last_golden_altref(last, golden, None) - } - - /// [`last_and_golden`] plus `ALTREF_FRAME` (index 7): the frame two back, - /// which the encoder keeps in the slot the current frame refreshes. + /// [`last_only`] plus `GOLDEN_FRAME` (index 4 of the name-keyed array) + /// and `ALTREF_FRAME` (index 7, the frame two back, which the encoder + /// keeps in the slot the current frame refreshes): what a frame this + /// encoder writes needs, since its blocks may name any of the three. fn last_golden_altref<'a>( last: &'a Picture, golden: &'a Picture,