comparison mpc.h @ 9153:4e91d96dd045 libavcodec

Make Musepack decoders use LFG pseudorandom generator
author kostya
date Sun, 08 Mar 2009 16:37:57 +0000
parents e9d9d946f213
children 0dce4fe6e6f3
comparison
equal deleted inserted replaced
9152:788aa0c09382 9153:4e91d96dd045
26 */ 26 */
27 27
28 #ifndef AVCODEC_MPC_H 28 #ifndef AVCODEC_MPC_H
29 #define AVCODEC_MPC_H 29 #define AVCODEC_MPC_H
30 30
31 #include "libavutil/random.h" 31 #include "libavutil/lfg.h"
32 #include "avcodec.h" 32 #include "avcodec.h"
33 #include "bitstream.h" 33 #include "bitstream.h"
34 #include "dsputil.h" 34 #include "dsputil.h"
35 #include "mpegaudio.h" 35 #include "mpegaudio.h"
36 36
60 Band bands[BANDS]; 60 Band bands[BANDS];
61 int Q[2][MPC_FRAME_SIZE]; 61 int Q[2][MPC_FRAME_SIZE];
62 int cur_frame, frames; 62 int cur_frame, frames;
63 uint8_t *bits; 63 uint8_t *bits;
64 int buf_size; 64 int buf_size;
65 AVRandomState rnd; 65 AVLFG rnd;
66 int frames_to_skip; 66 int frames_to_skip;
67 /* for synthesis */ 67 /* for synthesis */
68 DECLARE_ALIGNED_16(MPA_INT, synth_buf[MPA_MAX_CHANNELS][512*2]); 68 DECLARE_ALIGNED_16(MPA_INT, synth_buf[MPA_MAX_CHANNELS][512*2]);
69 int synth_buf_offset[MPA_MAX_CHANNELS]; 69 int synth_buf_offset[MPA_MAX_CHANNELS];
70 DECLARE_ALIGNED_16(int32_t, sb_samples[MPA_MAX_CHANNELS][36][SBLIMIT]); 70 DECLARE_ALIGNED_16(int32_t, sb_samples[MPA_MAX_CHANNELS][36][SBLIMIT]);