Lines Matching refs:nb_streams
47 int nb_streams; member
73 for (s=0;s<st->layout.nb_streams;s++) in ms_get_preemph_mem()
93 for (s=0;s<st->layout.nb_streams;s++) in ms_get_window_mem()
104 static int validate_ambisonics(int nb_channels, int *nb_streams, int *nb_coupled_streams) in validate_ambisonics() argument
120 if (nb_streams) in validate_ambisonics()
121 *nb_streams = acn_channels + (nondiegetic_channels != 0); in validate_ambisonics()
130 for (s=0;s<layout->nb_streams;s++) in validate_encoder_layout()
376 opus_int32 opus_multistream_encoder_get_size(int nb_streams, int nb_coupled_streams) in opus_multistream_encoder_get_size() argument
381 if(nb_streams<1||nb_coupled_streams>nb_streams||nb_coupled_streams<0)return 0; in opus_multistream_encoder_get_size()
386 + (nb_streams-nb_coupled_streams) * align(mono_size); in opus_multistream_encoder_get_size()
391 int nb_streams; in opus_multistream_surround_encoder_get_size() local
399 nb_streams=1; in opus_multistream_surround_encoder_get_size()
403 nb_streams=1; in opus_multistream_surround_encoder_get_size()
409 nb_streams=vorbis_mappings[channels-1].nb_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()
421 size = opus_multistream_encoder_get_size(nb_streams, nb_coupled_streams); in opus_multistream_surround_encoder_get_size()
451 st->layout.nb_streams = streams; in opus_multistream_encoder_init_impl()
480 for (;i<st->layout.nb_streams;i++) in opus_multistream_encoder_init_impl()
546 *streams=vorbis_mappings[channels-1].nb_streams; in opus_multistream_surround_encoder_init()
690 nb_uncoupled = st->layout.nb_streams-nb_coupled-nb_lfe; in surround_rate_allocation()
725 for (i=0;i<st->layout.nb_streams;i++) in surround_rate_allocation()
747 const int nb_channels = st->layout.nb_streams + st->layout.nb_coupled_streams; in ambisonics_rate_allocation()
751 total_rate = (st->layout.nb_coupled_streams + st->layout.nb_streams) * in ambisonics_rate_allocation()
752 (Fs+60*Fs/frame_size) + st->layout.nb_streams * (opus_int32)15000; in ambisonics_rate_allocation()
763 per_stream_rate = total_rate / st->layout.nb_streams; in ambisonics_rate_allocation()
764 for (i = 0; i < st->layout.nb_streams; i++) in ambisonics_rate_allocation()
791 for (i=0;i<st->layout.nb_streams;i++) in rate_allocation()
855 smallest_packet = st->layout.nb_streams*2-1; in opus_multistream_encode_native()
858 smallest_packet += st->layout.nb_streams; in opus_multistream_encode_native()
889 for (s=0;s<st->layout.nb_streams;s++) in opus_multistream_encode_native()
927 for (s=0;s<st->layout.nb_streams;s++) in opus_multistream_encode_native()
977 curr_max -= IMAX(0,2*(st->layout.nb_streams-s-1)-1); in opus_multistream_encode_native()
980 curr_max -= st->layout.nb_streams-s-1; in opus_multistream_encode_native()
983 if (s != st->layout.nb_streams-1) curr_max -= curr_max>253 ? 2 : 1; in opus_multistream_encode_native()
984 if (!vbr && s == st->layout.nb_streams-1) in opus_multistream_encode_native()
1005 …data, max_data_bytes-tot_size, s != st->layout.nb_streams-1, !vbr && s == st->layout.nb_streams-1); in opus_multistream_encode_native()
1149 for (s=0;s<st->layout.nb_streams;s++) in opus_multistream_encoder_ctl_va_list()
1197 for (s=0;s<st->layout.nb_streams;s++) in opus_multistream_encoder_ctl_va_list()
1230 for (s=0;s<st->layout.nb_streams;s++) in opus_multistream_encoder_ctl_va_list()
1251 if (stream_id<0 || stream_id >= st->layout.nb_streams) in opus_multistream_encoder_ctl_va_list()
1292 for (s=0;s<st->layout.nb_streams;s++) in opus_multistream_encoder_ctl_va_list()