Support 32-bit window and comb filter

This commit is contained in:
Jean-Marc Valin 2024-05-28 13:03:10 -04:00
parent 38e535a1e7
commit c79a9bd1dd
No known key found for this signature in database
GPG key ID: 8D2952BBB52C646D
17 changed files with 160 additions and 81 deletions

View file

@ -99,9 +99,19 @@ void dump_modes(FILE *file, CELTMode **modes, int nb_modes)
fprintf(file, "#ifndef DEF_WINDOW%d\n", mode->overlap);
fprintf(file, "#define DEF_WINDOW%d\n", mode->overlap);
fprintf (file, "static const opus_val16 window%d[%d] = {\n", mode->overlap, mode->overlap);
fprintf (file, "static const celt_coef window%d[%d] = {\n", mode->overlap, mode->overlap);
#if defined(FIXED_POINT) && defined(ENABLE_QEXT)
fprintf(file, "#ifdef ENABLE_QEXT\n");
for (j=0;j<mode->overlap;j++)
fprintf (file, WORD32 ",%c", mode->window[j],(j+6)%5==0?'\n':' ');
fprintf(file, "#else\n");
for (j=0;j<mode->overlap;j++)
fprintf (file, WORD16 ",%c", COEF16(mode->window[j], 16),(j+6)%5==0?'\n':' ');
fprintf(file, "#endif\n");
#else
for (j=0;j<mode->overlap;j++)
fprintf (file, WORD16 ",%c", mode->window[j],(j+6)%5==0?'\n':' ');
#endif
fprintf (file, "};\n");
fprintf(file, "#endif\n");
fprintf(file, "\n");