blob: aac575c2506dc6988d7331fa6a548ee52372320f [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
Jelena Marusic0d266052015-05-04 14:15:32 +020020class VoEVideoSyncImpl : public VoEVideoSync {
21 public:
22 int GetPlayoutBufferSize(int& bufferMs) override;
niklase@google.com470e71d2011-07-07 08:21:25 +000023
Jelena Marusic0d266052015-05-04 14:15:32 +020024 int SetMinimumPlayoutDelay(int channel, int delayMs) override;
niklase@google.com470e71d2011-07-07 08:21:25 +000025
Jelena Marusic0d266052015-05-04 14:15:32 +020026 int SetInitialPlayoutDelay(int channel, int delay_ms) override;
turaj@webrtc.org6388c3e2013-02-12 21:42:18 +000027
Jelena Marusic0d266052015-05-04 14:15:32 +020028 int GetDelayEstimate(int channel,
29 int* jitter_buffer_delay_ms,
30 int* playout_buffer_delay_ms) override;
niklase@google.com470e71d2011-07-07 08:21:25 +000031
Jelena Marusic0d266052015-05-04 14:15:32 +020032 int GetLeastRequiredDelayMs(int channel) const override;
turaj@webrtc.orge46c8d32013-05-22 20:39:43 +000033
Jelena Marusic0d266052015-05-04 14:15:32 +020034 int SetInitTimestamp(int channel, unsigned int timestamp) override;
niklase@google.com470e71d2011-07-07 08:21:25 +000035
Jelena Marusic0d266052015-05-04 14:15:32 +020036 int SetInitSequenceNumber(int channel, short sequenceNumber) override;
niklase@google.com470e71d2011-07-07 08:21:25 +000037
Jelena Marusic0d266052015-05-04 14:15:32 +020038 int GetPlayoutTimestamp(int channel, unsigned int& timestamp) override;
niklase@google.com470e71d2011-07-07 08:21:25 +000039
Jelena Marusic0d266052015-05-04 14:15:32 +020040 int GetRtpRtcp(int channel,
41 RtpRtcp** rtpRtcpModule,
42 RtpReceiver** rtp_receiver) override;
niklase@google.com470e71d2011-07-07 08:21:25 +000043
Jelena Marusic0d266052015-05-04 14:15:32 +020044 protected:
45 VoEVideoSyncImpl(voe::SharedData* shared);
46 ~VoEVideoSyncImpl() override;
tommi@webrtc.org9ff87db2012-01-19 15:05:36 +000047
Jelena Marusic0d266052015-05-04 14:15:32 +020048 private:
49 voe::SharedData* _shared;
niklase@google.com470e71d2011-07-07 08:21:25 +000050};
51
pbos@webrtc.orgd900e8b2013-07-03 15:12:26 +000052} // namespace webrtc
niklase@google.com470e71d2011-07-07 08:21:25 +000053
Jelena Marusic0d266052015-05-04 14:15:32 +020054#endif // WEBRTC_VOICE_ENGINE_VOE_VIDEO_SYNC_IMPL_H