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

Unified Diff: webrtc/modules/rtp_rtcp/source/ulpfec_generator.h

Issue 2441613002: Add FlexfecSender. (Closed)
Patch Set: Rebase. Created 4 years, 1 month 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/modules/rtp_rtcp/source/ulpfec_generator.h
diff --git a/webrtc/modules/rtp_rtcp/source/ulpfec_generator.h b/webrtc/modules/rtp_rtcp/source/ulpfec_generator.h
index 33c4d09c39c7dbdc090cdfc7d766d3f2e1e94f36..e5b6064cccb521a44bb2876df44e8da62f40fe3b 100644
--- a/webrtc/modules/rtp_rtcp/source/ulpfec_generator.h
+++ b/webrtc/modules/rtp_rtcp/source/ulpfec_generator.h
@@ -19,6 +19,8 @@
namespace webrtc {
+class FlexfecSenderImpl;
+
class RedPacket {
public:
explicit RedPacket(size_t length);
@@ -40,6 +42,8 @@ class RedPacket {
};
class UlpfecGenerator {
+ friend class FlexfecSender;
+
public:
UlpfecGenerator();
~UlpfecGenerator();
@@ -74,6 +78,8 @@ class UlpfecGenerator {
size_t rtp_header_length);
private:
+ explicit UlpfecGenerator(std::unique_ptr<ForwardErrorCorrection> fec);
+
// Overhead is defined as relative to the number of media packets, and not
// relative to total number of packets. This definition is inherited from the
// protection factor produced by video_coding module and how the FEC
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/flexfec_sender_unittest.cc ('k') | webrtc/modules/rtp_rtcp/source/ulpfec_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698