From 9f35dca8cf1eca128bb30810d6d83c3fe2b700d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 2 Dec 2026 14:00:29 +0300 Subject: [PATCH] U3: delete the REFSTAMP_INTRA counters and refstamp_intra_frames getter (statics never written; the getter was read only by the deleted gates). Output unchanged. cargo check -p ec-av1 --all-targets clean --- crates/ec-av1/src/motion_field.rs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/crates/ec-av1/src/motion_field.rs b/crates/ec-av1/src/motion_field.rs index 8fa41ecf..1c94c28b 100644 --- a/crates/ec-av1/src/motion_field.rs +++ b/crates/ec-av1/src/motion_field.rs @@ -339,25 +339,6 @@ fn motion_field_projection( true } -thread_local! { - /// Frames whose `av1_setup_motion_field` saw at least one forward - /// references holding a key/intra-only frame -- the `ref_stamp` path - /// [`motion_field_projection`]'s intra early return governs. - static REFSTAMP_INTRA_FRAMES: std::cell::Cell = const { std::cell::Cell::new(0) }; - /// The subset of those frames with TWO or more such references. - static REFSTAMP_INTRA2_FRAMES: std::cell::Cell = const { std::cell::Cell::new(0) }; -} - -/// Reads the counter above (gate -/// `a_real_aomenc_inter_sequence_with_forward_keyframes_and_temporal_mvs_decodes_pixel_exact`). -#[allow(dead_code)] // read only from the `#[cfg(test)]` gates -pub fn refstamp_intra_frames() -> (usize, usize) { - ( - REFSTAMP_INTRA_FRAMES.with(std::cell::Cell::get), - REFSTAMP_INTRA2_FRAMES.with(std::cell::Cell::get), - ) -} - /// `av1_setup_motion_field` (spec 7.9.2's own driver): scans up to /// [`MFMV_STACK_SIZE`]`= 3` reference-frame slots in libaom's fixed order /// (`LAST_FRAME`, then `BWDREF_FRAME`/`ALTREF2_FRAME`/`ALTREF_FRAME` when