From 02f3d37db3a0600cb6e2b891563b87c889b86133 Mon Sep 17 00:00:00 2001 From: FreezyLemon Date: Tue, 20 Feb 2024 22:49:47 +0100 Subject: [PATCH] Replace call to ILog with more intuitive TxSize fns --- src/transform/inverse.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/transform/inverse.rs b/src/transform/inverse.rs index 0a5a56062d..7b19506198 100644 --- a/src/transform/inverse.rs +++ b/src/transform/inverse.rs @@ -1649,7 +1649,8 @@ pub(crate) mod rust { // perform inv txfm on every row let range = bd + 8; - let txfm_fn = INV_TXFM_FNS[tx_types_1d.1 as usize][ILog::ilog(width) - 3]; + let txfm_fn = + INV_TXFM_FNS[tx_types_1d.1 as usize][tx_size.width_log2() - 2]; // 64 point transforms only signal 32 coeffs. We only take chunks of 32 // and skip over the last 32 transforms here. for (r, buffer_slice) in (0..height.min(32)).zip(buffer.chunks_mut(width)) @@ -1677,7 +1678,8 @@ pub(crate) mod rust { // perform inv txfm on every col let range = cmp::max(bd + 6, 16); - let txfm_fn = INV_TXFM_FNS[tx_types_1d.0 as usize][ILog::ilog(height) - 3]; + let txfm_fn = + INV_TXFM_FNS[tx_types_1d.0 as usize][tx_size.height_log2() - 2]; for c in 0..width { let mut temp_in: [i32; 64] = [0; 64]; let mut temp_out: [i32; 64] = [0; 64];