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