| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 #include "webrtc/modules/video_coding/main/source/media_optimization.h" | 11 #include "webrtc/modules/video_coding/main/source/media_optimization.h" |
| 12 | 12 |
| 13 #include "webrtc/modules/video_coding/main/source/content_metrics_processing.h" | 13 #include "webrtc/modules/video_coding/main/source/content_metrics_processing.h" |
| 14 #include "webrtc/modules/video_coding/main/source/qm_select.h" | 14 #include "webrtc/modules/video_coding/main/source/qm_select.h" |
| 15 #include "webrtc/modules/video_coding/utility/include/frame_dropper.h" | 15 #include "webrtc/modules/video_coding/utility/include/frame_dropper.h" |
| 16 #include "webrtc/system_wrappers/interface/clock.h" | 16 #include "webrtc/system_wrappers/include/clock.h" |
| 17 #include "webrtc/system_wrappers/interface/logging.h" | 17 #include "webrtc/system_wrappers/include/logging.h" |
| 18 | 18 |
| 19 namespace webrtc { | 19 namespace webrtc { |
| 20 namespace media_optimization { | 20 namespace media_optimization { |
| 21 namespace { | 21 namespace { |
| 22 void UpdateProtectionCallback( | 22 void UpdateProtectionCallback( |
| 23 VCMProtectionMethod* selected_method, | 23 VCMProtectionMethod* selected_method, |
| 24 uint32_t* video_rate_bps, | 24 uint32_t* video_rate_bps, |
| 25 uint32_t* nack_overhead_rate_bps, | 25 uint32_t* nack_overhead_rate_bps, |
| 26 uint32_t* fec_overhead_rate_bps, | 26 uint32_t* fec_overhead_rate_bps, |
| 27 VCMProtectionCallback* video_protection_callback) { | 27 VCMProtectionCallback* video_protection_callback) { |
| (...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 if (target_bit_rate_ > | 641 if (target_bit_rate_ > |
| 642 suspension_threshold_bps_ + suspension_window_bps_) { | 642 suspension_threshold_bps_ + suspension_window_bps_) { |
| 643 video_suspended_ = false; | 643 video_suspended_ = false; |
| 644 } | 644 } |
| 645 } | 645 } |
| 646 } | 646 } |
| 647 } | 647 } |
| 648 | 648 |
| 649 } // namespace media_optimization | 649 } // namespace media_optimization |
| 650 } // namespace webrtc | 650 } // namespace webrtc |
| OLD | NEW |