mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-17 06:19:54 +02:00
dsp/yuv*.c: rework WEBP_USE_<arch> ifdef
add a dummy init rather than repeating the '#ifdef WEBP_USE_...' pattern. Change-Id: I42e621481be7305bb7c426b4d0b279619195611e
This commit is contained in:
@ -304,19 +304,22 @@ static void YuvToBgrRowSSE2(const uint8_t* y,
|
||||
}
|
||||
}
|
||||
|
||||
#endif // WEBP_USE_SSE2
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Entry point
|
||||
|
||||
extern void WebPInitSamplersSSE2(void);
|
||||
|
||||
WEBP_TSAN_IGNORE_FUNCTION void WebPInitSamplersSSE2(void) {
|
||||
#if defined(WEBP_USE_SSE2)
|
||||
WebPSamplers[MODE_RGB] = YuvToRgbRowSSE2;
|
||||
WebPSamplers[MODE_RGBA] = YuvToRgbaRowSSE2;
|
||||
WebPSamplers[MODE_BGR] = YuvToBgrRowSSE2;
|
||||
WebPSamplers[MODE_BGRA] = YuvToBgraRowSSE2;
|
||||
WebPSamplers[MODE_ARGB] = YuvToArgbRowSSE2;
|
||||
#endif // WEBP_USE_SSE2
|
||||
}
|
||||
|
||||
#else // !WEBP_USE_SSE2
|
||||
|
||||
extern void WebPInitSamplersSSE2(void);
|
||||
WEBP_TSAN_IGNORE_FUNCTION void WebPInitSamplersSSE2(void) {}
|
||||
|
||||
#endif // WEBP_USE_SSE2
|
||||
|
Reference in New Issue
Block a user