Revision 26f548bb libavcodec/dct.c

View differences:

libavcodec/dct.c
59 59
    }
60 60

  
61 61
    data[n/2] *= 2;
62
    ff_rdft_calc(&ctx->rdft, data);
62
    ctx->rdft.rdft_calc(&ctx->rdft, data);
63 63

  
64 64
    data[0] *= 0.5f;
65 65

  
......
93 93
        data[n - i] = tmp1 + s;
94 94
    }
95 95

  
96
    ff_rdft_calc(&ctx->rdft, data);
96
    ctx->rdft.rdft_calc(&ctx->rdft, data);
97 97
    data[n] = data[1];
98 98
    data[1] = next;
99 99

  
......
121 121

  
122 122
    data[1] = 2 * next;
123 123

  
124
    ff_rdft_calc(&ctx->rdft, data);
124
    ctx->rdft.rdft_calc(&ctx->rdft, data);
125 125

  
126 126
    for (i = 0; i < n / 2; i++) {
127 127
        float tmp1 = data[i        ] * inv_n;
......
152 152
        data[n-i-1] = tmp1 - s;
153 153
    }
154 154

  
155
    ff_rdft_calc(&ctx->rdft, data);
155
    ctx->rdft.rdft_calc(&ctx->rdft, data);
156 156

  
157 157
    next = data[1] * 0.5;
158 158
    data[1] *= -1;
......
176 176
    ctx->dct32(data, data);
177 177
}
178 178

  
179
void ff_dct_calc(DCTContext *s, FFTSample *data)
180
{
181
    s->dct_calc(s, data);
182
}
183

  
184 179
av_cold int ff_dct_init(DCTContext *s, int nbits, enum DCTTransformType inverse)
185 180
{
186 181
    int n = 1 << nbits;

Also available in: Unified diff