Go to the documentation of this file.
24 #define CONFIG_HARDCODED_TABLES 0
39 printf(
"static const struct dv_vlc_pair dv_vlc_map[DV_VLC_MAP_RUN_SIZE][DV_VLC_MAP_LEV_SIZE] = {\n");
static av_cold void dv_vlc_map_tableinit(void)
#define DV_VLC_MAP_RUN_SIZE
WRITE_1D_FUNC_ARGV(dv_vlc_pair, 7, "{0x%"PRIx32", %"PRIu32"}", data[i].vlc, data[i].size) int main(void)
write_fileheader() adds some minor things like a "this is a generated file" comment and some standard includes. tablegen.h defines some write functions for one- and two-dimensional arrays for standard types - they print only the "core" parts so they are easier to reuse for multi-dimensional arrays so the outermost
int main(int argc, char *argv[])
printf("static const uint8_t my_array[100] = {\n")
#define i(width, name, range_min, range_max)
static struct dv_vlc_pair dv_vlc_map[DV_VLC_MAP_RUN_SIZE][DV_VLC_MAP_LEV_SIZE]
#define WRITE_2D_FUNC(type)
#define DV_VLC_MAP_LEV_SIZE