Lines Matching refs:channels
142 static void channel_pos(int channels, int pos[8]) in channel_pos() argument
145 if (channels==4) in channel_pos()
151 } else if (channels==3||channels==5||channels==6) in channel_pos()
159 } else if (channels==7) in channel_pos()
168 } else if (channels==8) in channel_pos()
221 int len, int overlap, int channels, int rate, opus_copy_channel_in_func copy_channel_in in surround_analysis() argument
249 channel_pos(channels, pos); in surround_analysis()
255 for (c=0;c<channels;c++) in surround_analysis()
258 (*copy_channel_in)(x, 1, pcm, channels, c, len); in surround_analysis()
305 channel_offset = HALF16(celt_log2(QCONST32(2.f,14)/(channels-1))); in surround_analysis()
316 for (c=0;c<channels;c++) in surround_analysis()
357 opus_int32 opus_multistream_surround_encoder_get_size(int channels, int mapping_family) in opus_multistream_surround_encoder_get_size() argument
365 if (channels==1) in opus_multistream_surround_encoder_get_size()
369 } else if (channels==2) in opus_multistream_surround_encoder_get_size()
375 } else if (mapping_family==1 && channels<=8 && channels>=1) in opus_multistream_surround_encoder_get_size()
377 nb_streams=vorbis_mappings[channels-1].nb_streams; in opus_multistream_surround_encoder_get_size()
378 nb_coupled_streams=vorbis_mappings[channels-1].nb_coupled_streams; in opus_multistream_surround_encoder_get_size()
381 nb_streams=channels; in opus_multistream_surround_encoder_get_size()
386 if (channels>2) in opus_multistream_surround_encoder_get_size()
388 size += channels*(120*sizeof(opus_val32) + sizeof(opus_val32)); in opus_multistream_surround_encoder_get_size()
397 int channels, in opus_multistream_encoder_init_impl() argument
410 if ((channels>255) || (channels<1) || (coupled_streams>streams) || in opus_multistream_encoder_init_impl()
414 st->layout.nb_channels = channels; in opus_multistream_encoder_init_impl()
449 OPUS_CLEAR(ms_get_preemph_mem(st), channels); in opus_multistream_encoder_init_impl()
450 OPUS_CLEAR(ms_get_window_mem(st), channels*120); in opus_multistream_encoder_init_impl()
459 int channels, in opus_multistream_encoder_init() argument
466 …return opus_multistream_encoder_init_impl(st, Fs, channels, streams, coupled_streams, mapping, app… in opus_multistream_encoder_init()
472 int channels, in opus_multistream_surround_encoder_init() argument
480 if ((channels>255) || (channels<1)) in opus_multistream_surround_encoder_init()
485 if (channels==1) in opus_multistream_surround_encoder_init()
490 } else if (channels==2) in opus_multistream_surround_encoder_init()
498 } else if (mapping_family==1 && channels<=8 && channels>=1) in opus_multistream_surround_encoder_init()
501 *streams=vorbis_mappings[channels-1].nb_streams; in opus_multistream_surround_encoder_init()
502 *coupled_streams=vorbis_mappings[channels-1].nb_coupled_streams; in opus_multistream_surround_encoder_init()
503 for (i=0;i<channels;i++) in opus_multistream_surround_encoder_init()
504 mapping[i] = vorbis_mappings[channels-1].mapping[i]; in opus_multistream_surround_encoder_init()
505 if (channels>=6) in opus_multistream_surround_encoder_init()
510 *streams=channels; in opus_multistream_surround_encoder_init()
512 for(i=0;i<channels;i++) in opus_multistream_surround_encoder_init()
516 return opus_multistream_encoder_init_impl(st, Fs, channels, *streams, *coupled_streams, in opus_multistream_surround_encoder_init()
517 mapping, application, channels>2&&mapping_family==1); in opus_multistream_surround_encoder_init()
522 int channels, in opus_multistream_encoder_create() argument
532 if ((channels>255) || (channels<1) || (coupled_streams>streams) || in opus_multistream_encoder_create()
546 …ret = opus_multistream_encoder_init(st, Fs, channels, streams, coupled_streams, mapping, applicati… in opus_multistream_encoder_create()
559 int channels, in opus_multistream_surround_encoder_create() argument
570 if ((channels>255) || (channels<1)) in opus_multistream_surround_encoder_create()
576 …st = (OpusMSEncoder *)opus_alloc(opus_multistream_surround_encoder_get_size(channels, mapping_fami… in opus_multistream_surround_encoder_create()
583 …ret = opus_multistream_surround_encoder_init(st, Fs, channels, mapping_family, streams, coupled_st… in opus_multistream_surround_encoder_create()
712 int channels; in opus_multistream_encode_native() local
714 channels = st->layout.nb_streams + st->layout.nb_coupled_streams; in opus_multistream_encode_native()
718 st->variable_duration, channels, Fs, st->bitrate_bps, in opus_multistream_encode_native()