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

Unified Diff: webrtc/video/video_receive_stream.h

Issue 2649973005: Inform jitter buffer about FlexFEC protection. (Closed)
Patch Set: 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 ab9fe4ea7bb5f6fb23bdcd6cb118c497e2518c75..301888db90d0c23518db00aedf957c2231e33733 100644
--- a/webrtc/video/video_receive_stream.h
+++ b/webrtc/video/video_receive_stream.h
@@ -31,6 +31,7 @@ namespace webrtc {
class CallStats;
class CongestionController;
+class FlexfecProtectionMediator;
class IvfFileWriter;
class ProcessThread;
class RTPFragmentationHeader;
@@ -55,7 +56,8 @@ class VideoReceiveStream : public webrtc::VideoReceiveStream,
webrtc::VoiceEngine* voice_engine,
ProcessThread* process_thread,
CallStats* call_stats,
- VieRemb* remb);
+ VieRemb* remb,
+ FlexfecProtectionMediator* flexfec_protection_mediator);
~VideoReceiveStream() override;
void SignalNetworkState(NetworkState state);
@@ -107,6 +109,13 @@ class VideoReceiveStream : public webrtc::VideoReceiveStream,
static bool DecodeThreadFunction(void* ptr);
void Decode();
brandtr 2017/01/24 13:02:49 The methods below are not strictly needed, but I t
+ // The return value of this method depends on what FlexfecReceiveStreams are
+ // registered in Call, which might change during the lifetime of |this|.
+ bool IsFlexfecEnabled() const;
+
+ // The return value of this method is constant during the lifetime of |this|.
+ bool IsUlpfecEnabled() const;
+
TransportAdapter transport_adapter_;
const VideoReceiveStream::Config config_;
const int num_cpu_cores_;
@@ -117,6 +126,7 @@ class VideoReceiveStream : public webrtc::VideoReceiveStream,
CongestionController* const congestion_controller_;
CallStats* const call_stats_;
+ FlexfecProtectionMediator* const flexfec_protection_mediator_;
std::unique_ptr<VCMTiming> timing_; // Jitter buffer experiment.
vcm::VideoReceiver video_receiver_;

Powered by Google App Engine
This is Rietveld 408576698