Mercurial > libavcodec.hg
comparison wmaenc.c @ 9868:5cc32c474caf libavcodec
Introduce WMACoef typedef for decoded coefficients
and change default type to float so that the run level
decoding functionality can be shared with wmapro
author | faust3 |
---|---|
date | Sat, 20 Jun 2009 09:05:28 +0000 |
parents | 67a20f0eb42c |
children | 7955db355703 |
comparison
equal
deleted
inserted
replaced
9867:4ccec8d051fa | 9868:5cc32c474caf |
---|---|
184 } | 184 } |
185 } | 185 } |
186 | 186 |
187 for(ch = 0; ch < s->nb_channels; ch++) { | 187 for(ch = 0; ch < s->nb_channels; ch++) { |
188 if (s->channel_coded[ch]) { | 188 if (s->channel_coded[ch]) { |
189 int16_t *coefs1; | 189 WMACoef *coefs1; |
190 float *coefs, *exponents, mult; | 190 float *coefs, *exponents, mult; |
191 int i, n; | 191 int i, n; |
192 | 192 |
193 coefs1 = s->coefs1[ch]; | 193 coefs1 = s->coefs1[ch]; |
194 exponents = s->exponents[ch]; | 194 exponents = s->exponents[ch]; |
262 } | 262 } |
263 | 263 |
264 for(ch = 0; ch < s->nb_channels; ch++) { | 264 for(ch = 0; ch < s->nb_channels; ch++) { |
265 if (s->channel_coded[ch]) { | 265 if (s->channel_coded[ch]) { |
266 int run, tindex; | 266 int run, tindex; |
267 int16_t *ptr, *eptr; | 267 WMACoef *ptr, *eptr; |
268 tindex = (ch == 1 && s->ms_stereo); | 268 tindex = (ch == 1 && s->ms_stereo); |
269 ptr = &s->coefs1[ch][0]; | 269 ptr = &s->coefs1[ch][0]; |
270 eptr = ptr + nb_coefs[ch]; | 270 eptr = ptr + nb_coefs[ch]; |
271 | 271 |
272 run=0; | 272 run=0; |