Mercurial > libavcodec.hg
comparison mpegaudio.h @ 12026:3f3d08bb5cf8 libavcodec
More mp{1,2,3} 32-point DCT transform to our common DCT framework.
Should allow for future SIMD optimizations.
author | vitor |
---|---|
date | Wed, 30 Jun 2010 20:11:27 +0000 |
parents | ef338bd70180 |
children | b4888704c11e |
comparison
equal
deleted
inserted
replaced
12025:2d730a4acc77 | 12026:3f3d08bb5cf8 |
---|---|
31 #endif | 31 #endif |
32 | 32 |
33 #include "avcodec.h" | 33 #include "avcodec.h" |
34 #include "get_bits.h" | 34 #include "get_bits.h" |
35 #include "dsputil.h" | 35 #include "dsputil.h" |
36 #include "fft.h" | |
36 | 37 |
37 #define CONFIG_AUDIO_NONSHORT 0 | 38 #define CONFIG_AUDIO_NONSHORT 0 |
38 | 39 |
39 /* max frame size, in samples */ | 40 /* max frame size, in samples */ |
40 #define MPA_FRAME_SIZE 1152 | 41 #define MPA_FRAME_SIZE 1152 |
154 #endif | 155 #endif |
155 int adu_mode; ///< 0 for standard mp3, 1 for adu formatted mp3 | 156 int adu_mode; ///< 0 for standard mp3, 1 for adu formatted mp3 |
156 int dither_state; | 157 int dither_state; |
157 int error_recognition; | 158 int error_recognition; |
158 AVCodecContext* avctx; | 159 AVCodecContext* avctx; |
160 #if CONFIG_FLOAT | |
161 DCTContext dct; | |
162 #endif | |
159 void (*apply_window_mp3)(MPA_INT *synth_buf, MPA_INT *window, | 163 void (*apply_window_mp3)(MPA_INT *synth_buf, MPA_INT *window, |
160 int *dither_state, OUT_INT *samples, int incr); | 164 int *dither_state, OUT_INT *samples, int incr); |
161 } MPADecodeContext; | 165 } MPADecodeContext; |
162 | 166 |
163 /* layer 3 huffman tables */ | 167 /* layer 3 huffman tables */ |