23 #ifndef AVCODEC_MPEGAUDIO_TABLEGEN_H
24 #define AVCODEC_MPEGAUDIO_TABLEGEN_H
29 #define TABLE_4_3_SIZE (8191 + 16)*4
30 #if CONFIG_HARDCODED_TABLES
31 #define mpegaudio_tableinit()
32 #include "libavcodec/mpegaudio_tables.h"
45 int i, value, exponent;
51 f = value *
powf(value, 1.0 / 3.0) * pow(2, (i & 3) * 0.25);
53 m = (uint32_t)(fm * (1LL << 31) + 0.5);
60 for (exponent = 0; exponent < 512; exponent++) {
61 for (value = 0; value < 16; value++) {
63 double f = (double)value *
powf(value, 1.0 / 3.0) * pow(2, (exponent - 400) * 0.25 +
FRAC_BITS + 5);
65 expval_table_fixed[exponent][value] = (
long long int) (f >= 0 ? floor(f + 0.5) : ceil(f - 0.5));
static uint32_t table_4_3_value[TABLE_4_3_SIZE]
static int8_t table_4_3_exp[TABLE_4_3_SIZE]
static float exp_table_float[512]
static void mpegaudio_tableinit(void)
static uint32_t expval_table_fixed[512][16]
static float expval_table_float[512][16]
static uint32_t exp_table_fixed[512]