Lines Matching refs:nb_samples
119 int av_samples_get_buffer_size(int *linesize, int nb_channels, int nb_samples, in av_samples_get_buffer_size() argument
127 if (!sample_size || nb_samples <= 0 || nb_channels <= 0) in av_samples_get_buffer_size()
132 if (nb_samples > INT_MAX - 31) in av_samples_get_buffer_size()
135 nb_samples = FFALIGN(nb_samples, 32); 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()
152 const uint8_t *buf, int nb_channels, int nb_samples, in av_samples_fill_arrays() argument
158 buf_size = av_samples_get_buffer_size(&line_size, nb_channels, nb_samples, in av_samples_fill_arrays()
174 int nb_samples, enum AVSampleFormat sample_fmt, int align) in av_samples_alloc() argument
177 int size = av_samples_get_buffer_size(NULL, nb_channels, nb_samples, in av_samples_alloc()
187 nb_samples, sample_fmt, align); in av_samples_alloc()
193 av_samples_set_silence(audio_data, 0, nb_samples, nb_channels, sample_fmt); in av_samples_alloc()
199 int nb_samples, enum AVSampleFormat sample_fmt, int align) in av_samples_alloc_array_and_samples() argument
207 nb_samples, sample_fmt, align); in av_samples_alloc_array_and_samples()
214 int src_offset, int nb_samples, int nb_channels, in av_samples_copy() argument
220 int data_size = nb_samples * block_align; in av_samples_copy()
237 int av_samples_set_silence(uint8_t **audio_data, int offset, int nb_samples, in av_samples_set_silence() argument
243 int data_size = nb_samples * block_align; in av_samples_set_silence()