]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/sinewin_fixed_tablegen.c
avformat: Constify all muxer/demuxers
[ffmpeg] / libavcodec / sinewin_fixed_tablegen.c
index 977e6f3cbfaa5a89c2da8ed5440078867661a434..61e5274afa07deebaa29d6b79358288edacef64c 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#define USE_FIXED 1
-#include "sinewin_tablegen_template.c"
+#include "tableprint.h"
+
+#define BUILD_TABLES
+#define CONFIG_HARDCODED_TABLES 0
+#include "sinewin_fixed_tablegen.h"
+
+int main(void)
+{
+    write_fileheader();
+
+    init_sine_windows_fixed();
+#define PRINT_TABLE(size)                               \
+    printf("SINETABLE("#size") = {\n");                 \
+    write_int32_t_array(sine_ ## size ## _fixed, size); \
+    printf("};\n")
+    PRINT_TABLE(128);
+    PRINT_TABLE(512);
+    PRINT_TABLE(1024);
+    return 0;
+}