Lines Matching defs:channels
51 int ff_audio_data_set_channels(AudioData *a, int channels)
53 if (channels < 1 || channels > AVRESAMPLE_MAX_CHANNELS ||
54 channels > a->allocated_channels)
57 a->channels = channels;
58 a->planes = a->is_planar ? channels : 1;
65 int ff_audio_data_init(AudioData *a, uint8_t **src, int plane_size, int channels,
74 if (channels < 1 || channels > AVRESAMPLE_MAX_CHANNELS) {
75 av_log(a, AV_LOG_ERROR, "invalid channel count: %d\n", channels);
85 a->planes = a->is_planar ? channels : 1;
86 a->stride = a->sample_size * (a->is_planar ? 1 : channels);
88 for (p = 0; p < (a->is_planar ? channels : 1); p++) {
98 a->channels = channels;
99 a->allocated_channels = channels;
110 AudioData *ff_audio_data_alloc(int channels, int nb_samples,
116 if (channels < 1 || channels > AVRESAMPLE_MAX_CHANNELS)
129 a->planes = a->is_planar ? channels : 1;
130 a->stride = a->sample_size * (a->is_planar ? 1 : channels);
134 a->channels = channels;
135 a->allocated_channels = channels;
221 if (dst->sample_fmt != src->sample_fmt || dst->channels < src->channels)
275 if (dst->sample_fmt != src->sample_fmt || dst->channels != src->channels) {