summaryrefslogtreecommitdiff
path: root/trunk/jddctmgr.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/jddctmgr.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/jddctmgr.c')
-rw-r--r--trunk/jddctmgr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/trunk/jddctmgr.c b/trunk/jddctmgr.c
index 52f5090..70f4f01 100644
--- a/trunk/jddctmgr.c
+++ b/trunk/jddctmgr.c
@@ -3,6 +3,7 @@
*
* Copyright (C) 1994-1996, Thomas G. Lane.
* Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
+ * Copyright (C) 2010, D. R. Commander.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
@@ -21,6 +22,7 @@
#include "jpeglib.h"
#include "jdct.h" /* Private declarations for DCT subsystem */
#include "jsimddct.h"
+#include "jpegcomp.h"
/*
@@ -100,7 +102,7 @@ start_pass (j_decompress_ptr cinfo)
for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
ci++, compptr++) {
/* Select the proper IDCT routine for this component's scaling */
- switch (compptr->DCT_scaled_size) {
+ switch (_DCT_scaled_size) {
#ifdef IDCT_SCALING_SUPPORTED
case 1:
method_ptr = jpeg_idct_1x1;
@@ -156,7 +158,7 @@ start_pass (j_decompress_ptr cinfo)
}
break;
default:
- ERREXIT1(cinfo, JERR_BAD_DCTSIZE, compptr->DCT_scaled_size);
+ ERREXIT1(cinfo, JERR_BAD_DCTSIZE, _DCT_scaled_size);
break;
}
idct->pub.inverse_DCT[ci] = method_ptr;