Lines Matching defs:channels
54 ChanParam *channels;
97 av_freep(&s->channels);
175 const int channels = inlink->channels;
197 for (chan = 0; chan < channels; chan++) {
200 ChanParam *cp = &s->channels[chan];
221 const int channels = inlink->channels;
231 av_assert1(channels > 0); /* would corrupt delay_count and delay_index */
233 for (chan = 0; chan < channels; chan++) {
237 ChanParam *cp = &s->channels[chan];
294 const int channels = outlink->channels;
306 av_assert0(channels > 0);
307 for (chan = 0; chan < channels; chan++) {
311 ChanParam *cp = &s->channels[chan];
333 const int channels = outlink->channels;
344 if (channels <= 0) {
345 av_log(ctx, AV_LOG_ERROR, "Invalid number of channels: %d\n", channels);
349 if (nb_attacks > channels || nb_decays > channels) {
351 "Number of attacks/decays bigger than number of channels.\n");
357 s->channels = av_mallocz_array(channels, sizeof(*s->channels));
361 if (!s->channels || !s->segments) {
370 new_nb_items += sscanf(tstr, "%lf", &s->channels[i].attack) == 1;
371 if (s->channels[i].attack < 0) {
382 new_nb_items += sscanf(tstr, "%lf", &s->channels[i].decay) == 1;
383 if (s->channels[i].decay < 0) {
492 for (i = 0; i < channels; i++) {
493 ChanParam *cp = &s->channels[i];