Lines Matching refs:mode
60 CELTMode *mode = modes[i]; in dump_modes() local
61 fprintf(file, " %d %d",mode->Fs,mode->shortMdctSize*mode->nbShortMdcts); in dump_modes()
75 CELTMode *mode = modes[i]; in dump_modes() local
79 mdctSize = mode->shortMdctSize*mode->nbShortMdcts; in dump_modes()
80 standard = (mode->Fs == 400*(opus_int32)mode->shortMdctSize); in dump_modes()
81 framerate = mode->Fs/mode->shortMdctSize; in dump_modes()
85 fprintf(file, "#ifndef DEF_EBANDS%d_%d\n", mode->Fs, mdctSize); in dump_modes()
86 fprintf(file, "#define DEF_EBANDS%d_%d\n", mode->Fs, mdctSize); in dump_modes()
87 …fprintf (file, "static const opus_int16 eBands%d_%d[%d] = {\n", mode->Fs, mdctSize, mode->nbEBands… in dump_modes()
88 for (j=0;j<mode->nbEBands+2;j++) in dump_modes()
89 fprintf (file, "%d, ", mode->eBands[j]); in dump_modes()
95 fprintf(file, "#ifndef DEF_WINDOW%d\n", mode->overlap); in dump_modes()
96 fprintf(file, "#define DEF_WINDOW%d\n", mode->overlap); in dump_modes()
97 fprintf (file, "static const opus_val16 window%d[%d] = {\n", mode->overlap, mode->overlap); in dump_modes()
98 for (j=0;j<mode->overlap;j++) in dump_modes()
99 fprintf (file, WORD16 ",%c", mode->window[j],(j+6)%5==0?'\n':' '); in dump_modes()
106 fprintf(file, "#ifndef DEF_ALLOC_VECTORS%d_%d\n", mode->Fs, mdctSize); in dump_modes()
107 fprintf(file, "#define DEF_ALLOC_VECTORS%d_%d\n", mode->Fs, mdctSize); in dump_modes()
108 …static const unsigned char allocVectors%d_%d[%d] = {\n", mode->Fs, mdctSize, mode->nbEBands*mode->… in dump_modes()
109 for (j=0;j<mode->nbAllocVectors;j++) in dump_modes()
111 for (k=0;k<mode->nbEBands;k++) in dump_modes()
112 fprintf (file, "%2d, ", mode->allocVectors[j*mode->nbEBands+k]); in dump_modes()
122 fprintf (file, "static const opus_int16 logN%d[%d] = {\n", framerate, mode->nbEBands); in dump_modes()
123 for (j=0;j<mode->nbEBands;j++) in dump_modes()
124 fprintf (file, "%d, ", mode->logN[j]); in dump_modes()
130 fprintf(file, "#ifndef DEF_PULSE_CACHE%d\n", mode->Fs/mdctSize); in dump_modes()
131 fprintf(file, "#define DEF_PULSE_CACHE%d\n", mode->Fs/mdctSize); in dump_modes()
132 …file, "static const opus_int16 cache_index%d[%d] = {\n", mode->Fs/mdctSize, (mode->maxLM+2)*mode->… in dump_modes()
133 for (j=0;j<mode->nbEBands*(mode->maxLM+2);j++) in dump_modes()
134 fprintf (file, "%d,%c", mode->cache.index[j],(j+16)%15==0?'\n':' '); in dump_modes()
136 …fprintf (file, "static const unsigned char cache_bits%d[%d] = {\n", mode->Fs/mdctSize, mode->cache… in dump_modes()
137 for (j=0;j<mode->cache.size;j++) in dump_modes()
138 fprintf (file, "%d,%c", mode->cache.bits[j],(j+16)%15==0?'\n':' '); in dump_modes()
140 …e, "static const unsigned char cache_caps%d[%d] = {\n", mode->Fs/mdctSize, (mode->maxLM+1)*2*mode-… in dump_modes()
141 for (j=0;j<(mode->maxLM+1)*2*mode->nbEBands;j++) in dump_modes()
142 fprintf (file, "%d,%c", mode->cache.caps[j],(j+16)%15==0?'\n':' '); in dump_modes()
149 fprintf(file, "#ifndef FFT_TWIDDLES%d_%d\n", mode->Fs, mdctSize); in dump_modes()
150 fprintf(file, "#define FFT_TWIDDLES%d_%d\n", mode->Fs, mdctSize); in dump_modes()
152 mode->Fs, mdctSize, mode->mdct.kfft[0]->nfft); in dump_modes()
153 for (j=0;j<mode->mdct.kfft[0]->nfft;j++) in dump_modes()
154 …fprintf (file, "{" WORD16 ", " WORD16 "},%c", mode->mdct.kfft[0]->twiddles[j].r, mode->mdct.kfft[0… in dump_modes()
158 dump_mode_arch(mode); in dump_modes()
161 for (k=0;k<=mode->mdct.maxshift;k++) in dump_modes()
163 fprintf(file, "#ifndef FFT_BITREV%d\n", mode->mdct.kfft[k]->nfft); in dump_modes()
164 fprintf(file, "#define FFT_BITREV%d\n", mode->mdct.kfft[k]->nfft); in dump_modes()
166 mode->mdct.kfft[k]->nfft, mode->mdct.kfft[k]->nfft); in dump_modes()
167 for (j=0;j<mode->mdct.kfft[k]->nfft;j++) in dump_modes()
168 fprintf (file, "%d,%c", mode->mdct.kfft[k]->bitrev[j],(j+16)%15==0?'\n':' '); in dump_modes()
176 for (k=0;k<=mode->mdct.maxshift;k++) in dump_modes()
178 fprintf(file, "#ifndef FFT_STATE%d_%d_%d\n", mode->Fs, mdctSize, k); in dump_modes()
179 fprintf(file, "#define FFT_STATE%d_%d_%d\n", mode->Fs, mdctSize, k); in dump_modes()
181 mode->Fs, mdctSize, k); in dump_modes()
182 fprintf (file, "%d, /* nfft */\n", mode->mdct.kfft[k]->nfft); in dump_modes()
183 fprintf (file, WORD16 ", /* scale */\n", mode->mdct.kfft[k]->scale); in dump_modes()
185 fprintf (file, "%d, /* scale_shift */\n", mode->mdct.kfft[k]->scale_shift); in dump_modes()
187 fprintf (file, "%d, /* shift */\n", mode->mdct.kfft[k]->shift); in dump_modes()
190 fprintf (file, "%d, ", mode->mdct.kfft[k]->factors[j]); in dump_modes()
192 fprintf (file, "fft_bitrev%d, /* bitrev */\n", mode->mdct.kfft[k]->nfft); in dump_modes()
193 fprintf (file, "fft_twiddles%d_%d, /* bitrev */\n", mode->Fs, mdctSize); in dump_modes()
196 fprintf (file, "(arch_fft_state *)&cfg_arch_%d,\n", mode->mdct.kfft[k]->nfft); in dump_modes()
211 mdct_twiddles_size = mode->mdct.n-(mode->mdct.n/2>>mode->mdct.maxshift); in dump_modes()
217 fprintf (file, WORD16 ",%c", mode->mdct.trig[j],(j+6)%5==0?'\n':' '); in dump_modes()
225 fprintf(file, "static const CELTMode mode%d_%d_%d = {\n", mode->Fs, mdctSize, mode->overlap); in dump_modes()
226 fprintf(file, INT32 ", /* Fs */\n", mode->Fs); in dump_modes()
227 fprintf(file, "%d, /* overlap */\n", mode->overlap); in dump_modes()
228 fprintf(file, "%d, /* nbEBands */\n", mode->nbEBands); in dump_modes()
229 fprintf(file, "%d, /* effEBands */\n", mode->effEBands); in dump_modes()
232 fprintf(file, WORD16 ", ", mode->preemph[j]); in dump_modes()
237 fprintf(file, "eBands%d_%d, /* eBands */\n", mode->Fs, mdctSize); in dump_modes()
239 fprintf(file, "%d, /* maxLM */\n", mode->maxLM); in dump_modes()
240 fprintf(file, "%d, /* nbShortMdcts */\n", mode->nbShortMdcts); in dump_modes()
241 fprintf(file, "%d, /* shortMdctSize */\n", mode->shortMdctSize); in dump_modes()
243 fprintf(file, "%d, /* nbAllocVectors */\n", mode->nbAllocVectors); in dump_modes()
247 fprintf(file, "allocVectors%d_%d, /* allocVectors */\n", mode->Fs, mdctSize); in dump_modes()
250 fprintf(file, "window%d, /* window */\n", mode->overlap); in dump_modes()
251 fprintf(file, "{%d, %d, {", mode->mdct.n, mode->mdct.maxshift); in dump_modes()
252 for (k=0;k<=mode->mdct.maxshift;k++) in dump_modes()
253 fprintf(file, "&fft_state%d_%d_%d, ", mode->Fs, mdctSize, k); in dump_modes()
257 mode->cache.size, mode->Fs/mdctSize, mode->Fs/mdctSize, mode->Fs/mdctSize); in dump_modes()
266 CELTMode *mode = modes[i]; in dump_modes() local
268 mdctSize = mode->shortMdctSize*mode->nbShortMdcts; in dump_modes()
269 fprintf(file, "&mode%d_%d_%d,\n", mode->Fs, mdctSize, mode->overlap); in dump_modes()
283 CELTMode *mode = modes[i]; in dump_header() local
285 frame_size = mode->shortMdctSize*mode->nbShortMdcts; in dump_header()
286 else if (frame_size != mode->shortMdctSize*mode->nbShortMdcts) in dump_header()
289 overlap = mode->overlap; in dump_header()
290 else if (overlap != mode->overlap) in dump_header()