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 | |
| 14 | #include <string> |
| 15 | #include <vector> |
| 16 | |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame^] | 17 | #include "api/rtp_headers.h" |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 18 | #include "api/rtpparameters.h" |
Mirko Bonadei | 7120742 | 2017-09-15 13:58:09 +0200 | [diff] [blame] | 19 | #include "common_types.h" // NOLINT(build/include) |
eladalon | 4bb3b9c | 2017-09-11 07:25:26 -0700 | [diff] [blame] | 20 | |
| 21 | namespace webrtc { |
| 22 | namespace rtclog { |
| 23 | |
| 24 | struct StreamConfig { |
| 25 | StreamConfig(); |
| 26 | ~StreamConfig(); |
| 27 | |
Elad Alon | 1d87b0e | 2017-10-03 15:01:03 +0200 | [diff] [blame] | 28 | bool operator==(const StreamConfig& other) const; |
| 29 | |
eladalon | 4bb3b9c | 2017-09-11 07:25:26 -0700 | [diff] [blame] | 30 | uint32_t local_ssrc = 0; |
| 31 | uint32_t remote_ssrc = 0; |
| 32 | uint32_t rtx_ssrc = 0; |
| 33 | std::string rsid; |
| 34 | |
| 35 | bool remb = false; |
| 36 | std::vector<RtpExtension> rtp_extensions; |
| 37 | |
| 38 | RtcpMode rtcp_mode = RtcpMode::kReducedSize; |
| 39 | |
| 40 | struct Codec { |
| 41 | Codec(const std::string& payload_name, |
| 42 | int payload_type, |
| 43 | int rtx_payload_type); |
| 44 | |
Elad Alon | 1d87b0e | 2017-10-03 15:01:03 +0200 | [diff] [blame] | 45 | bool operator==(const Codec& other) const; |
| 46 | |
eladalon | 4bb3b9c | 2017-09-11 07:25:26 -0700 | [diff] [blame] | 47 | std::string payload_name; |
| 48 | int payload_type; |
| 49 | int rtx_payload_type; |
| 50 | }; |
| 51 | |
| 52 | std::vector<Codec> codecs; |
| 53 | }; |
| 54 | |
| 55 | } // namespace rtclog |
| 56 | } // namespace webrtc |
| 57 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 58 | #endif // LOGGING_RTC_EVENT_LOG_RTC_STREAM_CONFIG_H_ |