Lines Matching refs:_nchannels
54 static size_t read_pcm16(float **_samples,FILE *_fin,int _nchannels){ in read_pcm16() argument
64 nread=fread(buf,2*_nchannels,1024/(2*_nchannels),_fin); in read_pcm16()
70 _nchannels*csamples*sizeof(*samples)); in read_pcm16()
74 for(ci=0;ci<_nchannels;ci++){ in read_pcm16()
76 s=buf[2*(xi*_nchannels+ci)+1]<<8|buf[2*(xi*_nchannels+ci)]; in read_pcm16()
78 samples[(nsamples+xi)*_nchannels+ci]=s; in read_pcm16()
84 _nchannels*nsamples*sizeof(*samples)); in read_pcm16()
89 const float *_in,int _nchannels,size_t _nframes,int _window_sz, in band_energy() argument
98 window=(float *)opus_malloc((3+_nchannels)*_window_sz*sizeof(*window)); in band_energy()
116 for(ci=0;ci<_nchannels;ci++){ in band_energy()
118 x[ci*_window_sz+xk]=window[xk]*_in[(xi*_step+xk)*_nchannels+ci]; in band_energy()
124 for(ci=0;ci<_nchannels;ci++){ in band_energy()
138 _ps[(xi*ps_sz+xj)*_nchannels+ci]=re*re+im*im+100000; in band_energy()
139 p[ci]+=_ps[(xi*ps_sz+xj)*_nchannels+ci]; in band_energy()
143 _out[(xi*_nbands+bi)*_nchannels]=p[0]/(_bands[bi+1]-_bands[bi]); in band_energy()
144 if(_nchannels==2){ in band_energy()
145 _out[(xi*_nbands+bi)*_nchannels+1]=p[1]/(_bands[bi+1]-_bands[bi]); in band_energy()