Home
last modified time | relevance | path

Searched refs:num_samples (Results 1 – 23 of 23) sorted by relevance

/openbmc/openbmc/meta-openembedded/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing/
H A D0006-common_audio-implement-endianness-conversion-in-wav-.patch24 size_t WavReader::ReadSamples(size_t num_samples, int16_t* samples) {
29 num_samples = std::min(rtc::checked_cast<uint32_t>(num_samples),
31 @@ -76,6 +73,13 @@ size_t WavReader::ReadSamples(size_t num_samples, int16_t* samples) {
32 RTC_CHECK(read == num_samples || feof(file_handle_));
48 void WavWriter::WriteSamples(const int16_t* samples, size_t num_samples) {
54 + int16_t* converted_samples = static_cast<int16_t*>(malloc(num_samples * sizeof(*samples)));
56 + for (int i = 0; i < num_samples; i++)
61 + fwrite(converted_samples, sizeof(*converted_samples), num_samples,
66 fwrite(samples, sizeof(*samples), num_samples, file_handle_);
68 RTC_CHECK_EQ(num_samples, written);
/openbmc/linux/drivers/comedi/drivers/
H A Ddas16m1.c379 u16 num_samples; in das16m1_handler() local
390 num_samples = 0; in das16m1_handler()
402 num_samples = -hw_counter - devpriv->adc_count; in das16m1_handler()
406 if (num_samples > cmd->stop_arg * cmd->chanlist_len) in das16m1_handler()
407 num_samples = cmd->stop_arg * cmd->chanlist_len; in das16m1_handler()
410 if (num_samples > DAS16M1_AI_FIFO_SZ) in das16m1_handler()
411 num_samples = DAS16M1_AI_FIFO_SZ; in das16m1_handler()
412 insw(dev->iobase, devpriv->ai_buffer, num_samples); in das16m1_handler()
413 comedi_buf_write_samples(s, devpriv->ai_buffer, num_samples); in das16m1_handler()
414 devpriv->adc_count += num_samples; in das16m1_handler()
H A Dcb_pcidas64.c2254 unsigned int num_samples; in dma_transfer_size() local
2261 return num_samples; in dma_transfer_size()
2679 int num_samples; in pio_drain_ai_fifo_16() local
2704 num_samples = in pio_drain_ai_fifo_16()
2707 num_samples = write_index - read_index; in pio_drain_ai_fifo_16()
2708 if (num_samples < 0) { in pio_drain_ai_fifo_16()
2714 num_samples = comedi_nsamples_left(s, num_samples); in pio_drain_ai_fifo_16()
2715 if (num_samples == 0) in pio_drain_ai_fifo_16()
2718 for (i = 0; i < num_samples; i++) { in pio_drain_ai_fifo_16()
2782 int num_samples = 0; in drain_dma_buffers() local
[all …]
H A Dadl_pci9111.c398 unsigned int num_samples = comedi_bytes_to_samples(s, num_bytes); in pci9111_ai_munge() local
401 for (i = 0; i < num_samples; i++) in pci9111_ai_munge()
H A Dcb_pcidas.c1147 unsigned int num_samples; in cb_pcidas_ai_interrupt() local
1152 num_samples = comedi_nsamples_left(s, board->fifo_size / 2); in cb_pcidas_ai_interrupt()
1154 devpriv->ai_buffer, num_samples); in cb_pcidas_ai_interrupt()
1155 comedi_buf_write_samples(s, devpriv->ai_buffer, num_samples); in cb_pcidas_ai_interrupt()
H A Ddas16.c795 unsigned int num_samples = comedi_bytes_to_samples(s, num_bytes); in das16_ai_munge() local
799 for (i = 0; i < num_samples; i++) { in das16_ai_munge()
H A Ddas1800.c327 unsigned int num_samples = comedi_bytes_to_samples(s, num_bytes); in das1800_ai_munge() local
333 for (i = 0; i < num_samples; i++) in das1800_ai_munge()
H A Dadl_pci9118.c604 unsigned int num_samples = comedi_bytes_to_samples(s, num_bytes); in pci9118_ai_munge() local
608 for (i = 0; i < num_samples; i++) { in pci9118_ai_munge()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Duser_ringbuf_success.c202 long num_samples; in test_user_ringbuf_epoll() local
207 num_samples = bpf_user_ringbuf_drain(&user_ringbuf, do_nothing_cb, NULL, 0); in test_user_ringbuf_epoll()
208 if (num_samples <= 0) in test_user_ringbuf_epoll()
/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A Dvmw_surface_cache.h172 u32 num_samples) in vmw_surface_get_serialized_size_extended() argument
179 total_size *= max_t(u32, 1, num_samples); in vmw_surface_get_serialized_size_extended()
382 u32 num_samples, in vmw_surface_setup_cache() argument
401 desc->bytesPerBlock * num_samples; in vmw_surface_setup_cache()
H A Dvmwgfx_surface.c1913 u32 num_samples; in vmw_surface_dirty_alloc() local
1935 num_samples = max_t(u32, 1, metadata->multisample_count); in vmw_surface_dirty_alloc()
1937 num_mip, num_layers, num_samples, in vmw_surface_dirty_alloc()
/openbmc/linux/drivers/media/test-drivers/vidtv/
H A Dvidtv_s302m.c215 au->num_samples = s; in vidtv_s302m_compute_sample_count_from_video()
357 au_sz = au->num_samples * in vidtv_s302m_write_frames()
362 for (j = 0; j < au->num_samples; ++j) { in vidtv_s302m_write_frames()
414 e->access_units->num_samples = FF_S302M_DEFAULT_NUM_FRAMES; in vidtv_s302m_encode()
H A Dvidtv_encoder.h23 u32 num_samples; member
/openbmc/linux/drivers/input/touchscreen/
H A Dmxs-lradc-ts.c212 unsigned int num_samples, val; in mxs_lradc_ts_read_raw_channel() local
216 num_samples = ts->over_sample_cnt; in mxs_lradc_ts_read_raw_channel()
218 num_samples = 1; in mxs_lradc_ts_read_raw_channel()
221 return val / num_samples; in mxs_lradc_ts_read_raw_channel()
/openbmc/linux/sound/isa/wavefront/
H A Dwavefront_synth.c1211 int num_samples; in wavefront_send_multisample() local
1228 num_samples = (1<<(header->hdr.ms.NumberOfSamples&7)); in wavefront_send_multisample()
1234 num_samples); in wavefront_send_multisample()
1236 for (i = 0; i < num_samples; i++) { in wavefront_send_multisample()
1249 (unsigned char *) (long) ((num_samples*2)+3), in wavefront_send_multisample()
1269 int num_samples; in wavefront_fetch_multisample() local
1285 num_samples = (1 << log_ns[0]); in wavefront_fetch_multisample()
1287 for (i = 0; i < num_samples; i++) { in wavefront_fetch_multisample()
/openbmc/linux/drivers/comedi/
H A Ddrivers.c418 unsigned int num_samples; in comedi_bytes_per_scan_cmd() local
426 num_samples = DIV_ROUND_UP(cmd->scan_end_arg, bits_per_sample); in comedi_bytes_per_scan_cmd()
429 num_samples = cmd->scan_end_arg; in comedi_bytes_per_scan_cmd()
432 return comedi_samples_to_bytes(s, num_samples); in comedi_bytes_per_scan_cmd()
/openbmc/linux/drivers/platform/x86/amd/pmc/
H A Dpmc.c229 u32 *buf, fsize, num_samples, stb_rdptr_offset = 0; in amd_pmc_stb_debugfs_open_v2() local
245 ret = amd_pmc_send_cmd(dev, S2D_NUM_SAMPLES, &num_samples, dev->s2d_msg_id, true); in amd_pmc_stb_debugfs_open_v2()
255 if (num_samples > S2D_TELEMETRY_BYTES_MAX) { in amd_pmc_stb_debugfs_open_v2()
257 stb_rdptr_offset = num_samples - fsize; in amd_pmc_stb_debugfs_open_v2()
259 fsize = num_samples; in amd_pmc_stb_debugfs_open_v2()
/openbmc/openbmc/poky/bitbake/lib/hashserv/
H A Dserver.py74 self.num_samples = 0
87 self.num_samples += 1
91 if self.num_samples:
93 self.num_samples = 0
/openbmc/linux/drivers/net/wireless/marvell/mwifiex/
H A Dutil.c688 if (atomic_read(&phist_data->num_samples) > MWIFIEX_HIST_MAX_SAMPLES) in mwifiex_hist_data_add()
701 atomic_inc(&phist_data->num_samples); in mwifiex_hist_data_set()
714 atomic_set(&phist_data->num_samples, 0); in mwifiex_hist_data_reset()
H A Ddecl.h244 atomic_t num_samples; member
H A Ddebugfs.c265 atomic_read(&phist_data->num_samples)); in mwifiex_histogram_read()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Duser_ringbuf.c32 static int write_samples(struct user_ring_buffer *ringbuf, uint32_t num_samples) in write_samples() argument
37 for (i = 0; i < num_samples; i++) { in write_samples()
/openbmc/linux/sound/soc/qcom/qdsp6/
H A Dq6asm.c1338 uint32_t num_samples) in q6asm_stream_remove_silence() argument
1356 *samples = num_samples; in q6asm_stream_remove_silence()