From 290f156afaf5f6f92148e94f544d1bb75784cf01 Mon Sep 17 00:00:00 2001 From: "mostynb@opera.com" Date: Fri, 20 Dec 2013 12:45:01 +0000 Subject: skip neon code in libwebp when neon is explicitly unavailable This patch makes it possible to build libwebp without runtime neon detection/usage. Review URL: https://codereview.chromium.org/95873002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242079 0039d316-1c4b-4281-b951-d872f2087c98 --- third_party/libwebp/dsp/dsp.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'third_party/libwebp/dsp/dsp.h') diff --git a/third_party/libwebp/dsp/dsp.h b/third_party/libwebp/dsp/dsp.h index 01a9589..31bda89 100644 --- a/third_party/libwebp/dsp/dsp.h +++ b/third_party/libwebp/dsp/dsp.h @@ -160,8 +160,10 @@ extern WebPUpsampleLinePairFunc WebPUpsamplers[/* MODE_LAST */]; // Initializes SSE2 version of the fancy upsamplers. void WebPInitUpsamplersSSE2(void); +#if defined(WEBP_USE_NEON) // NEON version void WebPInitUpsamplersNEON(void); +#endif #endif // FANCY_UPSAMPLING @@ -204,7 +206,10 @@ extern void (*WebPApplyAlphaMultiply4444)( void WebPInitPremultiply(void); void WebPInitPremultiplySSE2(void); // should not be called directly. + +#if defined(WEBP_USE_NEON) void WebPInitPremultiplyNEON(void); +#endif //------------------------------------------------------------------------------ -- cgit v1.1