Lines Matching refs:channels

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