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/video/vie_encoder.h" | 11 #include "webrtc/video_engine/vie_encoder.h" |
12 | 12 |
13 #include <assert.h> | 13 #include <assert.h> |
14 | 14 |
15 #include <algorithm> | 15 #include <algorithm> |
16 | 16 |
17 #include "webrtc/base/checks.h" | 17 #include "webrtc/base/checks.h" |
18 #include "webrtc/base/logging.h" | 18 #include "webrtc/base/logging.h" |
19 #include "webrtc/base/trace_event.h" | 19 #include "webrtc/base/trace_event.h" |
20 #include "webrtc/call/bitrate_allocator.h" | 20 #include "webrtc/call/bitrate_allocator.h" |
21 #include "webrtc/common_video/include/video_image.h" | 21 #include "webrtc/common_video/include/video_image.h" |
22 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 22 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
23 #include "webrtc/frame_callback.h" | 23 #include "webrtc/frame_callback.h" |
24 #include "webrtc/modules/bitrate_controller/include/bitrate_controller.h" | 24 #include "webrtc/modules/bitrate_controller/include/bitrate_controller.h" |
25 #include "webrtc/modules/pacing/paced_sender.h" | 25 #include "webrtc/modules/pacing/paced_sender.h" |
26 #include "webrtc/modules/utility/include/process_thread.h" | 26 #include "webrtc/modules/utility/include/process_thread.h" |
27 #include "webrtc/modules/video_coding/include/video_codec_interface.h" | 27 #include "webrtc/modules/video_coding/include/video_codec_interface.h" |
28 #include "webrtc/modules/video_coding/include/video_coding.h" | 28 #include "webrtc/modules/video_coding/include/video_coding.h" |
29 #include "webrtc/modules/video_coding/include/video_coding_defines.h" | 29 #include "webrtc/modules/video_coding/include/video_coding_defines.h" |
30 #include "webrtc/modules/video_coding/encoded_frame.h" | 30 #include "webrtc/modules/video_coding/encoded_frame.h" |
31 #include "webrtc/system_wrappers/include/clock.h" | 31 #include "webrtc/system_wrappers/include/clock.h" |
32 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" | 32 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
33 #include "webrtc/system_wrappers/include/metrics.h" | 33 #include "webrtc/system_wrappers/include/metrics.h" |
34 #include "webrtc/system_wrappers/include/tick_util.h" | 34 #include "webrtc/system_wrappers/include/tick_util.h" |
35 #include "webrtc/video/payload_router.h" | |
36 #include "webrtc/video/send_statistics_proxy.h" | 35 #include "webrtc/video/send_statistics_proxy.h" |
| 36 #include "webrtc/video_engine/payload_router.h" |
37 | 37 |
38 namespace webrtc { | 38 namespace webrtc { |
39 | 39 |
40 // Margin on when we pause the encoder when the pacing buffer overflows relative | 40 // Margin on when we pause the encoder when the pacing buffer overflows relative |
41 // to the configured buffer delay. | 41 // to the configured buffer delay. |
42 static const float kEncoderPausePacerMargin = 2.0f; | 42 static const float kEncoderPausePacerMargin = 2.0f; |
43 | 43 |
44 // Don't stop the encoder unless the delay is above this configured value. | 44 // Don't stop the encoder unless the delay is above this configured value. |
45 static const int kMinPacingDelayMs = 200; | 45 static const int kMinPacingDelayMs = 200; |
46 | 46 |
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 const uint32_t width, | 619 const uint32_t width, |
620 const uint32_t height) { | 620 const uint32_t height) { |
621 return vp_->SetTargetResolution(width, height, frame_rate); | 621 return vp_->SetTargetResolution(width, height, frame_rate); |
622 } | 622 } |
623 | 623 |
624 void QMVideoSettingsCallback::SetTargetFramerate(int frame_rate) { | 624 void QMVideoSettingsCallback::SetTargetFramerate(int frame_rate) { |
625 vp_->SetTargetFramerate(frame_rate); | 625 vp_->SetTargetFramerate(frame_rate); |
626 } | 626 } |
627 | 627 |
628 } // namespace webrtc | 628 } // namespace webrtc |
OLD | NEW |