mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Thirdparty: Harmonize patches to document downstream changes
This commit is contained in:
@@ -1,15 +1,13 @@
|
||||
diff --git a/thirdparty/libwebp/src/enc/quant_enc.c b/thirdparty/libwebp/src/enc/quant_enc.c
|
||||
index 6d8202d277..8f9a3c8668 100644
|
||||
--- a/src/enc/quant_enc.c
|
||||
+++ b/src/enc/quant_enc.c
|
||||
@@ -556,6 +556,11 @@ static void AddScore(VP8ModeScore* WEBP_RESTRICT const dst,
|
||||
index 6d8202d277..302e8047f2 100644
|
||||
--- a/thirdparty/libwebp/src/enc/quant_enc.c
|
||||
+++ b/thirdparty/libwebp/src/enc/quant_enc.c
|
||||
@@ -556,6 +556,9 @@ static void AddScore(VP8ModeScore* WEBP_RESTRICT const dst,
|
||||
//------------------------------------------------------------------------------
|
||||
// Performs trellis-optimized quantization.
|
||||
|
||||
+// -- GODOT start --
|
||||
+// Prevents Visual Studio debugger from using this Node struct in place of the Godot Node class.
|
||||
+#define Node Node_libwebp_quant
|
||||
+// -- GODOT end --
|
||||
+
|
||||
// Trellis node
|
||||
typedef struct {
|
||||
@@ -1,18 +1,16 @@
|
||||
diff --git a/thirdparty/libwebp/sharpyuv/sharpyuv_gamma.c b/thirdparty/libwebp/sharpyuv/sharpyuv_gamma.c
|
||||
index 09028428ac..3184e2b80f 100644
|
||||
index 09028428ac..6f1a88bf1a 100644
|
||||
--- a/thirdparty/libwebp/sharpyuv/sharpyuv_gamma.c
|
||||
+++ b/thirdparty/libwebp/sharpyuv/sharpyuv_gamma.c
|
||||
@@ -26,7 +26,13 @@ static uint32_t kGammaToLinearTabS[GAMMA_TO_LINEAR_TAB_SIZE + 2];
|
||||
@@ -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];
|
||||
|
||||
+// -- GODOT start --
|
||||
+#if defined(_MSC_VER)
|
||||
+static const double kGammaF = 2.222222222222222;
|
||||
+#else
|
||||
static const double kGammaF = 1. / 0.45;
|
||||
+#endif
|
||||
+// -- GODOT end --
|
||||
#define GAMMA_TO_LINEAR_BITS 16
|
||||
|
||||
static volatile int kGammaTablesSOk = 0;
|
||||
2
thirdparty/libwebp/sharpyuv/sharpyuv_gamma.c
vendored
2
thirdparty/libwebp/sharpyuv/sharpyuv_gamma.c
vendored
@@ -26,13 +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];
|
||||
|
||||
// -- GODOT start --
|
||||
#if defined(_MSC_VER)
|
||||
static const double kGammaF = 2.222222222222222;
|
||||
#else
|
||||
static const double kGammaF = 1. / 0.45;
|
||||
#endif
|
||||
// -- GODOT end --
|
||||
#define GAMMA_TO_LINEAR_BITS 16
|
||||
|
||||
static volatile int kGammaTablesSOk = 0;
|
||||
|
||||
2
thirdparty/libwebp/src/enc/quant_enc.c
vendored
2
thirdparty/libwebp/src/enc/quant_enc.c
vendored
@@ -556,10 +556,8 @@ static void AddScore(VP8ModeScore* WEBP_RESTRICT const dst,
|
||||
//------------------------------------------------------------------------------
|
||||
// Performs trellis-optimized quantization.
|
||||
|
||||
// -- GODOT start --
|
||||
// Prevents Visual Studio debugger from using this Node struct in place of the Godot Node class.
|
||||
#define Node Node_libwebp_quant
|
||||
// -- GODOT end --
|
||||
|
||||
// Trellis node
|
||||
typedef struct {
|
||||
|
||||
Reference in New Issue
Block a user