summaryrefslogtreecommitdiffstats
path: root/modules/webp/webp_common.cpp
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2023-07-25 21:25:54 +0200
committerYuri Sizov <yuris@humnom.net>2023-07-25 21:25:54 +0200
commit8dc193173f1ec63be5e7d2b5facdaafdde8e58c7 (patch)
tree45aa42c7ee0f9afe4c6bac57a108c6c64eefc404 /modules/webp/webp_common.cpp
parent4b0d1026af855f5e388712113866e34dec374081 (diff)
parent31ca73653629861d16213e2750d018cf49ec946f (diff)
downloadredot-engine-8dc193173f1ec63be5e7d2b5facdaafdde8e58c7.tar.gz
Merge pull request #79257 from DeeJayLSP/sharpp
Lossy WebP: Enable sharp RGB to YUV conversion
Diffstat (limited to 'modules/webp/webp_common.cpp')
-rw-r--r--modules/webp/webp_common.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/webp/webp_common.cpp b/modules/webp/webp_common.cpp
index 60cb0091e1..bc34a25733 100644
--- a/modules/webp/webp_common.cpp
+++ b/modules/webp/webp_common.cpp
@@ -84,6 +84,7 @@ Vector<uint8_t> _webp_packer(const Ref<Image> &p_image, float p_quality, bool p_
}
config.method = compression_method;
config.quality = p_quality;
+ config.use_sharp_yuv = 1;
pic.use_argb = 1;
pic.width = s.width;
pic.height = s.height;