mirror of
https://github.com/xiph/opus.git
synced 2025-06-06 07:21:03 +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 main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int i, nb;
|
int i, nb;
|
||||||
|
@ -308,10 +314,10 @@ int main(int argc, char **argv)
|
||||||
frame = atoi(argv[2*i+2]);
|
frame = atoi(argv[2*i+2]);
|
||||||
m[i] = celt_mode_create(Fs, frame, NULL);
|
m[i] = celt_mode_create(Fs, frame, NULL);
|
||||||
}
|
}
|
||||||
file = fopen("static_modes.c", "w");
|
file = fopen(BASENAME ".c", "w");
|
||||||
dump_modes(file, m, nb);
|
dump_modes(file, m, nb);
|
||||||
fclose(file);
|
fclose(file);
|
||||||
file = fopen("static_modes.h", "w");
|
file = fopen(BASENAME ".h", "w");
|
||||||
dump_header(file, m, nb);
|
dump_header(file, m, nb);
|
||||||
fclose(file);
|
fclose(file);
|
||||||
for (i=0;i<nb;i++)
|
for (i=0;i<nb;i++)
|
||||||
|
|
|
@ -112,7 +112,11 @@ static const unsigned char band_allocation[] = {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef STATIC_MODES
|
#ifdef STATIC_MODES
|
||||||
#include "static_modes.c"
|
#ifdef FIXED_POINT
|
||||||
|
#include "static_modes_fixed.c"
|
||||||
|
#else
|
||||||
|
#include "static_modes_float.c"
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef M_PI
|
#ifndef M_PI
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue