Home
last modified time | relevance | path

Searched refs:nframes (Results 1 – 25 of 54) sorted by relevance

123

/external/python/cpython3/Lib/test/
Daudiotests.py29 def check_params(self, f, nchannels, sampwidth, framerate, nframes, argument
34 self.assertEqual(f.getnframes(), nframes)
40 (nchannels, sampwidth, framerate, nframes, comptype, compname))
44 self.assertEqual(params.nframes, nframes)
74 def check_file(self, testfile, nframes, frames): argument
79 self.assertEqual(f.getnframes(), nframes)
80 self.assertEqual(f.readframes(nframes), frames)
84 f.setnframes(self.nframes)
87 self.nframes, self.comptype, self.compname)
139 f.setnframes(self.nframes)
[all …]
Dtest_sunau.py21 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
Dtest_wave.py22 nframes = 48 variable in WavePCM8Test
39 nframes = 48 variable in WavePCM16Test
60 nframes = 48 variable in WavePCM24Test
87 nframes = 48 variable in WavePCM32Test
Dtest_aifc.py26 nframes = 48 variable in AifcPCM8Test
43 nframes = 48 variable in AifcPCM16Test
62 nframes = 48 variable in AifcPCM24Test
87 nframes = 48 variable in AifcPCM32Test
112 nframes = 48 variable in AifcULAWTest
133 nframes = 48 variable in AifcALAWTest
182 self.assertEqual(params.nframes, f.getnframes())
/external/python/cpython2/Lib/test/
Daudiotests.py51 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 …]
Dtest_sunau.py19 nframes = 48 variable in SunauPCM8Test
36 nframes = 48 variable in SunauPCM16Test
55 nframes = 48 variable in SunauPCM32Test
80 nframes = 48 variable in SunauULAWTest
Dtest_wave.py22 nframes = 48 variable in WavePCM8Test
39 nframes = 48 variable in WavePCM16Test
66 nframes = 48 variable in WavePCM24Test
93 nframes = 48 variable in WavePCM32Test
/external/adhd/cras/src/server/
Dinput_data.c19 unsigned int nframes) in input_data_run() argument
27 while (nframes) { in input_data_run()
29 writable = MIN(nframes, writable); in input_data_run()
39 nframes -= writable; in input_data_run()
75 unsigned int nframes) in input_data_set_all_streams_read() argument
80 if (float_buffer_level(data->fbuffer) < nframes) { in input_data_set_all_streams_read()
83 nframes, float_buffer_level(data->fbuffer)); in input_data_set_all_streams_read()
87 float_buffer_read(data->fbuffer, nframes); in input_data_set_all_streams_read()
Dcras_apm_list.c419 unsigned int nframes) in reverse_data_run() argument
430 while (nframes) { in reverse_data_run()
433 writable = MIN(nframes, writable); in reverse_data_run()
441 nframes -= writable; in reverse_data_run()
521 unsigned int writable, nframes, nread; in cras_apm_list_process() local
535 nframes = writable; in cras_apm_list_process()
536 while (nframes) { in cras_apm_list_process()
537 nread = nframes; in cras_apm_list_process()
558 nframes -= nread; in cras_apm_list_process()
Dcras_iodev.c1006 unsigned int nframes, int *is_non_empty, in cras_iodev_put_output_buffer() argument
1020 iodev->pre_dsp_hook(frames, nframes, iodev->ext_format, in cras_iodev_put_output_buffer()
1027 rc = apply_dsp(iodev, frames, nframes); in cras_iodev_put_output_buffer()
1032 iodev->post_dsp_hook(frames, nframes, fmt, in cras_iodev_put_output_buffer()
1040 cras_mix_mute_buffer(frames, frame_bytes, nframes); in cras_iodev_put_output_buffer()
1064 fmt->format, frames, nframes, in cras_iodev_put_output_buffer()
1067 cras_ramp_update_ramped_frames(iodev->ramp, nframes); in cras_iodev_put_output_buffer()
1071 unsigned int nsamples = nframes * fmt->num_channels; in cras_iodev_put_output_buffer()
1080 nframes); in cras_iodev_put_output_buffer()
1081 rate_estimator_add_frames(iodev->rate_est, nframes); in cras_iodev_put_output_buffer()
[all …]
/external/u-boot/arch/arm/mach-tegra/
Divc.c91 BUG_ON(frame >= ivc->nframes); in tegra_ivc_frame_addr()
141 if (w_count - r_count > ivc->nframes) in tegra_ivc_channel_empty()
155 ivc->nframes; in tegra_ivc_channel_full()
163 if (ivc->r_pos == ivc->nframes - 1) in tegra_ivc_advance_rx()
174 if (ivc->w_pos == ivc->nframes - 1) in tegra_ivc_advance_tx()
281 ivc->nframes - 1) in tegra_ivc_read_advance()
482 static int check_ivc_params(ulong qbase1, ulong qbase2, uint32_t nframes, in check_ivc_params() argument
494 if ((uint64_t)nframes * (uint64_t)frame_size >= 0x100000000) { in check_ivc_params()
515 if (qbase1 + frame_size * nframes > qbase2) in check_ivc_params()
518 if (qbase2 + frame_size * nframes > qbase1) in check_ivc_params()
[all …]
/external/libopus/src/
Dopus_compare.c177 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/
Dsunau.py257 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
Dwave.py227 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/cpython3/Lib/
Dsunau.py270 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
Dwave.py234 def readframes(self, nframes): argument
241 if nframes == 0:
243 data = self._data_chunk.read(nframes * self._framesize)
374 def setnframes(self, nframes): argument
377 self._nframes = nframes
397 nchannels, sampwidth, framerate, nframes, comptype, compname = params
403 self.setnframes(nframes)
428 nframes = len(data) // (self._sampwidth * self._nchannels)
435 self._nframeswritten = self._nframeswritten + nframes
Daifc.py263 _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/
Dpcm_cras.c122 unsigned int nframes, in pcm_cras_process_cb() argument
148 memset(samples, 0, nframes * frame_bytes); in pcm_cras_process_cb()
149 return nframes; in pcm_cras_process_cb()
152 if (nframes > io->period_size) in pcm_cras_process_cb()
153 nframes = io->period_size; in pcm_cras_process_cb()
178 while (copied_frames < nframes) { in pcm_cras_process_cb()
179 snd_pcm_uframes_t frames = nframes - copied_frames; in pcm_cras_process_cb()
210 return nframes; in pcm_cras_process_cb()
/external/python/cpython2/Mac/Demo/sound/
Dplayaiff.py12 nframes = min(af.getnframes(), 100000) variable
13 frames = af.readframes(nframes)
29 nframes)
/external/python/cpython3/Doc/library/
Dwave.rst111 framerate, nframes, comptype, compname)``, equivalent to output of the
158 *nframes* value must be accurate when the first frame data is written. An
159 accurate *nframes* value can be achieved either by calling
165 the number of frames in the data and set *nframes* accordingly before writing
176 Make sure *nframes* is correct, and close the file if it was opened by
178 an exception if the output stream is not seekable and *nframes* does not
216 The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype,
229 Write audio frames, without correcting *nframes*.
237 Write audio frames and make sure *nframes* is correct. It will raise an
240 previously set value for *nframes*.
/external/python/cpython2/Lib/plat-mac/
DAudio_mac.py52 nframes = len(data) / self._nchannels / self._sampwidth
53 if len(data) != nframes * self._nchannels * self._sampwidth:
56 self.getfilled() + nframes > \
70 nframes)
/external/libxcam/plugins/smart/dvs/libdvs/
Dtest-image-stabilization.cpp130 int nframes = 0; in main() local
134 nframes++; in main()
135 cout << nframes << endl; in main()
/external/adhd/cras/src/tests/
Dloopback_iodev_unittest.cc136 unsigned int nframes = 1024; in TEST_F() local
150 loop_hook(buf_, nframes, &fmt_, loop_hook_cb_data); in TEST_F()
154 EXPECT_EQ(nframes, nread); in TEST_F()
155 rc = memcmp(area->channels[0].buf, buf_, nframes * kFrameBytes); in TEST_F()
/external/u-boot/arch/arm/include/asm/arch-tegra/
Divc.h71 uint32_t nframes; member
175 uint32_t nframes, uint32_t frame_size,
/external/python/cpython2/Doc/library/
Dwave.rst101 Returns a tuple ``(nchannels, sampwidth, framerate, nframes, comptype,
151 Make sure *nframes* is correct, and close the file if it was opened by
184 The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype,
197 Write audio frames, without correcting *nframes*.
202 Write audio frames and make sure *nframes* is correct.

123