/external/libopus/src/ |
D | opus_compare.c | 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() [all …]
|
/external/python/cpython2/Modules/ |
D | linuxaudiodev.c | 242 int rate, ssize, nchannels, n, fmt, emulate=0; in lad_setparameters() local 245 &rate, &ssize, &nchannels, &fmt, &emulate)) in lad_setparameters() 258 if (nchannels != 1 && nchannels != 2) { in lad_setparameters() 260 nchannels); in lad_setparameters() 291 if (ioctl(self->x_fd, SNDCTL_DSP_CHANNELS, &nchannels) == -1) { in lad_setparameters() 305 _ssize(lad_t *self, int *nchannels, int *ssize) in _ssize() argument 331 if (ioctl(self->x_fd, SNDCTL_DSP_CHANNELS, nchannels) < 0) in _ssize() 343 int nchannels=0, ssize=0; in lad_bufsize() local 345 if (_ssize(self, &nchannels, &ssize) < 0 || !ssize || !nchannels) { in lad_bufsize() 353 return PyInt_FromLong((ai.fragstotal * ai.fragsize) / (nchannels * ssize)); in lad_bufsize() [all …]
|
D | ossaudiodev.c | 538 _ssize(oss_audio_t *self, int *nchannels, int *ssize) in _ssize() argument 564 if (ioctl(self->fd, SNDCTL_DSP_CHANNELS, nchannels) < 0) in _ssize() 576 int nchannels=0, ssize=0; in oss_bufsize() local 578 if (_ssize(self, &nchannels, &ssize) < 0 || !nchannels || !ssize) { in oss_bufsize() 586 return PyInt_FromLong((ai.fragstotal * ai.fragsize) / (nchannels * ssize)); in oss_bufsize() 595 int nchannels=0, ssize=0; in oss_obufcount() local 597 if (_ssize(self, &nchannels, &ssize) < 0 || !nchannels || !ssize) { in oss_obufcount() 606 (ssize * nchannels)); in oss_obufcount() 615 int nchannels=0, ssize=0; in oss_obuffree() local 617 if (_ssize(self, &nchannels, &ssize) < 0 || !nchannels || !ssize) { in oss_obuffree() [all …]
|
D | audioop.c | 1097 int len, size, nchannels, inrate, outrate, weightA, weightB; in audioop_ratecv() local 1105 &nchannels, &inrate, &outrate, &state, in audioop_ratecv() 1110 if (nchannels < 1) { in audioop_ratecv() 1114 bytes_per_frame = size * nchannels; in audioop_ratecv() 1115 if (bytes_per_frame / nchannels != size) { in audioop_ratecv() 1145 if ((size_t)nchannels > PY_SIZE_MAX/sizeof(int)) { in audioop_ratecv() 1150 prev_i = (int *) malloc(nchannels * sizeof(int)); in audioop_ratecv() 1151 cur_i = (int *) malloc(nchannels * sizeof(int)); in audioop_ratecv() 1161 for (chan = 0; chan < nchannels; chan++) in audioop_ratecv() 1173 if (PyTuple_Size(samps) != nchannels) { in audioop_ratecv() [all …]
|
/external/python/cpython2/Lib/test/ |
D | 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) 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)
|
D | test_sunau.py | 16 nchannels = 2 variable in SunauPCM8Test 33 nchannels = 2 variable in SunauPCM16Test 52 nchannels = 2 variable in SunauPCM32Test 77 nchannels = 2 variable in SunauULAWTest
|
D | test_wave.py | 19 nchannels = 2 variable in WavePCM8Test 36 nchannels = 2 variable in WavePCM16Test 63 nchannels = 2 variable in WavePCM24Test 90 nchannels = 2 variable in WavePCM32Test
|
D | audiotests.py | 51 def check_params(self, f, nchannels, sampwidth, framerate, nframes, argument 53 self.assertEqual(f.getnchannels(), nchannels) 62 (nchannels, sampwidth, framerate, nframes, comptype, compname)) 73 f.setnchannels(self.nchannels) 82 self.assertEqual(f.getnchannels(), self.nchannels) 94 self.check_params(f, self.nchannels, self.sampwidth, self.framerate, 123 framesize = self.nchannels * self.sampwidth 197 framesize = self.nchannels * self.sampwidth 210 self.check_params(f, self.nchannels, self.sampwidth, self.framerate, 228 framesize = self.nchannels * self.sampwidth [all …]
|
D | test_ossaudiodev.py | 30 nchannels = au.getnchannels() 40 return (data, rate, 16, nchannels) 44 def play_sound_file(self, data, rate, ssize, nchannels): argument 75 expected_time = float(len(data)) / (ssize//8) / nchannels / rate 78 dsp.setparameters(AFMT_S16_NE, nchannels, rate)
|
D | test_aifc.py | 22 nchannels = 2 variable in AifcPCM8Test 39 nchannels = 2 variable in AifcPCM16Test 58 nchannels = 2 variable in AifcPCM24Test 83 nchannels = 2 variable in AifcPCM32Test 108 nchannels = 2 variable in AifcULAWTest
|
/external/python/cpython3/Lib/test/ |
D | audiotests.py | 29 def check_params(self, f, nchannels, sampwidth, framerate, nframes, argument 31 self.assertEqual(f.getnchannels(), nchannels) 40 (nchannels, sampwidth, framerate, nframes, comptype, compname)) 41 self.assertEqual(params.nchannels, nchannels) 57 f.setnchannels(self.nchannels) 65 self.assertEqual(f.getnchannels(), self.nchannels) 75 self.check_params(f, self.nchannels, self.sampwidth, self.framerate, 93 f.setnchannels(self.nchannels) 102 self.assertEqual(params.nchannels, self.nchannels) 113 f.setnchannels(self.nchannels) [all …]
|
D | test_sunau.py | 18 nchannels = 2 variable in SunauPCM8Test 35 nchannels = 2 variable in SunauPCM16Test 54 nchannels = 2 variable in SunauPCM24Test 79 nchannels = 2 variable in SunauPCM32Test 104 nchannels = 2 variable in SunauULAWTest
|
D | test_ossaudiodev.py | 31 nchannels = au.getnchannels() 41 return (data, rate, 16, nchannels) 45 def play_sound_file(self, data, rate, ssize, nchannels): argument 76 expected_time = float(len(data)) / (ssize/8) / nchannels / rate 79 dsp.setparameters(AFMT_S16_NE, nchannels, rate)
|
D | test_wave.py | 19 nchannels = 2 variable in WavePCM8Test 36 nchannels = 2 variable in WavePCM16Test 57 nchannels = 2 variable in WavePCM24Test 84 nchannels = 2 variable in WavePCM32Test
|
D | test_aifc.py | 23 nchannels = 2 variable in AifcPCM8Test 40 nchannels = 2 variable in AifcPCM16Test 59 nchannels = 2 variable in AifcPCM24Test 84 nchannels = 2 variable in AifcPCM32Test 109 nchannels = 2 variable in AifcULAWTest 130 nchannels = 2 variable in AifcALAWTest 179 self.assertEqual(params.nchannels, f.getnchannels()) 287 for nchannels in 0, -1: 289 b += b'COMM' + struct.pack('>LhlhhLL', 38, nchannels, 0, 8,
|
/external/python/cpython2/Lib/ |
D | audiodev.py | 106 def setnchannels(self, nchannels): argument 108 if nchannels == raw: 154 self.nchannels = 0 173 def setnchannels(self, nchannels): argument 174 self.nchannels = nchannels 185 info.o_channels = self.nchannels
|
D | 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
|
D | sunau.py | 315 def setnchannels(self, nchannels): argument 318 if nchannels not in (1, 2, 4): 320 self._nchannels = nchannels 377 nchannels, sampwidth, framerate, nframes, comptype, compname = params 378 self.setnchannels(nchannels)
|
D | wave.py | 335 def setnchannels(self, nchannels): argument 338 if nchannels < 1: 340 self._nchannels = nchannels 394 nchannels, sampwidth, framerate, nframes, comptype, compname = params 397 self.setnchannels(nchannels)
|
/external/python/cpython3/Modules/ |
D | ossaudiodev.c | 613 _ssize(oss_audio_t *self, int *nchannels, int *ssize) in _ssize() argument 639 if (ioctl(self->fd, SNDCTL_DSP_CHANNELS, nchannels) < 0) in _ssize() 651 int nchannels=0, ssize=0; in oss_bufsize() local 656 if (_ssize(self, &nchannels, &ssize) < 0 || !nchannels || !ssize) { in oss_bufsize() 664 return PyLong_FromLong((ai.fragstotal * ai.fragsize) / (nchannels * ssize)); in oss_bufsize() 673 int nchannels=0, ssize=0; in oss_obufcount() local 678 if (_ssize(self, &nchannels, &ssize) < 0 || !nchannels || !ssize) { in oss_obufcount() 687 (ssize * nchannels)); in oss_obufcount() 696 int nchannels=0, ssize=0; in oss_obuffree() local 701 if (_ssize(self, &nchannels, &ssize) < 0 || !nchannels || !ssize) { in oss_obuffree() [all …]
|
D | audioop.c | 1310 int nchannels, int inrate, int outrate, PyObject *state, in audioop_ratecv_impl() argument 1322 if (nchannels < 1) { in audioop_ratecv_impl() 1327 if (width > INT_MAX / nchannels) { in audioop_ratecv_impl() 1335 bytes_per_frame = width * nchannels; in audioop_ratecv_impl() 1361 if ((size_t)nchannels > SIZE_MAX/sizeof(int)) { in audioop_ratecv_impl() 1366 prev_i = (int *) PyMem_Malloc(nchannels * sizeof(int)); in audioop_ratecv_impl() 1367 cur_i = (int *) PyMem_Malloc(nchannels * sizeof(int)); in audioop_ratecv_impl() 1377 for (chan = 0; chan < nchannels; chan++) in audioop_ratecv_impl() 1389 if (PyTuple_Size(samps) != nchannels) { in audioop_ratecv_impl() 1394 for (chan = 0; chan < nchannels; chan++) { in audioop_ratecv_impl() [all …]
|
/external/python/cpython3/Lib/ |
D | sndhdr.py | 45 SndHeaders.nchannels.__doc__ = ("""The number of channels or 0 if it cannot be 108 nchannels = func(h[20:24]) 119 frame_size = sample_size * nchannels 124 return filetype, rate, nchannels, nframe, sample_bits
|
D | wave.py | 337 def setnchannels(self, nchannels): argument 340 if nchannels < 1: 342 self._nchannels = nchannels 396 nchannels, sampwidth, framerate, nframes, comptype, compname = params 399 self.setnchannels(nchannels)
|
D | sunau.py | 342 def setnchannels(self, nchannels): argument 345 if nchannels not in (1, 2, 4): 347 self._nchannels = nchannels 404 nchannels, sampwidth, framerate, nframes, comptype, compname = params 405 self.setnchannels(nchannels)
|
/external/pdfium/third_party/lcms/src/ |
D | cmsalpha.c | 411 cmsUInt32Number nchannels = T_CHANNELS(Format); in ComputeIncrementsForChunky() local 412 cmsUInt32Number total_chans = nchannels + extra; in ComputeIncrementsForChunky() 455 ComponentStartingOrder[i] = channels[i + nchannels]; in ComputeIncrementsForChunky() 469 cmsUInt32Number nchannels = T_CHANNELS(Format); in ComputeIncrementsForPlanar() local 470 cmsUInt32Number total_chans = nchannels + extra; in ComputeIncrementsForPlanar() 511 ComponentStartingOrder[i] = channels[i + nchannels]; in ComputeIncrementsForPlanar()
|