diff options
author | Robert Swain <robert.swain@gmail.com> | 2008-06-22 15:12:27 +0000 |
---|---|---|
committer | Robert Swain <robert.swain@gmail.com> | 2008-06-22 15:12:27 +0000 |
commit | 9146e4d61c9de8fb86a7a9837705a0ad48fc547d (patch) | |
tree | 9a388e3225b3b770b2c2f3a26767fca52cf19079 /libavcodec/dsputil.h | |
parent | d47f16074ff4678d0ea968318354fc8ca6e0ba90 (diff) | |
download | ffmpeg-9146e4d61c9de8fb86a7a9837705a0ad48fc547d.tar.gz |
Add generic ff_sine_window_init function and implement in codecs appropriately
Originally committed as revision 13888 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dsputil.h')
-rw-r--r-- | libavcodec/dsputil.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index cd9ae08211..0316a451b3 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -649,6 +649,13 @@ typedef struct MDCTContext { */ void ff_kbd_window_init(float *window, float alpha, int n); +/** + * Generate a sine window. + * @param window pointer to half window + * @param n size of half window + */ +void ff_sine_window_init(float *window, int n); + int ff_mdct_init(MDCTContext *s, int nbits, int inverse); void ff_imdct_calc(MDCTContext *s, FFTSample *output, const FFTSample *input, FFTSample *tmp); |