1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-21 19:33:03 +04:00
Files
Alexander Smorkalov 3eb143cc22 Merge pull request #28139 from asmorkalov:as/webp_1.6.0
WebP update to version 1.6.0 #28139

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [ ] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake
2025-12-13 12:44:01 +03:00

22 lines
591 B
Diff

diff --git a/3rdparty/libwebp/src/dsp/cpu.h b/3rdparty/libwebp/src/dsp/cpu.h
index 7f87d7daaa..f6e3666158 100644
--- a/3rdparty/libwebp/src/dsp/cpu.h
+++ b/3rdparty/libwebp/src/dsp/cpu.h
@@ -94,6 +94,15 @@
#define WEBP_HAVE_AVX2
#endif
+#if defined(WEBP_MSC_AVX2) && _MSC_VER <= 1900
+#include <immintrin.h>
+static WEBP_INLINE int _mm256_extract_epi32(__m256i a, const int i) {
+ return a.m256i_i32[i & 7];
+}
+static WEBP_INLINE int _mm256_cvtsi256_si32(__m256i a) {
+ return _mm256_extract_epi32(a, 0);
+}
+#endif
+
#undef WEBP_MSC_AVX2
#undef WEBP_MSC_SSE41
#undef WEBP_MSC_SSE2