Revision 8eaa6e0e libavcodec/dv_tablegen.c

View differences:

libavcodec/dv_tablegen.c
33 33
                   "{0x%"PRIx32", %"PRId8"}", data[i].vlc, data[i].size)
34 34
WRITE_2D_FUNC(vlc_pair, struct dv_vlc_pair)
35 35

  
36
void tableinit(void)
36
int main(void)
37 37
{
38 38
    dv_vlc_map_tableinit();
39
}
40 39

  
41
const struct tabledef tables[] = {
42
    {
43
        "static const struct dv_vlc_pair dv_vlc_map[DV_VLC_MAP_RUN_SIZE][DV_VLC_MAP_LEV_SIZE]",
44
        write_vlc_pair_2d_array,
45
        dv_vlc_map,
46
        DV_VLC_MAP_RUN_SIZE,
47
        DV_VLC_MAP_LEV_SIZE
48
    },
49
    { NULL }
50
};
40
    write_fileheader();
41

  
42
    printf("static const struct dv_vlc_pair dv_vlc_map[DV_VLC_MAP_RUN_SIZE][DV_VLC_MAP_LEV_SIZE] = {\n");
43
    write_vlc_pair_2d_array(dv_vlc_map, DV_VLC_MAP_RUN_SIZE, DV_VLC_MAP_LEV_SIZE);
44
    printf("};\n");
45

  
46
    return 0;
47
}

Also available in: Unified diff