Lines Matching refs:nchannels
182 int nchannels; in main() local
193 nchannels=1; in main()
195 nchannels=2; in main()
232 if(nchannels==1){ in main()
236 ylength=read_pcm16(&y,fin2,nchannels); in main()
249 xb=(float *)opus_malloc(nframes*NBANDS*nchannels*sizeof(*xb)); in main()
250 X=(float *)opus_malloc(nframes*NFREQS*nchannels*sizeof(*X)); in main()
251 Y=(float *)opus_malloc(nframes*yfreqs*nchannels*sizeof(*Y)); in main()
254 band_energy(xb,X,BANDS,NBANDS,x,nchannels,nframes, in main()
257 band_energy(NULL,Y,BANDS,ybands,y,nchannels,nframes, in main()
263 for(ci=0;ci<nchannels;ci++){ in main()
264 xb[(xi*NBANDS+bi)*nchannels+ci]+= in main()
265 0.1F*xb[(xi*NBANDS+bi-1)*nchannels+ci]; in main()
270 for(ci=0;ci<nchannels;ci++){ in main()
271 xb[(xi*NBANDS+bi)*nchannels+ci]+= in main()
272 0.03F*xb[(xi*NBANDS+bi+1)*nchannels+ci]; in main()
278 for(ci=0;ci<nchannels;ci++){ in main()
279 xb[(xi*NBANDS+bi)*nchannels+ci]+= in main()
280 0.5F*xb[((xi-1)*NBANDS+bi)*nchannels+ci]; in main()
285 if(nchannels==2){ in main()
288 l=xb[(xi*NBANDS+bi)*nchannels+0]; in main()
289 r=xb[(xi*NBANDS+bi)*nchannels+1]; in main()
290 xb[(xi*NBANDS+bi)*nchannels+0]+=0.01F*r; in main()
291 xb[(xi*NBANDS+bi)*nchannels+1]+=0.01F*l; in main()
298 for(ci=0;ci<nchannels;ci++){ in main()
299 X[(xi*NFREQS+xj)*nchannels+ci]+= in main()
300 0.1F*xb[(xi*NBANDS+bi)*nchannels+ci]; in main()
301 Y[(xi*yfreqs+xj)*nchannels+ci]+= in main()
302 0.1F*xb[(xi*NBANDS+bi)*nchannels+ci]; in main()
311 for(ci=0;ci<nchannels;ci++){ in main()
314 xtmp = X[xj*nchannels+ci]; in main()
315 ytmp = Y[xj*nchannels+ci]; in main()
319 xtmp2 = X[(xi*NFREQS+xj)*nchannels+ci]; in main()
320 ytmp2 = Y[(xi*yfreqs+xj)*nchannels+ci]; in main()
321 X[(xi*NFREQS+xj)*nchannels+ci] += xtmp; in main()
322 Y[(xi*yfreqs+xj)*nchannels+ci] += ytmp; in main()
345 for(ci=0;ci<nchannels;ci++){ in main()
348 re=Y[(xi*yfreqs+xj)*nchannels+ci]/X[(xi*NFREQS+xj)*nchannels+ci]; in main()
357 Eb /= (BANDS[bi+1]-BANDS[bi])*nchannels; in main()