From c7eb45764f6430fa5d5c0b98f82019ed04c40ae4 Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Mon, 27 Aug 2012 00:18:48 -0700 Subject: [PATCH] make VP8DspInitNEON() public this will avoid the "dec_neon.o has no symbol" warning no change in binary size observed on linux. Change-Id: Ia27ae2bc5a03d714afa7e46671fdcf4cb630784d --- src/dsp/dec_neon.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/dsp/dec_neon.c b/src/dsp/dec_neon.c index ec824b79..09cafeef 100644 --- a/src/dsp/dec_neon.c +++ b/src/dsp/dec_neon.c @@ -12,14 +12,14 @@ #include "./dsp.h" -#if defined(WEBP_USE_NEON) - -#include "../dec/vp8i.h" - #if defined(__cplusplus) || defined(c_plusplus) extern "C" { #endif +#if defined(WEBP_USE_NEON) + +#include "../dec/vp8i.h" + #define QRegs "q0", "q1", "q2", "q3", "q4", "q5", "q6", "q7", \ "q8", "q9", "q10", "q11", "q12", "q13", "q14", "q15" @@ -311,19 +311,24 @@ static void TransformTwoNEON(const int16_t* in, uint8_t* dst, int do_two) { } } +#endif // WEBP_USE_NEON + +//------------------------------------------------------------------------------ +// Entry point + extern void VP8DspInitNEON(void); void VP8DspInitNEON(void) { +#if defined(WEBP_USE_NEON) VP8Transform = TransformTwoNEON; VP8SimpleVFilter16 = SimpleVFilter16NEON; VP8SimpleHFilter16 = SimpleHFilter16NEON; VP8SimpleVFilter16i = SimpleVFilter16iNEON; VP8SimpleHFilter16i = SimpleHFilter16iNEON; +#endif // WEBP_USE_NEON } #if defined(__cplusplus) || defined(c_plusplus) } // extern "C" #endif - -#endif // WEBP_USE_NEON