OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 case rtclog::Event::VIDEO_RECEIVER_CONFIG_EVENT: | 76 case rtclog::Event::VIDEO_RECEIVER_CONFIG_EVENT: |
77 return ParsedRtcEventLog::EventType::VIDEO_RECEIVER_CONFIG_EVENT; | 77 return ParsedRtcEventLog::EventType::VIDEO_RECEIVER_CONFIG_EVENT; |
78 case rtclog::Event::VIDEO_SENDER_CONFIG_EVENT: | 78 case rtclog::Event::VIDEO_SENDER_CONFIG_EVENT: |
79 return ParsedRtcEventLog::EventType::VIDEO_SENDER_CONFIG_EVENT; | 79 return ParsedRtcEventLog::EventType::VIDEO_SENDER_CONFIG_EVENT; |
80 case rtclog::Event::AUDIO_RECEIVER_CONFIG_EVENT: | 80 case rtclog::Event::AUDIO_RECEIVER_CONFIG_EVENT: |
81 return ParsedRtcEventLog::EventType::AUDIO_RECEIVER_CONFIG_EVENT; | 81 return ParsedRtcEventLog::EventType::AUDIO_RECEIVER_CONFIG_EVENT; |
82 case rtclog::Event::AUDIO_SENDER_CONFIG_EVENT: | 82 case rtclog::Event::AUDIO_SENDER_CONFIG_EVENT: |
83 return ParsedRtcEventLog::EventType::AUDIO_SENDER_CONFIG_EVENT; | 83 return ParsedRtcEventLog::EventType::AUDIO_SENDER_CONFIG_EVENT; |
84 case rtclog::Event::AUDIO_NETWORK_ADAPTATION_EVENT: | 84 case rtclog::Event::AUDIO_NETWORK_ADAPTATION_EVENT: |
85 return ParsedRtcEventLog::EventType::AUDIO_NETWORK_ADAPTATION_EVENT; | 85 return ParsedRtcEventLog::EventType::AUDIO_NETWORK_ADAPTATION_EVENT; |
| 86 case rtclog::Event::BWE_PROBE_CLUSTER_CREATED_EVENT: |
| 87 return ParsedRtcEventLog::EventType::BWE_PROBE_CLUSTER_CREATED_EVENT; |
| 88 case rtclog::Event::BWE_PROBE_RESULT_EVENT: |
| 89 return ParsedRtcEventLog::EventType::BWE_PROBE_RESULT_EVENT; |
86 } | 90 } |
87 RTC_NOTREACHED(); | 91 RTC_NOTREACHED(); |
88 return ParsedRtcEventLog::EventType::UNKNOWN_EVENT; | 92 return ParsedRtcEventLog::EventType::UNKNOWN_EVENT; |
89 } | 93 } |
90 | 94 |
91 std::pair<uint64_t, bool> ParseVarInt(std::istream& stream) { | 95 std::pair<uint64_t, bool> ParseVarInt(std::istream& stream) { |
92 uint64_t varint = 0; | 96 uint64_t varint = 0; |
93 for (size_t bytes_read = 0; bytes_read < 10; ++bytes_read) { | 97 for (size_t bytes_read = 0; bytes_read < 10; ++bytes_read) { |
94 // The most significant bit of each byte is 0 if it is the last byte in | 98 // The most significant bit of each byte is 0 if it is the last byte in |
95 // the varint and 1 otherwise. Thus, we take the 7 least significant bits | 99 // the varint and 1 otherwise. Thus, we take the 7 least significant bits |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 if (ana_event.has_frame_length_ms()) | 494 if (ana_event.has_frame_length_ms()) |
491 config->frame_length_ms = rtc::Optional<int>(ana_event.frame_length_ms()); | 495 config->frame_length_ms = rtc::Optional<int>(ana_event.frame_length_ms()); |
492 if (ana_event.has_num_channels()) | 496 if (ana_event.has_num_channels()) |
493 config->num_channels = rtc::Optional<size_t>(ana_event.num_channels()); | 497 config->num_channels = rtc::Optional<size_t>(ana_event.num_channels()); |
494 if (ana_event.has_uplink_packet_loss_fraction()) | 498 if (ana_event.has_uplink_packet_loss_fraction()) |
495 config->uplink_packet_loss_fraction = | 499 config->uplink_packet_loss_fraction = |
496 rtc::Optional<float>(ana_event.uplink_packet_loss_fraction()); | 500 rtc::Optional<float>(ana_event.uplink_packet_loss_fraction()); |
497 } | 501 } |
498 | 502 |
499 } // namespace webrtc | 503 } // namespace webrtc |
OLD | NEW |