Home
last modified time | relevance | path

Searched refs:bytes_per_sample (Results 1 – 25 of 61) sorted by relevance

123

/third_party/alsa-utils/axfer/
Dmapper-single.c14 char *buf, unsigned int bytes_per_sample,
20 char *src, unsigned int bytes_per_sample, in align_to_vector() argument
33 src_pos = bytes_per_sample * (samples_per_frame * j + i); in align_to_vector()
34 dst_pos = bytes_per_sample * j; in align_to_vector()
36 memcpy(dst + dst_pos, src + src_pos, bytes_per_sample); in align_to_vector()
42 char *dst, unsigned int bytes_per_sample, in align_from_vector() argument
55 src_pos = bytes_per_sample * j; in align_from_vector()
56 dst_pos = bytes_per_sample * (samples_per_frame * j + i); in align_from_vector()
58 memcpy(dst + dst_pos, src + src_pos, bytes_per_sample); in align_from_vector()
70 if (cntrs->bytes_per_sample != mapper->bytes_per_sample || in single_pre_process()
[all …]
Dmapper-multiple.c14 char **buf, unsigned int bytes_per_sample,
22 char **src_bufs, unsigned int bytes_per_sample, in align_to_i() argument
40 src_pos = bytes_per_sample * cntr->samples_per_frame * j; in align_to_i()
41 dst_pos = bytes_per_sample * (cntr_count * j + i); in align_to_i()
43 memcpy(dst + dst_pos, src + src_pos, bytes_per_sample); in align_to_i()
49 char **dst_bufs, unsigned int bytes_per_sample, in align_from_i() argument
66 src_pos = bytes_per_sample * (cntr_count * j + i); in align_from_i()
67 dst_pos = bytes_per_sample * cntr->samples_per_frame * j; in align_from_i()
69 memcpy(dst + dst_pos, src + src_pos, bytes_per_sample); in align_from_i()
86 if (mapper->bytes_per_sample != cntr->bytes_per_sample) in multiple_pre_process()
[all …]
Dframe-cache.c20 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()
41 offset = cache->bytes_per_sample * consumed_count; in align_frames_in_n()
42 size = cache->bytes_per_sample * cache->remained_count; in align_frames_in_n()
49 unsigned int bytes_per_sample, in frame_cache_init() argument
55 cache->bytes_per_sample = bytes_per_sample; in frame_cache_init()
70 bytes_per_sample * samples_per_frame); in frame_cache_init()
85 bufs[i] = calloc(frames_per_cache, bytes_per_sample); in frame_cache_init()
Dmapper.c73 unsigned int bytes_per_sample, in mapper_context_pre_process() argument
83 assert(bytes_per_sample > 0); in mapper_context_pre_process()
94 mapper->bytes_per_sample = bytes_per_sample; in mapper_context_pre_process()
110 mapper->bytes_per_sample); in mapper_context_pre_process()
Dcontainer-au.c67 unsigned int bytes_per_sample; member
110 state->bytes_per_sample = snd_pcm_format_physical_width(*format) / 8; in au_parser_pre_process()
118 unsigned int bytes_per_sample; member
166 status->bytes_per_sample = snd_pcm_format_physical_width(*format) / 8; in au_builder_pre_process()
Dcontainer.c326 cntr->bytes_per_sample = snd_pcm_format_physical_width(*format) / 8; in container_context_pre_process()
330 bytes_per_frame = cntr->bytes_per_sample * *samples_per_frame; in container_context_pre_process()
342 cntr->bytes_per_sample); 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()
443 cntr->bytes_per_sample / in container_context_post_process()
Dframe-cache.h18 unsigned int bytes_per_sample; member
27 unsigned int bytes_per_sample,
Dmapper.h40 unsigned int bytes_per_sample; member
52 unsigned int bytes_per_sample,
Dxfer-libasound-irq-rw.c363 int bytes_per_sample; in irq_rw_pre_process() local
370 bytes_per_sample = snd_pcm_format_physical_width(format) / 8; in irq_rw_pre_process()
371 if (bytes_per_sample <= 0) in irq_rw_pre_process()
389 bytes_per_sample, samples_per_frame, in irq_rw_pre_process()
Dcontainer-voc.c312 unsigned int bytes_per_sample; member
363 state->bytes_per_sample = block->bits_per_sample / 8; in parse_v120_format_block()
425 state->bytes_per_sample = 1; in parse_v110_data()
597 unsigned int bytes_per_sample; member
625 block->bits_per_sample = state->bytes_per_sample * 8; in write_v120_format_block()
761 state->bytes_per_sample = snd_pcm_format_physical_width(*format) / 8; in voc_builder_pre_process()
Dcontainer-riff-wave.c123 unsigned int bytes_per_sample; member
393 unsigned int bytes_per_sample; member
429 state->bytes_per_sample * state->samples_per_frame; in build_wave_format_subchunk()
430 unsigned int average_bytes_per_second = state->bytes_per_sample * in build_wave_format_subchunk()
529 state->bytes_per_sample = snd_pcm_format_physical_width(*format) / 8; in wave_builder_pre_process()
Dsubcmd-transfer.c333 unsigned int bytes_per_sample = 0; in context_pre_process() local
355 bytes_per_sample = in context_pre_process()
357 if (bytes_per_sample <= 0) in context_pre_process()
359 err = mapper_context_pre_process(&ctx->mapper, access, bytes_per_sample, in context_pre_process()
/third_party/ffmpeg/libavformat/
Didcin.c158 unsigned int sample_rate, bytes_per_sample, channels; in idcin_read_header() local
165 bytes_per_sample = avio_rl32(pb); in idcin_read_header()
180 if (bytes_per_sample < 1 || bytes_per_sample > 2) { in idcin_read_header()
182 bytes_per_sample); in idcin_read_header()
225 st->codecpar->bits_per_coded_sample = bytes_per_sample * 8; in idcin_read_header()
226 st->codecpar->bit_rate = sample_rate * bytes_per_sample * 8 * channels; in idcin_read_header()
227 st->codecpar->block_align = idcin->block_align = bytes_per_sample * channels; in idcin_read_header()
228 if (bytes_per_sample == 1) in idcin_read_header()
235 bytes_per_sample * channels; in idcin_read_header()
237 bytes_per_sample * channels; in idcin_read_header()
[all …]
Dxwma.c238 const uint32_t bytes_per_sample in xwma_read_header() local
244 if (!bytes_per_sample) { in xwma_read_header()
252 st->duration = total_decoded_bytes / bytes_per_sample; in xwma_read_header()
271 dpds_table[i] / bytes_per_sample, /* timestamp */ in xwma_read_header()
/third_party/gstreamer/gstplugins_bad/ext/closedcaption/
Dbit_slicer.c305 bps = bs->bytes_per_sample; in low_pass_bit_slicer_Y8()
342 * 256 / bs->bytes_per_sample + (1 << LP_AVG) * 128; in low_pass_bit_slicer_Y8()
378 * 256 / bs->bytes_per_sample \ in low_pass_bit_slicer_Y8()
706 bs->bytes_per_sample = 1; in vbi3_bit_slicer_set_params()
719 bs->bytes_per_sample = 2; in vbi3_bit_slicer_set_params()
732 bs->bytes_per_sample = 2; in vbi3_bit_slicer_set_params()
745 bs->bytes_per_sample = 4; in vbi3_bit_slicer_set_params()
758 bs->bytes_per_sample = 4; in vbi3_bit_slicer_set_params()
771 bs->bytes_per_sample = 3; in vbi3_bit_slicer_set_params()
787 bs->bytes_per_sample = 2; in vbi3_bit_slicer_set_params()
[all …]
/third_party/alsa-utils/axfer/test/
Dgenerator.c53 unsigned int bytes_per_sample; in allocate_buf() local
55 bytes_per_sample = snd_pcm_format_physical_width(sample_format) / 8; in allocate_buf()
57 return calloc(samples_per_frame * frame_count, bytes_per_sample); in allocate_buf()
65 unsigned int bytes_per_sample; in allocate_vector() local
69 bytes_per_sample = snd_pcm_format_physical_width(sample_format) / 8; in allocate_vector()
76 bufs[i] = calloc(frame_count, bytes_per_sample); in allocate_vector()
Dmapper-test.c40 unsigned int bytes_per_sample, in test_demuxer() argument
54 err = mapper_context_pre_process(mapper, access, bytes_per_sample, in test_demuxer()
79 unsigned int bytes_per_sample; in test_demux() local
114 bytes_per_sample = snd_pcm_format_physical_width(sample_format) / 8; in test_demux()
115 test_demuxer(&trial->mapper, access, bytes_per_sample, in test_demux()
131 unsigned int bytes_per_sample, in test_muxer() argument
145 err = mapper_context_pre_process(mapper, access, bytes_per_sample, in test_muxer()
169 unsigned int bytes_per_sample; in test_mux() local
204 bytes_per_sample = snd_pcm_format_physical_width(sample_format) / 8; in test_mux()
205 test_muxer(&trial->mapper, access, bytes_per_sample, samples_per_frame, in test_mux()
/third_party/ffmpeg/libavcodec/
Dlibdavs2.c66 int bytes_per_sample = pic->bytes_per_sample; in davs2_dump_frames() local
107 int size_line = pic->widths[plane] * bytes_per_sample; in davs2_dump_frames()
121 pic->widths[plane] * bytes_per_sample); in davs2_dump_frames()
Dlibopusenc.c441 int nb_channels, int nb_samples, int bytes_per_sample) { in libopus_copy_samples_with_channel_map() argument
445 const size_t src_pos = bytes_per_sample * (nb_channels * sample + channel); in libopus_copy_samples_with_channel_map()
446 const size_t dst_pos = bytes_per_sample * (nb_channels * sample + channel_map[channel]); in libopus_copy_samples_with_channel_map()
448 memcpy(&dst[dst_pos], &src[src_pos], bytes_per_sample); in libopus_copy_samples_with_channel_map()
457 const int bytes_per_sample = av_get_bytes_per_sample(avctx->sample_fmt); in libopus_encode() local
458 const int sample_size = avctx->channels * bytes_per_sample; in libopus_encode()
471 avctx->channels, frame->nb_samples, bytes_per_sample); in libopus_encode()
/third_party/gstreamer/gstplugins_bad/gst/aiff/
Daiffparse.c374 start -= (start % aiff->bytes_per_sample); in gst_aiff_parse_perform_seek()
382 stop -= (stop % aiff->bytes_per_sample); in gst_aiff_parse_perform_seek()
451 aiff->offset -= (aiff->offset % aiff->bytes_per_sample); in gst_aiff_parse_perform_seek()
467 aiff->end_offset -= (aiff->end_offset % aiff->bytes_per_sample); in gst_aiff_parse_perform_seek()
995 aiff->bytes_per_sample = aiff->channels * aiff->width / 8; in gst_aiff_parse_stream_headers()
996 aiff->bps = aiff->bytes_per_sample * aiff->rate; in gst_aiff_parse_stream_headers()
1024 if (aiff->bytes_per_sample <= 0) in gst_aiff_parse_stream_headers()
1186 if (aiff->bytes_per_sample > 0) in gst_aiff_parse_stream_headers()
1187 aiff->max_buf_size -= (aiff->max_buf_size % aiff->bytes_per_sample); in gst_aiff_parse_stream_headers()
1321 if (aiff->bytes_per_sample <= 0) { in gst_aiff_parse_stream_data()
[all …]
/third_party/gstreamer/gstplugins_good/sys/oss4/
Doss4-sink.c190 osssink->bytes_per_sample = 0; in gst_oss4_sink_init()
568 oss->bytes_per_sample = 0; in gst_oss4_sink_close()
598 oss->bytes_per_sample = GST_AUDIO_INFO_BPF (&spec->info); in gst_oss4_sink_prepare()
640 n / oss->bytes_per_sample, length / oss->bytes_per_sample, n); in gst_oss4_sink_write()
682 return delay / oss->bytes_per_sample; in gst_oss4_sink_delay()
/third_party/ffmpeg/libswresample/
Dswresample_frame.c112 int bytes_per_sample = av_get_bytes_per_sample(out->format); in available_samples() local
113 int samples = out->linesize[0] / bytes_per_sample; in available_samples()
/third_party/gstreamer/gstplugins_bad/ext/openal/
Dgstopenalsrc.c483 openalsrc->bytes_per_sample = GST_AUDIO_INFO_BPS (&spec->info); in gst_openal_src_parse_spec()
555 if (samples * openalsrc->bytes_per_sample > length) { in gst_openal_src_read()
556 samples = length / openalsrc->bytes_per_sample; in gst_openal_src_read()
564 return samples * openalsrc->bytes_per_sample; in gst_openal_src_read()
/third_party/gstreamer/gstplugins_good/sys/oss/
Dgstosssink.h49 gint bytes_per_sample; member
/third_party/gstreamer/gstplugins_bad/ext/bs2b/
Dgstbs2b.h52 guint bytes_per_sample; member

123