Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/thirdparty/libjpeg-turbo/patches/0002-disable-16bitlossless.patch
9906 views
1
commit 462c1cd875ae8f6b5f6406dda01881fb173ac30c
2
Author: Daniel Kinsman <[email protected]>
3
Date: Thu Mar 20 12:21:28 2025 +1100
4
5
remove unneeded source files and lossless jpeg support
6
7
diff --git a/thirdparty/libjpeg-turbo/src/turbojpeg.c b/thirdparty/libjpeg-turbo/src/turbojpeg.c
8
index 389aea55d3..eec8e2a616 100644
9
--- a/thirdparty/libjpeg-turbo/src/turbojpeg.c
10
+++ b/thirdparty/libjpeg-turbo/src/turbojpeg.c
11
@@ -1200,9 +1200,6 @@ bailout:
12
#define BITS_IN_JSAMPLE 12
13
#include "turbojpeg-mp.c"
14
#undef BITS_IN_JSAMPLE
15
-#define BITS_IN_JSAMPLE 16
16
-#include "turbojpeg-mp.c"
17
-#undef BITS_IN_JSAMPLE
18
19
/* TurboJPEG 1.2+ */
20
DLLEXPORT int tjCompress2(tjhandle handle, const unsigned char *srcBuf,
21
22