From f27f7735768767ce996f281a2aed98b2f71a7ab8 Mon Sep 17 00:00:00 2001 From: James Zern Date: Wed, 1 Jul 2015 22:50:54 -0700 Subject: [PATCH] lossless_neon: enable VP8LAddGreenToBlueAndRed this moves the function outside the WEBP_USE_INTRINSICS check. there's no alternative version and it's ~70% faster at the function level and 1-2% faster overall Change-Id: I59fb4918ec86b1ac3a47cbd5d05ce62f007461cb --- src/dsp/lossless_neon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dsp/lossless_neon.c b/src/dsp/lossless_neon.c index 42dbc40c..41388c01 100644 --- a/src/dsp/lossless_neon.c +++ b/src/dsp/lossless_neon.c @@ -256,6 +256,8 @@ static uint32_t Predictor13(uint32_t left, const uint32_t* const top) { return ClampedAddSubtractHalf(&left, top + 0, top - 1); } +#endif // WEBP_USE_INTRINSICS + //------------------------------------------------------------------------------ // Subtract-Green Transform @@ -306,8 +308,6 @@ static void AddGreenToBlueAndRed(uint32_t* argb_data, int num_pixels) { #undef USE_VTBLQ -#endif // WEBP_USE_INTRINSICS - //------------------------------------------------------------------------------ // Entry point @@ -328,9 +328,9 @@ WEBP_TSAN_IGNORE_FUNCTION void VP8LDspInitNEON(void) { VP8LPredictors[11] = Predictor11; VP8LPredictors[12] = Predictor12; VP8LPredictors[13] = Predictor13; +#endif VP8LAddGreenToBlueAndRed = AddGreenToBlueAndRed; -#endif } #else // !WEBP_USE_NEON