mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 05:38:22 +01:00
Make *InitSSE2() functions be empty on non-SSE2 platform
this avoids the '*.o has no symbols' warning messages Change-Id: Ib47f9faf9073e39293acad6b2f21f21dba8c5378
This commit is contained in:
parent
ef5cc47ee7
commit
e5970bda8a
@ -11,6 +11,10 @@
|
|||||||
|
|
||||||
#include "./dsp.h"
|
#include "./dsp.h"
|
||||||
|
|
||||||
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(WEBP_USE_SSE2)
|
#if defined(WEBP_USE_SSE2)
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
@ -18,10 +22,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "./yuv.h"
|
#include "./yuv.h"
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef FANCY_UPSAMPLING
|
#ifdef FANCY_UPSAMPLING
|
||||||
|
|
||||||
// We compute (9*a + 3*b + 3*c + d + 8) / 16 as follows
|
// We compute (9*a + 3*b + 3*c + d + 8) / 16 as follows
|
||||||
@ -184,26 +184,32 @@ SSE2_UPSAMPLE_FUNC(UpsampleBgraLinePairSSE2, VP8YuvToBgra, 4)
|
|||||||
#undef CONVERT2RGB
|
#undef CONVERT2RGB
|
||||||
#undef SSE2_UPSAMPLE_FUNC
|
#undef SSE2_UPSAMPLE_FUNC
|
||||||
|
|
||||||
|
#endif // FANCY_UPSAMPLING
|
||||||
|
|
||||||
|
#endif // WEBP_USE_SSE2
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
extern WebPUpsampleLinePairFunc WebPUpsamplers[/* MODE_LAST */];
|
extern WebPUpsampleLinePairFunc WebPUpsamplers[/* MODE_LAST */];
|
||||||
|
|
||||||
void WebPInitUpsamplersSSE2(void) {
|
void WebPInitUpsamplersSSE2(void) {
|
||||||
|
#if defined(WEBP_USE_SSE2)
|
||||||
WebPUpsamplers[MODE_RGB] = UpsampleRgbLinePairSSE2;
|
WebPUpsamplers[MODE_RGB] = UpsampleRgbLinePairSSE2;
|
||||||
WebPUpsamplers[MODE_RGBA] = UpsampleRgbaLinePairSSE2;
|
WebPUpsamplers[MODE_RGBA] = UpsampleRgbaLinePairSSE2;
|
||||||
WebPUpsamplers[MODE_BGR] = UpsampleBgrLinePairSSE2;
|
WebPUpsamplers[MODE_BGR] = UpsampleBgrLinePairSSE2;
|
||||||
WebPUpsamplers[MODE_BGRA] = UpsampleBgraLinePairSSE2;
|
WebPUpsamplers[MODE_BGRA] = UpsampleBgraLinePairSSE2;
|
||||||
|
#endif // WEBP_USE_SSE2
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebPInitPremultiplySSE2(void) {
|
void WebPInitPremultiplySSE2(void) {
|
||||||
|
#if defined(WEBP_USE_SSE2)
|
||||||
WebPUpsamplers[MODE_rgbA] = UpsampleRgbaLinePairSSE2;
|
WebPUpsamplers[MODE_rgbA] = UpsampleRgbaLinePairSSE2;
|
||||||
WebPUpsamplers[MODE_bgrA] = UpsampleBgraLinePairSSE2;
|
WebPUpsamplers[MODE_bgrA] = UpsampleBgraLinePairSSE2;
|
||||||
|
#endif // WEBP_USE_SSE2
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // FANCY_UPSAMPLING
|
|
||||||
|
|
||||||
#if defined(__cplusplus) || defined(c_plusplus)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
} // extern "C"
|
} // extern "C"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // WEBP_USE_SSE2
|
|
||||||
|
Loading…
Reference in New Issue
Block a user