| 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/receiver.h" | 11 #include "webrtc/modules/video_coding/main/source/receiver.h" |
| 12 | 12 |
| 13 #include <assert.h> | 13 #include <assert.h> |
| 14 | 14 |
| 15 #include <cstdlib> | 15 #include <cstdlib> |
| 16 | 16 |
| 17 #include "webrtc/base/logging.h" |
| 17 #include "webrtc/base/trace_event.h" | 18 #include "webrtc/base/trace_event.h" |
| 18 #include "webrtc/modules/video_coding/main/source/encoded_frame.h" | 19 #include "webrtc/modules/video_coding/main/source/encoded_frame.h" |
| 19 #include "webrtc/modules/video_coding/main/source/internal_defines.h" | 20 #include "webrtc/modules/video_coding/main/source/internal_defines.h" |
| 20 #include "webrtc/modules/video_coding/main/source/media_opt_util.h" | 21 #include "webrtc/modules/video_coding/main/source/media_opt_util.h" |
| 21 #include "webrtc/system_wrappers/include/clock.h" | 22 #include "webrtc/system_wrappers/include/clock.h" |
| 22 #include "webrtc/system_wrappers/include/logging.h" | |
| 23 | 23 |
| 24 namespace webrtc { | 24 namespace webrtc { |
| 25 | 25 |
| 26 enum { kMaxReceiverDelayMs = 10000 }; | 26 enum { kMaxReceiverDelayMs = 10000 }; |
| 27 | 27 |
| 28 VCMReceiver::VCMReceiver(VCMTiming* timing, | 28 VCMReceiver::VCMReceiver(VCMTiming* timing, |
| 29 Clock* clock, | 29 Clock* clock, |
| 30 EventFactory* event_factory) | 30 EventFactory* event_factory) |
| 31 : VCMReceiver(timing, | 31 : VCMReceiver(timing, |
| 32 clock, | 32 clock, |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 uint32_t render_end = timing_->RenderTimeMs(timestamp_end, now_ms); | 259 uint32_t render_end = timing_->RenderTimeMs(timestamp_end, now_ms); |
| 260 return render_end - render_start; | 260 return render_end - render_start; |
| 261 } | 261 } |
| 262 | 262 |
| 263 void VCMReceiver::RegisterStatsCallback( | 263 void VCMReceiver::RegisterStatsCallback( |
| 264 VCMReceiveStatisticsCallback* callback) { | 264 VCMReceiveStatisticsCallback* callback) { |
| 265 jitter_buffer_.RegisterStatsCallback(callback); | 265 jitter_buffer_.RegisterStatsCallback(callback); |
| 266 } | 266 } |
| 267 | 267 |
| 268 } // namespace webrtc | 268 } // namespace webrtc |
| OLD | NEW |