Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 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 |
| 11 #ifndef WEBRTC_API_RTPPARAMETERS_H_ | 11 #ifndef WEBRTC_API_RTPPARAMETERS_H_ |
| 12 #define WEBRTC_API_RTPPARAMETERS_H_ | 12 #define WEBRTC_API_RTPPARAMETERS_H_ |
| 13 | 13 |
| 14 #include <string> | 14 #include <string> |
| 15 #include <vector> | 15 #include <vector> |
| 16 | 16 |
| 17 namespace webrtc { | 17 namespace webrtc { |
| 18 | 18 |
| 19 // These structures are defined as part of the RtpSender interface. | 19 // These structures are defined as part of the RtpSender interface. |
| 20 // See http://w3c.github.io/webrtc-pc/#rtcrtpsender-interface for details. | 20 // See http://w3c.github.io/webrtc-pc/#rtcrtpsender-interface for details. |
| 21 struct RtpEncodingParameters { | 21 struct RtpEncodingParameters { |
| 22 uint32_t ssrc; | |
| 22 bool active = true; | 23 bool active = true; |
| 23 int max_bitrate_bps = -1; | 24 int max_bitrate_bps = -1; |
| 24 | 25 |
| 25 bool operator==(const RtpEncodingParameters& o) const { | 26 bool operator==(const RtpEncodingParameters& o) const { |
| 26 return active == o.active && max_bitrate_bps == o.max_bitrate_bps; | 27 return active == o.active && max_bitrate_bps == o.max_bitrate_bps; |
|
perkj_webrtc
2016/06/16 13:28:28
add ssrc comparison..
sakal
2016/06/16 14:29:07
Done.
| |
| 27 } | 28 } |
| 28 bool operator!=(const RtpEncodingParameters& o) const { | 29 bool operator!=(const RtpEncodingParameters& o) const { |
| 29 return !(*this == o); | 30 return !(*this == o); |
| 30 } | 31 } |
| 31 }; | 32 }; |
| 32 | 33 |
| 33 struct RtpCodecParameters { | 34 struct RtpCodecParameters { |
| 34 int payload_type; | 35 int payload_type; |
| 35 std::string mime_type; | 36 std::string mime_type; |
| 36 int clock_rate; | 37 int clock_rate; |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 50 | 51 |
| 51 bool operator==(const RtpParameters& o) const { | 52 bool operator==(const RtpParameters& o) const { |
| 52 return encodings == o.encodings && codecs == o.codecs; | 53 return encodings == o.encodings && codecs == o.codecs; |
| 53 } | 54 } |
| 54 bool operator!=(const RtpParameters& o) const { return !(*this == o); } | 55 bool operator!=(const RtpParameters& o) const { return !(*this == o); } |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 } // namespace webrtc | 58 } // namespace webrtc |
| 58 | 59 |
| 59 #endif // WEBRTC_API_RTPPARAMETERS_H_ | 60 #endif // WEBRTC_API_RTPPARAMETERS_H_ |
| OLD | NEW |