OLD | NEW |
1 /* | 1 /* |
2 * MDCT/IMDCT transforms | 2 * MDCT/IMDCT transforms |
3 * Copyright (c) 2002 Fabrice Bellard | 3 * Copyright (c) 2002 Fabrice Bellard |
4 * | 4 * |
5 * This file is part of FFmpeg. | 5 * This file is part of FFmpeg. |
6 * | 6 * |
7 * FFmpeg is free software; you can redistribute it and/or | 7 * FFmpeg is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Lesser General Public | 8 * modify it under the terms of the GNU Lesser General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2.1 of the License, or (at your option) any later version. | 10 * version 2.1 of the License, or (at your option) any later version. |
11 * | 11 * |
12 * FFmpeg is distributed in the hope that it will be useful, | 12 * FFmpeg is distributed in the hope that it will be useful, |
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 * Lesser General Public License for more details. | 15 * Lesser General Public License for more details. |
16 * | 16 * |
17 * You should have received a copy of the GNU Lesser General Public | 17 * You should have received a copy of the GNU Lesser General Public |
18 * License along with FFmpeg; if not, write to the Free Software | 18 * License along with FFmpeg; if not, write to the Free Software |
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
20 */ | 20 */ |
21 #include "dsputil.h" | 21 |
| 22 #include "libavutil/mathematics.h" |
| 23 #include "fft.h" |
22 | 24 |
23 /** | 25 /** |
24 * @file libavcodec/mdct.c | 26 * @file libavcodec/mdct.c |
25 * MDCT/IMDCT transforms. | 27 * MDCT/IMDCT transforms. |
26 */ | 28 */ |
27 | 29 |
28 // Generate a Kaiser-Bessel Derived Window. | 30 // Generate a Kaiser-Bessel Derived Window. |
29 #define BESSEL_I0_ITER 50 // default: 50 iterations of Bessel I0 approximation | 31 #define BESSEL_I0_ITER 50 // default: 50 iterations of Bessel I0 approximation |
30 av_cold void ff_kbd_window_init(float *window, float alpha, int n) | 32 av_cold void ff_kbd_window_init(float *window, float alpha, int n) |
31 { | 33 { |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 x[n8+i ].re = r1; | 220 x[n8+i ].re = r1; |
219 x[n8+i ].im = i1; | 221 x[n8+i ].im = i1; |
220 } | 222 } |
221 } | 223 } |
222 | 224 |
223 av_cold void ff_mdct_end(FFTContext *s) | 225 av_cold void ff_mdct_end(FFTContext *s) |
224 { | 226 { |
225 av_freep(&s->tcos); | 227 av_freep(&s->tcos); |
226 ff_fft_end(s); | 228 ff_fft_end(s); |
227 } | 229 } |
OLD | NEW |