From d8009c077a96e0210ca47b12a3774bbb2437590f Mon Sep 17 00:00:00 2001 From: John Koleszar <jkoleszar@google.com> Date: Tue, 27 Jul 2010 11:12:21 -0400 Subject: [PATCH] neon: disable asm quantizer The assembly version of the quantizer has not been updated to match the new exact quantizer introduced in commit e04e2935. That commit tried to disable this code but missed the non-RTCD case. Thanks to David Baker <david.baker at openmarket.com> for isolating the issue and testing this fix. Change-Id: I0e51492dc6f8e44d2c10b587427448bf94135c65 --- vp8/encoder/arm/csystemdependent.c | 4 ++++ vp8/encoder/arm/quantize_arm.h | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/vp8/encoder/arm/csystemdependent.c b/vp8/encoder/arm/csystemdependent.c index bfceab16c0..698cf1e6f1 100644 --- a/vp8/encoder/arm/csystemdependent.c +++ b/vp8/encoder/arm/csystemdependent.c @@ -63,6 +63,10 @@ void vp8_cmachine_specific_config(VP8_COMP *cpi) cpi->rtcd.encodemb.submbuv = vp8_subtract_mbuv_neon; cpi->rtcd.quantize.quantb = vp8_regular_quantize_b; + cpi->rtcd.quantize.fastquantb = vp8_fast_quantize_b_c; + /* The neon quantizer has not been updated to match the new exact + * quantizer introduced in commit e04e2935 + */ /*cpi->rtcd.quantize.fastquantb = vp8_fast_quantize_b_neon;*/ #elif HAVE_ARMV6 cpi->rtcd.variance.sad16x16 = vp8_sad16x16_c; diff --git a/vp8/encoder/arm/quantize_arm.h b/vp8/encoder/arm/quantize_arm.h index 5a7b0caac9..339b8a28a1 100644 --- a/vp8/encoder/arm/quantize_arm.h +++ b/vp8/encoder/arm/quantize_arm.h @@ -15,8 +15,11 @@ #if HAVE_ARMV7 extern prototype_quantize_block(vp8_fast_quantize_b_neon); -#undef vp8_quantize_fastquantb -#define vp8_quantize_fastquantb vp8_fast_quantize_b_neon +/* The neon quantizer has not been updated to match the new exact + * quantizer introduced in commit e04e2935 + */ +//#undef vp8_quantize_fastquantb +//#define vp8_quantize_fastquantb vp8_fast_quantize_b_neon #endif -- GitLab