forge
Explore
Log in

Don't you dare go Hollow

Fold the golden-only ref bank helper into the three-slot one

Browse files at this commit

a947556705837a2f4965258a64c979a8e7c4edb2Ahmet Kaan GümüşParent: 9310981
  • test
    • fold the golden-only ref bank helper into the three-slot one
Show full message
test(av1): fold the golden-only ref bank helper into the three-slot one
crates/ec-av1/src/decode.rsmodified+4 -10
@@ -35637,16 +35637,10 @@ mod tests {
35637 RefPix::ready(refs)35637 RefPix::ready(refs)
35638 }35638 }
35639 35639
35640- /// [`last_only`] plus `GOLDEN_FRAME` (index 4 of the name-keyed array):35640+ /// [`last_only`] plus `GOLDEN_FRAME` (index 4 of the name-keyed array)
35641- /// what a frame this encoder writes needs, since every inter frame's35641+ /// and `ALTREF_FRAME` (index 7, the frame two back, which the encoder
35642- /// `ref_frame_idx[3]` names the slot the key frame left behind and its35642+ /// keeps in the slot the current frame refreshes): what a frame this
35643- /// blocks may code `single_ref` out to it.35643+ /// encoder writes needs, since its blocks may name any of the three.
35644- fn last_and_golden<'a>(last: &'a Picture, golden: &'a Picture) -> RefPix<'a> {
35645- last_golden_altref(last, golden, None)
35646- }
35647-
35648- /// [`last_and_golden`] plus `ALTREF_FRAME` (index 7): the frame two back,
35649- /// which the encoder keeps in the slot the current frame refreshes.
35650 fn last_golden_altref<'a>(35644 fn last_golden_altref<'a>(
35651 last: &'a Picture,35645 last: &'a Picture,
35652 golden: &'a Picture,35646 golden: &'a Picture,