andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 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 | |
turaj@webrtc.org | ead8a5b | 2013-02-12 21:42:18 | [diff] [blame] | 14 | #include "webrtc/voice_engine/include/voe_video_sync.h" |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 15 | |
turaj@webrtc.org | ead8a5b | 2013-02-12 21:42:18 | [diff] [blame] | 16 | #include "webrtc/voice_engine/shared_data.h" |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 17 | |
| 18 | namespace webrtc { |
| 19 | |
Jelena Marusic | 0705a02 | 2015-05-04 12:15:32 | [diff] [blame] | 20 | class VoEVideoSyncImpl : public VoEVideoSync { |
| 21 | public: |
| 22 | int GetPlayoutBufferSize(int& bufferMs) override; |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 23 | |
Jelena Marusic | 0705a02 | 2015-05-04 12:15:32 | [diff] [blame] | 24 | int SetMinimumPlayoutDelay(int channel, int delayMs) override; |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 25 | |
Jelena Marusic | 0705a02 | 2015-05-04 12:15:32 | [diff] [blame] | 26 | int GetDelayEstimate(int channel, |
| 27 | int* jitter_buffer_delay_ms, |
| 28 | int* playout_buffer_delay_ms) override; |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 29 | |
Jelena Marusic | 0705a02 | 2015-05-04 12:15:32 | [diff] [blame] | 30 | int GetLeastRequiredDelayMs(int channel) const override; |
turaj@webrtc.org | d557734 | 2013-05-22 20:39:43 | [diff] [blame] | 31 | |
Jelena Marusic | 0705a02 | 2015-05-04 12:15:32 | [diff] [blame] | 32 | int SetInitTimestamp(int channel, unsigned int timestamp) override; |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 33 | |
Jelena Marusic | 0705a02 | 2015-05-04 12:15:32 | [diff] [blame] | 34 | int SetInitSequenceNumber(int channel, short sequenceNumber) override; |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 35 | |
Jelena Marusic | 0705a02 | 2015-05-04 12:15:32 | [diff] [blame] | 36 | int GetPlayoutTimestamp(int channel, unsigned int& timestamp) override; |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 37 | |
Jelena Marusic | 0705a02 | 2015-05-04 12:15:32 | [diff] [blame] | 38 | int GetRtpRtcp(int channel, |
| 39 | RtpRtcp** rtpRtcpModule, |
| 40 | RtpReceiver** rtp_receiver) override; |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 41 | |
Jelena Marusic | 0705a02 | 2015-05-04 12:15:32 | [diff] [blame] | 42 | protected: |
| 43 | VoEVideoSyncImpl(voe::SharedData* shared); |
| 44 | ~VoEVideoSyncImpl() override; |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 45 | |
Jelena Marusic | 0705a02 | 2015-05-04 12:15:32 | [diff] [blame] | 46 | private: |
| 47 | voe::SharedData* _shared; |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 48 | }; |
| 49 | |
pbos@webrtc.org | 3b89e10 | 2013-07-03 15:12:26 | [diff] [blame] | 50 | } // namespace webrtc |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 | [diff] [blame] | 51 | |
Jelena Marusic | 0705a02 | 2015-05-04 12:15:32 | [diff] [blame] | 52 | #endif // WEBRTC_VOICE_ENGINE_VOE_VIDEO_SYNC_IMPL_H |