Revision 350120d2 libavcodec/qdm2_tablegen.c

View differences:

libavcodec/qdm2_tablegen.c
33 33

  
34 34
    write_fileheader();
35 35

  
36
    printf("static const uint16_t softclip_table[HARDCLIP_THRESHOLD - SOFTCLIP_THRESHOLD + 1] = {\n");
37
    write_uint16_t_array(softclip_table, HARDCLIP_THRESHOLD - SOFTCLIP_THRESHOLD + 1);
38
    printf("};\n");
36
    WRITE_ARRAY("static const", uint16_t, softclip_table);
37
    WRITE_ARRAY("static const", float, noise_table);
38
    WRITE_ARRAY("static const", float, noise_samples);
39 39

  
40
    printf("static const float noise_table[4096] = {\n");
41
    write_float_array(noise_table, 4096);
42
    printf("};\n");
43

  
44
    printf("static const uint8_t random_dequant_index[256][5] = {\n");
45
    write_uint8_t_2d_array(random_dequant_index, 256, 5);
46
    printf("};\n");
47

  
48
    printf("static const uint8_t random_dequant_type24[128][3] = {\n");
49
    write_uint8_t_2d_array(random_dequant_type24, 128, 3);
50
    printf("};\n");
51

  
52
    printf("static const float noise_samples[128] = {\n");
53
    write_float_array(noise_samples, 128);
54
    printf("};\n");
40
    WRITE_2D_ARRAY("static const", uint8_t, random_dequant_index);
41
    WRITE_2D_ARRAY("static const", uint8_t, random_dequant_type24);
55 42

  
56 43
    return 0;
57 44
}

Also available in: Unified diff