shithub: opus

Download patch

ref: 11785e92c3a4310caee80209beba5536ab4a4297
parent: 5cfa0a0ea21259cf0928ad225a5a7efe4c781e6c
author: Gregory Maxwell <[email protected]>
date: Mon Aug 15 09:03:25 EDT 2011

Make dump_modes.c include the arguments in the output.

--- 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");
 
--- 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"
 
--- 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"