initial commit, 4.5 stable
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
This commit is contained in:
16
thirdparty/libwebp/patches/0002-msvc-arm64-fpstrict.patch
vendored
Normal file
16
thirdparty/libwebp/patches/0002-msvc-arm64-fpstrict.patch
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
diff --git a/thirdparty/libwebp/sharpyuv/sharpyuv_gamma.c b/thirdparty/libwebp/sharpyuv/sharpyuv_gamma.c
|
||||
index 09028428ac..6f1a88bf1a 100644
|
||||
--- a/thirdparty/libwebp/sharpyuv/sharpyuv_gamma.c
|
||||
+++ b/thirdparty/libwebp/sharpyuv/sharpyuv_gamma.c
|
||||
@@ -26,7 +26,11 @@ static uint32_t kGammaToLinearTabS[GAMMA_TO_LINEAR_TAB_SIZE + 2];
|
||||
#define LINEAR_TO_GAMMA_TAB_SIZE (1 << LINEAR_TO_GAMMA_TAB_BITS)
|
||||
static uint32_t kLinearToGammaTabS[LINEAR_TO_GAMMA_TAB_SIZE + 2];
|
||||
|
||||
+#if defined(_MSC_VER)
|
||||
+static const double kGammaF = 2.222222222222222;
|
||||
+#else
|
||||
static const double kGammaF = 1. / 0.45;
|
||||
+#endif
|
||||
#define GAMMA_TO_LINEAR_BITS 16
|
||||
|
||||
static volatile int kGammaTablesSOk = 0;
|
Reference in New Issue
Block a user