Lines Matching refs:streams
301 const std::vector<VideoStream>& streams = config.streams; in ReconfigureVideoEncoder() local
302 RTC_DCHECK(!streams.empty()); in ReconfigureVideoEncoder()
303 RTC_DCHECK_GE(config_.rtp.ssrcs.size(), streams.size()); in ReconfigureVideoEncoder()
323 if (config.streams.size() == 1 && in ReconfigureVideoEncoder()
324 config.streams[0].temporal_layer_thresholds_bps.size() == 1) { in ReconfigureVideoEncoder()
326 config.streams[0].temporal_layer_thresholds_bps[0] / 1000; in ReconfigureVideoEncoder()
346 streams.back().temporal_layer_thresholds_bps.size() + 1); in ReconfigureVideoEncoder()
360 streams.back().temporal_layer_thresholds_bps.size() + 1); in ReconfigureVideoEncoder()
378 static_cast<unsigned char>(streams.size()); in ReconfigureVideoEncoder()
379 video_codec.minBitrate = streams[0].min_bitrate_bps / 1000; in ReconfigureVideoEncoder()
380 RTC_DCHECK_LE(streams.size(), static_cast<size_t>(kMaxSimulcastStreams)); in ReconfigureVideoEncoder()
391 for (size_t i = 0; i < streams.size(); ++i) { in ReconfigureVideoEncoder()
393 RTC_DCHECK_GT(streams[i].width, 0u); in ReconfigureVideoEncoder()
394 RTC_DCHECK_GT(streams[i].height, 0u); in ReconfigureVideoEncoder()
395 RTC_DCHECK_GT(streams[i].max_framerate, 0); in ReconfigureVideoEncoder()
397 RTC_DCHECK_EQ(streams[i].max_framerate, streams[0].max_framerate); in ReconfigureVideoEncoder()
398 RTC_DCHECK_GE(streams[i].min_bitrate_bps, 0); in ReconfigureVideoEncoder()
399 RTC_DCHECK_GE(streams[i].target_bitrate_bps, streams[i].min_bitrate_bps); in ReconfigureVideoEncoder()
400 RTC_DCHECK_GE(streams[i].max_bitrate_bps, streams[i].target_bitrate_bps); in ReconfigureVideoEncoder()
401 RTC_DCHECK_GE(streams[i].max_qp, 0); in ReconfigureVideoEncoder()
403 sim_stream->width = static_cast<uint16_t>(streams[i].width); in ReconfigureVideoEncoder()
404 sim_stream->height = static_cast<uint16_t>(streams[i].height); in ReconfigureVideoEncoder()
405 sim_stream->minBitrate = streams[i].min_bitrate_bps / 1000; in ReconfigureVideoEncoder()
406 sim_stream->targetBitrate = streams[i].target_bitrate_bps / 1000; in ReconfigureVideoEncoder()
407 sim_stream->maxBitrate = streams[i].max_bitrate_bps / 1000; in ReconfigureVideoEncoder()
408 sim_stream->qpMax = streams[i].max_qp; in ReconfigureVideoEncoder()
410 streams[i].temporal_layer_thresholds_bps.size() + 1); in ReconfigureVideoEncoder()
413 static_cast<uint16_t>(streams[i].width)); in ReconfigureVideoEncoder()
415 video_codec.height, static_cast<uint16_t>(streams[i].height)); in ReconfigureVideoEncoder()
418 static_cast<uint16_t>(streams[i].min_bitrate_bps / 1000)); in ReconfigureVideoEncoder()
419 video_codec.maxBitrate += streams[i].max_bitrate_bps / 1000; in ReconfigureVideoEncoder()
421 static_cast<unsigned int>(streams[i].max_qp)); in ReconfigureVideoEncoder()
428 RTC_DCHECK_GT(streams[0].max_framerate, 0); in ReconfigureVideoEncoder()
429 video_codec.maxFramerate = streams[0].max_framerate; in ReconfigureVideoEncoder()