/third_party/alsa-utils/axfer/test/ |
D | generator.c | 50 unsigned int samples_per_frame, in allocate_buf() argument 57 return calloc(samples_per_frame * frame_count, bytes_per_sample); in allocate_buf() 62 unsigned int samples_per_frame, in allocate_vector() argument 71 bufs = calloc(samples_per_frame, sizeof(char *)); in allocate_vector() 75 for (i = 0; i < samples_per_frame; ++i) { in allocate_vector() 90 unsigned int samples_per_frame, unsigned int frame_count) in fill_buf() argument 96 samples_per_frame * frame_count; in fill_buf() 109 unsigned int samples_per_frame, unsigned int frame_count) in fill_vector() argument 116 for (i = 0; i < samples_per_frame; ++i) { in fill_vector() 131 static void deallocate_buf(void *frame_buffer, unsigned int samples_per_frame) in deallocate_buf() argument [all …]
|
D | mapper-test.c | 41 unsigned int samples_per_frame, in test_demuxer() argument 55 samples_per_frame, frames_per_buffer, in test_demuxer() 71 unsigned int samples_per_frame, in test_demux() argument 99 channels = samples_per_frame; in test_demux() 111 assert(channels == samples_per_frame); in test_demux() 116 samples_per_frame, frames_per_buffer, frame_buffer, in test_demux() 132 unsigned int samples_per_frame, in test_muxer() argument 146 samples_per_frame, frames_per_buffer, in test_muxer() 162 unsigned int samples_per_frame, in test_mux() argument 188 channels = samples_per_frame; in test_mux() [all …]
|
D | container-test.c | 40 unsigned int samples_per_frame, in test_builder() argument 57 channels = samples_per_frame; in test_builder() 64 assert(channels == samples_per_frame); in test_builder() 86 unsigned int samples_per_frame, in test_parser() argument 102 channels = samples_per_frame; in test_parser() 109 assert(channels == samples_per_frame); in test_parser() 129 unsigned int samples_per_frame, void *frame_buffer, in callback() argument 148 size = frame_count * samples_per_frame * in callback() 171 sample_format, samples_per_frame, in callback() 182 sample_format, samples_per_frame, frames_per_second, in callback()
|
/third_party/alsa-utils/axfer/ |
D | frame-cache.c | 20 offset = cache->bytes_per_sample * cache->samples_per_frame * in align_frames_in_i() 22 size = cache->bytes_per_sample * cache->samples_per_frame * in align_frames_in_i() 40 for (i = 0; i < cache->samples_per_frame; ++i) { in align_frames_in_n() 50 unsigned int samples_per_frame, in frame_cache_init() argument 56 cache->samples_per_frame = samples_per_frame; in frame_cache_init() 70 bytes_per_sample * samples_per_frame); in frame_cache_init() 76 char **bufs = calloc(samples_per_frame, sizeof(*bufs)); in frame_cache_init() 77 char **buf_ptrs = calloc(samples_per_frame, sizeof(*buf_ptrs)); in frame_cache_init() 84 for (i = 0; i < samples_per_frame; ++i) { in frame_cache_init() 106 for (i = 0; i < cache->samples_per_frame; ++i) in frame_cache_destroy()
|
D | container-au.c | 57 uint32_t samples_per_frame; member 66 unsigned int samples_per_frame; member 72 unsigned int *samples_per_frame, in au_parser_pre_process() argument 106 *samples_per_frame = be32toh(header.samples_per_frame); in au_parser_pre_process() 109 state->samples_per_frame = *samples_per_frame; in au_parser_pre_process() 119 unsigned int samples_per_frame; member 134 header->samples_per_frame = htobe32(state->samples_per_frame); in build_container_header() 151 unsigned int *samples_per_frame, in au_builder_pre_process() argument 168 status->samples_per_frame = *samples_per_frame; in au_builder_pre_process()
|
D | xfer.c | 116 unsigned int *samples_per_frame, in xfer_context_pre_process() argument 125 assert(samples_per_frame); in xfer_context_pre_process() 137 if (xfer->samples_per_frame > 0) in xfer_context_pre_process() 138 *samples_per_frame = xfer->samples_per_frame; in xfer_context_pre_process() 156 if (*samples_per_frame != xfer->samples_per_frame) { in xfer_context_pre_process() 158 if (xfer->samples_per_frame > 0) { in xfer_context_pre_process() 162 xfer->samples_per_frame, in xfer_context_pre_process() 163 *samples_per_frame); in xfer_context_pre_process() 181 err = xfer->ops->pre_process(xfer, format, samples_per_frame, in xfer_context_pre_process() 189 assert(*samples_per_frame > 0); in xfer_context_pre_process() [all …]
|
D | container-voc.c | 200 uint8_t samples_per_frame; member 221 unsigned int samples_per_frame, uint16_t *code, in build_time_constant() argument 228 if (samples_per_frame > 2) in build_time_constant() 230 frames_per_second *= samples_per_frame; in build_time_constant() 244 if (samples_per_frame != 1) in build_time_constant() 263 unsigned int samples_per_frame, in parse_time_constant() argument 270 if (samples_per_frame > 2) in parse_time_constant() 281 samples_per_frame; in parse_time_constant() 283 *frames_per_second = 256000000 / samples_per_frame / in parse_time_constant() 287 if (samples_per_frame != 1) in parse_time_constant() [all …]
|
D | mapper-single.c | 15 unsigned int samples_per_frame); 21 unsigned samples_per_frame) in align_to_vector() argument 30 for (i = 0; i < samples_per_frame; ++i) { in align_to_vector() 33 src_pos = bytes_per_sample * (samples_per_frame * j + i); in align_to_vector() 43 unsigned int samples_per_frame) in align_from_vector() argument 52 for (i = 0; i < samples_per_frame; ++i) { in align_from_vector() 56 dst_pos = bytes_per_sample * (samples_per_frame * j + i); in align_from_vector() 71 cntrs->samples_per_frame != mapper->samples_per_frame) in single_pre_process() 98 mapper->samples_per_frame * in single_pre_process() 135 mapper->samples_per_frame); in single_muxer_process_frames() [all …]
|
D | container-riff-wave.c | 101 uint16_t samples_per_frame; member 119 unsigned int samples_per_frame; member 190 state->samples_per_frame = be16toh(subchunk->samples_per_frame); in parse_wave_fmt_subchunk() 199 state->samples_per_frame = le16toh(subchunk->samples_per_frame); in parse_wave_fmt_subchunk() 345 unsigned int *samples_per_frame, in wave_parser_pre_process() argument 360 state->samples_per_frame / state->frames_per_second; in wave_parser_pre_process() 382 *samples_per_frame = state->samples_per_frame; in wave_parser_pre_process() 394 unsigned int samples_per_frame; member 429 state->bytes_per_sample * state->samples_per_frame; in build_wave_format_subchunk() 431 state->samples_per_frame * state->frames_per_second; in build_wave_format_subchunk() [all …]
|
D | container.c | 284 unsigned int *samples_per_frame, in container_context_pre_process() argument 294 assert(samples_per_frame); in container_context_pre_process() 302 err = cntr->ops->pre_process(cntr, format, samples_per_frame, in container_context_pre_process() 312 *samples_per_frame == 0 || *frames_per_second == 0) { in container_context_pre_process() 322 assert(*samples_per_frame > 0); in container_context_pre_process() 327 cntr->samples_per_frame = *samples_per_frame; in container_context_pre_process() 330 bytes_per_frame = cntr->bytes_per_sample * *samples_per_frame; in container_context_pre_process() 344 cntr->samples_per_frame); in container_context_pre_process() 374 bytes_per_frame = cntr->bytes_per_sample * cntr->samples_per_frame; in container_context_process_frames() 439 if (cntr->bytes_per_sample == 0 || cntr->samples_per_frame == 0) { in container_context_post_process() [all …]
|
D | subcmd-transfer.c | 170 unsigned int samples_per_frame = 0; in capture_pre_process() local 177 &samples_per_frame, &frames_per_second, in capture_pre_process() 190 channels = samples_per_frame; in capture_pre_process() 234 unsigned int samples_per_frame = 0; in playback_pre_process() local 269 channels = ctx->xfer.samples_per_frame; in playback_pre_process() 273 channels = samples_per_frame; in playback_pre_process() 293 samples_per_frame = channels; in playback_pre_process() 320 samples_per_frame = ctx->cntr_count; in playback_pre_process() 324 &samples_per_frame, &frames_per_second, in playback_pre_process() 360 ctx->xfer.samples_per_frame, in context_pre_process() [all …]
|
D | xfer-options.c | 118 unsigned int samples_per_frame; in verify_sample_format() member 146 if (xfer->samples_per_frame > 0 && in verify_sample_format() 147 xfer->samples_per_frame != entry->samples_per_frame) { in verify_sample_format() 151 entry->literal, entry->samples_per_frame); in verify_sample_format() 156 xfer->samples_per_frame = entry->samples_per_frame; in verify_sample_format() 245 if (xfer->samples_per_frame > 0) { in validate_options() 246 if (xfer->samples_per_frame < 1 || in validate_options() 247 xfer->samples_per_frame > 256) { in validate_options() 249 xfer->samples_per_frame); in validate_options() 343 xfer->samples_per_frame = arg_parse_decimal_num(optarg, &err); in xfer_options_parse_args() [all …]
|
D | mapper.c | 74 unsigned int samples_per_frame, in mapper_context_pre_process() argument 84 assert(samples_per_frame > 0); in mapper_context_pre_process() 90 samples_per_frame != mapper->cntr_count) in mapper_context_pre_process() 95 mapper->samples_per_frame = samples_per_frame; in mapper_context_pre_process() 112 mapper->samples_per_frame); in mapper_context_pre_process()
|
D | xfer-libffado.c | 198 state->cache.samples_per_frame; in r_process_frames() 213 assert(pos == xfer->samples_per_frame); in r_process_frames() 270 state->cache.samples_per_frame; in w_process_frames() 285 assert(pos == xfer->samples_per_frame); in w_process_frames() 345 unsigned int *samples_per_frame) in enable_mbla_data_ch() argument 371 *samples_per_frame = 0; in enable_mbla_data_ch() 381 ++(*samples_per_frame); in enable_mbla_data_ch() 389 unsigned int *samples_per_frame, in xfer_libffado_pre_process() argument 438 if (*samples_per_frame == 0) in xfer_libffado_pre_process() 439 *samples_per_frame = channels; in xfer_libffado_pre_process() [all …]
|
D | xfer-libasound-irq-mmap.c | 16 unsigned int samples_per_frame; member 37 &layout->samples_per_frame); in irq_mmap_pre_process() 42 layout->vector = calloc(layout->samples_per_frame, in irq_mmap_pre_process() 56 for (i = 0; i < layout->samples_per_frame; ++i) { in irq_mmap_pre_process() 155 for (i = 0; i < layout->samples_per_frame; ++i) { in irq_mmap_process_frames()
|
D | container.h | 54 unsigned int samples_per_frame; member 70 unsigned int *samples_per_frame, 84 unsigned int *samples_per_frame,
|
D | xfer.h | 41 unsigned int samples_per_frame; member 63 unsigned int *samples_per_frame, 89 unsigned int *samples_per_frame,
|
D | xfer-libasound.c | 380 unsigned int samples_per_frame, in configure_hw_params() argument 418 if (samples_per_frame == 0) { in configure_hw_params() 420 &samples_per_frame); in configure_hw_params() 428 samples_per_frame); in configure_hw_params() 432 samples_per_frame, snd_strerror(err)); in configure_hw_params() 539 unsigned int *samples_per_frame, in retrieve_actual_hw_params() argument 551 samples_per_frame); in retrieve_actual_hw_params() 644 unsigned int *samples_per_frame, in xfer_libasound_pre_process() argument 657 err = configure_hw_params(state, *format, *samples_per_frame, in xfer_libasound_pre_process() 671 samples_per_frame, frames_per_second, in xfer_libasound_pre_process()
|
D | xfer-libasound-timer-mmap.c | 18 unsigned int samples_per_frame; member 51 &layout->samples_per_frame); in timer_mmap_pre_process() 67 layout->vector = calloc(layout->samples_per_frame, in timer_mmap_pre_process() 81 for (i = 0; i < layout->samples_per_frame; ++i) { in timer_mmap_pre_process() 108 for (i = 0; i < layout->samples_per_frame; ++i) { in get_buffer() 361 layout->samples_per_frame, avail_count, in fill_buffer_with_zero_samples()
|
D | frame-cache.h | 19 unsigned int samples_per_frame; member 28 unsigned int samples_per_frame,
|
/third_party/gstreamer/gstplugins_bad/ext/sbc/ |
D | gstsbcdec.c | 92 output_size = num_frames * dec->samples_per_frame * sizeof (gint16); in gst_sbc_dec_handle_frame() 106 dec->frame_len, out_map.data + (i * dec->samples_per_frame * 2), in gst_sbc_dec_handle_frame() 107 dec->samples_per_frame * 2, &written); in gst_sbc_dec_handle_frame() 109 if (ret <= 0 || written != (dec->samples_per_frame * 2)) { in gst_sbc_dec_handle_frame() 119 gst_buffer_set_size (outbuf, i * dec->samples_per_frame * 2); in gst_sbc_dec_handle_frame() 176 dec->samples_per_frame = channels * blocks * subbands; in gst_sbc_dec_set_format() 179 "%" G_GSIZE_FORMAT, dec->frame_len, dec->samples_per_frame); in gst_sbc_dec_set_format() 207 sbcdec->samples_per_frame = 0; in gst_sbc_dec_stop() 245 dec->samples_per_frame = 0; in gst_sbc_dec_init()
|
D | gstsbcenc.c | 237 guint samples_per_frame, frames, i = 0; in gst_sbc_enc_handle_frame() local 246 samples_per_frame = enc->channels * enc->blocks * enc->subbands; in gst_sbc_enc_handle_frame() 251 frames = in_map.size / (samples_per_frame * sizeof (gint16)); in gst_sbc_enc_handle_frame() 272 ret = sbc_encode (&enc->sbc, in_map.data + (i * samples_per_frame * 2), in gst_sbc_enc_handle_frame() 273 samples_per_frame * 2, out_map.data + (i * frame_len), frame_len, in gst_sbc_enc_handle_frame() 294 i * (samples_per_frame / enc->channels)); in gst_sbc_enc_handle_frame()
|
/third_party/gstreamer/gstplugins_good/gst/audiofx/ |
D | gstscaletempo.c | 129 po += st->samples_per_frame; \ 131 for (i = st->samples_per_frame; i < st->samples_overlap; i++) { \ 135 search_start = (g##type *) st->buf_queue + st->samples_per_frame; \ 140 for (i = st->samples_per_frame; i < st->samples_overlap; i++) { \ 147 search_start += st->samples_per_frame; \ 170 po += st->samples_per_frame; in best_overlap_offset_s16() 172 for (i = st->samples_per_frame; i < st->samples_overlap; i++) { in best_overlap_offset_s16() 176 search_start = (gint16 *) st->buf_queue + st->samples_per_frame; in best_overlap_offset_s16() 181 ppc += st->samples_overlap - st->samples_per_frame; in best_overlap_offset_s16() 182 ps += st->samples_overlap - st->samples_per_frame; in best_overlap_offset_s16() [all …]
|
/third_party/gstreamer/gstplugins_bad/ext/isac/ |
D | gstisacenc.c | 107 gint samples_per_frame; /* number of samples in one input frame */ member 230 self->samples_per_frame = GST_AUDIO_INFO_RATE (info) / 100; in gst_isacenc_set_format() 231 self->frame_size = self->samples_per_frame * GST_AUDIO_INFO_BPS (info); in gst_isacenc_set_format() 234 self->samples_per_frame, self->frame_size); in gst_isacenc_set_format() 236 gst_audio_encoder_set_frame_samples_min (enc, self->samples_per_frame); in gst_isacenc_set_format() 237 gst_audio_encoder_set_frame_samples_max (enc, self->samples_per_frame); in gst_isacenc_set_format() 306 self->nb_processed_input_frames * self->samples_per_frame); in gst_isacenc_handle_frame()
|
/third_party/ffmpeg/libavcodec/ |
D | wmaprodec.c | 193 uint16_t samples_per_frame; ///< number of samples to output member 264 PRINT("samples per frame", s->samples_per_frame); in dump_context() 401 s->samples_per_frame = 1 << bits; in decode_init() 403 s->samples_per_frame = 512; in decode_init() 414 s->min_samples_per_subframe = s->samples_per_frame / s->max_num_subframes; in decode_init() 450 s->channel[i].prev_block_len = s->samples_per_frame; in decode_init() 494 int subframe_len = s->samples_per_frame >> i; in decode_init() 560 int block_size = s->samples_per_frame >> i; in decode_init() 602 if (offset == s->samples_per_frame - s->min_samples_per_subframe) in decode_subframe_length() 615 subframe_len = s->samples_per_frame >> frame_len_shift; in decode_subframe_length() [all …]
|