Respect the ANSI C89 maximum line length.
This commit is contained in:
parent
9a7539fcf3
commit
5cfa0a0ea2
6 changed files with 1027 additions and 64 deletions
|
@ -51,8 +51,8 @@
|
|||
void dump_modes(FILE *file, CELTMode **modes, int nb_modes)
|
||||
{
|
||||
int i, j, k;
|
||||
fprintf(file, "/* The contents of this file is automatically generated and contains static\n");
|
||||
fprintf(file, " definitions for some pre-defined modes */\n");
|
||||
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, "#include \"modes.h\"\n");
|
||||
fprintf(file, "#include \"rate.h\"\n");
|
||||
|
||||
|
@ -84,7 +84,7 @@ void dump_modes(FILE *file, CELTMode **modes, int nb_modes)
|
|||
fprintf(file, "#define DEF_WINDOW%d\n", mode->overlap);
|
||||
fprintf (file, "static const opus_val16 window%d[%d] = {\n", mode->overlap, mode->overlap);
|
||||
for (j=0;j<mode->overlap;j++)
|
||||
fprintf (file, WORD16 ", ", mode->window[j]);
|
||||
fprintf (file, WORD16 ",%c", mode->window[j],(j+6)%5==0?'\n':' ');
|
||||
fprintf (file, "};\n");
|
||||
fprintf(file, "#endif\n");
|
||||
fprintf(file, "\n");
|
||||
|
@ -119,15 +119,15 @@ void dump_modes(FILE *file, CELTMode **modes, int nb_modes)
|
|||
fprintf(file, "#define DEF_PULSE_CACHE%d\n", mode->Fs/mdctSize);
|
||||
fprintf (file, "static const opus_int16 cache_index%d[%d] = {\n", mode->Fs/mdctSize, (mode->maxLM+2)*mode->nbEBands);
|
||||
for (j=0;j<mode->nbEBands*(mode->maxLM+2);j++)
|
||||
fprintf (file, "%d, ", mode->cache.index[j]);
|
||||
fprintf (file, "%d,%c", mode->cache.index[j],(j+16)%15==0?'\n':' ');
|
||||
fprintf (file, "};\n");
|
||||
fprintf (file, "static const unsigned char cache_bits%d[%d] = {\n", mode->Fs/mdctSize, mode->cache.size);
|
||||
for (j=0;j<mode->cache.size;j++)
|
||||
fprintf (file, "%d, ", mode->cache.bits[j]);
|
||||
fprintf (file, "%d,%c", mode->cache.bits[j],(j+16)%15==0?'\n':' ');
|
||||
fprintf (file, "};\n");
|
||||
fprintf (file, "static const unsigned char cache_caps%d[%d] = {\n", mode->Fs/mdctSize, (mode->maxLM+1)*2*mode->nbEBands);
|
||||
for (j=0;j<(mode->maxLM+1)*2*mode->nbEBands;j++)
|
||||
fprintf (file, "%d, ", mode->cache.caps[j]);
|
||||
fprintf (file, "%d,%c", mode->cache.caps[j],(j+16)%15==0?'\n':' ');
|
||||
fprintf (file, "};\n");
|
||||
|
||||
fprintf(file, "#endif\n");
|
||||
|
@ -139,7 +139,7 @@ void dump_modes(FILE *file, CELTMode **modes, int nb_modes)
|
|||
fprintf (file, "static const kiss_twiddle_cpx fft_twiddles%d_%d[%d] = {\n",
|
||||
mode->Fs, mdctSize, mode->mdct.kfft[0]->nfft);
|
||||
for (j=0;j<mode->mdct.kfft[0]->nfft;j++)
|
||||
fprintf (file, "{" WORD16 ", " WORD16 "}, ", mode->mdct.kfft[0]->twiddles[j].r, mode->mdct.kfft[0]->twiddles[j].i);
|
||||
fprintf (file, "{" WORD16 ", " WORD16 "},%c", mode->mdct.kfft[0]->twiddles[j].r, mode->mdct.kfft[0]->twiddles[j].i,(j+3)%2==0?'\n':' ');
|
||||
fprintf (file, "};\n");
|
||||
|
||||
/* FFT Bitrev tables */
|
||||
|
@ -150,7 +150,7 @@ void dump_modes(FILE *file, CELTMode **modes, int nb_modes)
|
|||
fprintf (file, "static const opus_int16 fft_bitrev%d[%d] = {\n",
|
||||
mode->mdct.kfft[k]->nfft, mode->mdct.kfft[k]->nfft);
|
||||
for (j=0;j<mode->mdct.kfft[k]->nfft;j++)
|
||||
fprintf (file, "%d, ", mode->mdct.kfft[k]->bitrev[j]);
|
||||
fprintf (file, "%d,%c", mode->mdct.kfft[k]->bitrev[j],(j+16)%15==0?'\n':' ');
|
||||
fprintf (file, "};\n");
|
||||
|
||||
fprintf(file, "#endif\n");
|
||||
|
@ -190,7 +190,7 @@ void dump_modes(FILE *file, CELTMode **modes, int nb_modes)
|
|||
fprintf (file, "static const opus_val16 mdct_twiddles%d[%d] = {\n",
|
||||
mdctSize, mode->mdct.n/4+1);
|
||||
for (j=0;j<=mode->mdct.n/4;j++)
|
||||
fprintf (file, WORD16 ", ", mode->mdct.trig[j]);
|
||||
fprintf (file, WORD16 ",%c", mode->mdct.trig[j],(j+6)%5==0?'\n':' ');
|
||||
fprintf (file, "};\n");
|
||||
|
||||
fprintf(file, "#endif\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue