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

Side by Side Diff: webrtc/config.cc

Issue 2067103002: Avoid unnecessary HW video encoder reconfiguration (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: ReconfigureEncoderIfNecessary -> ReconfigureEncoder() Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « webrtc/config.h ('k') | webrtc/media/engine/webrtcvideoengine2.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 #include "webrtc/config.h" 10 #include "webrtc/config.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 } 100 }
101 ss << ']'; 101 ss << ']';
102 102
103 ss << '}'; 103 ss << '}';
104 return ss.str(); 104 return ss.str();
105 } 105 }
106 106
107 VideoEncoderConfig::VideoEncoderConfig() 107 VideoEncoderConfig::VideoEncoderConfig()
108 : content_type(ContentType::kRealtimeVideo), 108 : content_type(ContentType::kRealtimeVideo),
109 encoder_specific_settings(NULL), 109 encoder_specific_settings(NULL),
110 min_transmit_bitrate_bps(0) { 110 min_transmit_bitrate_bps(0),
111 } 111 expect_encode_from_texture(false) {}
112 112
113 VideoEncoderConfig::~VideoEncoderConfig() = default; 113 VideoEncoderConfig::~VideoEncoderConfig() = default;
114 114
115 std::string VideoEncoderConfig::ToString() const { 115 std::string VideoEncoderConfig::ToString() const {
116 std::stringstream ss; 116 std::stringstream ss;
117 117
118 ss << "{streams: ["; 118 ss << "{streams: [";
119 for (size_t i = 0; i < streams.size(); ++i) { 119 for (size_t i = 0; i < streams.size(); ++i) {
120 ss << streams[i].ToString(); 120 ss << streams[i].ToString();
121 if (i != streams.size() - 1) 121 if (i != streams.size() - 1)
(...skipping 11 matching lines...) Expand all
133 } 133 }
134 ss << ", encoder_specific_settings: "; 134 ss << ", encoder_specific_settings: ";
135 ss << (encoder_specific_settings != NULL ? "(ptr)" : "NULL"); 135 ss << (encoder_specific_settings != NULL ? "(ptr)" : "NULL");
136 136
137 ss << ", min_transmit_bitrate_bps: " << min_transmit_bitrate_bps; 137 ss << ", min_transmit_bitrate_bps: " << min_transmit_bitrate_bps;
138 ss << '}'; 138 ss << '}';
139 return ss.str(); 139 return ss.str();
140 } 140 }
141 141
142 } // namespace webrtc 142 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/config.h ('k') | webrtc/media/engine/webrtcvideoengine2.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698