mirror of
https://github.com/xiph/opus.git
synced 2025-06-03 00:57:43 +00:00
Adding float|fixed suffixes to static mode files
This commit is contained in:
parent
6c12497c77
commit
8f6d12beec
2 changed files with 13 additions and 3 deletions
|
@ -289,6 +289,12 @@ void dump_header(FILE *file, CELTMode **modes, int nb_modes)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef FIXED_POINT
|
||||
#define BASENAME "static_modes_fixed"
|
||||
#else
|
||||
#define BASENAME "static_modes_float"
|
||||
#endif
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
int i, nb;
|
||||
|
@ -308,10 +314,10 @@ int main(int argc, char **argv)
|
|||
frame = atoi(argv[2*i+2]);
|
||||
m[i] = celt_mode_create(Fs, frame, NULL);
|
||||
}
|
||||
file = fopen("static_modes.c", "w");
|
||||
file = fopen(BASENAME ".c", "w");
|
||||
dump_modes(file, m, nb);
|
||||
fclose(file);
|
||||
file = fopen("static_modes.h", "w");
|
||||
file = fopen(BASENAME ".h", "w");
|
||||
dump_header(file, m, nb);
|
||||
fclose(file);
|
||||
for (i=0;i<nb;i++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue