Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1134)

Unified Diff: webrtc/video/video_receive_stream.h

Issue 2452163004: Stop using VoEVideoSync in Call/VideoReceiveStream. (Closed)
Patch Set: Get rid of unnecessary Clock* Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/video/video_receive_stream.h
diff --git a/webrtc/video/video_receive_stream.h b/webrtc/video/video_receive_stream.h
index 3c5a653c5ae8c3dfb98d32e3b3813759ae54b95e..f13236aa7fd3fccf9ef094bb7f3a11027d1caf34 100644
--- a/webrtc/video/video_receive_stream.h
+++ b/webrtc/video/video_receive_stream.h
@@ -14,6 +14,7 @@
#include <memory>
#include <vector>
+#include "webrtc/call/syncable.h"
#include "webrtc/common_video/include/incoming_video_stream.h"
#include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
#include "webrtc/modules/rtp_rtcp/include/flexfec_receiver.h"
@@ -34,7 +35,6 @@ class CongestionController;
class IvfFileWriter;
class ProcessThread;
class RTPFragmentationHeader;
-class VoiceEngine;
class VieRemb;
class VCMTiming;
class VCMJitterEstimator;
@@ -46,13 +46,13 @@ class VideoReceiveStream : public webrtc::VideoReceiveStream,
public EncodedImageCallback,
public NackSender,
public KeyFrameRequestSender,
- public video_coding::OnCompleteFrameCallback {
+ public video_coding::OnCompleteFrameCallback,
+ public Syncable {
public:
VideoReceiveStream(int num_cpu_cores,
CongestionController* congestion_controller,
PacketRouter* packet_router,
VideoReceiveStream::Config config,
- webrtc::VoiceEngine* voice_engine,
ProcessThread* process_thread,
CallStats* call_stats,
VieRemb* remb);
@@ -87,7 +87,7 @@ class VideoReceiveStream : public webrtc::VideoReceiveStream,
const Config& config() const { return config_; }
- void SetSyncChannel(VoiceEngine* voice_engine, int audio_channel_id);
+ void SetSync(Syncable* audio_syncable);
// Implements NackSender.
void SendNack(const std::vector<uint16_t>& sequence_numbers) override;
@@ -103,6 +103,12 @@ class VideoReceiveStream : public webrtc::VideoReceiveStream,
void EnableEncodedFrameRecording(rtc::PlatformFile file,
size_t byte_limit) override;
+ // Implements Syncable.
+ int id() const override;
+ rtc::Optional<Syncable::Info> GetInfo() const override;
+ uint32_t GetPlayoutTimestamp() const override;
+ void SetMinimumPlayoutDelay(int delay_ms) override;
+
private:
static bool DecodeThreadFunction(void* ptr);
void Decode();

Powered by Google App Engine
This is Rietveld 408576698