HomeSort by relevance Sort by last modified time
    Searched refs:nchannels (Results 1 - 25 of 43) sorted by null

1 2

  /external/chromium_org/third_party/opus/src/src/
opus_compare.c 182 int nchannels; local
193 nchannels=1;
195 nchannels=2;
232 if(nchannels==1){
236 ylength=read_pcm16(&y,fin2,nchannels);
249 xb=(float *)opus_malloc(nframes*NBANDS*nchannels*sizeof(*xb));
250 X=(float *)opus_malloc(nframes*NFREQS*nchannels*sizeof(*X));
251 Y=(float *)opus_malloc(nframes*yfreqs*nchannels*sizeof(*Y));
254 band_energy(xb,X,BANDS,NBANDS,x,nchannels,nframes,
257 band_energy(NULL,Y,BANDS,ybands,y,nchannels,nframes
    [all...]
  /external/qemu/audio/
audio_win_int.c 20 wfx->nChannels = as->nchannels;
22 wfx->nAvgBytesPerSec = as->freq << (as->nchannels == 2);
23 wfx->nBlockAlign = 1 << (as->nchannels == 2);
69 switch (wfx->nChannels) {
71 as->nchannels = 1;
75 as->nchannels = 2;
81 wfx->nChannels
wavcapture.c 11 int nchannels; member in struct:__anon27528
75 wav->freq, wav->bits, wav->nchannels,
85 int bits, int nchannels)
105 if (nchannels != 1 && nchannels != 2) {
107 nchannels);
111 stereo = nchannels == 2;
115 as.nchannels = 1 << stereo;
128 le_store (hdr + 22, as.nchannels, 2);
143 wav->nchannels = nchannels
    [all...]
alsaaudio.c 158 int nchannels; member in struct:alsa_params_req
169 int nchannels; member in struct:alsa_params_obt
492 req->nchannels, obt->nchannels);
537 unsigned int freq, nchannels; local
544 nchannels = req->nchannels;
591 &nchannels
595 req->nchannels);
599 if (nchannels != 1 && nchannels != 2)
    [all...]
wavaudio.c 128 stereo = wav_as.nchannels == 2;
159 le_store (hdr + 22, hw->info.nchannels, 2);
253 int nchannels, freq, format, bits; local
276 nchannels = le_read( hdr+22, 2 );
284 switch (nchannels) {
289 nchannels, path);
303 if (format*8/nchannels != bits) {
305 bits, format*8/nchannels, path);
309 wav_as.nchannels = nchannels;
    [all...]
ossaudio.c 87 int nchannels; member in struct:oss_params
235 req->nchannels, obt->nchannels);
274 int fmt, freq, nchannels; local
289 nchannels = req->nchannels;
297 if (ioctl (fd, SNDCTL_DSP_CHANNELS, &nchannels)) {
299 req->nchannels);
357 obt->nchannels = nchannels;
    [all...]
audio.h 50 int nchannels; member in struct:audsettings
169 int bits, int nchannels);
audio.c 170 .nchannels = 2,
182 .nchannels = 2,
613 dolog ("frequency=%d nchannels=%d fmt=", as->freq, as->nchannels);
658 invalid = as->nchannels != 1 && as->nchannels != 2;
701 && info->nchannels == as->nchannels
735 info->nchannels = as->nchannels;
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_wave.py 6 nchannels = 2 variable
26 self.f.setnchannels(nchannels)
30 output = '\0' * nframes * nchannels * sampwidth
35 self.assertEqual(nchannels, self.f.getnchannels())
test_linuxaudiodev.py 35 size, enc, rate, nchannels, extra = sunaudio.gethdr(fp)
52 self.dev.setparameters(rate, 16, nchannels, fmt)
60 nchannels = 1
62 self.dev.setparameters(-1, size, nchannels, fmt)
66 self.dev.setparameters(rate, -2, nchannels, fmt)
72 self.assertEqual(err.args[0], "nchannels must be 1 or 2, not 3")
74 self.dev.setparameters(rate, size, nchannels, 177)
78 self.dev.setparameters(rate, size, nchannels, linuxaudiodev.AFMT_U16_LE)
83 self.dev.setparameters(rate, 16, nchannels, fmt)
test_ossaudiodev.py 30 nchannels = au.getnchannels()
40 return (data, rate, 16, nchannels)
44 def play_sound_file(self, data, rate, ssize, nchannels):
75 expected_time = float(len(data)) / (ssize//8) / nchannels / rate
78 dsp.setparameters(AFMT_S16_NE, nchannels, rate)
129 for config in [(fmt, 300, rate), # ridiculous nchannels
130 (fmt, -5, rate), # impossible nchannels
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_wave.py 6 nchannels = 2 variable
26 self.f.setnchannels(nchannels)
30 output = '\0' * nframes * nchannels * sampwidth
35 self.assertEqual(nchannels, self.f.getnchannels())
test_linuxaudiodev.py 35 size, enc, rate, nchannels, extra = sunaudio.gethdr(fp)
52 self.dev.setparameters(rate, 16, nchannels, fmt)
60 nchannels = 1
62 self.dev.setparameters(-1, size, nchannels, fmt)
66 self.dev.setparameters(rate, -2, nchannels, fmt)
72 self.assertEqual(err.args[0], "nchannels must be 1 or 2, not 3")
74 self.dev.setparameters(rate, size, nchannels, 177)
78 self.dev.setparameters(rate, size, nchannels, linuxaudiodev.AFMT_U16_LE)
83 self.dev.setparameters(rate, 16, nchannels, fmt)
test_ossaudiodev.py 30 nchannels = au.getnchannels()
40 return (data, rate, 16, nchannels)
44 def play_sound_file(self, data, rate, ssize, nchannels):
75 expected_time = float(len(data)) / (ssize//8) / nchannels / rate
78 dsp.setparameters(AFMT_S16_NE, nchannels, rate)
129 for config in [(fmt, 300, rate), # ridiculous nchannels
130 (fmt, -5, rate), # impossible nchannels
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
sndhdr.py 91 nchannels = f(h[20:24])
102 frame_size = sample_size * nchannels
103 return type, rate, nchannels, data_size//frame_size, sample_bits
135 nchannels = get_short_le(h[22:24])
138 return 'wav', rate, nchannels, -1, sample_bits
audiodev.py 106 def setnchannels(self, nchannels):
108 if nchannels == raw:
148 ## if 0: access outrate, sampwidth, nchannels, inited_outrate, inited_width, \
154 self.nchannels = 0
173 def setnchannels(self, nchannels):
174 self.nchannels = nchannels
185 info.o_channels = self.nchannels
sunau.py 306 def setnchannels(self, nchannels):
309 if nchannels not in (1, 2, 4):
311 self._nchannels = nchannels
368 nchannels, sampwidth, framerate, nframes, comptype, compname = params
369 self.setnchannels(nchannels)
wave.py 330 def setnchannels(self, nchannels):
333 if nchannels < 1:
335 self._nchannels = nchannels
389 nchannels, sampwidth, framerate, nframes, comptype, compname = params
392 self.setnchannels(nchannels)
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
sndhdr.py 91 nchannels = f(h[20:24])
102 frame_size = sample_size * nchannels
103 return type, rate, nchannels, data_size//frame_size, sample_bits
135 nchannels = get_short_le(h[22:24])
138 return 'wav', rate, nchannels, -1, sample_bits
audiodev.py 106 def setnchannels(self, nchannels):
108 if nchannels == raw:
148 ## if 0: access outrate, sampwidth, nchannels, inited_outrate, inited_width, \
154 self.nchannels = 0
173 def setnchannels(self, nchannels):
174 self.nchannels = nchannels
185 info.o_channels = self.nchannels
sunau.py 306 def setnchannels(self, nchannels):
309 if nchannels not in (1, 2, 4):
311 self._nchannels = nchannels
368 nchannels, sampwidth, framerate, nframes, comptype, compname = params
369 self.setnchannels(nchannels)
wave.py 330 def setnchannels(self, nchannels):
333 if nchannels < 1:
335 self._nchannels = nchannels
389 nchannels, sampwidth, framerate, nframes, comptype, compname = params
392 self.setnchannels(nchannels)
  /external/qemu/android/
audio-test.c 58 as.nchannels = 1;
  /external/opencv/cxcore/include/
cvwimage.h 198 int Channels() const {return image_->nChannels; }
267 assert(!img || img->nChannels == Channels());
310 WImageBuffer(int width, int height, int nchannels) : WImage<T>(0) {
311 Allocate(width, height, nchannels);
320 void Allocate(int width, int height, int nchannels);
531 inline void WImageBuffer<T>::Allocate(int width, int height, int nchannels)
534 WImage<T>::Height() != height || WImage<T>::Channels() != nchannels) {
537 WImage<T>::Depth(), nchannels);
565 WImageView<T>::WImageView(T* data, int width, int height, int nchannels, int width_step)
568 cvInitImageHeader(&header_, cvSize(width, height), WImage<T>::Depth(), nchannels);
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/plat-mac/
Audio_mac.py 41 def setnchannels(self, nchannels):
42 self._nchannels = nchannels

Completed in 527 milliseconds

1 2