Home
last modified time | relevance | path

Searched refs:sample_size (Results 1 – 25 of 68) sorted by relevance

123

/third_party/ffmpeg/libavutil/
Daudio_fifo.c42 int sample_size; /**< size, in bytes, of one sample in a buffer */ member
75 af->sample_size = buf_size / nb_samples; in av_audio_fifo_alloc()
127 size = nb_samples * af->sample_size; in av_audio_fifo_write()
148 size = nb_samples * af->sample_size; in av_audio_fifo_peek()
171 offset *= af->sample_size; in av_audio_fifo_peek_at()
172 size = nb_samples * af->sample_size; in av_audio_fifo_peek_at()
191 size = nb_samples * af->sample_size; in av_audio_fifo_read()
210 size = nb_samples * af->sample_size; in av_audio_fifo_drain()
Dsamplefmt.c123 int sample_size = av_get_bytes_per_sample(sample_fmt); in av_samples_get_buffer_size() local
127 if (!sample_size || nb_samples <= 0 || nb_channels <= 0) in av_samples_get_buffer_size()
140 (int64_t)nb_channels * nb_samples > (INT_MAX - (align * nb_channels)) / sample_size) in av_samples_get_buffer_size()
143 line_size = planar ? FFALIGN(nb_samples * sample_size, align) : in av_samples_get_buffer_size()
144 FFALIGN(nb_samples * sample_size * nb_channels, align); in av_samples_get_buffer_size()
/third_party/gstreamer/gstplugins_good/gst/auparse/
Dgstauparse.c272 auparse->sample_size = auparse->channels; in gst_au_parse_parse_header()
279 auparse->sample_size = auparse->channels * 2; in gst_au_parse_parse_header()
286 auparse->sample_size = auparse->channels * 3; in gst_au_parse_parse_header()
293 auparse->sample_size = auparse->channels * 4; in gst_au_parse_parse_header()
301 auparse->sample_size = auparse->channels * 4; in gst_au_parse_parse_header()
308 auparse->sample_size = auparse->channels * 8; in gst_au_parse_parse_header()
352 auparse->sample_size = auparse->channels; in gst_au_parse_parse_header()
369 auparse->sample_size = 0; in gst_au_parse_parse_header()
373 GST_DEBUG_OBJECT (auparse, "sample_size=%d", auparse->sample_size); in gst_au_parse_parse_header()
455 if (auparse->sample_size > 0) { in gst_au_parse_chain()
[all …]
/third_party/ffmpeg/libavcodec/
Dpcm.c95 int n, c, sample_size, v, ret; in pcm_encode_frame() local
105 sample_size = av_get_bits_per_sample(avctx->codec->id) / 8; in pcm_encode_frame()
109 if ((ret = ff_alloc_packet2(avctx, avpkt, n * sample_size, n * sample_size)) < 0) in pcm_encode_frame()
201 memcpy(dst, samples, n * sample_size); in pcm_encode_frame()
212 bytestream_put_buffer(&dst, src, n * sample_size); in pcm_encode_frame()
332 int sample_size, c, n, ret, samples_per_block; in pcm_decode_frame() local
336 sample_size = av_get_bits_per_sample(avctx->codec_id) / 8; in pcm_decode_frame()
343 sample_size = 5; in pcm_decode_frame()
346 if (sample_size == 0) { in pcm_decode_frame()
361 n = avctx->channels * sample_size; in pcm_decode_frame()
[all …]
Dpcm_rechunk_bsf.c35 int sample_size; member
49 s->sample_size = ctx->par_in->channels * av_get_bits_per_sample(ctx->par_in->codec_id) / 8; in init()
56 if (min_samples <= 0 || min_samples > INT_MAX / s->sample_size - 1) in init()
114 int data_size = nb_samples * s->sample_size; in rechunk_filter()
134 drain_packet(s->in_pkt, drain, drain / s->sample_size); in rechunk_filter()
161 nb_samples = s->out_pkt->size / s->sample_size; in rechunk_filter()
Dalac.c75 uint8_t sample_size; member
252 bps = alac->sample_size - alac->extra_bits + channels - 1; in decode_element()
364 get_sbits_long(&alac->gb, alac->sample_size); in decode_element()
392 switch(alac->sample_size) { in decode_element()
507 alac->direct_output = alac->sample_size > 16; in allocate_buffers()
537 alac->sample_size = bytestream2_get_byteu(&gb); in alac_set_info()
566 switch (alac->sample_size) { in alac_decode_init()
573 default: avpriv_request_sample(avctx, "Sample depth %d", alac->sample_size); in alac_decode_init()
576 avctx->bits_per_raw_sample = alac->sample_size; in alac_decode_init()
Dv210_template.c46 const int sample_size = 6 * s->RENAME(sample_factor); in RENAME() local
47 const int sample_w = avctx->width / sample_size; in RENAME()
51 w = sample_w * sample_size; in RENAME()
Dpcm-bluray.c134 int sample_size, samples; in pcm_bluray_decode_frame() local
152 sample_size = (num_source_channels * in pcm_bluray_decode_frame()
154 samples = buf_size / sample_size; in pcm_bluray_decode_frame()
/third_party/alsa-lib/src/pcm/
Dpcm_dmix.c162 unsigned int chn, dchn, channels, sample_size; in mix_areas() local
169 sample_size = 2; in mix_areas()
174 sample_size = 4; in mix_areas()
178 sample_size = 4; in mix_areas()
182 sample_size = 3; in mix_areas()
186 sample_size = 1; in mix_areas()
198 (unsigned char *)dst_areas[0].addr + sample_size * dst_ofs * channels, in mix_areas()
199 (unsigned char *)src_areas[0].addr + sample_size * src_ofs * channels, in mix_areas()
201 sample_size, in mix_areas()
202 sample_size, in mix_areas()
[all …]
/third_party/libsnd/src/
Dsd2.c74 int sample_size, sample_rate, channels ; member
207 rsrc.sample_size = psf->bytewidth ; in sd2_write_rsrc_fork()
214 snprintf (str_rsrc [0].value, sizeof (str_rsrc [0].value), "_%d", rsrc.sample_size) ; in sd2_write_rsrc_fork()
557 if (rsrc_id == 1000 && rsrc->sample_size == 0) in parse_str_rsrc()
558 rsrc->sample_size = strtol (value, NULL, 10) ; in parse_str_rsrc()
566 psf_log_printf (psf, " sample-size : %d\n", rsrc->sample_size) ; in parse_str_rsrc()
570 if (rsrc->sample_rate <= 4 && rsrc->sample_size > 4) in parse_str_rsrc()
575 rsrc->sample_rate = rsrc->sample_size ; in parse_str_rsrc()
576 rsrc->sample_size = temp ; in parse_str_rsrc()
591 psf->bytewidth = rsrc->sample_size ; in parse_str_rsrc()
[all …]
/third_party/ffmpeg/libavformat/
Dsegafilm.c43 unsigned int sample_size; member
227 film->sample_table[i].sample_size = AV_RB32(&scratch[4]); in film_read_header()
228 if (film->sample_table[i].sample_size > INT_MAX / 4) { in film_read_header()
237 audio_frame_counter += (film->sample_table[i].sample_size * 32 / in film_read_header()
240 audio_frame_counter += (film->sample_table[i].sample_size / in film_read_header()
251 film->sample_table[i].sample_size, 0, in film_read_header()
302 ret = av_get_packet(pb, pkt, sample->sample_size); in film_read_packet()
303 if (ret != sample->sample_size) in film_read_packet()
Davidec.c50 int sample_size; /* size of one sample (or packet) member
135 if (ast->sample_size) in get_duration()
285 int max = ast->sample_size; in clean_index()
288 if (n != 1 || ast->sample_size == 0) in clean_index()
680 ast->sample_size = avio_rl32(pb); in avi_read_header()
681 ast->cum_len *= FFMAX(1, ast->sample_size); in avi_read_header()
683 ast->rate, ast->scale, ast->sample_size); in avi_read_header()
689 ast->sample_size = 0; in avi_read_header()
705 if (ast->sample_size < 0) { in avi_read_header()
709 ast->sample_size, in avi_read_header()
[all …]
/third_party/gstreamer/gstplugins_base/gst-libs/gst/rtp/
Dgstrtpbaseaudiopayload.c208 payload->sample_size = 0; in gst_rtp_base_audio_payload_init()
353 * rtpbaseaudiopayload, gint sample_size) in gst_rtp_base_audio_payload_set_sample_options() argument
359 sample_size * 8); in gst_rtp_base_audio_payload_set_sample_options()
371 * rtpbaseaudiopayload, gint sample_size) in gst_rtp_base_audio_payload_set_samplebits_options() argument
380 rtpbaseaudiopayload->sample_size = sample_size; in gst_rtp_base_audio_payload_set_samplebits_options()
383 fragment_size = sample_size; in gst_rtp_base_audio_payload_set_samplebits_options()
392 "Samplebits set to sample size %d bits", sample_size); in gst_rtp_base_audio_payload_set_samplebits_options()
798 if (G_LIKELY (payload->sample_size != 8)) in gst_rtp_base_audio_payload_sample_bytes_to_time()
799 rtptime = gst_util_uint64_scale_int (bytes, 8, payload->sample_size); in gst_rtp_base_audio_payload_sample_bytes_to_time()
812 if (G_LIKELY (payload->sample_size != 8)) in gst_rtp_base_audio_payload_sample_bytes_to_rtptime()
[all …]
Dgstrtpbaseaudiopayload.h59 gint sample_size; member
98 gint sample_size);
102 gint sample_size);
/third_party/alsa-utils/bat/
Dbat.c136 bat->sample_size = 2; in get_format()
141 bat->sample_size = 2; in get_format()
144 bat->sample_size = 1; in get_format()
147 bat->sample_size = 2; in get_format()
150 bat->sample_size = 3; in get_format()
153 bat->sample_size = 4; in get_format()
354 bat->sample_size = 2; in set_defaults()
617 bat->frame_size = bat->sample_size * bat->channels; in bat_init()
620 switch (bat->sample_size) { in bat_init()
639 bat->sample_size); in bat_init()
Dcommon.c37 bat->sample_size = fmt->sample_length / 8; in update_fmt_to_bat()
38 if (bat->sample_size > 4) { in update_fmt_to_bat()
40 bat->sample_size); in update_fmt_to_bat()
169 wav->format.sample_length = bat->sample_size * 8; in prepare_wav_info()
170 wav->format.blocks_align = bat->channels * bat->sample_size; in prepare_wav_info()
/third_party/mesa3d/src/amd/common/
Dac_spm.c347 uint32_t sample_size = 0; /* in bytes */ in ac_spm_get_sample_size() local
350 sample_size += spm_trace->num_muxsel_lines[s] * AC_SPM_MUXSEL_LINE_SIZE * 4; in ac_spm_get_sample_size()
353 return sample_size; in ac_spm_get_sample_size()
358 uint32_t sample_size = ac_spm_get_sample_size(spm_trace); in ac_spm_get_num_samples() local
370 if (num_lines_written % (sample_size / 32)) { in ac_spm_get_num_samples()
373 num_samples = num_lines_written / (sample_size / 32); in ac_spm_get_num_samples()
/third_party/gstreamer/gstplugins_good/gst/isomp4/
Dqtdemux_dump.c508 guint32 ver_flags = 0, sample_size = 0, num_entries = 0, i; in qtdemux_dump_stsz() local
511 !gst_byte_reader_get_uint32_be (data, &sample_size)) in qtdemux_dump_stsz()
515 GST_LOG ("%*s sample size: %d", depth, "", sample_size); in qtdemux_dump_stsz()
517 if (sample_size == 0) { in qtdemux_dump_stsz()
685 guint value_size, traf_size, trun_size, sample_size; in qtdemux_dump_tfra() local
702 sample_size = (len & 3) + 1; in qtdemux_dump_tfra()
707 value_size + value_size + traf_size + trun_size + sample_size)) in qtdemux_dump_tfra()
721 qt_atom_parser_get_uint_with_size_unchecked (data, sample_size)); in qtdemux_dump_tfra()
783 guint32 sample_duration = 0, sample_size = 0, sample_flags = in qtdemux_dump_trun() local
817 if (!gst_byte_reader_get_uint32_be (data, &sample_size)) in qtdemux_dump_trun()
[all …]
Dgstqtmux.c692 qtpad->sample_size = 0; in gst_qt_mux_pad_reset()
2745 return (next_sample_offset - qpad->sample_offset) * qpad->sample_size; in prefill_get_sample_size()
2818 nsamples * qtpad->sample_size) in prefill_raw_audio_prepare_buf_func()
2829 qtpad->sample_size * atom_trak_get_timescale (qtpad->trak)); in prefill_raw_audio_prepare_buf_func()
2834 qtpad->sample_size : gst_adapter_available (qtpad->raw_audio_adapter)); in prefill_raw_audio_prepare_buf_func()
2847 nsamples * qtpad->sample_size) { in prefill_raw_audio_prepare_buf_func()
2854 qtpad->sample_size * atom_trak_get_timescale (qtpad->trak)); in prefill_raw_audio_prepare_buf_func()
2901 guint sample_size = prefill_get_sample_size (qtmux, qpad); in prefill_update_sample_size() local
2902 atom_trak_set_constant_size_samples (qpad->trak, sample_size); in prefill_update_sample_size()
2908 guint sample_size = prefill_get_sample_size (qtmux, qpad); in prefill_update_sample_size() local
[all …]
/third_party/ffmpeg/libavresample/
Daudio_data.c88 a->sample_size = av_get_bytes_per_sample(sample_fmt); in ff_audio_data_init()
89 if (!a->sample_size) { in ff_audio_data_init()
95 a->stride = a->sample_size * (a->is_planar ? 1 : channels); in ff_audio_data_init()
132 a->sample_size = av_get_bytes_per_sample(sample_fmt); in ff_audio_data_alloc()
133 if (!a->sample_size) { in ff_audio_data_alloc()
139 a->stride = a->sample_size * (a->is_planar ? 1 : channels); in ff_audio_data_alloc()
/third_party/alsa-utils/topology/
Dpre-process-dapm.c445 long periods, channels, sample_size; in tplg_update_buffer_auto_attr() local
514 sample_size = tplg_get_sample_size_from_format(format); in tplg_update_buffer_auto_attr()
515 if (sample_size < 0) { in tplg_update_buffer_auto_attr()
517 return sample_size; in tplg_update_buffer_auto_attr()
520 buffer_size = periods * sample_size * channels * frames; in tplg_update_buffer_auto_attr()
/third_party/python/Lib/
Dsndhdr.py109 sample_size = 1 # default
116 sample_size = 2
119 frame_size = sample_size * nchannels
/third_party/ffmpeg/libavdevice/
Dopenal-dec.c41 int sample_size; member
138 ad->sample_format = sample_formats[ad->sample_size/8-1][ad->channels-1]; in read_header()
236 …{"sample_size", "set sample size", OFFSET(sample_size), AV_OPT_TYPE_INT, {.i64=16}, 8,…
/third_party/gstreamer/gstplugins_bad/ext/soundtouch/
Dgstpitch.cc475 guint sample_size; in gst_pitch_convert() local
481 sample_size = pitch->info.bpf; in gst_pitch_convert()
485 if (sample_size == 0 || samplerate == 0) { in gst_pitch_convert()
500 sample_size * samplerate); in gst_pitch_convert()
503 *dst_value = gst_util_uint64_scale_int (src_value, 1, sample_size); in gst_pitch_convert()
514 gst_util_uint64_scale_int (src_value, samplerate * sample_size, in gst_pitch_convert()
529 *dst_value = gst_util_uint64_scale_int (src_value, sample_size, 1); in gst_pitch_convert()
/third_party/gstreamer/gstplugins_bad/sys/winks/
Dksvideohelpers.c485 entry->sample_size = vr->VideoInfoHeader.bmiHeader.biSizeImage; in ks_video_probe_filter_for_caps()
493 entry->sample_size = vr->VideoInfoHeader.bmiHeader.biSizeImage; in ks_video_probe_filter_for_caps()
503 entry->sample_size = in ks_video_probe_filter_for_caps()
512 entry->sample_size = in ks_video_probe_filter_for_caps()
521 entry->sample_size = vr->DataRange.SampleSize; in ks_video_probe_filter_for_caps()
535 g_assert (entry->sample_size != 0); in ks_video_probe_filter_for_caps()

123