diff --git a/crates/ec-av1/src/encode.rs b/crates/ec-av1/src/encode.rs index 45a6d2ca..590bf883 100644 --- a/crates/ec-av1/src/encode.rs +++ b/crates/ec-av1/src/encode.rs @@ -740,6 +740,7 @@ thread_local! { } /// [`IBC_SHARE`] for the last key frame encoded on this thread. +#[allow(dead_code)] // read only from the `#[cfg(test)]` gates pub(crate) fn intrabc_source_share() -> f64 { IBC_SHARE.with(std::cell::Cell::get) } @@ -2511,6 +2512,7 @@ thread_local! { static INTRABC_FORCE: std::cell::Cell> = const { std::cell::Cell::new(None) }; } +#[allow(dead_code)] // read only from the `#[cfg(test)]` gates pub(crate) fn force_intrabc(value: Option) { INTRABC_FORCE.with(|c| c.set(value)); } @@ -2723,6 +2725,7 @@ impl Drop for Ibc { /// Reads [`IBC_SEARCH`] and zeroes it, so a gate can attribute the counts to /// its own encode. +#[allow(dead_code)] // read only from the `#[cfg(test)]` gates pub(crate) fn take_intrabc_search() -> [usize; 3] { std::array::from_fn(|i| IBC_SEARCH[i].swap(0, std::sync::atomic::Ordering::Relaxed)) } diff --git a/crates/ec-av1/src/tile.rs b/crates/ec-av1/src/tile.rs index 6a006b4d..4e275fe7 100644 --- a/crates/ec-av1/src/tile.rs +++ b/crates/ec-av1/src/tile.rs @@ -357,6 +357,7 @@ fn note_intrabc(dv: (i32, i32)) { /// Reads [`INTRABC_HITS`] and zeroes it, so a gate can attribute the counts /// to its own encode. +#[allow(dead_code)] // read only from the `#[cfg(test)]` gates pub(crate) fn take_intrabc_hits() -> [usize; 7] { std::array::from_fn(|i| INTRABC_HITS[i].swap(0, std::sync::atomic::Ordering::Relaxed)) }