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