Revision 350120d2 libavcodec/mpegaudio_tablegen.c

View differences:

libavcodec/mpegaudio_tablegen.c
31 31

  
32 32
    write_fileheader();
33 33

  
34
    printf("static const int8_t table_4_3_exp[TABLE_4_3_SIZE] = {\n");
35
    write_int8_t_array(table_4_3_exp, TABLE_4_3_SIZE);
36
    printf("};\n");
37

  
38
    printf("static const uint32_t table_4_3_value[TABLE_4_3_SIZE] = {\n");
39
    write_uint32_t_array(table_4_3_value, TABLE_4_3_SIZE);
40
    printf("};\n");
41

  
42
    printf("static const uint32_t exp_table[512] = {\n");
43
    write_uint32_t_array(exp_table, 512);
44
    printf("};\n");
45

  
46
    printf("static const float exp_table_float[512] = {\n");
47
    write_float_array(exp_table_float, 512);
48
    printf("};\n");
49

  
50
    printf("static const uint32_t expval_table[512][16] = {\n");
51
    write_uint32_t_2d_array(expval_table, 512, 16);
52
    printf("};\n");
53

  
54
    printf("static const float expval_table_float[512][16] = {\n");
55
    write_float_2d_array(expval_table_float, 512, 16);
56
    printf("};\n");
34
    WRITE_ARRAY("static const", int8_t, table_4_3_exp);
35
    WRITE_ARRAY("static const", uint32_t, table_4_3_value);
36
    WRITE_ARRAY("static const", uint32_t, exp_table);
37
    WRITE_ARRAY("static const", float, exp_table_float);
38
    WRITE_2D_ARRAY("static const", uint32_t, expval_table);
39
    WRITE_2D_ARRAY("static const", float, expval_table_float);
57 40

  
58 41
    return 0;
59 42
}

Also available in: Unified diff