Revision 06d01188 libavcodec/dct.c

View differences:

libavcodec/dct.c
31 31
#include "libavutil/mathematics.h"
32 32
#include "fft.h"
33 33

  
34
#define DCT32_FLOAT
35
#include "dct32.c"
36

  
34 37
/* sin((M_PI * x / (2*n)) */
35 38
#define SIN(s,n,x) (s->costab[(n) - (x)])
36 39

  
......
167 170
    }
168 171
}
169 172

  
173
static void dct32_func(DCTContext *ctx, FFTSample *data)
174
{
175
    ctx->dct32(data, data);
176
}
177

  
170 178
void ff_dct_calc(DCTContext *s, FFTSample *data)
171 179
{
172 180
    s->dct_calc(s, data);
......
200 208
    case DCT_III: s->dct_calc = ff_dct_calc_III_c; break;
201 209
    case DST_I  : s->dct_calc = ff_dst_calc_I_c; break;
202 210
    }
211

  
212
    if (inverse == DCT_II && nbits == 5)
213
        s->dct_calc = dct32_func;
214

  
215
    s->dct32 = dct32;
216

  
203 217
    return 0;
204 218
}
205 219

  

Also available in: Unified diff