summaryrefslogtreecommitdiff
path: root/trunk/transupp.c
diff options
context:
space:
mode:
authordcommander <dcommander@3789f03b-4d11-0410-bbf8-ca57d06f2519>2010-10-08 08:05:44 +0000
committerdcommander <dcommander@3789f03b-4d11-0410-bbf8-ca57d06f2519>2010-10-08 08:05:44 +0000
commit6e9ee9153083823b4a0e429aaa7fe7e9310af161 (patch)
treef28ee025ea7a9b7a700dd51e6ef1e64a67ef6e16 /trunk/transupp.c
parent898b3e10b54e9fa6b3c6dc91bbc362057c0c6dcc (diff)
Added optional emulation of the jpeg-7 or jpeg-8b API/ABI's
git-svn-id: https://libjpeg-turbo.svn.sourceforge.net/svnroot/libjpeg-turbo@236 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'trunk/transupp.c')
-rw-r--r--trunk/transupp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/trunk/transupp.c b/trunk/transupp.c
index e5ec564..8c3857d 100644
--- a/trunk/transupp.c
+++ b/trunk/transupp.c
@@ -1,7 +1,7 @@
/*
* transupp.c
*
- * Copyright (C) 1997, Thomas G. Lane.
+ * Copyright (C) 1997-2009, Thomas G. Lane, Guido Vollbeding.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
@@ -649,6 +649,11 @@ transpose_critical_parameters (j_compress_ptr dstinfo)
dtemp = dstinfo->image_width;
dstinfo->image_width = dstinfo->image_height;
dstinfo->image_height = dtemp;
+#if JPEG_LIB_VERSION >= 70
+ itemp = dstinfo->min_DCT_h_scaled_size;
+ dstinfo->min_DCT_h_scaled_size = dstinfo->min_DCT_v_scaled_size;
+ dstinfo->min_DCT_v_scaled_size = itemp;
+#endif
/* Transpose sampling factors */
for (ci = 0; ci < dstinfo->num_components; ci++) {