23 #ifndef AVCODEC_TABLEPRINT_VLC_H
24 #define AVCODEC_TABLEPRINT_VLC_H
26 #define FFMPEG_CONFIG_H
28 #define av_log(a, ...) while(0)
29 #define ff_dlog(a, ...) while(0)
31 #define av_malloc(s) NULL
32 #define av_malloc_array(a, b) NULL
33 #define av_realloc_f(p, o, n) NULL
34 #define av_free(p) while(0)
35 #define av_freep(p) while(0)
36 #define AVCODEC_AVCODEC_H
37 #define AVCODEC_INTERNAL_H
44 #define REPLACE_DEFINE2(type) write_##type##_array
45 #define REPLACE_DEFINE(type) REPLACE_DEFINE2(type)
54 printf(
" .bits = %i,\n", vlc->bits);
56 printf(
" .table = (VLC_TYPE (*)[2])(%s + 0x%x),\n", base_table_name, (
int)(vlc->table - base_table));
57 printf(
" .table_size = 0x%x,\n", vlc->table_size);
58 printf(
" .table_allocated = 0x%x,\n", vlc->table_allocated);
61 #define WRITE_VLC_TYPE(prefix, name, base_table) \
63 printf(prefix" VLC "#name" = {\n"); \
64 write_vlc_type(&name, base_table, #base_table); \
68 #define WRITE_VLC_ARRAY(prefix, name, base_table) \
71 const size_t array_size = FF_ARRAY_ELEMS(name); \
72 printf(prefix" VLC "#name"[%"FMT"] = {{\n", \
74 for (i = 0; i < array_size; i++) { \
75 write_vlc_type(name + i, \
76 base_table, #base_table); \
77 if (i != array_size - 1) printf("}, {\n"); \
static void write_vlc_type(const VLC *vlc, VLC_TYPE(*base_table)[2], const char *base_table_name)
#define WRITE_2D_FUNC(type)
bitstream reader API header.
#define REPLACE_DEFINE(type)
static void write_VLC_TYPE_array(const VLC_TYPE *p, int s)