• Home
  • Raw
  • Download

Lines Matching refs:streaminfos_

177   while (!streaminfos_.empty()) {  in Release()
179 std::move(streaminfos_.back().encoder); in Release()
185 streaminfos_.pop_back(); // Deletes callback adapter. in Release()
326 streaminfos_.emplace_back( in InitEncode()
334 streaminfos_.emplace_back( in InitEncode()
372 for (size_t stream_idx = 0; stream_idx < streaminfos_.size(); ++stream_idx) { in Encode()
373 if (streaminfos_[stream_idx].key_frame_request && in Encode()
374 streaminfos_[stream_idx].send_stream) { in Encode()
384 for (size_t stream_idx = 0; stream_idx < streaminfos_.size(); ++stream_idx) { in Encode()
386 if (!streaminfos_[stream_idx].send_stream) { in Encode()
397 streaminfos_.size() == 1 ? NumberOfStreams(codec_) : 1); in Encode()
401 streaminfos_[stream_idx].key_frame_request = false; in Encode()
403 if (streaminfos_[stream_idx].framerate_controller->DropFrame( in Encode()
410 streaminfos_[stream_idx].framerate_controller->AddFrame(frame_timestamp_ms); in Encode()
412 int dst_width = streaminfos_[stream_idx].width; in Encode()
413 int dst_height = streaminfos_[stream_idx].height; in Encode()
427 streaminfos_[stream_idx] in Encode()
430 int ret = streaminfos_[stream_idx].encoder->Encode(input_image, in Encode()
452 streaminfos_[stream_idx].encoder->Encode(frame, &stream_frame_types); in Encode()
466 if (streaminfos_.size() == 1) { in RegisterEncodeCompleteCallback()
467 streaminfos_[0].encoder->RegisterEncodeCompleteCallback(callback); in RegisterEncodeCompleteCallback()
488 if (streaminfos_.size() == 1) { in SetRates()
490 streaminfos_[0].encoder->SetRates(parameters); in SetRates()
494 for (size_t stream_idx = 0; stream_idx < streaminfos_.size(); ++stream_idx) { in SetRates()
499 if (stream_bitrate_kbps > 0 && !streaminfos_[stream_idx].send_stream) { in SetRates()
500 streaminfos_[stream_idx].key_frame_request = true; in SetRates()
502 streaminfos_[stream_idx].send_stream = stream_bitrate_kbps > 0; in SetRates()
532 streaminfos_[stream_idx].framerate_controller->GetTargetRate()); in SetRates()
534 streaminfos_[stream_idx].encoder->SetRates(stream_parameters); in SetRates()
539 for (StreamInfo& info : streaminfos_) { in OnPacketLossRateUpdate()
545 for (StreamInfo& info : streaminfos_) { in OnRttUpdate()
552 for (StreamInfo& info : streaminfos_) { in OnLossNotification()
635 if (streaminfos_.size() == 1) { in GetEncoderInfo()
637 return streaminfos_[0].encoder->GetEncoderInfo(); in GetEncoderInfo()
645 if (streaminfos_.empty()) { in GetEncoderInfo()
652 for (size_t i = 0; i < streaminfos_.size(); ++i) { in GetEncoderInfo()
654 streaminfos_[i].encoder->GetEncoderInfo(); in GetEncoderInfo()