~ppsspp/ppsspp/ffmpeg

« back to all changes in this revision

Viewing changes to libavcodec/mpegaudiodsp_template.c

  • Committer: Henrik Rydgård
  • Date: 2014-01-03 10:44:32 UTC
  • Revision ID: git-v1:87c6c126784b1718bfa448ecf2e6a9fef781eb4e
Update our ffmpeg snapshot to a clone of the official repository.

This is because Maxim's at3plus support has been officially merged!

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include "mpegaudiodsp.h"
28
28
#include "mpegaudio.h"
29
29
 
30
 
#if CONFIG_FLOAT
 
30
#if USE_FLOATS
31
31
#define RENAME(n) n##_float
32
32
 
33
33
static inline float round_sample(float *sum)
125
125
    register const MPA_INT *w, *w2, *p;
126
126
    int j;
127
127
    OUT_INT *samples2;
128
 
#if CONFIG_FLOAT
 
128
#if USE_FLOATS
129
129
    float sum, sum2;
130
130
#else
131
131
    int64_t sum, sum2;
200
200
    for(i=0;i<257;i++) {
201
201
        INTFLOAT v;
202
202
        v = ff_mpa_enwindow[i];
203
 
#if CONFIG_FLOAT
 
203
#if USE_FLOATS
204
204
        v *= 1.0 / (1LL<<(16 + FRAC_BITS));
205
205
#endif
206
206
        window[i] = v;