/third_party/alsa-utils/axfer/test/ |
H A D | mapper-test.c | 41 unsigned int samples_per_frame, in test_demuxer() 55 samples_per_frame, frames_per_buffer, in test_demuxer() 71 unsigned int samples_per_frame, in test_demux() 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() 146 samples_per_frame, frames_per_buffer, in test_muxer() 162 unsigned int samples_per_frame, in test_mux() 188 channels = samples_per_frame; in test_mux() 39 test_demuxer(struct mapper_context *mapper, snd_pcm_access_t access, unsigned int bytes_per_sample, unsigned int samples_per_frame, unsigned int frames_per_buffer, void *frame_buffer, unsigned int frame_count, struct container_context *cntrs, unsigned int cntr_count, bool verbose) test_demuxer() argument 69 test_demux(struct mapper_trial *trial, snd_pcm_access_t access, snd_pcm_format_t sample_format, unsigned int samples_per_frame, unsigned int frames_per_second, unsigned int frames_per_buffer, void *frame_buffer, unsigned int frame_count, int *cntr_fds, unsigned int cntr_count) test_demux() argument 130 test_muxer(struct mapper_context *mapper, snd_pcm_access_t access, unsigned int bytes_per_sample, unsigned int samples_per_frame, unsigned int frames_per_buffer, void *frame_buffer, unsigned int frame_count, struct container_context *cntrs, unsigned int cntr_count, bool verbose) test_muxer() argument 160 test_mux(struct mapper_trial *trial, snd_pcm_access_t access, snd_pcm_format_t sample_format, unsigned int samples_per_frame, unsigned int frames_per_second, unsigned int frames_per_buffer, void *frame_buffer, unsigned int frame_count, int *cntr_fds, unsigned int cntr_count) test_mux() argument 220 test_mapper(struct mapper_trial *trial, snd_pcm_access_t access, snd_pcm_format_t sample_format, unsigned int samples_per_frame, unsigned int frames_per_second, void *frame_buffer, void *check_buffer, unsigned int frame_count, unsigned int cntr_count) test_mapper() argument 279 test_i_buf(struct mapper_trial *trial, snd_pcm_access_t access, snd_pcm_format_t sample_format, unsigned int samples_per_frame, unsigned int frames_per_second, void *frame_buffer, unsigned int frame_count, unsigned int cntr_count) test_i_buf() argument 319 test_vector(struct mapper_trial *trial, snd_pcm_access_t access, snd_pcm_format_t sample_format, unsigned int samples_per_frame, unsigned int frames_per_second, void *frame_buffer, unsigned int frame_count, unsigned int cntr_count) test_vector() argument 378 test_n_buf(struct mapper_trial *trial, snd_pcm_access_t access, snd_pcm_format_t sample_format, unsigned int samples_per_frame, unsigned int frames_per_second, void *frame_buffer, unsigned int frame_count, unsigned int cntr_count) test_n_buf() argument 406 callback(struct test_generator *gen, snd_pcm_access_t access, snd_pcm_format_t sample_format, unsigned int samples_per_frame, void *frame_buffer, unsigned int frame_count) callback() argument 445 unsigned int samples_per_frame; main() local [all...] |
H A D | generator.c | 50 unsigned int samples_per_frame, in allocate_buf() 57 return calloc(samples_per_frame * frame_count, bytes_per_sample); in allocate_buf() 62 unsigned int samples_per_frame, in allocate_vector() 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() 96 samples_per_frame * frame_count; in fill_buf() 109 unsigned int samples_per_frame, unsigned int frame_count) in fill_vector() 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 48 allocate_buf(snd_pcm_access_t access, snd_pcm_format_t sample_format, unsigned int samples_per_frame, unsigned int frame_count) allocate_buf() argument 60 allocate_vector(snd_pcm_access_t access, snd_pcm_format_t sample_format, unsigned int samples_per_frame, unsigned int frame_count) allocate_vector() argument 88 fill_buf(int fd, void *frame_buffer, snd_pcm_access_t access, snd_pcm_format_t sample_format, unsigned int samples_per_frame, unsigned int frame_count) fill_buf() argument 107 fill_vector(int fd, void *frame_buffer, snd_pcm_access_t access, snd_pcm_format_t sample_format, unsigned int samples_per_frame, unsigned int frame_count) fill_vector() argument 136 deallocate_vector(void *frame_buffer, unsigned int samples_per_frame) deallocate_vector() argument 148 test_frame_count(struct test_generator *gen, snd_pcm_access_t access, snd_pcm_format_t sample_format, unsigned int samples_per_frame) test_frame_count() argument [all...] |
H A D | container-test.c | 40 unsigned int samples_per_frame, in test_builder() 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() 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() 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_secon in callback() 36 test_builder(struct container_context *cntr, int fd, enum container_format format, snd_pcm_access_t access, snd_pcm_format_t sample_format, unsigned int samples_per_frame, unsigned int frames_per_second, void *frame_buffer, unsigned int frame_count, bool verbose) test_builder() argument 83 test_parser(struct container_context *cntr, int fd, enum container_format format, snd_pcm_access_t access, snd_pcm_format_t sample_format, unsigned int samples_per_frame, unsigned int frames_per_second, void *frame_buffer, unsigned int frame_count, bool verbose) test_parser() argument 127 callback(struct test_generator *gen, snd_pcm_access_t access, snd_pcm_format_t sample_format, unsigned int samples_per_frame, void *frame_buffer, unsigned int frame_count) callback() argument [all...] |
/third_party/alsa-utils/axfer/ |
H A 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() 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() 70 au_parser_pre_process(struct container_context *cntr, snd_pcm_format_t *format, unsigned int *samples_per_frame, unsigned int *frames_per_second, uint64_t *byte_count) au_parser_pre_process() argument 149 au_builder_pre_process(struct container_context *cntr, snd_pcm_format_t *format, unsigned int *samples_per_frame, unsigned int *frames_per_second, uint64_t *byte_count) au_builder_pre_process() argument [all...] |
H A D | xfer.c | 116 unsigned int *samples_per_frame, in xfer_context_pre_process() 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() 114 xfer_context_pre_process(struct xfer_context *xfer, snd_pcm_format_t *format, unsigned int *samples_per_frame, unsigned int *frames_per_second, snd_pcm_access_t *access, snd_pcm_uframes_t *frames_per_buffer) xfer_context_pre_process() argument [all...] |
H A 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() 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; in frame_cache_init() 48 frame_cache_init(struct frame_cache *cache, snd_pcm_access_t access, unsigned int bytes_per_sample, unsigned int samples_per_frame, unsigned int frames_per_cache) frame_cache_init() argument [all...] |
H A D | mapper-single.c | 15 unsigned int samples_per_frame); 21 unsigned samples_per_frame) in align_to_vector() 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() 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() 19 align_to_vector(void *frame_buf, unsigned int frame_count, char *src, unsigned int bytes_per_sample, unsigned samples_per_frame) align_to_vector() argument 41 align_from_vector(void *frame_buf, unsigned int frame_count, char *dst, unsigned int bytes_per_sample, unsigned int samples_per_frame) align_from_vector() argument [all...] |
H A D | container-voc.c | 178 // 256,000,000 / (samples_per_frame * (65536 - time_const)). 200 uint8_t samples_per_frame; member 221 unsigned int samples_per_frame, uint16_t *code, in build_time_constant() 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() 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() 220 build_time_constant(unsigned int frames_per_second, unsigned int samples_per_frame, uint16_t *code, bool extended) build_time_constant() argument 262 parse_time_constant(uint16_t code, unsigned int samples_per_frame, unsigned int *frames_per_second, bool extended) parse_time_constant() argument 311 unsigned int samples_per_frame; global() member 556 voc_parser_pre_process(struct container_context *cntr, snd_pcm_format_t *format, unsigned int *samples_per_frame, unsigned int *frames_per_second, uint64_t *byte_count) voc_parser_pre_process() argument 596 unsigned int samples_per_frame; global() member 715 voc_builder_pre_process(struct container_context *cntr, snd_pcm_format_t *format, unsigned int *samples_per_frame, unsigned int *frames_per_second, uint64_t *byte_count) voc_builder_pre_process() argument [all...] |
H A 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() 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() 343 wave_parser_pre_process(struct container_context *cntr, snd_pcm_format_t *format, unsigned int *samples_per_frame, unsigned int *frames_per_second, uint64_t *byte_count) wave_parser_pre_process() argument 394 unsigned int samples_per_frame; global() member 510 wave_builder_pre_process(struct container_context *cntr, snd_pcm_format_t *format, unsigned int *samples_per_frame, unsigned int *frames_per_second, uint64_t *byte_count) wave_builder_pre_process() argument [all...] |
H A D | mapper.c | 74 unsigned int samples_per_frame, in mapper_context_pre_process() 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() 71 mapper_context_pre_process(struct mapper_context *mapper, snd_pcm_access_t access, unsigned int bytes_per_sample, unsigned int samples_per_frame, unsigned int frames_per_buffer, struct container_context *cntrs) mapper_context_pre_process() argument
|
H A 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 > 25 in validate_options() [all...] |
H A 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...] |
H A D | container.c | 284 unsigned int *samples_per_frame, in container_context_pre_process() 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() 282 container_context_pre_process(struct container_context *cntr, snd_pcm_format_t *format, unsigned int *samples_per_frame, unsigned int *frames_per_second, uint64_t *frame_count) container_context_pre_process() argument [all...] |
H A 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() 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() 438 if (*samples_per_frame == 0) in xfer_libffado_pre_process() 439 *samples_per_frame in xfer_libffado_pre_process() 344 enable_mbla_data_ch(struct libffado_state *state, unsigned int *samples_per_frame) enable_mbla_data_ch() argument 387 xfer_libffado_pre_process(struct xfer_context *xfer, snd_pcm_format_t *format, unsigned int *samples_per_frame, unsigned int *frames_per_second, snd_pcm_access_t *access, snd_pcm_uframes_t *frames_per_buffer) xfer_libffado_pre_process() argument [all...] |
H A 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 < (int)layout->samples_per_frame; ++i) { in irq_mmap_pre_process() 155 for (i = 0; i < (int)layout->samples_per_frame; ++i) { in irq_mmap_process_frames()
|
H A D | container.h | 58 unsigned int samples_per_frame; member 74 unsigned int *samples_per_frame, 88 unsigned int *samples_per_frame,
|
H A D | xfer.h | 41 unsigned int samples_per_frame; member 63 unsigned int *samples_per_frame, 89 unsigned int *samples_per_frame,
|
H A 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 < (int)layout->samples_per_frame; ++i) { in timer_mmap_pre_process() 108 for (i = 0; i < (int)layout->samples_per_frame; ++i) { in get_buffer() 361 layout->samples_per_frame, avail_count, in fill_buffer_with_zero_samples()
|
H A D | xfer-libasound.c | 380 unsigned int samples_per_frame, in configure_hw_params() 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() 551 samples_per_frame); in retrieve_actual_hw_params() 644 unsigned int *samples_per_frame, in xfer_libasound_pre_process() 657 err = configure_hw_params(state, *format, *samples_per_frame, in xfer_libasound_pre_process() 671 samples_per_frame, frames_per_secon in xfer_libasound_pre_process() 378 configure_hw_params(struct libasound_state *state, snd_pcm_format_t format, unsigned int samples_per_frame, unsigned int frames_per_second, unsigned int msec_per_period, unsigned int msec_per_buffer, snd_pcm_uframes_t frames_per_period, snd_pcm_uframes_t frames_per_buffer) configure_hw_params() argument 537 retrieve_actual_hw_params(snd_pcm_hw_params_t *hw_params, snd_pcm_format_t *format, unsigned int *samples_per_frame, unsigned int *frames_per_second, snd_pcm_access_t *access, snd_pcm_uframes_t *frames_per_buffer) retrieve_actual_hw_params() argument 642 xfer_libasound_pre_process(struct xfer_context *xfer, snd_pcm_format_t *format, unsigned int *samples_per_frame, unsigned int *frames_per_second, snd_pcm_access_t *access, snd_pcm_uframes_t *frames_per_buffer) xfer_libasound_pre_process() argument [all...] |
H A D | frame-cache.h | 19 unsigned int samples_per_frame; member 28 unsigned int samples_per_frame,
|
H A D | mapper-multiple.c | 40 src_pos = bytes_per_sample * cntr->samples_per_frame * j; in align_to_i() 67 dst_pos = bytes_per_sample * cntr->samples_per_frame * j; in align_from_i() 118 if (cntr->samples_per_frame != 1) in multiple_pre_process() 135 cntr->samples_per_frame * in multiple_pre_process()
|
H A D | container-raw.c | 18 unsigned int *samples_per_frame ATTRIBUTE_UNUSED, in raw_builder_pre_process() 29 unsigned int *samples_per_frame ATTRIBUTE_UNUSED, in raw_parser_pre_process()
|
H A D | mapper.h | 41 unsigned int samples_per_frame; member 53 unsigned int samples_per_frame,
|
/third_party/ffmpeg/libavcodec/ |
H A D | wmaprodec.c | 196 uint16_t samples_per_frame; ///< number of samples to output member 270 PRINT("samples per frame", s->samples_per_frame); in dump_context() 437 s->samples_per_frame = 1 << bits; in decode_init() 439 s->samples_per_frame = 512; in decode_init() 450 s->min_samples_per_subframe = s->samples_per_frame / s->max_num_subframes; in decode_init() 486 s->channel[i].prev_block_len = s->samples_per_frame; in decode_init() 502 int subframe_len = s->samples_per_frame >> i; in decode_init() 570 int block_size = s->samples_per_frame >> i; in decode_init() 616 if (offset == s->samples_per_frame - s->min_samples_per_subframe) in decode_subframe_length() 629 subframe_len = s->samples_per_frame >> frame_len_shif in decode_subframe_length() [all...] |
H A D | wmalosslessdec.c | 86 uint16_t samples_per_frame; ///< number of samples to output member 259 s->samples_per_frame = 1 << ff_wma_get_frame_len_bits(avctx->sample_rate, in decode_init() 261 av_assert0(s->samples_per_frame <= WMALL_BLOCK_MAX_SIZE); in decode_init() 265 s->channel[i].prev_block_len = s->samples_per_frame; in decode_init() 273 s->min_samples_per_subframe = s->samples_per_frame / s->max_num_subframes; in decode_init() 301 if (offset == s->samples_per_frame - s->min_samples_per_subframe) in decode_subframe_length() 310 subframe_len > s->samples_per_frame) { in decode_subframe_length() 363 (min_channel_len == s->samples_per_frame - s->min_samples_per_subframe)) { in decode_tilehdr() 396 if (num_samples[c] > s->samples_per_frame) { in decode_tilehdr() 398 "channel len(%"PRIu16") > samples_per_frame( in decode_tilehdr() [all...] |