~ubuntu-branches/ubuntu/lucid/ffmpeg/lucid-security

« back to all changes in this revision

Viewing changes to libavcodec/mdct.c

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-03-13 09:18:28 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090313091828-n4ktby5eca487uhv
Tags: 3:0.svn20090303-1ubuntu1+unstripped1
merge from ubuntu.jaunty branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
// Generate a Kaiser-Bessel Derived Window.
29
29
#define BESSEL_I0_ITER 50 // default: 50 iterations of Bessel I0 approximation
30
 
void ff_kbd_window_init(float *window, float alpha, int n)
 
30
av_cold void ff_kbd_window_init(float *window, float alpha, int n)
31
31
{
32
32
   int i, j;
33
33
   double sum = 0.0, bessel, tmp;
59
59
};
60
60
 
61
61
// Generate a sine window.
62
 
void ff_sine_window_init(float *window, int n) {
 
62
av_cold void ff_sine_window_init(float *window, int n) {
63
63
    int i;
64
64
    for(i = 0; i < n; i++)
65
65
        window[i] = sinf((i + 0.5) * (M_PI / (2.0 * n)));
68
68
/**
69
69
 * init MDCT or IMDCT computation.
70
70
 */
71
 
int ff_mdct_init(MDCTContext *s, int nbits, int inverse)
 
71
av_cold int ff_mdct_init(MDCTContext *s, int nbits, int inverse)
72
72
{
73
73
    int n, n4, i;
74
74
    double alpha;
158
158
 * Compute inverse MDCT of size N = 2^nbits
159
159
 * @param output N samples
160
160
 * @param input N/2 samples
161
 
 * @param tmp N/2 samples
162
161
 */
163
162
void ff_imdct_calc_c(MDCTContext *s, FFTSample *output, const FFTSample *input)
164
163
{
179
178
 * Compute MDCT of size N = 2^nbits
180
179
 * @param input N samples
181
180
 * @param out N/2 samples
182
 
 * @param tmp temporary storage of N/2 samples
183
181
 */
184
182
void ff_mdct_calc(MDCTContext *s, FFTSample *out, const FFTSample *input)
185
183
{
223
221
    }
224
222
}
225
223
 
226
 
void ff_mdct_end(MDCTContext *s)
 
224
av_cold void ff_mdct_end(MDCTContext *s)
227
225
{
228
226
    av_freep(&s->tcos);
229
227
    av_freep(&s->tsin);