Home | History | Annotate | Download | only in src

Lines Matching full:channels

58    int          channels;
82 int opus_decoder_get_size(int channels)
86 if (channels<1 || channels > 2)
92 celtDecSizeBytes = celt_decoder_get_size(channels);
96 int opus_decoder_init(OpusDecoder *st, opus_int32 Fs, int channels)
103 || (channels!=1&&channels!=2))
106 OPUS_CLEAR((char*)st, opus_decoder_get_size(channels));
117 st->stream_channels = st->channels = channels;
121 st->DecControl.nChannelsAPI = st->channels;
128 ret = celt_decoder_init(celt_dec, Fs, channels);
139 OpusDecoder *opus_decoder_create(opus_int32 Fs, int channels, int *error)
144 || (channels!=1&&channels!=2))
150 st = (OpusDecoder *)opus_alloc(opus_decoder_get_size(channels));
157 ret = opus_decoder_init(st, Fs, channels);
169 opus_val16 *out, int overlap, int channels,
174 for (c=0;c<channels;c++)
179 out[i*channels+c] = SHR32(MAC16_16(MULT16_16(w,in2[i*channels+c]),
180 Q15ONE-w, in1[i*channels+c]), 15);
264 for (i=0;i<audiosize*st->channels;i++)
281 pcm += ret*st->channels;
313 pcm_transition_celt_size = F5*st->channels;
315 pcm_transition_silk_size = F5*st->channels;
333 pcm_silk_size = (mode != MODE_CELT_ONLY && !celt_accum) ? IMAX(F10, frame_size)*st->channels : ALLOC_NONE;
385 for (i=0;i<frame_size*st->channels;i++)
392 pcm_ptr += silk_frame_size * st->channels;
468 redundant_audio_size = redundancy ? F5*st->channels : ALLOC_NONE;
496 for (i=0;i<frame_size*st->channels;i++)
511 for (i=0;i<frame_size*st->channels;i++)
514 for (i=0;i<frame_size*st->channels;i++)
533 smooth_fade(pcm+st->channels*(frame_size-F2_5), redundant_audio+st->channels*F2_5,
534 pcm+st->channels*(frame_size-F2_5), F2_5, st->channels, window, st->Fs);
538 for (c=0;c<st->channels;c++)
541 pcm[st->channels*i+c] = redundant_audio[st->channels*i+c];
543 smooth_fade(redundant_audio+st->channels*F2_5, pcm+st->channels*F2_5,
544 pcm+st->channels*F2_5, F2_5, st->channels, window, st->Fs);
550 for (i=0;i<st->channels*F2_5;i++)
552 smooth_fade(pcm_transition+st->channels*F2_5, pcm+st->channels*F2_5,
553 pcm+st->channels*F2_5, F2_5,
554 st->channels, window, st->Fs);
563 st->channels, window, st->Fs);
571 for (i=0;i<frame_size*st->channels;i++)
589 if (OPUS_CHECK_ARRAY(pcm, audiosize*st->channels))
618 ret = opus_decode_frame(st, NULL, 0, pcm+pcm_count*st->channels, frame_size-pcm_count, 0);
624 if (OPUS_CHECK_ARRAY(pcm, pcm_count*st->channels))
667 ret = opus_decode_frame(st, data, size[0], pcm+st->channels*(frame_size-packet_frame_size),
672 if (OPUS_CHECK_ARRAY(pcm, frame_size*st->channels))
692 ret = opus_decode_frame(st, data, size[i], pcm+nb_samples*st->channels, frame_size-nb_samples, 0);
700 if (OPUS_CHECK_ARRAY(pcm, nb_samples*st->channels))
704 opus_pcm_soft_clip(pcm, nb_samples, st->channels, st->softclip_mem);
743 ALLOC(out, frame_size*st->channels, opus_int16);
748 for (i=0;i<ret*st->channels;i++)
780 ALLOC(out, frame_size*st->channels, float);
785 for (i=0;i<ret*st->channels;i++)
845 st->stream_channels = st->channels;