From eb4b5ff738db3655838718b743907b04dcb539ff Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Fri, 9 Oct 2015 22:35:49 -0400 Subject: vp9: add itxfm_add eob shortcuts to 10/12bpp functions. These aren't quite as helpful as the ones in 8bpp, since over there, we can use pmulhrsw, but here the coefficients have too many bits to be able to take advantage of pmulhrsw. However, we can still skip cols for which all coefs are 0, and instead just zero the input data for the row itx. This helps a few % on overall decoding speed. --- tests/checkasm/vp9dsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/checkasm/vp9dsp.c b/tests/checkasm/vp9dsp.c index 37a3ca6738..c1e13764e2 100644 --- a/tests/checkasm/vp9dsp.c +++ b/tests/checkasm/vp9dsp.c @@ -337,7 +337,7 @@ static void check_itxfm(void) randomize_buffers(); ftx(coef, tx, txtp, sz, bit_depth); - for (sub = (txtp == 0) ? 1 : sz; sub <= sz; sub <<= 1) { + for (sub = (txtp == 0) ? 1 : 2; sub <= sz; sub <<= 1) { int eob; if (sub < sz) { -- cgit v1.2.3