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 |
(...skipping 22 matching lines...) Expand all Loading... |
33 explicit ViESyncModule(VideoCodingModule* vcm); | 33 explicit ViESyncModule(VideoCodingModule* vcm); |
34 ~ViESyncModule(); | 34 ~ViESyncModule(); |
35 | 35 |
36 int ConfigureSync(int voe_channel_id, | 36 int ConfigureSync(int voe_channel_id, |
37 VoEVideoSync* voe_sync_interface, | 37 VoEVideoSync* voe_sync_interface, |
38 RtpRtcp* video_rtcp_module, | 38 RtpRtcp* video_rtcp_module, |
39 RtpReceiver* video_receiver); | 39 RtpReceiver* video_receiver); |
40 | 40 |
41 int VoiceChannel(); | 41 int VoiceChannel(); |
42 | 42 |
43 // Set target delay for buffering mode (0 = real-time mode). | |
44 int SetTargetBufferingDelay(int target_delay_ms); | |
45 | |
46 // Implements Module. | 43 // Implements Module. |
47 int64_t TimeUntilNextProcess() override; | 44 int64_t TimeUntilNextProcess() override; |
48 int32_t Process() override; | 45 int32_t Process() override; |
49 | 46 |
50 private: | 47 private: |
51 rtc::scoped_ptr<CriticalSectionWrapper> data_cs_; | 48 rtc::scoped_ptr<CriticalSectionWrapper> data_cs_; |
52 VideoCodingModule* const vcm_; | 49 VideoCodingModule* const vcm_; |
53 RtpReceiver* video_receiver_; | 50 RtpReceiver* video_receiver_; |
54 RtpRtcp* video_rtp_rtcp_; | 51 RtpRtcp* video_rtp_rtcp_; |
55 int voe_channel_id_; | 52 int voe_channel_id_; |
56 VoEVideoSync* voe_sync_interface_; | 53 VoEVideoSync* voe_sync_interface_; |
57 TickTime last_sync_time_; | 54 TickTime last_sync_time_; |
58 rtc::scoped_ptr<StreamSynchronization> sync_; | 55 rtc::scoped_ptr<StreamSynchronization> sync_; |
59 StreamSynchronization::Measurements audio_measurement_; | 56 StreamSynchronization::Measurements audio_measurement_; |
60 StreamSynchronization::Measurements video_measurement_; | 57 StreamSynchronization::Measurements video_measurement_; |
61 }; | 58 }; |
62 | 59 |
63 } // namespace webrtc | 60 } // namespace webrtc |
64 | 61 |
65 #endif // WEBRTC_VIDEO_ENGINE_VIE_SYNC_MODULE_H_ | 62 #endif // WEBRTC_VIDEO_ENGINE_VIE_SYNC_MODULE_H_ |
OLD | NEW |