comparison aacenc.c @ 11932:ebe049799f6d libavcodec

aactab: Tablegenify ff_aac_pow2sf_tab.
author alexc
date Wed, 23 Jun 2010 19:30:01 +0000
parents bba34e33081d
children ea2cb1a9e815
comparison
equal deleted inserted replaced
11931:980030a3e315 11932:ebe049799f6d
202 ff_psy_init(&s->psy, avctx, 2, sizes, lengths); 202 ff_psy_init(&s->psy, avctx, 2, sizes, lengths);
203 s->psypp = ff_psy_preprocess_init(avctx); 203 s->psypp = ff_psy_preprocess_init(avctx);
204 s->coder = &ff_aac_coders[2]; 204 s->coder = &ff_aac_coders[2];
205 205
206 s->lambda = avctx->global_quality ? avctx->global_quality : 120; 206 s->lambda = avctx->global_quality ? avctx->global_quality : 120;
207 #if !CONFIG_HARDCODED_TABLES 207
208 for (i = 0; i < 428; i++) 208 ff_aac_tableinit();
209 ff_aac_pow2sf_tab[i] = pow(2, (i - 200)/4.);
210 #endif /* CONFIG_HARDCODED_TABLES */
211 209
212 if (avctx->channels > 5) 210 if (avctx->channels > 5)
213 av_log(avctx, AV_LOG_ERROR, "This encoder does not yet enforce the restrictions on LFEs. " 211 av_log(avctx, AV_LOG_ERROR, "This encoder does not yet enforce the restrictions on LFEs. "
214 "The output will most likely be an illegal bitstream.\n"); 212 "The output will most likely be an illegal bitstream.\n");
215 213