Lines Matching refs:stream_channels
94 #define OPUS_ENCODER_RESET_START stream_channels
95 int stream_channels; member
205 st->stream_channels = st->channels = channels; in opus_encoder_init()
984 st->force_channels = st->stream_channels; in encode_multiframe_packet()
990 st->prev_channels = st->stream_channels; in encode_multiframe_packet()
1271 data[0] = gen_toc(tocmode, frame_rate, bw, st->stream_channels); in opus_encode_native()
1315 st->stream_channels = st->force_channels; in opus_encode_native()
1320 st->stream_channels = 3-st->stream_channels; in opus_encode_native()
1327 if (st->stream_channels == 2) in opus_encode_native()
1331 st->stream_channels = (equiv_rate > stereo_threshold) ? 2 : 1; in opus_encode_native()
1333 st->stream_channels = st->channels; in opus_encode_native()
1338 equiv_rate = compute_equiv_rate(st->bitrate_bps, st->stream_channels, st->Fs/frame_size, in opus_encode_native()
1434 if (st->stream_channels == 1 && st->prev_channels ==2 && st->silk_mode.toMono==0 in opus_encode_native()
1439 st->stream_channels = 2; in opus_encode_native()
1445 equiv_rate = compute_equiv_rate(st->bitrate_bps, st->stream_channels, st->Fs/frame_size, in opus_encode_native()
1532 if (equiv_rate <= 18000*st->stream_channels && st->mode == MODE_CELT_ONLY) in opus_encode_native()
1534 else if (equiv_rate <= 24000*st->stream_channels && st->mode == MODE_CELT_ONLY) in opus_encode_native()
1536 else if (equiv_rate <= 30000*st->stream_channels) in opus_encode_native()
1538 else if (equiv_rate <= 44000*st->stream_channels) in opus_encode_native()
1618 …bytes = compute_redundancy_bytes(max_data_bytes, st->bitrate_bps, frame_rate, st->stream_channels); in opus_encode_native()
1693 st->stream_channels); in opus_encode_native()
1749 st->silk_mode.nChannelsInternal = st->stream_channels; in opus_encode_native()
1809 st->stream_channels); in opus_encode_native()
1871 data[-1] = gen_toc(st->mode, st->Fs/frame_size, curr_bandwidth, st->stream_channels); in opus_encode_native()
1879 …bytes = compute_redundancy_bytes(max_data_bytes, st->bitrate_bps, frame_rate, st->stream_channels); in opus_encode_native()
1907 celt_encoder_ctl(celt_enc, CELT_SET_CHANNELS(st->stream_channels)); in opus_encode_native()
1957 if (st->mode != MODE_HYBRID || st->stream_channels==1) in opus_encode_native()
2130 data[0] = gen_toc(st->mode, st->Fs/frame_size, curr_bandwidth, st->stream_channels); in opus_encode_native()
2138 st->prev_channels = st->stream_channels; in opus_encode_native()
2151 data[0] = gen_toc(st->mode, st->Fs/frame_size, curr_bandwidth, st->stream_channels); in opus_encode_native()
2696 st->stream_channels = st->channels; in opus_encoder_ctl()