2011-07-07 08:21:25 +00:00
|
|
|
/*
|
2012-04-04 14:57:19 +00:00
|
|
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
2011-07-07 08:21:25 +00:00
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef WEBRTC_VOICE_ENGINE_VOE_VIDEO_SYNC_IMPL_H
|
|
|
|
|
#define WEBRTC_VOICE_ENGINE_VOE_VIDEO_SYNC_IMPL_H
|
|
|
|
|
|
2013-02-12 21:42:18 +00:00
|
|
|
#include "webrtc/voice_engine/include/voe_video_sync.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2013-02-12 21:42:18 +00:00
|
|
|
#include "webrtc/voice_engine/shared_data.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
2012-04-26 15:28:22 +00:00
|
|
|
class VoEVideoSyncImpl : public VoEVideoSync
|
2011-07-07 08:21:25 +00:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
virtual int GetPlayoutBufferSize(int& bufferMs);
|
|
|
|
|
|
|
|
|
|
virtual int SetMinimumPlayoutDelay(int channel, int delayMs);
|
|
|
|
|
|
2013-02-12 21:42:18 +00:00
|
|
|
virtual int SetInitialPlayoutDelay(int channel, int delay_ms);
|
|
|
|
|
|
2013-04-11 20:23:35 +00:00
|
|
|
virtual int GetDelayEstimate(int channel,
|
|
|
|
|
int* jitter_buffer_delay_ms,
|
|
|
|
|
int* playout_buffer_delay_ms);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
virtual int SetInitTimestamp(int channel, unsigned int timestamp);
|
|
|
|
|
|
|
|
|
|
virtual int SetInitSequenceNumber(int channel, short sequenceNumber);
|
|
|
|
|
|
|
|
|
|
virtual int GetPlayoutTimestamp(int channel, unsigned int& timestamp);
|
|
|
|
|
|
2012-01-19 15:05:36 +00:00
|
|
|
virtual int GetRtpRtcp(int channel, RtpRtcp* &rtpRtcpModule);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
protected:
|
2012-04-04 14:57:19 +00:00
|
|
|
VoEVideoSyncImpl(voe::SharedData* shared);
|
2011-07-07 08:21:25 +00:00
|
|
|
virtual ~VoEVideoSyncImpl();
|
2012-01-19 15:05:36 +00:00
|
|
|
|
|
|
|
|
private:
|
2012-04-04 14:57:19 +00:00
|
|
|
voe::SharedData* _shared;
|
2011-07-07 08:21:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace webrtc
|
|
|
|
|
|
|
|
|
|
#endif // WEBRTC_VOICE_ENGINE_VOE_VIDEO_SYNC_IMPL_H
|