summaryrefslogtreecommitdiff
path: root/libavcodec/dv_tablegen.c
diff options
context:
space:
mode:
authorDiego Pettenò <flameeyes@gmail.com>2010-06-27 12:20:39 +0000
committerDiego Pettenò <flameeyes@gmail.com>2010-06-27 12:20:39 +0000
commitac014798ff719c69a895aff0189a794ed9046554 (patch)
treef53db1d845bbecfa50224c0c5ed2e1c53403b21f /libavcodec/dv_tablegen.c
parent07ece20c696edad327b2e3fefd14f52279f60035 (diff)
tableprint: use the type name as-is for the functions' names.
This drops one parameter from the functions' macros, and require structures to be typedeffed, but ensures that it is possible to map 1-to-1 the type to the function name. Originally committed as revision 23820 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dv_tablegen.c')
-rw-r--r--libavcodec/dv_tablegen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/dv_tablegen.c b/libavcodec/dv_tablegen.c
index 0e2b39dfb2..5d3793e11d 100644
--- a/libavcodec/dv_tablegen.c
+++ b/libavcodec/dv_tablegen.c
@@ -29,9 +29,9 @@
#include "tableprint.h"
#include <inttypes.h>
-WRITE_1D_FUNC_ARGV(vlc_pair, struct dv_vlc_pair, 7,
+WRITE_1D_FUNC_ARGV(dv_vlc_pair, 7,
"{0x%"PRIx32", %"PRId8"}", data[i].vlc, data[i].size)
-WRITE_2D_FUNC(vlc_pair, struct dv_vlc_pair)
+WRITE_2D_FUNC(dv_vlc_pair)
int main(void)
{
@@ -40,7 +40,7 @@ int main(void)
write_fileheader();
printf("static const struct dv_vlc_pair dv_vlc_map[DV_VLC_MAP_RUN_SIZE][DV_VLC_MAP_LEV_SIZE] = {\n");
- write_vlc_pair_2d_array(dv_vlc_map, DV_VLC_MAP_RUN_SIZE, DV_VLC_MAP_LEV_SIZE);
+ write_dv_vlc_pair_2d_array(dv_vlc_map, DV_VLC_MAP_RUN_SIZE, DV_VLC_MAP_LEV_SIZE);
printf("};\n");
return 0;