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 |
11 #ifndef WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_FRAME_LENGTH_CONTROLLE
R_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_FRAME_LENGTH_CONTROLLE
R_H_ |
12 #define WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_FRAME_LENGTH_CONTROLLE
R_H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_FRAME_LENGTH_CONTROLLE
R_H_ |
13 | 13 |
14 #include <map> | 14 #include <map> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "webrtc/base/constructormagic.h" | |
18 #include "webrtc/modules/audio_coding/audio_network_adaptor/controller.h" | 17 #include "webrtc/modules/audio_coding/audio_network_adaptor/controller.h" |
| 18 #include "webrtc/rtc_base/constructormagic.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 | 21 |
22 // Determines target frame length based on the network metrics and the decision | 22 // Determines target frame length based on the network metrics and the decision |
23 // of FEC controller. | 23 // of FEC controller. |
24 class FrameLengthController final : public Controller { | 24 class FrameLengthController final : public Controller { |
25 public: | 25 public: |
26 struct Config { | 26 struct Config { |
27 struct FrameLengthChange { | 27 struct FrameLengthChange { |
28 FrameLengthChange(int from_frame_length_ms, int to_frame_length_ms); | 28 FrameLengthChange(int from_frame_length_ms, int to_frame_length_ms); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 rtc::Optional<float> uplink_packet_loss_fraction_; | 72 rtc::Optional<float> uplink_packet_loss_fraction_; |
73 | 73 |
74 rtc::Optional<size_t> overhead_bytes_per_packet_; | 74 rtc::Optional<size_t> overhead_bytes_per_packet_; |
75 | 75 |
76 RTC_DISALLOW_COPY_AND_ASSIGN(FrameLengthController); | 76 RTC_DISALLOW_COPY_AND_ASSIGN(FrameLengthController); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace webrtc | 79 } // namespace webrtc |
80 | 80 |
81 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_FRAME_LENGTH_CONTRO
LLER_H_ | 81 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_FRAME_LENGTH_CONTRO
LLER_H_ |
OLD | NEW |