mirror of
https://github.com/xiph/opus.git
synced 2025-06-07 16:00:56 +00:00
Make dump_modes.c include the arguments in the output.
This commit is contained in:
parent
5cfa0a0ea2
commit
11785e92c3
3 changed files with 14 additions and 6 deletions
|
@ -51,8 +51,14 @@
|
||||||
void dump_modes(FILE *file, CELTMode **modes, int nb_modes)
|
void dump_modes(FILE *file, CELTMode **modes, int nb_modes)
|
||||||
{
|
{
|
||||||
int i, j, k;
|
int i, j, k;
|
||||||
fprintf(file, "/* The contents of this file is automatically generated by dump_modes.c\n");
|
fprintf(file, "/* The contents of this file was automatically generated by dump_modes.c\n");
|
||||||
fprintf(file, " and contains static definitions for some pre-defined modes */\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 \"modes.h\"\n");
|
||||||
fprintf(file, "#include \"rate.h\"\n");
|
fprintf(file, "#include \"rate.h\"\n");
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* The contents of this file is automatically generated by dump_modes.c
|
/* The contents of this file was automatically generated by dump_modes.c
|
||||||
and contains static definitions for some pre-defined modes */
|
with arguments: 48000 960
|
||||||
|
It contains static definitions for some pre-defined modes. */
|
||||||
#include "modes.h"
|
#include "modes.h"
|
||||||
#include "rate.h"
|
#include "rate.h"
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* The contents of this file is automatically generated by dump_modes.c
|
/* The contents of this file was automatically generated by dump_modes.c
|
||||||
and contains static definitions for some pre-defined modes */
|
with arguments: 48000 960
|
||||||
|
It contains static definitions for some pre-defined modes. */
|
||||||
#include "modes.h"
|
#include "modes.h"
|
||||||
#include "rate.h"
|
#include "rate.h"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue