blob: fafefd106c07ab14509d64cefcc71fad03a26b3d [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
tommi@webrtc.org851becd2012-04-04 14:57:19 +00002 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
niklase@google.com470e71d2011-07-07 08:21:25 +00003 *
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
turaj@webrtc.org6388c3e2013-02-12 21:42:18 +000014#include "webrtc/voice_engine/include/voe_video_sync.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000015
turaj@webrtc.org6388c3e2013-02-12 21:42:18 +000016#include "webrtc/voice_engine/shared_data.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000017
18namespace webrtc {
19
tommi@webrtc.orga990e122012-04-26 15:28:22 +000020class VoEVideoSyncImpl : public VoEVideoSync
niklase@google.com470e71d2011-07-07 08:21:25 +000021{
22public:
niklase@google.com470e71d2011-07-07 08:21:25 +000023 virtual int GetPlayoutBufferSize(int& bufferMs);
24
25 virtual int SetMinimumPlayoutDelay(int channel, int delayMs);
26
turaj@webrtc.org6388c3e2013-02-12 21:42:18 +000027 virtual int SetInitialPlayoutDelay(int channel, int delay_ms);
28
pwestin@webrtc.org1de01352013-04-11 20:23:35 +000029 virtual int GetDelayEstimate(int channel,
30 int* jitter_buffer_delay_ms,
31 int* playout_buffer_delay_ms);
niklase@google.com470e71d2011-07-07 08:21:25 +000032
33 virtual int SetInitTimestamp(int channel, unsigned int timestamp);
34
35 virtual int SetInitSequenceNumber(int channel, short sequenceNumber);
36
37 virtual int GetPlayoutTimestamp(int channel, unsigned int& timestamp);
38
tommi@webrtc.org9ff87db2012-01-19 15:05:36 +000039 virtual int GetRtpRtcp(int channel, RtpRtcp* &rtpRtcpModule);
niklase@google.com470e71d2011-07-07 08:21:25 +000040
41protected:
tommi@webrtc.org851becd2012-04-04 14:57:19 +000042 VoEVideoSyncImpl(voe::SharedData* shared);
niklase@google.com470e71d2011-07-07 08:21:25 +000043 virtual ~VoEVideoSyncImpl();
tommi@webrtc.org9ff87db2012-01-19 15:05:36 +000044
45private:
tommi@webrtc.org851becd2012-04-04 14:57:19 +000046 voe::SharedData* _shared;
niklase@google.com470e71d2011-07-07 08:21:25 +000047};
48
49} // namespace webrtc
50
51#endif // WEBRTC_VOICE_ENGINE_VOE_VIDEO_SYNC_IMPL_H