Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(749)

Unified Diff: webrtc/config.cc

Issue 2351633002: Let ViEEncoder handle resolution changes. (Closed)
Patch Set: Fix perf test Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/config.cc
diff --git a/webrtc/config.cc b/webrtc/config.cc
index d870878a631c16e29eab52077c7d34726abdfba0..4b7a323a5cd38379f6607bf199d8e5f7f3927f2e 100644
--- a/webrtc/config.cc
+++ b/webrtc/config.cc
@@ -115,21 +115,14 @@ VideoEncoderConfig::VideoEncoderConfig()
: content_type(ContentType::kRealtimeVideo),
encoder_specific_settings(NULL),
min_transmit_bitrate_bps(0),
- expect_encode_from_texture(false) {}
+ max_bitrate_bps(0),
+ number_of_streams(0) {}
VideoEncoderConfig::~VideoEncoderConfig() = default;
std::string VideoEncoderConfig::ToString() const {
std::stringstream ss;
-
- ss << "{streams: [";
- for (size_t i = 0; i < streams.size(); ++i) {
- ss << streams[i].ToString();
- if (i != streams.size() - 1)
- ss << ", ";
- }
- ss << ']';
- ss << ", content_type: ";
+ ss << "{content_type: ";
switch (content_type) {
case ContentType::kRealtimeVideo:
ss << "kRealtimeVideo";

Powered by Google App Engine
This is Rietveld 408576698