diff qdm2_tablegen.c @ 11979:59f399926c12 libavcodec

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.
author flameeyes
date Sun, 27 Jun 2010 12:20:39 +0000
parents e03e3df6fb7d
children 263b4ef7ad87
line wrap: on
line diff
--- a/qdm2_tablegen.c	Sun Jun 27 09:44:10 2010 +0000
+++ b/qdm2_tablegen.c	Sun Jun 27 12:20:39 2010 +0000
@@ -34,7 +34,7 @@
     write_fileheader();
 
     printf("static const uint16_t softclip_table[HARDCLIP_THRESHOLD - SOFTCLIP_THRESHOLD + 1] = {\n");
-    write_uint16_array(softclip_table, HARDCLIP_THRESHOLD - SOFTCLIP_THRESHOLD + 1);
+    write_uint16_t_array(softclip_table, HARDCLIP_THRESHOLD - SOFTCLIP_THRESHOLD + 1);
     printf("};\n");
 
     printf("static const float noise_table[4096] = {\n");
@@ -42,11 +42,11 @@
     printf("};\n");
 
     printf("static const uint8_t random_dequant_index[256][5] = {\n");
-    write_uint8_2d_array(random_dequant_index, 256, 5);
+    write_uint8_t_2d_array(random_dequant_index, 256, 5);
     printf("};\n");
 
     printf("static const uint8_t random_dequant_type24[128][3] = {\n");
-    write_uint8_2d_array(random_dequant_type24, 128, 3);
+    write_uint8_t_2d_array(random_dequant_type24, 128, 3);
     printf("};\n");
 
     printf("static const float noise_samples[128] = {\n");