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
Browse files at this commit9f35dca8cf1eca128bb30810d6d83c3fe2b700d2Parent: fa2b1501 changed file +0 -19
crates/ec-av1/src/motion_field.rsmodified+0 -19
| @@ -339,25 +339,6 @@ fn motion_field_projection( | ||
| 339 | 339 | true |
| 340 | 340 | } |
| 341 | 341 | |
| 342 | -thread_local! { | |
| 343 | - /// Frames whose `av1_setup_motion_field` saw at least one forward | |
| 344 | - /// references holding a key/intra-only frame -- the `ref_stamp` path | |
| 345 | - /// [`motion_field_projection`]'s intra early return governs. | |
| 346 | - static REFSTAMP_INTRA_FRAMES: std::cell::Cell<usize> = const { std::cell::Cell::new(0) }; | |
| 347 | - /// The subset of those frames with TWO or more such references. | |
| 348 | - static REFSTAMP_INTRA2_FRAMES: std::cell::Cell<usize> = const { std::cell::Cell::new(0) }; | |
| 349 | -} | |
| 350 | - | |
| 351 | -/// Reads the counter above (gate | |
| 352 | -/// `a_real_aomenc_inter_sequence_with_forward_keyframes_and_temporal_mvs_decodes_pixel_exact`). | |
| 353 | -#[allow(dead_code)] // read only from the `#[cfg(test)]` gates | |
| 354 | -pub fn refstamp_intra_frames() -> (usize, usize) { | |
| 355 | - ( | |
| 356 | - REFSTAMP_INTRA_FRAMES.with(std::cell::Cell::get), | |
| 357 | - REFSTAMP_INTRA2_FRAMES.with(std::cell::Cell::get), | |
| 358 | - ) | |
| 359 | -} | |
| 360 | - | |
| 361 | 342 | /// `av1_setup_motion_field` (spec 7.9.2's own driver): scans up to |
| 362 | 343 | /// [`MFMV_STACK_SIZE`]`= 3` reference-frame slots in libaom's fixed order |
| 363 | 344 | /// (`LAST_FRAME`, then `BWDREF_FRAME`/`ALTREF2_FRAME`/`ALTREF_FRAME` when |