diff options
author | mikhal@webrtc.org <mikhal@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2013-03-15 23:21:52 +0000 |
---|---|---|
committer | mikhal@webrtc.org <mikhal@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2013-03-15 23:21:52 +0000 |
commit | bda7f305c5d7d675f1c35813bd2b2a5732775bb9 (patch) | |
tree | b12f1671c840310bc30434e9ad6a0b96eaa1b9fc /webrtc/modules/rtp_rtcp/interface | |
parent | 73222cff1a64cbc8eade9277cc63d516f7c20947 (diff) | |
download | webrtc-bda7f305c5d7d675f1c35813bd2b2a5732775bb9.tar.gz |
Adding RTX on source
Review URL: https://webrtc-codereview.appspot.com/1190004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@3674 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'webrtc/modules/rtp_rtcp/interface')
-rw-r--r-- | webrtc/modules/rtp_rtcp/interface/rtp_rtcp.h | 4 | ||||
-rw-r--r-- | webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/webrtc/modules/rtp_rtcp/interface/rtp_rtcp.h b/webrtc/modules/rtp_rtcp/interface/rtp_rtcp.h index b436e3ff99..648b1b0f55 100644 --- a/webrtc/modules/rtp_rtcp/interface/rtp_rtcp.h +++ b/webrtc/modules/rtp_rtcp/interface/rtp_rtcp.h @@ -416,14 +416,14 @@ class RtpRtcp : public Module { /* * Turn on/off sending RTX (RFC 4588) on a specific SSRC. */ - virtual WebRtc_Word32 SetRTXSendStatus(const bool enable, + virtual WebRtc_Word32 SetRTXSendStatus(const RtxMode mode, const bool setSSRC, const WebRtc_UWord32 SSRC) = 0; /* * Get status of sending RTX (RFC 4588) on a specific SSRC. */ - virtual WebRtc_Word32 RTXSendStatus(bool* enable, + virtual WebRtc_Word32 RTXSendStatus(RtxMode* mode, WebRtc_UWord32* SSRC) const = 0; /* diff --git a/webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h b/webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h index 2b13d39518..f0ef84f14d 100644 --- a/webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h +++ b/webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h @@ -107,6 +107,12 @@ enum RetransmissionMode { kRetransmitAllPackets = 0xFF }; +enum RtxMode { + kRtxOff = 0, + kRtxRetransmitted = 1, // Apply RTX only to retransmitted packets. + kRtxAll = 2 // Apply RTX to all packets (source + retransmissions). +}; + struct RTCPSenderInfo { WebRtc_UWord32 NTPseconds; |