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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 static T MinPositive(T a, T b) { | 85 static T MinPositive(T a, T b) { |
86 if (a <= 0) { | 86 if (a <= 0) { |
87 return b; | 87 return b; |
88 } | 88 } |
89 if (b <= 0) { | 89 if (b <= 0) { |
90 return a; | 90 return a; |
91 } | 91 } |
92 return std::min(a, b); | 92 return std::min(a, b); |
93 } | 93 } |
94 | 94 |
95 // Construction-time settings, passed to | 95 // Construction-time settings, passed on when creating |
96 // MediaControllerInterface::Create, and passed on when creating | |
97 // MediaChannels. | 96 // MediaChannels. |
98 struct MediaConfig { | 97 struct MediaConfig { |
99 // Set DSCP value on packets. This flag comes from the | 98 // Set DSCP value on packets. This flag comes from the |
100 // PeerConnection constraint 'googDscp'. | 99 // PeerConnection constraint 'googDscp'. |
101 bool enable_dscp = false; | 100 bool enable_dscp = false; |
102 | 101 |
103 // Video-specific config. | 102 // Video-specific config. |
104 struct Video { | 103 struct Video { |
105 // Enable WebRTC CPU Overuse Detection. This flag comes from the | 104 // Enable WebRTC CPU Overuse Detection. This flag comes from the |
106 // PeerConnection constraint 'googCpuOveruseDetection'. | 105 // PeerConnection constraint 'googCpuOveruseDetection'. |
(...skipping 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1205 const char*, | 1204 const char*, |
1206 size_t> SignalDataReceived; | 1205 size_t> SignalDataReceived; |
1207 // Signal when the media channel is ready to send the stream. Arguments are: | 1206 // Signal when the media channel is ready to send the stream. Arguments are: |
1208 // writable(bool) | 1207 // writable(bool) |
1209 sigslot::signal1<bool> SignalReadyToSend; | 1208 sigslot::signal1<bool> SignalReadyToSend; |
1210 }; | 1209 }; |
1211 | 1210 |
1212 } // namespace cricket | 1211 } // namespace cricket |
1213 | 1212 |
1214 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_ | 1213 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_ |
OLD | NEW |