Mercurial > libavcodec.hg
comparison qdm2.c @ 5009:4d10df33e823 libavcodec
Use DECLARE_ALIGNED to ease porting
author | reimar |
---|---|
date | Tue, 15 May 2007 20:47:55 +0000 |
parents | 05e932ddaaa9 |
children | 2b72f9bc4f06 |
comparison
equal
deleted
inserted
replaced
5008:71da0c30248b | 5009:4d10df33e823 |
---|---|
127 float re; | 127 float re; |
128 float im; | 128 float im; |
129 } QDM2Complex; | 129 } QDM2Complex; |
130 | 130 |
131 typedef struct { | 131 typedef struct { |
132 QDM2Complex complex[256 + 1] __attribute__((aligned(16))); | 132 DECLARE_ALIGNED_16(QDM2Complex, complex[256 + 1]); |
133 float samples_im[MPA_MAX_CHANNELS][256]; | 133 float samples_im[MPA_MAX_CHANNELS][256]; |
134 float samples_re[MPA_MAX_CHANNELS][256]; | 134 float samples_re[MPA_MAX_CHANNELS][256]; |
135 } QDM2FFT; | 135 } QDM2FFT; |
136 | 136 |
137 /** | 137 /** |
180 uint8_t *compressed_data; | 180 uint8_t *compressed_data; |
181 int compressed_size; | 181 int compressed_size; |
182 float output_buffer[1024]; | 182 float output_buffer[1024]; |
183 | 183 |
184 /// Synthesis filter | 184 /// Synthesis filter |
185 MPA_INT synth_buf[MPA_MAX_CHANNELS][512*2] __attribute__((aligned(16))); | 185 DECLARE_ALIGNED_16(MPA_INT, synth_buf[MPA_MAX_CHANNELS][512*2]); |
186 int synth_buf_offset[MPA_MAX_CHANNELS]; | 186 int synth_buf_offset[MPA_MAX_CHANNELS]; |
187 int32_t sb_samples[MPA_MAX_CHANNELS][128][SBLIMIT] __attribute__((aligned(16))); | 187 DECLARE_ALIGNED_16(int32_t, sb_samples[MPA_MAX_CHANNELS][128][SBLIMIT]); |
188 | 188 |
189 /// Mixed temporary data used in decoding | 189 /// Mixed temporary data used in decoding |
190 float tone_level[MPA_MAX_CHANNELS][30][64]; | 190 float tone_level[MPA_MAX_CHANNELS][30][64]; |
191 int8_t coding_method[MPA_MAX_CHANNELS][30][64]; | 191 int8_t coding_method[MPA_MAX_CHANNELS][30][64]; |
192 int8_t quantized_coeffs[MPA_MAX_CHANNELS][10][8]; | 192 int8_t quantized_coeffs[MPA_MAX_CHANNELS][10][8]; |
227 static float noise_table[4096]; | 227 static float noise_table[4096]; |
228 static uint8_t random_dequant_index[256][5]; | 228 static uint8_t random_dequant_index[256][5]; |
229 static uint8_t random_dequant_type24[128][3]; | 229 static uint8_t random_dequant_type24[128][3]; |
230 static float noise_samples[128]; | 230 static float noise_samples[128]; |
231 | 231 |
232 static MPA_INT mpa_window[512] __attribute__((aligned(16))); | 232 static DECLARE_ALIGNED_16(MPA_INT, mpa_window[512]); |
233 | 233 |
234 | 234 |
235 static void softclip_table_init(void) { | 235 static void softclip_table_init(void) { |
236 int i; | 236 int i; |
237 double dfl = SOFTCLIP_THRESHOLD - 32767; | 237 double dfl = SOFTCLIP_THRESHOLD - 32767; |