Lines Matching full:channels

146 static void channel_pos(int channels, int pos[8])  in channel_pos()  argument
149 if (channels==4) in channel_pos()
155 } else if (channels==3||channels==5||channels==6) in channel_pos()
163 } else if (channels==7) in channel_pos()
172 } else if (channels==8) in channel_pos()
225 … int len, int overlap, int channels, int rate, opus_copy_channel_in_func copy_channel_in, int arch in surround_analysis() argument
256 channel_pos(channels, pos); in surround_analysis()
262 for (c=0;c<channels;c++) in surround_analysis()
268 (*copy_channel_in)(x, 1, pcm, channels, c, len, NULL); in surround_analysis()
337 channel_offset = HALF16(celt_log2(QCONST32(2.f,14)/(channels-1))); in surround_analysis()
348 for (c=0;c<channels;c++) in surround_analysis()
389 opus_int32 opus_multistream_surround_encoder_get_size(int channels, int mapping_family) in opus_multistream_surround_encoder_get_size() argument
397 if (channels==1) in opus_multistream_surround_encoder_get_size()
401 } else if (channels==2) in opus_multistream_surround_encoder_get_size()
407 } else if (mapping_family==1 && channels<=8 && channels>=1) in opus_multistream_surround_encoder_get_size()
409 nb_streams=vorbis_mappings[channels-1].nb_streams; in opus_multistream_surround_encoder_get_size()
410 nb_coupled_streams=vorbis_mappings[channels-1].nb_coupled_streams; in opus_multistream_surround_encoder_get_size()
413 nb_streams=channels; in opus_multistream_surround_encoder_get_size()
417 if (!validate_ambisonics(channels, &nb_streams, &nb_coupled_streams)) in opus_multistream_surround_encoder_get_size()
422 if (channels>2) in opus_multistream_surround_encoder_get_size()
424 size += channels*(120*sizeof(opus_val32) + sizeof(opus_val32)); in opus_multistream_surround_encoder_get_size()
432 int channels, in opus_multistream_encoder_init_impl() argument
445 if ((channels>255) || (channels<1) || (coupled_streams>streams) || in opus_multistream_encoder_init_impl()
450 st->layout.nb_channels = channels; in opus_multistream_encoder_init_impl()
490 OPUS_CLEAR(ms_get_preemph_mem(st), channels); in opus_multistream_encoder_init_impl()
491 OPUS_CLEAR(ms_get_window_mem(st), channels*120); in opus_multistream_encoder_init_impl()
500 int channels, in opus_multistream_encoder_init() argument
507 return opus_multistream_encoder_init_impl(st, Fs, channels, streams, in opus_multistream_encoder_init()
515 int channels, in opus_multistream_surround_encoder_init() argument
525 if ((channels>255) || (channels<1)) in opus_multistream_surround_encoder_init()
530 if (channels==1) in opus_multistream_surround_encoder_init()
535 } else if (channels==2) in opus_multistream_surround_encoder_init()
543 } else if (mapping_family==1 && channels<=8 && channels>=1) in opus_multistream_surround_encoder_init()
546 *streams=vorbis_mappings[channels-1].nb_streams; in opus_multistream_surround_encoder_init()
547 *coupled_streams=vorbis_mappings[channels-1].nb_coupled_streams; in opus_multistream_surround_encoder_init()
548 for (i=0;i<channels;i++) in opus_multistream_surround_encoder_init()
549 mapping[i] = vorbis_mappings[channels-1].mapping[i]; in opus_multistream_surround_encoder_init()
550 if (channels>=6) in opus_multistream_surround_encoder_init()
555 *streams=channels; in opus_multistream_surround_encoder_init()
557 for(i=0;i<channels;i++) in opus_multistream_surround_encoder_init()
562 if (!validate_ambisonics(channels, streams, coupled_streams)) in opus_multistream_surround_encoder_init()
571 if (channels>2 && mapping_family==1) { in opus_multistream_surround_encoder_init()
580 return opus_multistream_encoder_init_impl(st, Fs, channels, *streams, in opus_multistream_surround_encoder_init()
587 int channels, in opus_multistream_encoder_create() argument
597 if ((channels>255) || (channels<1) || (coupled_streams>streams) || in opus_multistream_encoder_create()
611 …ret = opus_multistream_encoder_init(st, Fs, channels, streams, coupled_streams, mapping, applicati… in opus_multistream_encoder_create()
624 int channels, in opus_multistream_surround_encoder_create() argument
636 if ((channels>255) || (channels<1)) in opus_multistream_surround_encoder_create()
642 size = opus_multistream_surround_encoder_get_size(channels, mapping_family); in opus_multistream_surround_encoder_create()
656 …ret = opus_multistream_surround_encoder_init(st, Fs, channels, mapping_family, streams, coupled_st… in opus_multistream_surround_encoder_create()
711 This models the main saving of coupled channels over uncoupled. */ in surround_rate_allocation()