| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 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 | 10 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 // MediaControllerInterface::Create, and passed on when creating | 98 // MediaControllerInterface::Create, and passed on when creating |
| 99 // MediaChannels. | 99 // MediaChannels. |
| 100 struct MediaConfig { | 100 struct MediaConfig { |
| 101 // Set DSCP value on packets. This flag comes from the | 101 // Set DSCP value on packets. This flag comes from the |
| 102 // PeerConnection constraint 'googDscp'. | 102 // PeerConnection constraint 'googDscp'. |
| 103 bool enable_dscp = false; | 103 bool enable_dscp = false; |
| 104 | 104 |
| 105 // Video-specific config. | 105 // Video-specific config. |
| 106 struct Video { | 106 struct Video { |
| 107 // Enable WebRTC CPU Overuse Detection. This flag comes from the | 107 // Enable WebRTC CPU Overuse Detection. This flag comes from the |
| 108 // PeerConnection constraint 'googCpuOveruseDetection' and is | 108 // PeerConnection constraint 'googCpuOveruseDetection'. |
| 109 // checked in WebRtcVideoChannel2::OnLoadUpdate, where it's passed | |
| 110 // to VideoCapturer::video_adapter()->OnCpuResolutionRequest. | |
| 111 bool enable_cpu_overuse_detection = true; | 109 bool enable_cpu_overuse_detection = true; |
| 112 | 110 |
| 113 // Enable WebRTC suspension of video. No video frames will be sent | 111 // Enable WebRTC suspension of video. No video frames will be sent |
| 114 // when the bitrate is below the configured minimum bitrate. This | 112 // when the bitrate is below the configured minimum bitrate. This |
| 115 // flag comes from the PeerConnection constraint | 113 // flag comes from the PeerConnection constraint |
| 116 // 'googSuspendBelowMinBitrate', and WebRtcVideoChannel2 copies it | 114 // 'googSuspendBelowMinBitrate', and WebRtcVideoChannel2 copies it |
| 117 // to VideoSendStream::Config::suspend_below_min_bitrate. | 115 // to VideoSendStream::Config::suspend_below_min_bitrate. |
| 118 bool suspend_below_min_bitrate = false; | 116 bool suspend_below_min_bitrate = false; |
| 119 | 117 |
| 120 // Set to true if the renderer has an algorithm of frame selection. | 118 // Set to true if the renderer has an algorithm of frame selection. |
| (...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1160 // Signal when the media channel is ready to send the stream. Arguments are: | 1158 // Signal when the media channel is ready to send the stream. Arguments are: |
| 1161 // writable(bool) | 1159 // writable(bool) |
| 1162 sigslot::signal1<bool> SignalReadyToSend; | 1160 sigslot::signal1<bool> SignalReadyToSend; |
| 1163 // Signal for notifying that the remote side has closed the DataChannel. | 1161 // Signal for notifying that the remote side has closed the DataChannel. |
| 1164 sigslot::signal1<uint32_t> SignalStreamClosedRemotely; | 1162 sigslot::signal1<uint32_t> SignalStreamClosedRemotely; |
| 1165 }; | 1163 }; |
| 1166 | 1164 |
| 1167 } // namespace cricket | 1165 } // namespace cricket |
| 1168 | 1166 |
| 1169 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_ | 1167 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_ |
| OLD | NEW |