Lines Matching refs:sample_size
99 int n, c, sample_size, v, ret; in pcm_encode_frame() local
109 sample_size = av_get_bits_per_sample(avctx->codec->id) / 8; in pcm_encode_frame()
113 if ((ret = ff_get_encode_buffer(avctx, avpkt, n * sample_size, 0)) < 0) in pcm_encode_frame()
205 memcpy(dst, samples, n * sample_size); in pcm_encode_frame()
216 bytestream_put_buffer(&dst, src, n * sample_size); in pcm_encode_frame()
336 int sample_size, c, n, ret, samples_per_block; in pcm_decode_frame() local
340 sample_size = av_get_bits_per_sample(avctx->codec_id) / 8; in pcm_decode_frame()
347 sample_size = 5; in pcm_decode_frame()
350 if (sample_size == 0) { in pcm_decode_frame()
365 n = channels * sample_size; in pcm_decode_frame()
377 n = buf_size / sample_size; in pcm_decode_frame()
492 memcpy(samples, src, n * sample_size); in pcm_decode_frame()
503 bytestream_get_buffer(&src, samples, n * sample_size); in pcm_decode_frame()