Lines Matching refs:channels

58    int          channels;
87 int opus_decoder_get_size(int channels)
91 if (channels<1 || channels > 2)
97 celtDecSizeBytes = celt_decoder_get_size(channels);
101 int opus_decoder_init(OpusDecoder *st, opus_int32 Fs, int channels)
108 || (channels!=1&&channels!=2))
111 OPUS_CLEAR((char*)st, opus_decoder_get_size(channels));
122 st->stream_channels = st->channels = channels;
126 st->DecControl.nChannelsAPI = st->channels;
133 ret = celt_decoder_init(celt_dec, Fs, channels);
143 OpusDecoder *opus_decoder_create(opus_int32 Fs, int channels, int *error)
148 || (channels!=1&&channels!=2))
154 st = (OpusDecoder *)opus_alloc(opus_decoder_get_size(channels));
161 ret = opus_decoder_init(st, Fs, channels);
173 opus_val16 *out, int overlap, int channels,
178 for (c=0;c<channels;c++)
183 out[i*channels+c] = SHR32(MAC16_16(MULT16_16(w,in2[i*channels+c]),
184 Q15ONE-w, in1[i*channels+c]), 15);
267 for (i=0;i<audiosize*st->channels;i++)
284 pcm += ret*st->channels;
308 pcm_transition_celt_size = F5*st->channels;
310 pcm_transition_silk_size = F5*st->channels;
328 pcm_silk_size = (mode != MODE_CELT_ONLY) ? IMAX(F10, frame_size)*st->channels : ALLOC_NONE;
374 for (i=0;i<frame_size*st->channels;i++)
381 pcm_ptr += silk_frame_size * st->channels;
457 redundant_audio_size = redundancy ? F5*st->channels : ALLOC_NONE;
483 for (i=0;i<frame_size*st->channels;i++)
497 for (i=0;i<frame_size*st->channels;i++)
500 for (i=0;i<frame_size*st->channels;i++)
519 smooth_fade(pcm+st->channels*(frame_size-F2_5), redundant_audio+st->channels*F2_5,
520 pcm+st->channels*(frame_size-F2_5), F2_5, st->channels, window, st->Fs);
524 for (c=0;c<st->channels;c++)
527 pcm[st->channels*i+c] = redundant_audio[st->channels*i+c];
529 smooth_fade(redundant_audio+st->channels*F2_5, pcm+st->channels*F2_5,
530 pcm+st->channels*F2_5, F2_5, st->channels, window, st->Fs);
536 for (i=0;i<st->channels*F2_5;i++)
538 smooth_fade(pcm_transition+st->channels*F2_5, pcm+st->channels*F2_5,
539 pcm+st->channels*F2_5, F2_5,
540 st->channels, window, st->Fs);
549 st->channels, window, st->Fs);
557 for (i=0;i<frame_size*st->channels;i++)
575 if (OPUS_CHECK_ARRAY(pcm, audiosize*st->channels))
604 ret = opus_decode_frame(st, NULL, 0, pcm+pcm_count*st->channels, frame_size-pcm_count, 0);
610 if (OPUS_CHECK_ARRAY(pcm, pcm_count*st->channels))
653 ret = opus_decode_frame(st, data, size[0], pcm+st->channels*(frame_size-packet_frame_size),
658 if (OPUS_CHECK_ARRAY(pcm, frame_size*st->channels))
678 ret = opus_decode_frame(st, data, size[i], pcm+nb_samples*st->channels, frame_size-nb_samples, 0);
686 if (OPUS_CHECK_ARRAY(pcm, nb_samples*st->channels))
690 opus_pcm_soft_clip(pcm, nb_samples, st->channels, st->softclip_mem);
720 ALLOC(out, frame_size*st->channels, opus_int16);
725 for (i=0;i<ret*st->channels;i++)
748 ALLOC(out, frame_size*st->channels, float);
753 for (i=0;i<ret*st->channels;i++)
813 st->stream_channels = st->channels;