Mercurial > libavcodec.hg
comparison mpegaudio_tablegen.c @ 11979:59f399926c12 libavcodec
tableprint: use the type name as-is for the functions' names.
This drops one parameter from the functions' macros, and require structures
to be typedeffed, but ensures that it is possible to map 1-to-1 the type to
the function name.
author | flameeyes |
---|---|
date | Sun, 27 Jun 2010 12:20:39 +0000 |
parents | a0f514fb84d6 |
children | 263b4ef7ad87 |
comparison
equal
deleted
inserted
replaced
11978:db5c3a602ddd | 11979:59f399926c12 |
---|---|
30 mpegaudio_tableinit(); | 30 mpegaudio_tableinit(); |
31 | 31 |
32 write_fileheader(); | 32 write_fileheader(); |
33 | 33 |
34 printf("static const int8_t table_4_3_exp[TABLE_4_3_SIZE] = {\n"); | 34 printf("static const int8_t table_4_3_exp[TABLE_4_3_SIZE] = {\n"); |
35 write_int8_array(table_4_3_exp, TABLE_4_3_SIZE); | 35 write_int8_t_array(table_4_3_exp, TABLE_4_3_SIZE); |
36 printf("};\n"); | 36 printf("};\n"); |
37 | 37 |
38 printf("static const uint32_t table_4_3_value[TABLE_4_3_SIZE] = {\n"); | 38 printf("static const uint32_t table_4_3_value[TABLE_4_3_SIZE] = {\n"); |
39 write_uint32_array(table_4_3_value, TABLE_4_3_SIZE); | 39 write_uint32_t_array(table_4_3_value, TABLE_4_3_SIZE); |
40 printf("};\n"); | 40 printf("};\n"); |
41 | 41 |
42 printf("static const uint32_t exp_table[512] = {\n"); | 42 printf("static const uint32_t exp_table[512] = {\n"); |
43 write_uint32_array(exp_table, 512); | 43 write_uint32_t_array(exp_table, 512); |
44 printf("};\n"); | 44 printf("};\n"); |
45 | 45 |
46 printf("static const float exp_table_float[512] = {\n"); | 46 printf("static const float exp_table_float[512] = {\n"); |
47 write_float_array(exp_table_float, 512); | 47 write_float_array(exp_table_float, 512); |
48 printf("};\n"); | 48 printf("};\n"); |
49 | 49 |
50 printf("static const uint32_t expval_table[512][16] = {\n"); | 50 printf("static const uint32_t expval_table[512][16] = {\n"); |
51 write_uint32_2d_array(expval_table, 512, 16); | 51 write_uint32_t_2d_array(expval_table, 512, 16); |
52 printf("};\n"); | 52 printf("};\n"); |
53 | 53 |
54 printf("static const float expval_table_float[512][16] = {\n"); | 54 printf("static const float expval_table_float[512][16] = {\n"); |
55 write_float_2d_array(expval_table_float, 512, 16); | 55 write_float_2d_array(expval_table_float, 512, 16); |
56 printf("};\n"); | 56 printf("};\n"); |