Mercurial > libavcodec.hg
comparison ac3dec.h @ 7601:69d5f318275f libavcodec
use LFG instead of Mersenne Twister for AC-3 PRNG
author | jbr |
---|---|
date | Sun, 17 Aug 2008 17:41:48 +0000 |
parents | 7cf793954871 |
children | 20c91136fe71 |
comparison
equal
deleted
inserted
replaced
7600:3e0103ac9d76 | 7601:69d5f318275f |
---|---|
25 */ | 25 */ |
26 | 26 |
27 #ifndef FFMPEG_AC3DEC_H | 27 #ifndef FFMPEG_AC3DEC_H |
28 #define FFMPEG_AC3DEC_H | 28 #define FFMPEG_AC3DEC_H |
29 | 29 |
30 #include "libavutil/random.h" | 30 #include "libavutil/lfg.h" |
31 #include "ac3tab.h" | 31 #include "ac3tab.h" |
32 #include "ac3.h" | 32 #include "ac3.h" |
33 #include "bitstream.h" | 33 #include "bitstream.h" |
34 #include "dsputil.h" | 34 #include "dsputil.h" |
35 | 35 |
141 ///@} | 141 ///@} |
142 | 142 |
143 ///@defgroup dithering zero-mantissa dithering | 143 ///@defgroup dithering zero-mantissa dithering |
144 int dither_all; ///< true if all channels are dithered | 144 int dither_all; ///< true if all channels are dithered |
145 int dither_flag[AC3_MAX_CHANNELS]; ///< dither flags (dithflg) | 145 int dither_flag[AC3_MAX_CHANNELS]; ///< dither flags (dithflg) |
146 AVRandomState dith_state; ///< for dither generation | 146 AVLFG dith_state; ///< for dither generation |
147 ///@} | 147 ///@} |
148 | 148 |
149 ///@defgroup imdct IMDCT | 149 ///@defgroup imdct IMDCT |
150 int block_switch[AC3_MAX_CHANNELS]; ///< block switch flags (blksw) | 150 int block_switch[AC3_MAX_CHANNELS]; ///< block switch flags (blksw) |
151 MDCTContext imdct_512; ///< for 512 sample IMDCT | 151 MDCTContext imdct_512; ///< for 512 sample IMDCT |