Mercurial > libavcodec.hg
comparison mpegaudio.h @ 5052:d981eb275c8f libavcodec
remove dependency of mpeg audio encoder over mpeg audio decoder
author | aurel |
---|---|
date | Sun, 20 May 2007 22:50:29 +0000 |
parents | b908c67063c8 |
children | 94c3f01c243c |
comparison
equal
deleted
inserted
replaced
5051:b908c67063c8 | 5052:d981eb275c8f |
---|---|
24 */ | 24 */ |
25 | 25 |
26 #ifndef MPEGAUDIO_H | 26 #ifndef MPEGAUDIO_H |
27 #define MPEGAUDIO_H | 27 #define MPEGAUDIO_H |
28 | 28 |
29 #include "avcodec.h" | |
29 #include "bitstream.h" | 30 #include "bitstream.h" |
30 #include "dsputil.h" | 31 #include "dsputil.h" |
31 | 32 |
32 /* max frame size, in samples */ | 33 /* max frame size, in samples */ |
33 #define MPA_FRAME_SIZE 1152 | 34 #define MPA_FRAME_SIZE 1152 |
113 int dither_state; | 114 int dither_state; |
114 int error_resilience; | 115 int error_resilience; |
115 AVCodecContext* avctx; | 116 AVCodecContext* avctx; |
116 } MPADecodeContext; | 117 } MPADecodeContext; |
117 | 118 |
118 int l2_select_table(int bitrate, int nb_channels, int freq, int lsf); | 119 int ff_mpa_l2_select_table(int bitrate, int nb_channels, int freq, int lsf); |
119 int ff_mpa_decode_header(AVCodecContext *avctx, uint32_t head, int *sample_rate); | 120 int ff_mpa_decode_header(AVCodecContext *avctx, uint32_t head, int *sample_rate); |
120 void ff_mpa_synth_init(MPA_INT *window); | 121 void ff_mpa_synth_init(MPA_INT *window); |
121 void ff_mpa_synth_filter(MPA_INT *synth_buf_ptr, int *synth_buf_offset, | 122 void ff_mpa_synth_filter(MPA_INT *synth_buf_ptr, int *synth_buf_offset, |
122 MPA_INT *window, int *dither_state, | 123 MPA_INT *window, int *dither_state, |
123 OUT_INT *samples, int incr, | 124 OUT_INT *samples, int incr, |