shithub: opus

Download patch

ref: 1b0bc2d2579f1780e1ff894764c14ebb8784ca9a
parent: bdfb73bc26bd1b292e4fc982044181618c9a90a2
author: Jean-Marc Valin <[email protected]>
date: Sat Jul 24 03:59:08 EDT 2010

Updated static mode generation for latest changes

--- a/libcelt/dump_modes.c
+++ b/libcelt/dump_modes.c
@@ -150,7 +150,12 @@
       fprintf(file, INT32 ",\t/* Fs */\n", mode->Fs);
       fprintf(file, "%d,\t/* overlap */\n", mode->overlap);
       fprintf(file, "%d,\t/* nbEBands */\n", mode->nbEBands);
+      fprintf(file, "%d,\t/* effEBands */\n", mode->effEBands);
       fprintf(file, "%d,\t/* pitchEnd */\n", mode->pitchEnd);
+      fprintf(file, "{");
+      for (i=0;i<4;i++)
+         fprintf(file, WORD16 ", ", mode->preemph[i]);
+      fprintf(file, "},\t/* preemph */\n");
       fprintf(file, "eBands%d_%d,\t/* eBands */\n", mode->Fs, mdctSize);
       fprintf(file, "%d,\t/* nbAllocVectors */\n", mode->nbAllocVectors);
       fprintf(file, "allocVectors%d_%d,\t/* allocVectors */\n", mode->Fs, mdctSize);
@@ -167,12 +172,11 @@
       }
       fprintf (file, "}, /* _bits */\n");
 
-      fprintf (file, "{ ");
-      for (k=0;(1<<k)<=mode->nbShortMdcts;k++)
-         fprintf(file, "{%d, 0, 0},\t ", 2*mode->shortMdctSize<<k);
-      fprintf (file, "}, /* mdct */\n");
+      fprintf(file, "{%d, 0, 0, 0},\t", 2*mode->shortMdctSize*mode->nbShortMdcts);
+      fprintf (file, "/* mdct */\n");
 
       fprintf(file, "window%d,\t/* window */\n", mode->overlap);
+      fprintf(file, "%d,\t/* maxLM */\n", mode->maxLM);
       fprintf(file, "%d,\t/* nbShortMdcts */\n", mode->nbShortMdcts);
       fprintf(file, "%d,\t/* shortMdctSize */\n", mode->shortMdctSize);
       fprintf(file, "0,\t/* prob */\n");