/external/python/cpython3/Lib/test/ |
D | audiotests.py | 28 def check_params(self, f, nchannels, sampwidth, framerate, nframes, argument 33 self.assertEqual(f.getnframes(), nframes) 39 (nchannels, sampwidth, framerate, nframes, comptype, compname)) 43 self.assertEqual(params.nframes, nframes) 62 def check_file(self, testfile, nframes, frames): argument 67 self.assertEqual(f.getnframes(), nframes) 68 self.assertEqual(f.readframes(nframes), frames) 72 f.setnframes(self.nframes) 75 self.nframes, self.comptype, self.compname) 127 f.setnframes(self.nframes) [all …]
|
D | test_sunau.py | 21 nframes = 48 variable in SunauPCM8Test 38 nframes = 48 variable in SunauPCM16Test 57 nframes = 48 variable in SunauPCM24Test 82 nframes = 48 variable in SunauPCM32Test 107 nframes = 48 variable in SunauULAWTest
|
D | test_wave.py | 22 nframes = 48 variable in WavePCM8Test 39 nframes = 48 variable in WavePCM16Test 60 nframes = 48 variable in WavePCM24Test 87 nframes = 48 variable in WavePCM32Test
|
/external/python/cpython2/Lib/test/ |
D | audiotests.py | 51 def check_params(self, f, nchannels, sampwidth, framerate, nframes, argument 56 self.assertEqual(f.getnframes(), nframes) 62 (nchannels, sampwidth, framerate, nframes, comptype, compname)) 79 def check_file(self, testfile, nframes, frames): argument 85 self.assertEqual(f.getnframes(), nframes) 86 self.assertEqual(f.readframes(nframes), frames) 92 f.setnframes(self.nframes) 95 self.nframes, self.comptype, self.compname) 100 f.setnframes(self.nframes) 104 self.check_file(TESTFN, self.nframes, self.frames) [all …]
|
D | test_sunau.py | 19 nframes = 48 variable in SunauPCM8Test 36 nframes = 48 variable in SunauPCM16Test 55 nframes = 48 variable in SunauPCM32Test 80 nframes = 48 variable in SunauULAWTest
|
D | test_wave.py | 22 nframes = 48 variable in WavePCM8Test 39 nframes = 48 variable in WavePCM16Test 66 nframes = 48 variable in WavePCM24Test 93 nframes = 48 variable in WavePCM32Test
|
/external/arm-trusted-firmware/plat/nvidia/tegra/drivers/bpmp_ipc/ |
D | ivc.c | 98 if (((wr_count - rd_count) > ivc->nframes) || (wr_count == rd_count)) { in ivc_channel_empty() 117 return ((wr_count - rd_count) >= ivc->nframes); in ivc_channel_full() 141 if (ivc->w_pos == (ivc->nframes - (uint32_t)1U)) { in ivc_advance_tx() 152 if (ivc->r_pos == (ivc->nframes - (uint32_t)1U)) { in ivc_advance_rx() 225 assert(frame < ivc->nframes); in ivc_frame_pointer() 270 if (ivc_channel_avail_count(ivc, ivc->rx_channel) == (ivc->nframes - (uint32_t)1U)) { in tegra_ivc_read() 317 if (ivc_channel_avail_count(ivc, ivc->rx_channel) == (ivc->nframes - (uint32_t)1U)) { in tegra_ivc_read_advance() 568 uint32_t nframes, uint32_t frame_size) in check_ivc_params() argument 576 if (((uint64_t)nframes * (uint64_t)frame_size) >= 0x100000000ULL) { in check_ivc_params() 601 if ((queue_base1 + ((uint64_t)frame_size * nframes)) > queue_base2) { in check_ivc_params() [all …]
|
D | ivc.h | 26 uint32_t nframes; member 34 uint32_t nframes, uint32_t frame_size,
|
/external/adhd/cras/src/server/ |
D | input_data.c | 18 void input_data_run(struct ext_dsp_module *ext, unsigned int nframes) in input_data_run() argument 26 while (nframes) { in input_data_run() 28 writable = MIN(nframes, writable); in input_data_run() 40 nframes -= writable; in input_data_run() 76 unsigned int nframes) in input_data_set_all_streams_read() argument 81 if (float_buffer_level(data->fbuffer) < nframes) { in input_data_set_all_streams_read() 85 nframes, float_buffer_level(data->fbuffer)); in input_data_set_all_streams_read() 89 float_buffer_read(data->fbuffer, nframes); in input_data_set_all_streams_read()
|
D | cras_loopback_iodev.c | 68 static int sample_hook(const uint8_t *frames, unsigned int nframes, in sample_hook() argument 78 frames_to_copy = MIN(buf_writable(sbuf) / frame_bytes, nframes); in sample_hook() 86 nframes -= frames_to_copy; in sample_hook() 90 ATLOG(atlog, AUDIO_THREAD_LOOPBACK_SAMPLE_HOOK, nframes + frames_copied, in sample_hook() 233 static int put_record_buffer(struct cras_iodev *iodev, unsigned nframes) in put_record_buffer() argument 239 buf_increment_read(sbuf, (size_t)nframes * (size_t)frame_bytes); in put_record_buffer() 240 loopdev->read_frames += nframes; in put_record_buffer() 241 ATLOG(atlog, AUDIO_THREAD_LOOPBACK_PUT, nframes, 0, 0); in put_record_buffer()
|
D | cras_apm_list.c | 490 void reverse_data_run(struct ext_dsp_module *ext, unsigned int nframes) in reverse_data_run() argument 501 while (nframes) { in reverse_data_run() 504 writable = MIN(nframes, writable); in reverse_data_run() 512 nframes -= writable; in reverse_data_run() 604 unsigned int writable, nframes, nread; in cras_apm_list_process() local 618 nframes = writable; in cras_apm_list_process() 619 while (nframes) { in cras_apm_list_process() 620 nread = nframes; in cras_apm_list_process() 641 nframes -= nread; in cras_apm_list_process()
|
/external/tensorflow/tensorflow/core/lib/gif/ |
D | gif_io_test.cc | 46 int nframes, w, h, c; in TestDecodeGif() local 51 nframes = frame_cnt; in TestDecodeGif() 60 ASSERT_EQ(nframes, testcase.num_frames); in TestDecodeGif() 113 int nframes, w, h, c; in TEST() local 118 nframes = num_frames; in TEST() 140 int nframes; in TestExpandAnimations() local 146 nframes = frame_cnt; in TestExpandAnimations() 152 ASSERT_EQ(nframes, 1); in TestExpandAnimations() 168 int nframes; in TestInvalidGifFormat() local 172 nframes = frame_cnt; in TestInvalidGifFormat()
|
/external/adhd/cras/src/tests/ |
D | empty_iodev_unittest.cc | 24 unsigned nframes; in TEST() local 35 nframes = iodev->frames_queued(iodev, &ts); in TEST() 36 ASSERT_EQ(480, nframes); in TEST() 40 nframes = 5000; in TEST() 42 iodev->get_buffer(iodev, &area, &nframes); in TEST() 43 ASSERT_EQ(4096, nframes); in TEST()
|
D | loopback_iodev_unittest.cc | 190 unsigned int nframes = 1024; in TEST_F() local 204 loop_hook(buf_, nframes, &fmt_, loop_in_); in TEST_F() 208 EXPECT_EQ(nframes, nread); in TEST_F() 209 rc = memcmp(area->channels[0].buf, buf_, nframes * kFrameBytes); in TEST_F()
|
/external/libopus/src/ |
D | opus_compare.c | 177 size_t nframes; in main() local 248 nframes=(xlength-TEST_WIN_SIZE+TEST_WIN_STEP)/TEST_WIN_STEP; 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() 260 for(xi=0;xi<nframes;xi++){ in main() 316 for(xi=1;xi<nframes;xi++){ in main() 338 for(xi=0;xi<nframes;xi++){ in main() [all …]
|
/external/python/cpython2/Lib/ |
D | sunau.py | 257 def readframes(self, nframes): argument 259 if nframes == AUDIO_UNKNOWN_SIZE: 262 data = self._file.read(nframes * self._framesize) 349 def setnframes(self, nframes): argument 352 if nframes < 0: 354 self._nframes = nframes 377 nchannels, sampwidth, framerate, nframes, comptype, compname = params 381 self.setnframes(nframes) 397 nframes = len(data) // self._framesize 399 self._nframeswritten = self._nframeswritten + nframes
|
D | wave.py | 227 def readframes(self, nframes): argument 234 if nframes == 0: 244 nitems = nframes * self._nchannels 256 data = self._data_chunk.read(nframes * self._framesize) 371 def setnframes(self, nframes): argument 374 self._nframes = nframes 394 nchannels, sampwidth, framerate, nframes, comptype, compname = params 400 self.setnframes(nframes) 423 nframes = len(data) // (self._sampwidth * self._nchannels) 440 self._nframeswritten = self._nframeswritten + nframes
|
/external/python/cpython2/Mac/Demo/sound/ |
D | playaiff.py | 12 nframes = min(af.getnframes(), 100000) variable 13 frames = af.readframes(nframes) 29 nframes)
|
/external/python/cpython3/Lib/ |
D | sunau.py | 270 def readframes(self, nframes): argument 272 if nframes == AUDIO_UNKNOWN_SIZE: 275 data = self._file.read(nframes * self._framesize) 376 def setnframes(self, nframes): argument 379 if nframes < 0: 381 self._nframes = nframes 404 nchannels, sampwidth, framerate, nframes, comptype, compname = params 408 self.setnframes(nframes) 426 nframes = len(data) // self._framesize 428 self._nframeswritten = self._nframeswritten + nframes
|
D | wave.py | 233 def readframes(self, nframes): argument 240 if nframes == 0: 242 data = self._data_chunk.read(nframes * self._framesize) 373 def setnframes(self, nframes): argument 376 self._nframes = nframes 396 nchannels, sampwidth, framerate, nframes, comptype, compname = params 402 self.setnframes(nframes) 427 nframes = len(data) // (self._sampwidth * self._nchannels) 434 self._nframeswritten = self._nframeswritten + nframes
|
D | aifc.py | 263 _aifc_params.nframes.__doc__ = 'Number of audio frames' 428 def readframes(self, nframes): argument 436 if nframes == 0: 438 data = self._ssnd_chunk.read(nframes * self._framesize) 650 def setnframes(self, nframes): argument 653 self._nframes = nframes 679 nchannels, sampwidth, framerate, nframes, comptype, compname = params 688 self.setnframes(nframes) 728 nframes = len(data) // (self._sampwidth * self._nchannels) 732 self._nframeswritten = self._nframeswritten + nframes
|
/external/adhd/cras/src/alsa_plugin/ |
D | pcm_cras.c | 119 uint8_t *playback_samples, unsigned int nframes, in pcm_cras_process_cb() argument 144 memset(samples, 0, nframes * frame_bytes); in pcm_cras_process_cb() 145 return nframes; in pcm_cras_process_cb() 148 if (nframes > io->period_size) in pcm_cras_process_cb() 149 nframes = io->period_size; in pcm_cras_process_cb() 174 while (copied_frames < nframes) { in pcm_cras_process_cb() 175 snd_pcm_uframes_t frames = nframes - copied_frames; in pcm_cras_process_cb() 203 return nframes; in pcm_cras_process_cb()
|
/external/adhd/cras/client/libcras/src/ |
D | cras_stream.rs | 73 fn trigger(&mut self, nframes: usize) { in trigger() 75 if let Err(e) = self.header.commit_written_frames(nframes as u32) { in trigger() 78 if let Err(e) = self.audio_sock.data_ready(nframes as u32) { in trigger() 105 fn trigger(&mut self, nframes: usize) { in trigger() 107 if let Err(e) = self.header.commit_read_frames(nframes as u32) { in trigger() 110 if let Err(e) = self.audio_sock.capture_ready(nframes as u32) { in trigger()
|
/external/python/cpython3/Doc/library/ |
D | wave.rst | 104 framerate, nframes, comptype, compname)``, equivalent to output of the 151 *nframes* value must be accurate when the first frame data is written. An 152 accurate *nframes* value can be achieved either by calling 158 the number of frames in the data and set *nframes* accordingly before writing 169 Make sure *nframes* is correct, and close the file if it was opened by 171 an exception if the output stream is not seekable and *nframes* does not 209 The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype, 222 Write audio frames, without correcting *nframes*. 230 Write audio frames and make sure *nframes* is correct. It will raise an 233 previously set value for *nframes*.
|
/external/python/cpython2/Lib/plat-mac/ |
D | Audio_mac.py | 52 nframes = len(data) / self._nchannels / self._sampwidth 53 if len(data) != nframes * self._nchannels * self._sampwidth: 56 self.getfilled() + nframes > \ 70 nframes)
|