Home
last modified time | relevance | path

Searched refs:samples_per_block (Results 1 – 9 of 9) sorted by relevance

/third_party/ffmpeg/libavformat/
Dvpk.c45 unsigned samples_per_block; in vpk_read_header() local
65 samples_per_block = ((st->codecpar->block_align / st->codecpar->channels) * 28LL) / 16; in vpk_read_header()
66 if (samples_per_block <= 0) in vpk_read_header()
68 vpk->block_count = (st->duration + (samples_per_block - 1)) / samples_per_block; in vpk_read_header()
69 vpk->last_block_size = (st->duration % samples_per_block) * 16 * st->codecpar->channels / 28; in vpk_read_header()
120 int samples_per_block; in vpk_read_seek() local
123 samples_per_block = av_get_audio_frame_duration2(par, par->block_align); in vpk_read_seek()
124 if (samples_per_block > 0) in vpk_read_seek()
125 timestamp /= samples_per_block; in vpk_read_seek()
133 ff_update_cur_dts(s, st, timestamp * samples_per_block); in vpk_read_seek()
Dmca.c32 uint32_t samples_per_block; member
79 m->samples_per_block = (m->block_size * 14) >> 3; in read_header()
81 if (m->samples_per_block < 1) in read_header()
84 m->block_count = nb_samples / m->samples_per_block; in read_header()
181 uint32_t samples = m->samples_per_block; in read_packet()
207 timestamp /= m->samples_per_block; in read_seek()
216 ff_update_cur_dts(s, st, timestamp * m->samples_per_block); in read_seek()
Dbrstm.c36 uint32_t samples_per_block; member
253 b->samples_per_block = read32(s); in read_header()
408 samples = b->samples_per_block; in read_packet()
471 timestamp /= b->samples_per_block; in read_seek()
480 ff_update_cur_dts(s, st, timestamp * b->samples_per_block); in read_seek()
/third_party/ffmpeg/libavcodec/
Dpcm-dvdenc.c29 int samples_per_block; // Number of samples per channel per block member
69 s->samples_per_block = 1; in pcm_dvd_encode_init()
79 s->samples_per_block = 4 / avctx->channels; in pcm_dvd_encode_init()
85 s->samples_per_block = 1; in pcm_dvd_encode_init()
92 s->samples_per_block = 4; in pcm_dvd_encode_init()
97 frame_size = FFALIGN(2008 / s->block_size, s->samples_per_block); in pcm_dvd_encode_init()
115 int64_t pkt_size = (frame->nb_samples / s->samples_per_block) * s->block_size + 3; in pcm_dvd_encode_frame()
Dpcm-dvd.c35 int samples_per_block; // Number of samples per channel per block member
102 s->samples_per_block = 1; in pcm_dvd_parse_header()
111 s->samples_per_block = 4 / avctx->channels; in pcm_dvd_parse_header()
117 s->samples_per_block = 1; in pcm_dvd_parse_header()
124 s->samples_per_block = 4; in pcm_dvd_parse_header()
252 frame->nb_samples = blocks * s->samples_per_block; in pcm_dvd_decode_frame()
Dpcm.c332 int sample_size, c, n, ret, samples_per_block; in pcm_decode_frame() local
339 samples_per_block = 1; in pcm_decode_frame()
342 samples_per_block = 2; in pcm_decode_frame()
376 frame->nb_samples = n * samples_per_block / avctx->channels; in pcm_decode_frame()
Dadpcm.c1040 int samples_per_block = ff_adpcm_ima_block_samples[avctx->bits_per_coded_sample - 2]; in adpcm_decode_frame() local
1045 for (n = 0; n < (nb_samples - 1) / samples_per_block; n++) { in adpcm_decode_frame()
1050 samples = &samples_p[i][1 + n * samples_per_block]; in adpcm_decode_frame()
1058 for (m = 0; m < samples_per_block; m++) { in adpcm_decode_frame()
1448 int samples_per_block = 28 * (3 - avctx->channels) * 4; in adpcm_decode_frame() local
1457 sample_offset += samples_per_block; in adpcm_decode_frame()
1825 int samples_per_block; in adpcm_decode_frame() local
1829 samples_per_block = avctx->extradata[0] / 16; in adpcm_decode_frame()
1832 samples_per_block = nb_samples / 16; in adpcm_decode_frame()
1843 for (i = 0; i < samples_per_block; i++) { in adpcm_decode_frame()
/third_party/gstreamer/gstplugins_bad/gst/adpcmenc/
Dadpcmenc.c128 int samples_per_block; member
158 enc->samples_per_block = in adpcmenc_setup()
194 gst_audio_encoder_set_frame_samples_min (benc, enc->samples_per_block); in adpcmenc_set_format()
195 gst_audio_encoder_set_frame_samples_max (benc, enc->samples_per_block); in adpcmenc_set_format()
334 if (read_pos > enc->samples_per_block * enc->channels) { in adpcmenc_encode_ima_block()
336 enc->samples_per_block); in adpcmenc_encode_ima_block()
390 enc->samples_per_block * BYTES_PER_SAMPLE * enc->channels; in adpcmenc_handle_frame()
404 ret = gst_audio_encoder_finish_frame (benc, outbuf, enc->samples_per_block); in adpcmenc_handle_frame()
/third_party/gstreamer/gstplugins_good/gst/audioparsers/
Dgstdcaparse.c176 gint * endianness, guint * num_blocks, guint * samples_per_block, in gst_dca_parse_parse_header() argument
231 *samples_per_block = ((hdr[2] >> 10) & 0x1f) + 1; in gst_dca_parse_parse_header()
240 *samples_per_block); in gst_dca_parse_parse_header()
261 *sample_rate, *num_blocks, *samples_per_block); in gst_dca_parse_parse_header()
328 guint size = 0, rate, chans, num_blocks, samples_per_block, depth; in gst_dca_parse_handle_frame() local
373 &endianness, &num_blocks, &samples_per_block, &terminator)) { in gst_dca_parse_handle_frame()
425 block_size = num_blocks * samples_per_block; in gst_dca_parse_handle_frame()