summaryrefslogtreecommitdiff
path: root/libavcodec/mpegaudio_tablegen.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-05-11 19:52:42 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-05-11 19:52:42 +0000
commitb91d46614df189e7905538e7f5c4ed9c7ed0d274 (patch)
tree003eba00b838e5773d657dd802fecf18b08101c8 /libavcodec/mpegaudio_tablegen.h
parent495af353dbb0f0f4792baecc63a45ef563f80e44 (diff)
float based mp1/mp2/mp3 decoders.
Originally committed as revision 23095 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegaudio_tablegen.h')
-rw-r--r--libavcodec/mpegaudio_tablegen.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/mpegaudio_tablegen.h b/libavcodec/mpegaudio_tablegen.h
index 9d056cb253..56bf408641 100644
--- a/libavcodec/mpegaudio_tablegen.h
+++ b/libavcodec/mpegaudio_tablegen.h
@@ -37,6 +37,8 @@ static int8_t table_4_3_exp[TABLE_4_3_SIZE];
static uint32_t table_4_3_value[TABLE_4_3_SIZE];
static uint32_t exp_table[512];
static uint32_t expval_table[512][16];
+static float exp_table_float[512];
+static float expval_table_float[512][16];
static void mpegaudio_tableinit(void)
{
@@ -58,8 +60,10 @@ static void mpegaudio_tableinit(void)
for (value = 0; value < 16; value++) {
double f = (double)value * cbrtf(value) * pow(2, (exponent - 400) * 0.25 + FRAC_BITS + 5);
expval_table[exponent][value] = llrint(f);
+ expval_table_float[exponent][value] = f;
}
exp_table[exponent] = expval_table[exponent][1];
+ exp_table_float[exponent] = expval_table_float[exponent][1];
}
}
#endif /* CONFIG_HARDCODED_TABLES */