| 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/video_stream_decoder.h" | 11 #include "webrtc/video/video_stream_decoder.h" |
| 12 | 12 |
| 13 #include <algorithm> | 13 #include <algorithm> |
| 14 #include <map> | 14 #include <map> |
| 15 #include <vector> | 15 #include <vector> |
| 16 | 16 |
| 17 #include "webrtc/base/checks.h" | |
| 18 #include "webrtc/base/logging.h" | |
| 19 #include "webrtc/common_video/include/frame_callback.h" | 17 #include "webrtc/common_video/include/frame_callback.h" |
| 20 #include "webrtc/modules/video_coding/video_coding_impl.h" | 18 #include "webrtc/modules/video_coding/video_coding_impl.h" |
| 19 #include "webrtc/rtc_base/checks.h" |
| 20 #include "webrtc/rtc_base/logging.h" |
| 21 #include "webrtc/system_wrappers/include/metrics.h" | 21 #include "webrtc/system_wrappers/include/metrics.h" |
| 22 #include "webrtc/video/call_stats.h" | 22 #include "webrtc/video/call_stats.h" |
| 23 #include "webrtc/video/payload_router.h" | 23 #include "webrtc/video/payload_router.h" |
| 24 #include "webrtc/video/receive_statistics_proxy.h" | 24 #include "webrtc/video/receive_statistics_proxy.h" |
| 25 | 25 |
| 26 namespace webrtc { | 26 namespace webrtc { |
| 27 | 27 |
| 28 VideoStreamDecoder::VideoStreamDecoder( | 28 VideoStreamDecoder::VideoStreamDecoder( |
| 29 vcm::VideoReceiver* video_receiver, | 29 vcm::VideoReceiver* video_receiver, |
| 30 VCMFrameTypeCallback* vcm_frame_type_callback, | 30 VCMFrameTypeCallback* vcm_frame_type_callback, |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 void VideoStreamDecoder::OnCompleteFrame(bool is_keyframe, size_t size_bytes) {} | 122 void VideoStreamDecoder::OnCompleteFrame(bool is_keyframe, size_t size_bytes) {} |
| 123 | 123 |
| 124 void VideoStreamDecoder::OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) { | 124 void VideoStreamDecoder::OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) { |
| 125 video_receiver_->SetReceiveChannelParameters(max_rtt_ms); | 125 video_receiver_->SetReceiveChannelParameters(max_rtt_ms); |
| 126 | 126 |
| 127 rtc::CritScope lock(&crit_); | 127 rtc::CritScope lock(&crit_); |
| 128 last_rtt_ms_ = avg_rtt_ms; | 128 last_rtt_ms_ = avg_rtt_ms; |
| 129 } | 129 } |
| 130 } // namespace webrtc | 130 } // namespace webrtc |
| OLD | NEW |