From 66ecf18e3864aa908319e7cb5fd73f308cb4302c Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Sun, 9 Dec 2007 03:21:33 +0000 Subject: cosmetics: rename ac3 tables Originally committed as revision 11193 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ac3.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libavcodec/ac3.c') diff --git a/libavcodec/ac3.c b/libavcodec/ac3.c index e33cbfe9da..cc436c7e1a 100644 --- a/libavcodec/ac3.c +++ b/libavcodec/ac3.c @@ -72,7 +72,7 @@ void ff_ac3_bit_alloc_calc_psd(int8_t *exp, int start, int end, int16_t *psd, for(i=j;i> 1, 255); - v = FFMAX(v, psd[j]) + ff_ac3_latab[adr]; + v = FFMAX(v, psd[j]) + ff_ac3_log_add_tab[adr]; j++; } bndpsd[k]=v; @@ -149,7 +149,7 @@ void ff_ac3_bit_alloc_calc_mask(AC3BitAllocParameters *s, int16_t *bndpsd, if (tmp > 0) { excite[bin] += tmp >> 2; } - mask[bin] = FFMAX(ff_ac3_hth[bin >> s->halfratecod][s->fscod], excite[bin]); + mask[bin] = FFMAX(ff_ac3_hearing_threshold_tab[bin >> s->halfratecod][s->fscod], excite[bin]); } /* delta bit allocation */ @@ -187,10 +187,10 @@ void ff_ac3_bit_alloc_calc_bap(int16_t *mask, int16_t *psd, int start, int end, j = masktab[start]; do { v = (FFMAX(mask[j] - snroffset - floor, 0) & 0x1FE0) + floor; - end1 = FFMIN(bndtab[j] + ff_ac3_bndsz[j], end); + end1 = FFMIN(bndtab[j] + ff_ac3_critical_band_size_tab[j], end); for (k = i; k < end1; k++) { address = av_clip((psd[i] - v) >> 5, 0, 63); - bap[i] = ff_ac3_baptab[address]; + bap[i] = ff_ac3_bap_tab[address]; i++; } } while (end > bndtab[j++]); @@ -231,7 +231,7 @@ void ac3_common_init(void) l = 0; for(i=0;i<50;i++) { bndtab[i] = l; - v = ff_ac3_bndsz[i]; + v = ff_ac3_critical_band_size_tab[i]; for(j=0;j