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_VIDEO_CODING_PROTECTION_BITRATE_CALCULATOR_H_ | 11 #ifndef WEBRTC_MODULES_VIDEO_CODING_PROTECTION_BITRATE_CALCULATOR_H_ |
12 #define WEBRTC_MODULES_VIDEO_CODING_PROTECTION_BITRATE_CALCULATOR_H_ | 12 #define WEBRTC_MODULES_VIDEO_CODING_PROTECTION_BITRATE_CALCULATOR_H_ |
13 | 13 |
14 #include <list> | 14 #include <list> |
15 #include <memory> | 15 #include <memory> |
16 | 16 |
17 #include "webrtc/base/criticalsection.h" | |
18 #include "webrtc/modules/include/module_common_types.h" | 17 #include "webrtc/modules/include/module_common_types.h" |
19 #include "webrtc/modules/video_coding/include/video_coding.h" | 18 #include "webrtc/modules/video_coding/include/video_coding.h" |
20 #include "webrtc/modules/video_coding/media_opt_util.h" | 19 #include "webrtc/modules/video_coding/media_opt_util.h" |
| 20 #include "webrtc/rtc_base/criticalsection.h" |
21 #include "webrtc/system_wrappers/include/clock.h" | 21 #include "webrtc/system_wrappers/include/clock.h" |
22 | 22 |
23 namespace webrtc { | 23 namespace webrtc { |
24 | 24 |
25 // ProtectionBitrateCalculator calculates how much of the allocated network | 25 // ProtectionBitrateCalculator calculates how much of the allocated network |
26 // capacity that can be used by an encoder and how much that | 26 // capacity that can be used by an encoder and how much that |
27 // is needed for redundant packets such as FEC and NACK. It uses an | 27 // is needed for redundant packets such as FEC and NACK. It uses an |
28 // implementation of |VCMProtectionCallback| to set new FEC parameters and get | 28 // implementation of |VCMProtectionCallback| to set new FEC parameters and get |
29 // the bitrate currently used for FEC and NACK. | 29 // the bitrate currently used for FEC and NACK. |
30 // Usage: | 30 // Usage: |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 rtc::CriticalSection crit_sect_; | 70 rtc::CriticalSection crit_sect_; |
71 std::unique_ptr<media_optimization::VCMLossProtectionLogic> loss_prot_logic_ | 71 std::unique_ptr<media_optimization::VCMLossProtectionLogic> loss_prot_logic_ |
72 GUARDED_BY(crit_sect_); | 72 GUARDED_BY(crit_sect_); |
73 size_t max_payload_size_ GUARDED_BY(crit_sect_); | 73 size_t max_payload_size_ GUARDED_BY(crit_sect_); |
74 | 74 |
75 RTC_DISALLOW_COPY_AND_ASSIGN(ProtectionBitrateCalculator); | 75 RTC_DISALLOW_COPY_AND_ASSIGN(ProtectionBitrateCalculator); |
76 }; | 76 }; |
77 | 77 |
78 } // namespace webrtc | 78 } // namespace webrtc |
79 #endif // WEBRTC_MODULES_VIDEO_CODING_PROTECTION_BITRATE_CALCULATOR_H_ | 79 #endif // WEBRTC_MODULES_VIDEO_CODING_PROTECTION_BITRATE_CALCULATOR_H_ |
OLD | NEW |