OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 | 11 |
12 #include <algorithm> // std::max | 12 #include <algorithm> // std::max |
13 | 13 |
| 14 #include "webrtc/base/checks.h" |
| 15 #include "webrtc/base/logging.h" |
14 #include "webrtc/common_types.h" | 16 #include "webrtc/common_types.h" |
15 #include "webrtc/common_video/include/video_bitrate_allocator.h" | 17 #include "webrtc/common_video/include/video_bitrate_allocator.h" |
16 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 18 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
17 #include "webrtc/modules/video_coding/codecs/vp8/temporal_layers.h" | 19 #include "webrtc/modules/video_coding/codecs/vp8/temporal_layers.h" |
| 20 #include "webrtc/modules/video_coding/include/video_codec_interface.h" |
18 #include "webrtc/modules/video_coding/encoded_frame.h" | 21 #include "webrtc/modules/video_coding/encoded_frame.h" |
19 #include "webrtc/modules/video_coding/include/video_codec_interface.h" | |
20 #include "webrtc/modules/video_coding/utility/default_video_bitrate_allocator.h" | 22 #include "webrtc/modules/video_coding/utility/default_video_bitrate_allocator.h" |
21 #include "webrtc/modules/video_coding/utility/quality_scaler.h" | 23 #include "webrtc/modules/video_coding/utility/quality_scaler.h" |
22 #include "webrtc/modules/video_coding/video_coding_impl.h" | 24 #include "webrtc/modules/video_coding/video_coding_impl.h" |
23 #include "webrtc/rtc_base/checks.h" | |
24 #include "webrtc/rtc_base/logging.h" | |
25 #include "webrtc/system_wrappers/include/clock.h" | 25 #include "webrtc/system_wrappers/include/clock.h" |
26 | 26 |
27 namespace webrtc { | 27 namespace webrtc { |
28 namespace vcm { | 28 namespace vcm { |
29 | 29 |
30 VideoSender::VideoSender(Clock* clock, | 30 VideoSender::VideoSender(Clock* clock, |
31 EncodedImageCallback* post_encode_callback, | 31 EncodedImageCallback* post_encode_callback, |
32 VCMSendStatisticsCallback* send_stats_callback) | 32 VCMSendStatisticsCallback* send_stats_callback) |
33 : clock_(clock), | 33 : clock_(clock), |
34 _encoder(nullptr), | 34 _encoder(nullptr), |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 } | 407 } |
408 | 408 |
409 int32_t VideoSender::EnableFrameDropper(bool enable) { | 409 int32_t VideoSender::EnableFrameDropper(bool enable) { |
410 rtc::CritScope lock(&encoder_crit_); | 410 rtc::CritScope lock(&encoder_crit_); |
411 frame_dropper_enabled_ = enable; | 411 frame_dropper_enabled_ = enable; |
412 _mediaOpt.EnableFrameDropper(enable); | 412 _mediaOpt.EnableFrameDropper(enable); |
413 return VCM_OK; | 413 return VCM_OK; |
414 } | 414 } |
415 } // namespace vcm | 415 } // namespace vcm |
416 } // namespace webrtc | 416 } // namespace webrtc |
OLD | NEW |