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 #ifndef WEBRTC_VOICE_ENGINE_VOE_VIDEO_SYNC_IMPL_H | 11 #ifndef WEBRTC_VOICE_ENGINE_VOE_VIDEO_SYNC_IMPL_H |
12 #define WEBRTC_VOICE_ENGINE_VOE_VIDEO_SYNC_IMPL_H | 12 #define WEBRTC_VOICE_ENGINE_VOE_VIDEO_SYNC_IMPL_H |
13 | 13 |
14 #include "webrtc/voice_engine/include/voe_video_sync.h" | 14 #include "webrtc/voice_engine/include/voe_video_sync.h" |
15 | 15 |
16 #include "webrtc/voice_engine/shared_data.h" | 16 #include "webrtc/voice_engine/shared_data.h" |
17 | 17 |
18 namespace webrtc { | 18 namespace webrtc { |
19 | 19 |
20 class VoEVideoSyncImpl : public VoEVideoSync { | 20 class VoEVideoSyncImpl : public VoEVideoSync { |
21 public: | 21 public: |
22 int GetPlayoutBufferSize(int& bufferMs) override; | 22 int GetPlayoutBufferSize(int& bufferMs) override; |
23 | 23 |
24 int SetMinimumPlayoutDelay(int channel, int delayMs) override; | 24 int SetMinimumPlayoutDelay(int channel, int delayMs) override; |
25 | 25 |
26 int SetInitialPlayoutDelay(int channel, int delay_ms) override; | |
27 | |
28 int GetDelayEstimate(int channel, | 26 int GetDelayEstimate(int channel, |
29 int* jitter_buffer_delay_ms, | 27 int* jitter_buffer_delay_ms, |
30 int* playout_buffer_delay_ms) override; | 28 int* playout_buffer_delay_ms) override; |
31 | 29 |
32 int GetLeastRequiredDelayMs(int channel) const override; | 30 int GetLeastRequiredDelayMs(int channel) const override; |
33 | 31 |
34 int SetInitTimestamp(int channel, unsigned int timestamp) override; | 32 int SetInitTimestamp(int channel, unsigned int timestamp) override; |
35 | 33 |
36 int SetInitSequenceNumber(int channel, short sequenceNumber) override; | 34 int SetInitSequenceNumber(int channel, short sequenceNumber) override; |
37 | 35 |
38 int GetPlayoutTimestamp(int channel, unsigned int& timestamp) override; | 36 int GetPlayoutTimestamp(int channel, unsigned int& timestamp) override; |
39 | 37 |
40 int GetRtpRtcp(int channel, | 38 int GetRtpRtcp(int channel, |
41 RtpRtcp** rtpRtcpModule, | 39 RtpRtcp** rtpRtcpModule, |
42 RtpReceiver** rtp_receiver) override; | 40 RtpReceiver** rtp_receiver) override; |
43 | 41 |
44 protected: | 42 protected: |
45 VoEVideoSyncImpl(voe::SharedData* shared); | 43 VoEVideoSyncImpl(voe::SharedData* shared); |
46 ~VoEVideoSyncImpl() override; | 44 ~VoEVideoSyncImpl() override; |
47 | 45 |
48 private: | 46 private: |
49 voe::SharedData* _shared; | 47 voe::SharedData* _shared; |
50 }; | 48 }; |
51 | 49 |
52 } // namespace webrtc | 50 } // namespace webrtc |
53 | 51 |
54 #endif // WEBRTC_VOICE_ENGINE_VOE_VIDEO_SYNC_IMPL_H | 52 #endif // WEBRTC_VOICE_ENGINE_VOE_VIDEO_SYNC_IMPL_H |
OLD | NEW |