OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 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_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ | 11 #ifndef WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ |
12 #define WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ | 12 #define WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ |
13 | 13 |
14 #include <memory> | 14 #include <memory> |
15 #include <string> | 15 #include <string> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "webrtc/api/array_view.h" | 18 #include "webrtc/api/array_view.h" |
19 #include "webrtc/api/rtpparameters.h" | 19 #include "webrtc/api/rtpparameters.h" |
20 #include "webrtc/common_types.h" | 20 #include "webrtc/common_types.h" |
21 #include "webrtc/logging/rtc_event_log/rtc_stream_config.h" | |
terelius
2017/09/08 12:51:50
Do we have to include it here, or is it sufficient
eladalon
2017/09/08 13:04:16
I suspect some places that are passing in objects
terelius
2017/09/08 13:16:29
Acknowledged. Please add a TODO.
eladalon
2017/09/08 13:19:57
Done.
| |
21 #include "webrtc/rtc_base/platform_file.h" | 22 #include "webrtc/rtc_base/platform_file.h" |
22 | 23 |
23 namespace webrtc { | 24 namespace webrtc { |
24 | 25 |
25 // Forward declaration of storage class that is automatically generated from | |
26 // the protobuf file. | |
27 namespace rtclog { | 26 namespace rtclog { |
28 class EventStream; | 27 class EventStream; // Storage class automatically generated from protobuf. |
29 | |
30 struct StreamConfig { | |
31 uint32_t local_ssrc = 0; | |
32 uint32_t remote_ssrc = 0; | |
33 uint32_t rtx_ssrc = 0; | |
34 std::string rsid; | |
35 | |
36 bool remb = false; | |
37 std::vector<RtpExtension> rtp_extensions; | |
38 | |
39 RtcpMode rtcp_mode = RtcpMode::kReducedSize; | |
40 | |
41 struct Codec { | |
42 Codec(const std::string& payload_name, | |
43 int payload_type, | |
44 int rtx_payload_type) | |
45 : payload_name(payload_name), | |
46 payload_type(payload_type), | |
47 rtx_payload_type(rtx_payload_type) {} | |
48 | |
49 std::string payload_name; | |
50 int payload_type; | |
51 int rtx_payload_type; | |
52 }; | |
53 std::vector<Codec> codecs; | |
54 }; | |
55 | |
56 } // namespace rtclog | 28 } // namespace rtclog |
57 | 29 |
58 class Clock; | 30 class Clock; |
59 struct AudioEncoderRuntimeConfig; | 31 struct AudioEncoderRuntimeConfig; |
60 class RtpPacketReceived; | 32 class RtpPacketReceived; |
61 class RtpPacketToSend; | 33 class RtpPacketToSend; |
62 | 34 |
63 enum class MediaType; | 35 enum class MediaType; |
64 enum class BandwidthUsage; | 36 enum class BandwidthUsage; |
65 | 37 |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
231 int min_probes, | 203 int min_probes, |
232 int min_bytes) override{}; | 204 int min_bytes) override{}; |
233 void LogProbeResultSuccess(int id, int bitrate_bps) override{}; | 205 void LogProbeResultSuccess(int id, int bitrate_bps) override{}; |
234 void LogProbeResultFailure(int id, | 206 void LogProbeResultFailure(int id, |
235 ProbeFailureReason failure_reason) override{}; | 207 ProbeFailureReason failure_reason) override{}; |
236 }; | 208 }; |
237 | 209 |
238 } // namespace webrtc | 210 } // namespace webrtc |
239 | 211 |
240 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ | 212 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ |
OLD | NEW |