Mercurial > libavcodec.hg
comparison mpegaudiodec.c @ 5009:4d10df33e823 libavcodec
Use DECLARE_ALIGNED to ease porting
author | reimar |
---|---|
date | Tue, 15 May 2007 20:47:55 +0000 |
parents | 777f250df232 |
children | 70f194a2ee53 |
comparison
equal
deleted
inserted
replaced
5008:71da0c30248b | 5009:4d10df33e823 |
---|---|
77 GetBitContext in_gb; | 77 GetBitContext in_gb; |
78 int nb_channels; | 78 int nb_channels; |
79 int mode; | 79 int mode; |
80 int mode_ext; | 80 int mode_ext; |
81 int lsf; | 81 int lsf; |
82 MPA_INT synth_buf[MPA_MAX_CHANNELS][512 * 2] __attribute__((aligned(16))); | 82 DECLARE_ALIGNED_16(MPA_INT, synth_buf[MPA_MAX_CHANNELS][512 * 2]); |
83 int synth_buf_offset[MPA_MAX_CHANNELS]; | 83 int synth_buf_offset[MPA_MAX_CHANNELS]; |
84 int32_t sb_samples[MPA_MAX_CHANNELS][36][SBLIMIT] __attribute__((aligned(16))); | 84 DECLARE_ALIGNED_16(int32_t, sb_samples[MPA_MAX_CHANNELS][36][SBLIMIT]); |
85 int32_t mdct_buf[MPA_MAX_CHANNELS][SBLIMIT * 18]; /* previous samples, for layer 3 MDCT */ | 85 int32_t mdct_buf[MPA_MAX_CHANNELS][SBLIMIT * 18]; /* previous samples, for layer 3 MDCT */ |
86 #ifdef DEBUG | 86 #ifdef DEBUG |
87 int frame_count; | 87 int frame_count; |
88 #endif | 88 #endif |
89 void (*compute_antialias)(struct MPADecodeContext *s, struct GranuleDef *g); | 89 void (*compute_antialias)(struct MPADecodeContext *s, struct GranuleDef *g); |
168 SCALE_GEN(4.0 / 3.0), /* 3 steps */ | 168 SCALE_GEN(4.0 / 3.0), /* 3 steps */ |
169 SCALE_GEN(4.0 / 5.0), /* 5 steps */ | 169 SCALE_GEN(4.0 / 5.0), /* 5 steps */ |
170 SCALE_GEN(4.0 / 9.0), /* 9 steps */ | 170 SCALE_GEN(4.0 / 9.0), /* 9 steps */ |
171 }; | 171 }; |
172 | 172 |
173 static MPA_INT window[512] __attribute__((aligned(16))); | 173 static DECLARE_ALIGNED_16(MPA_INT, window[512]); |
174 | 174 |
175 /* layer 1 unscaling */ | 175 /* layer 1 unscaling */ |
176 /* n = number of bits of the mantissa minus 1 */ | 176 /* n = number of bits of the mantissa minus 1 */ |
177 static inline int l1_unscale(int n, int mant, int scale_factor) | 177 static inline int l1_unscale(int n, int mant, int scale_factor) |
178 { | 178 { |