| Index: third_party/libwebp/dsp/upsampling_sse2.c
|
| diff --git a/third_party/libwebp/dsp/upsampling_sse2.c b/third_party/libwebp/dsp/upsampling_sse2.c
|
| index 0db0798c6d0655a25b76153914b65ba566c1c317..45cf0906e964660643b715ed6b31124c0905fe6f 100644
|
| --- a/third_party/libwebp/dsp/upsampling_sse2.c
|
| +++ b/third_party/libwebp/dsp/upsampling_sse2.c
|
| @@ -169,10 +169,10 @@ static void FUNC_NAME(const uint8_t* top_y, const uint8_t* bottom_y, \
|
| }
|
|
|
| // SSE2 variants of the fancy upsampler.
|
| -SSE2_UPSAMPLE_FUNC(UpsampleRgbLinePairSSE2, VP8YuvToRgb, 3)
|
| -SSE2_UPSAMPLE_FUNC(UpsampleBgrLinePairSSE2, VP8YuvToBgr, 3)
|
| -SSE2_UPSAMPLE_FUNC(UpsampleRgbaLinePairSSE2, VP8YuvToRgba, 4)
|
| -SSE2_UPSAMPLE_FUNC(UpsampleBgraLinePairSSE2, VP8YuvToBgra, 4)
|
| +SSE2_UPSAMPLE_FUNC(UpsampleRgbLinePair, VP8YuvToRgb, 3)
|
| +SSE2_UPSAMPLE_FUNC(UpsampleBgrLinePair, VP8YuvToBgr, 3)
|
| +SSE2_UPSAMPLE_FUNC(UpsampleRgbaLinePair, VP8YuvToRgba, 4)
|
| +SSE2_UPSAMPLE_FUNC(UpsampleBgraLinePair, VP8YuvToBgra, 4)
|
|
|
| #undef GET_M
|
| #undef PACK_AND_STORE
|
| @@ -188,6 +188,8 @@ SSE2_UPSAMPLE_FUNC(UpsampleBgraLinePairSSE2, VP8YuvToBgra, 4)
|
|
|
| //------------------------------------------------------------------------------
|
|
|
| +extern void WebPInitUpsamplersSSE2(void);
|
| +
|
| #ifdef FANCY_UPSAMPLING
|
|
|
| extern WebPUpsampleLinePairFunc WebPUpsamplers[/* MODE_LAST */];
|
| @@ -195,24 +197,18 @@ extern WebPUpsampleLinePairFunc WebPUpsamplers[/* MODE_LAST */];
|
| void WebPInitUpsamplersSSE2(void) {
|
| #if defined(WEBP_USE_SSE2)
|
| VP8YUVInitSSE2();
|
| - WebPUpsamplers[MODE_RGB] = UpsampleRgbLinePairSSE2;
|
| - WebPUpsamplers[MODE_RGBA] = UpsampleRgbaLinePairSSE2;
|
| - WebPUpsamplers[MODE_BGR] = UpsampleBgrLinePairSSE2;
|
| - WebPUpsamplers[MODE_BGRA] = UpsampleBgraLinePairSSE2;
|
| -#endif // WEBP_USE_SSE2
|
| -}
|
| -
|
| -void WebPInitPremultiplySSE2(void) {
|
| -#if defined(WEBP_USE_SSE2)
|
| - WebPUpsamplers[MODE_rgbA] = UpsampleRgbaLinePairSSE2;
|
| - WebPUpsamplers[MODE_bgrA] = UpsampleBgraLinePairSSE2;
|
| + WebPUpsamplers[MODE_RGB] = UpsampleRgbLinePair;
|
| + WebPUpsamplers[MODE_RGBA] = UpsampleRgbaLinePair;
|
| + WebPUpsamplers[MODE_BGR] = UpsampleBgrLinePair;
|
| + WebPUpsamplers[MODE_BGRA] = UpsampleBgraLinePair;
|
| + WebPUpsamplers[MODE_rgbA] = UpsampleRgbaLinePair;
|
| + WebPUpsamplers[MODE_bgrA] = UpsampleBgraLinePair;
|
| #endif // WEBP_USE_SSE2
|
| }
|
|
|
| #else
|
|
|
| // this empty function is to avoid an empty .o
|
| -void WebPInitPremultiplySSE2(void) {}
|
| +void WebPInitUpsamplersSSE2(void) {}
|
|
|
| #endif // FANCY_UPSAMPLING
|
| -
|
|
|