0.2.0-dev Download ZIP
42 lines ·1.9 KB Raw
| 1 | diff --git a/thirdparty/libjpeg-turbo/src/jmorecfg.h b/thirdparty/libjpeg-turbo/src/jmorecfg.h |
| 2 | index 89c7842c87..c96edd2300 100644 |
| 3 | --- a/thirdparty/libjpeg-turbo/src/jmorecfg.h |
| 4 | +++ b/thirdparty/libjpeg-turbo/src/jmorecfg.h |
| 5 | @@ -1,3 +1,5 @@ |
| 6 | +// Modified to remove lossless jpeg support. |
| 7 | + |
| 8 | /* |
| 9 | * jmorecfg.h |
| 10 | * |
| 11 | @@ -242,7 +244,7 @@ typedef int boolean; |
| 12 | |
| 13 | #define C_MULTISCAN_FILES_SUPPORTED /* Multiple-scan JPEG files? */ |
| 14 | #define C_PROGRESSIVE_SUPPORTED /* Progressive JPEG? (Requires MULTISCAN)*/ |
| 15 | -#define C_LOSSLESS_SUPPORTED /* Lossless JPEG? */ |
| 16 | +//#define C_LOSSLESS_SUPPORTED /* Lossless JPEG? */ |
| 17 | #define ENTROPY_OPT_SUPPORTED /* Optimization of entropy coding parms? */ |
| 18 | /* Note: if you selected 12-bit data precision, it is dangerous to turn off |
| 19 | * ENTROPY_OPT_SUPPORTED. The standard Huffman tables are only good for 8-bit |
| 20 | @@ -259,7 +261,7 @@ typedef int boolean; |
| 21 | |
| 22 | #define D_MULTISCAN_FILES_SUPPORTED /* Multiple-scan JPEG files? */ |
| 23 | #define D_PROGRESSIVE_SUPPORTED /* Progressive JPEG? (Requires MULTISCAN)*/ |
| 24 | -#define D_LOSSLESS_SUPPORTED /* Lossless JPEG? */ |
| 25 | +//#define D_LOSSLESS_SUPPORTED /* Lossless JPEG? */ |
| 26 | #define SAVE_MARKERS_SUPPORTED /* jpeg_save_markers() needed? */ |
| 27 | #define BLOCK_SMOOTHING_SUPPORTED /* Block smoothing? (Progressive only) */ |
| 28 | #define IDCT_SCALING_SUPPORTED /* Output rescaling via IDCT? */ |
| 29 | diff --git a/thirdparty/libjpeg-turbo/src/turbojpeg.c b/thirdparty/libjpeg-turbo/src/turbojpeg.c |
| 30 | index 23dbe6bb75..969174f72e 100644 |
| 31 | --- a/thirdparty/libjpeg-turbo/src/turbojpeg.c |
| 32 | +++ b/thirdparty/libjpeg-turbo/src/turbojpeg.c |
| 33 | @@ -1196,9 +1196,6 @@ bailout: |
| 34 | #define BITS_IN_JSAMPLE 12 |
| 35 | #include "turbojpeg-mp.c" |
| 36 | #undef BITS_IN_JSAMPLE |
| 37 | -#define BITS_IN_JSAMPLE 16 |
| 38 | -#include "turbojpeg-mp.c" |
| 39 | -#undef BITS_IN_JSAMPLE |
| 40 | |
| 41 | /* TurboJPEG 1.2+ */ |
| 42 | DLLEXPORT int tjCompress2(tjhandle handle, const unsigned char *srcBuf, |