From 11785e92c3a4310caee80209beba5536ab4a4297 Mon Sep 17 00:00:00 2001
From: Gregory Maxwell <greg@xiph.org>
Date: Mon, 15 Aug 2011 13:03:25 -0400
Subject: [PATCH] Make dump_modes.c include the arguments in the output.

---
 libcelt/dump_modes.c         | 10 ++++++++--
 libcelt/static_modes_fixed.h |  5 +++--
 libcelt/static_modes_float.h |  5 +++--
 3 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/libcelt/dump_modes.c b/libcelt/dump_modes.c
index 0f411af70..359ced9ef 100644
--- a/libcelt/dump_modes.c
+++ b/libcelt/dump_modes.c
@@ -51,8 +51,14 @@
 void dump_modes(FILE *file, CELTMode **modes, int nb_modes)
 {
    int i, j, k;
-   fprintf(file, "/* The contents of this file is automatically generated by dump_modes.c\n");
-   fprintf(file, "   and contains static definitions for some pre-defined modes */\n");
+   fprintf(file, "/* The contents of this file was automatically generated by dump_modes.c\n");
+   fprintf(file, "   with arguments:");
+   for (i=0;i<nb_modes;i++)
+   {
+      CELTMode *mode = modes[i];
+      fprintf(file, " %d %d",mode->Fs,mode->shortMdctSize*mode->nbShortMdcts);
+   }
+   fprintf(file, "\n   It contains static definitions for some pre-defined modes. */\n");
    fprintf(file, "#include \"modes.h\"\n");
    fprintf(file, "#include \"rate.h\"\n");
 
diff --git a/libcelt/static_modes_fixed.h b/libcelt/static_modes_fixed.h
index 073a229b3..98f275592 100644
--- a/libcelt/static_modes_fixed.h
+++ b/libcelt/static_modes_fixed.h
@@ -1,5 +1,6 @@
-/* The contents of this file is automatically generated by dump_modes.c
-   and contains static definitions for some pre-defined modes */
+/* The contents of this file was automatically generated by dump_modes.c
+   with arguments: 48000 960
+   It contains static definitions for some pre-defined modes. */
 #include "modes.h"
 #include "rate.h"
 
diff --git a/libcelt/static_modes_float.h b/libcelt/static_modes_float.h
index 93e5d1a91..fcb24f4ba 100644
--- a/libcelt/static_modes_float.h
+++ b/libcelt/static_modes_float.h
@@ -1,5 +1,6 @@
-/* The contents of this file is automatically generated by dump_modes.c
-   and contains static definitions for some pre-defined modes */
+/* The contents of this file was automatically generated by dump_modes.c
+   with arguments: 48000 960
+   It contains static definitions for some pre-defined modes. */
 #include "modes.h"
 #include "rate.h"
 
-- 
GitLab