~ubuntu-branches/ubuntu/saucy/libjpeg-turbo/saucy-security

« back to all changes in this revision

Viewing changes to jddctmgr.c

  • Committer: Package Import Robot
  • Author(s): Fathi Boudra
  • Date: 2013-07-28 16:52:51 UTC
  • mfrom: (1.1.3) (9.1.1 saucy-proposed)
  • Revision ID: package-import@ubuntu.com-20130728165251-7vg6wszhm941kdej
Tags: 1.3.0-0ubuntu1
* New upstream release.
  - drop debian/patches/branch-updates.diff
  - refresh tjunittest.patch (now renamed to install-tjunittest.patch)
* Update debian/control:
  - add myself to Uploaders.
* Update debian/copyright:
  - add RSA Data Security copyright (md5).
* Update debian/libturbojpeg.install:
  - install libturbojpeg.so.0* (needed by tjunittest and tjbench).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * jddctmgr.c
3
3
 *
 
4
 * This file was part of the Independent JPEG Group's software:
4
5
 * Copyright (C) 1994-1996, Thomas G. Lane.
 
6
 * Modified 2002-2010 by Guido Vollbeding.
 
7
 * Modifications:
5
8
 * Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
6
9
 * Copyright (C) 2010, D. R. Commander.
7
 
 * This file is part of the Independent JPEG Group's software.
8
10
 * For conditions of distribution and use, see the accompanying README file.
9
11
 *
10
12
 * This file contains the inverse-DCT management logic.
115
117
        method_ptr = jpeg_idct_2x2;
116
118
      method = JDCT_ISLOW;      /* jidctred uses islow-style table */
117
119
      break;
 
120
    case 3:
 
121
      method_ptr = jpeg_idct_3x3;
 
122
      method = JDCT_ISLOW;      /* jidctint uses islow-style table */
 
123
      break;
118
124
    case 4:
119
125
      if (jsimd_can_idct_4x4())
120
126
        method_ptr = jsimd_idct_4x4;
122
128
        method_ptr = jpeg_idct_4x4;
123
129
      method = JDCT_ISLOW;      /* jidctred uses islow-style table */
124
130
      break;
 
131
    case 5:
 
132
      method_ptr = jpeg_idct_5x5;
 
133
      method = JDCT_ISLOW;      /* jidctint uses islow-style table */
 
134
      break;
 
135
    case 6:
 
136
      method_ptr = jpeg_idct_6x6;
 
137
      method = JDCT_ISLOW;      /* jidctint uses islow-style table */
 
138
      break;
 
139
    case 7:
 
140
      method_ptr = jpeg_idct_7x7;
 
141
      method = JDCT_ISLOW;      /* jidctint uses islow-style table */
 
142
      break;
125
143
#endif
126
144
    case DCTSIZE:
127
145
      switch (cinfo->dct_method) {
157
175
        break;
158
176
      }
159
177
      break;
 
178
    case 9:
 
179
      method_ptr = jpeg_idct_9x9;
 
180
      method = JDCT_ISLOW;      /* jidctint uses islow-style table */
 
181
      break;
 
182
    case 10:
 
183
      method_ptr = jpeg_idct_10x10;
 
184
      method = JDCT_ISLOW;      /* jidctint uses islow-style table */
 
185
      break;
 
186
    case 11:
 
187
      method_ptr = jpeg_idct_11x11;
 
188
      method = JDCT_ISLOW;      /* jidctint uses islow-style table */
 
189
      break;
 
190
    case 12:
 
191
      method_ptr = jpeg_idct_12x12;
 
192
      method = JDCT_ISLOW;      /* jidctint uses islow-style table */
 
193
      break;
 
194
    case 13:
 
195
      method_ptr = jpeg_idct_13x13;
 
196
      method = JDCT_ISLOW;      /* jidctint uses islow-style table */
 
197
      break;
 
198
    case 14:
 
199
      method_ptr = jpeg_idct_14x14;
 
200
      method = JDCT_ISLOW;      /* jidctint uses islow-style table */
 
201
      break;
 
202
    case 15:
 
203
      method_ptr = jpeg_idct_15x15;
 
204
      method = JDCT_ISLOW;      /* jidctint uses islow-style table */
 
205
      break;
 
206
    case 16:
 
207
      method_ptr = jpeg_idct_16x16;
 
208
      method = JDCT_ISLOW;      /* jidctint uses islow-style table */
 
209
      break;
160
210
    default:
161
211
      ERREXIT1(cinfo, JERR_BAD_DCTSIZE, compptr->_DCT_scaled_size);
162
212
      break;