| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |