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" | 14 #include "webrtc/base/checks.h" |
15 #include "webrtc/base/logging.h" | 15 #include "webrtc/base/logging.h" |
16 #include "webrtc/common_types.h" | 16 #include "webrtc/common_types.h" |
17 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 17 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
18 #include "webrtc/modules/video_coding/include/video_codec_interface.h" | 18 #include "webrtc/modules/video_coding/include/video_codec_interface.h" |
19 #include "webrtc/modules/video_coding/encoded_frame.h" | 19 #include "webrtc/modules/video_coding/encoded_frame.h" |
20 #include "webrtc/modules/video_coding/utility/quality_scaler.h" | |
21 #include "webrtc/modules/video_coding/video_coding_impl.h" | 20 #include "webrtc/modules/video_coding/video_coding_impl.h" |
22 #include "webrtc/system_wrappers/include/clock.h" | 21 #include "webrtc/system_wrappers/include/clock.h" |
23 | 22 |
24 namespace webrtc { | 23 namespace webrtc { |
25 namespace vcm { | 24 namespace vcm { |
26 | 25 |
27 VideoSender::VideoSender(Clock* clock, | 26 VideoSender::VideoSender(Clock* clock, |
28 EncodedImageCallback* post_encode_callback, | 27 EncodedImageCallback* post_encode_callback, |
29 VCMSendStatisticsCallback* send_stats_callback) | 28 VCMSendStatisticsCallback* send_stats_callback) |
30 : clock_(clock), | 29 : clock_(clock), |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 } | 349 } |
351 | 350 |
352 int32_t VideoSender::EnableFrameDropper(bool enable) { | 351 int32_t VideoSender::EnableFrameDropper(bool enable) { |
353 rtc::CritScope lock(&encoder_crit_); | 352 rtc::CritScope lock(&encoder_crit_); |
354 frame_dropper_enabled_ = enable; | 353 frame_dropper_enabled_ = enable; |
355 _mediaOpt.EnableFrameDropper(enable); | 354 _mediaOpt.EnableFrameDropper(enable); |
356 return VCM_OK; | 355 return VCM_OK; |
357 } | 356 } |
358 } // namespace vcm | 357 } // namespace vcm |
359 } // namespace webrtc | 358 } // namespace webrtc |
OLD | NEW |