eladalon | 4bb3b9c | 2017-09-11 07:25:26 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 11 | #ifndef LOGGING_RTC_EVENT_LOG_RTC_STREAM_CONFIG_H_ |
| 12 | #define LOGGING_RTC_EVENT_LOG_RTC_STREAM_CONFIG_H_ |
eladalon | 4bb3b9c | 2017-09-11 07:25:26 -0700 | [diff] [blame] | 13 | |
Yves Gerey | 988cc08 | 2018-10-23 12:03:01 +0200 | [diff] [blame] | 14 | #include <stdint.h> |
Jonas Olsson | a4d8737 | 2019-07-05 19:08:33 +0200 | [diff] [blame] | 15 | |
eladalon | 4bb3b9c | 2017-09-11 07:25:26 -0700 | [diff] [blame] | 16 | #include <string> |
| 17 | #include <vector> |
| 18 | |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 19 | #include "api/rtp_headers.h" |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 20 | #include "api/rtp_parameters.h" |
eladalon | 4bb3b9c | 2017-09-11 07:25:26 -0700 | [diff] [blame] | 21 | |
| 22 | namespace webrtc { |
| 23 | namespace rtclog { |
| 24 | |
| 25 | struct StreamConfig { |
| 26 | StreamConfig(); |
Bjorn Terelius | f4db542 | 2018-06-26 11:41:27 +0200 | [diff] [blame] | 27 | StreamConfig(const StreamConfig& other); |
eladalon | 4bb3b9c | 2017-09-11 07:25:26 -0700 | [diff] [blame] | 28 | ~StreamConfig(); |
| 29 | |
Elad Alon | 1d87b0e | 2017-10-03 15:01:03 +0200 | [diff] [blame] | 30 | bool operator==(const StreamConfig& other) const; |
Bjorn Terelius | f4db542 | 2018-06-26 11:41:27 +0200 | [diff] [blame] | 31 | bool operator!=(const StreamConfig& other) const; |
Elad Alon | 1d87b0e | 2017-10-03 15:01:03 +0200 | [diff] [blame] | 32 | |
eladalon | 4bb3b9c | 2017-09-11 07:25:26 -0700 | [diff] [blame] | 33 | uint32_t local_ssrc = 0; |
| 34 | uint32_t remote_ssrc = 0; |
| 35 | uint32_t rtx_ssrc = 0; |
| 36 | std::string rsid; |
| 37 | |
| 38 | bool remb = false; |
| 39 | std::vector<RtpExtension> rtp_extensions; |
| 40 | |
| 41 | RtcpMode rtcp_mode = RtcpMode::kReducedSize; |
| 42 | |
| 43 | struct Codec { |
| 44 | Codec(const std::string& payload_name, |
| 45 | int payload_type, |
| 46 | int rtx_payload_type); |
| 47 | |
Elad Alon | 1d87b0e | 2017-10-03 15:01:03 +0200 | [diff] [blame] | 48 | bool operator==(const Codec& other) const; |
| 49 | |
eladalon | 4bb3b9c | 2017-09-11 07:25:26 -0700 | [diff] [blame] | 50 | std::string payload_name; |
| 51 | int payload_type; |
| 52 | int rtx_payload_type; |
| 53 | }; |
| 54 | |
| 55 | std::vector<Codec> codecs; |
| 56 | }; |
| 57 | |
| 58 | } // namespace rtclog |
| 59 | } // namespace webrtc |
| 60 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 61 | #endif // LOGGING_RTC_EVENT_LOG_RTC_STREAM_CONFIG_H_ |