forge
Explore
Log in

Don't you dare go Hollow

The filter-intra fire counter is a test-only reader

Browse files at this commit

eb8b60a2ab47772928680a59c5fa5131c75543a3Ahmet Kaan GümüşParent: 0b03c13
  • chore
    • the filter-intra fire counter is a test-only reader
Show full message
chore(av1): the filter-intra fire counter is a test-only reader
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 the373 /// 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 }