Make dump_modes.c include the arguments in the output.

This commit is contained in:
Gregory Maxwell 2011-08-15 13:03:25 -04:00
parent 5cfa0a0ea2
commit 11785e92c3
3 changed files with 14 additions and 6 deletions

View file

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