| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // MediaControllerInterface::Create, and passed on when creating | 97 // MediaControllerInterface::Create, and passed on when creating |
| 98 // MediaChannels. | 98 // MediaChannels. |
| 99 struct MediaConfig { | 99 struct MediaConfig { |
| 100 // Set DSCP value on packets. This flag comes from the | 100 // Set DSCP value on packets. This flag comes from the |
| 101 // PeerConnection constraint 'googDscp'. | 101 // PeerConnection constraint 'googDscp'. |
| 102 bool enable_dscp = false; | 102 bool enable_dscp = false; |
| 103 | 103 |
| 104 // Video-specific config. | 104 // Video-specific config. |
| 105 struct Video { | 105 struct Video { |
| 106 // Enable WebRTC CPU Overuse Detection. This flag comes from the | 106 // Enable WebRTC CPU Overuse Detection. This flag comes from the |
| 107 // PeerConnection constraint 'googCpuOveruseDetection' and is | 107 // PeerConnection constraint 'googCpuOveruseDetection'. |
| 108 // checked in WebRtcVideoChannel2::OnLoadUpdate, where it's passed | |
| 109 // to VideoCapturer::video_adapter()->OnCpuResolutionRequest. | |
| 110 bool enable_cpu_overuse_detection = true; | 108 bool enable_cpu_overuse_detection = true; |
| 111 | 109 |
| 112 // Enable WebRTC suspension of video. No video frames will be sent | 110 // Enable WebRTC suspension of video. No video frames will be sent |
| 113 // when the bitrate is below the configured minimum bitrate. This | 111 // when the bitrate is below the configured minimum bitrate. This |
| 114 // flag comes from the PeerConnection constraint | 112 // flag comes from the PeerConnection constraint |
| 115 // 'googSuspendBelowMinBitrate', and WebRtcVideoChannel2 copies it | 113 // 'googSuspendBelowMinBitrate', and WebRtcVideoChannel2 copies it |
| 116 // to VideoSendStream::Config::suspend_below_min_bitrate. | 114 // to VideoSendStream::Config::suspend_below_min_bitrate. |
| 117 bool suspend_below_min_bitrate = false; | 115 bool suspend_below_min_bitrate = false; |
| 118 | 116 |
| 119 // Set to true if the renderer has an algorithm of frame selection. | 117 // Set to true if the renderer has an algorithm of frame selection. |
| (...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1132 // Signal when the media channel is ready to send the stream. Arguments are: | 1130 // Signal when the media channel is ready to send the stream. Arguments are: |
| 1133 // writable(bool) | 1131 // writable(bool) |
| 1134 sigslot::signal1<bool> SignalReadyToSend; | 1132 sigslot::signal1<bool> SignalReadyToSend; |
| 1135 // Signal for notifying that the remote side has closed the DataChannel. | 1133 // Signal for notifying that the remote side has closed the DataChannel. |
| 1136 sigslot::signal1<uint32_t> SignalStreamClosedRemotely; | 1134 sigslot::signal1<uint32_t> SignalStreamClosedRemotely; |
| 1137 }; | 1135 }; |
| 1138 | 1136 |
| 1139 } // namespace cricket | 1137 } // namespace cricket |
| 1140 | 1138 |
| 1141 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_ | 1139 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_ |
| OLD | NEW |