Mercurial > libavcodec.hg
comparison mpegaudio.h @ 10440:899237b1961f libavcodec
mpegaudiodec, mpc and qdm2 all use the same mpa_synth window, so make
them use the same variable/global storage.
Saves 4 kB in .bss.
author | reimar |
---|---|
date | Mon, 19 Oct 2009 17:21:02 +0000 |
parents | beb616cf1885 |
children | ead8d96926c4 |
comparison
equal
deleted
inserted
replaced
10439:b4b55a3d65c9 | 10440:899237b1961f |
---|---|
135 const uint16_t *codes; | 135 const uint16_t *codes; |
136 } HuffTable; | 136 } HuffTable; |
137 | 137 |
138 int ff_mpa_l2_select_table(int bitrate, int nb_channels, int freq, int lsf); | 138 int ff_mpa_l2_select_table(int bitrate, int nb_channels, int freq, int lsf); |
139 int ff_mpa_decode_header(AVCodecContext *avctx, uint32_t head, int *sample_rate, int *channels, int *frame_size, int *bitrate); | 139 int ff_mpa_decode_header(AVCodecContext *avctx, uint32_t head, int *sample_rate, int *channels, int *frame_size, int *bitrate); |
140 extern MPA_INT ff_mpa_synth_window[]; | |
140 void ff_mpa_synth_init(MPA_INT *window); | 141 void ff_mpa_synth_init(MPA_INT *window); |
141 void ff_mpa_synth_filter(MPA_INT *synth_buf_ptr, int *synth_buf_offset, | 142 void ff_mpa_synth_filter(MPA_INT *synth_buf_ptr, int *synth_buf_offset, |
142 MPA_INT *window, int *dither_state, | 143 MPA_INT *window, int *dither_state, |
143 OUT_INT *samples, int incr, | 144 OUT_INT *samples, int incr, |
144 int32_t sb_samples[SBLIMIT]); | 145 int32_t sb_samples[SBLIMIT]); |