• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3  *
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
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 
11 #ifndef WEBRTC_VOICE_ENGINE_VOE_VIDEO_SYNC_IMPL_H
12 #define WEBRTC_VOICE_ENGINE_VOE_VIDEO_SYNC_IMPL_H
13 
14 #include "webrtc/voice_engine/include/voe_video_sync.h"
15 
16 #include "webrtc/voice_engine/shared_data.h"
17 
18 namespace webrtc {
19 
20 class VoEVideoSyncImpl : public VoEVideoSync {
21  public:
22   int GetPlayoutBufferSize(int& bufferMs) override;
23 
24   int SetMinimumPlayoutDelay(int channel, int delayMs) override;
25 
26   int GetDelayEstimate(int channel,
27                        int* jitter_buffer_delay_ms,
28                        int* playout_buffer_delay_ms) override;
29 
30   int GetLeastRequiredDelayMs(int channel) const override;
31 
32   int SetInitTimestamp(int channel, unsigned int timestamp) override;
33 
34   int SetInitSequenceNumber(int channel, short sequenceNumber) override;
35 
36   int GetPlayoutTimestamp(int channel, unsigned int& timestamp) override;
37 
38   int GetRtpRtcp(int channel,
39                  RtpRtcp** rtpRtcpModule,
40                  RtpReceiver** rtp_receiver) override;
41 
42  protected:
43   VoEVideoSyncImpl(voe::SharedData* shared);
44   ~VoEVideoSyncImpl() override;
45 
46  private:
47   voe::SharedData* _shared;
48 };
49 
50 }  // namespace webrtc
51 
52 #endif  // WEBRTC_VOICE_ENGINE_VOE_VIDEO_SYNC_IMPL_H
53