The filter-intra fire counter is a test-only reader
Browse files at this commiteb8b60a2ab47772928680a59c5fa5131c75543a3Parent: 0b03c13- chore
- the filter-intra fire counter is a test-only reader
1 changed file +1 -0
crates/ec-av1/src/tile.rsmodified+1 -0
| @@ -372,6 +372,7 @@ static FILTER_INTRA_HITS: [std::sync::atomic::AtomicUsize; 6] = | |||
| 372 | 372 | ||
| 373 | /// Reads [`FILTER_INTRA_HITS`] and zeroes it, so a gate can attribute the | 373 | /// Reads [`FILTER_INTRA_HITS`] and zeroes it, so a gate can attribute the |
| 374 | /// counts to its own encode. | 374 | /// counts to its own encode. |
| 375 | +#[cfg(test)] | ||
| 375 | pub(crate) fn take_filter_intra_hits() -> [usize; 6] { | 376 | pub(crate) fn take_filter_intra_hits() -> [usize; 6] { |
| 376 | std::array::from_fn(|i| FILTER_INTRA_HITS[i].swap(0, std::sync::atomic::Ordering::Relaxed)) | 377 | std::array::from_fn(|i| FILTER_INTRA_HITS[i].swap(0, std::sync::atomic::Ordering::Relaxed)) |
| 377 | } | 378 | } |