comparison jfdctfst.c @ 10446:f522171a5d3d libavcodec

Remove SHIFT_TEMPS from jfdct code. Patch by avcoder: our_beloved_project AT gmail DOT com See thread [FFmpeg-devel] Patch: remove useless SHIFT_TEMPS definition Date: Tue, 20 Oct 2009 14:29:05 +0800
author benoit
date Tue, 20 Oct 2009 11:19:54 +0000
parents e9d9d946f213
children 7dd2a45249a9
comparison
equal deleted inserted replaced
10445:4863889843ef 10446:f522171a5d3d
74 #include "dsputil.h" 74 #include "dsputil.h"
75 75
76 #define DCTSIZE 8 76 #define DCTSIZE 8
77 #define GLOBAL(x) x 77 #define GLOBAL(x) x
78 #define RIGHT_SHIFT(x, n) ((x) >> (n)) 78 #define RIGHT_SHIFT(x, n) ((x) >> (n))
79 #define SHIFT_TEMPS
80 79
81 /* 80 /*
82 * This module is specialized to the case DCTSIZE = 8. 81 * This module is specialized to the case DCTSIZE = 8.
83 */ 82 */
84 83
149 int_fast16_t tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7; 148 int_fast16_t tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7;
150 int_fast16_t tmp10, tmp11, tmp12, tmp13; 149 int_fast16_t tmp10, tmp11, tmp12, tmp13;
151 int_fast16_t z1, z2, z3, z4, z5, z11, z13; 150 int_fast16_t z1, z2, z3, z4, z5, z11, z13;
152 DCTELEM *dataptr; 151 DCTELEM *dataptr;
153 int ctr; 152 int ctr;
154 SHIFT_TEMPS
155 153
156 /* Pass 1: process rows. */ 154 /* Pass 1: process rows. */
157 155
158 dataptr = data; 156 dataptr = data;
159 for (ctr = DCTSIZE-1; ctr >= 0; ctr--) { 157 for (ctr = DCTSIZE-1; ctr >= 0; ctr--) {
214 int_fast16_t tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7; 212 int_fast16_t tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7;
215 int_fast16_t tmp10, tmp11, tmp12, tmp13; 213 int_fast16_t tmp10, tmp11, tmp12, tmp13;
216 int_fast16_t z1, z2, z3, z4, z5, z11, z13; 214 int_fast16_t z1, z2, z3, z4, z5, z11, z13;
217 DCTELEM *dataptr; 215 DCTELEM *dataptr;
218 int ctr; 216 int ctr;
219 SHIFT_TEMPS
220 217
221 row_fdct(data); 218 row_fdct(data);
222 219
223 /* Pass 2: process columns. */ 220 /* Pass 2: process columns. */
224 221
281 int_fast16_t tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7; 278 int_fast16_t tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7;
282 int_fast16_t tmp10, tmp11, tmp12, tmp13; 279 int_fast16_t tmp10, tmp11, tmp12, tmp13;
283 int_fast16_t z1; 280 int_fast16_t z1;
284 DCTELEM *dataptr; 281 DCTELEM *dataptr;
285 int ctr; 282 int ctr;
286 SHIFT_TEMPS
287 283
288 row_fdct(data); 284 row_fdct(data);
289 285
290 /* Pass 2: process columns. */ 286 /* Pass 2: process columns. */
291 287