diff options
author | danilchap <danilchap@webrtc.org> | 2015-11-27 05:36:09 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-27 13:36:17 +0000 |
commit | f8385aded0943c7889d6e9b92f3c0978f3657bb2 (patch) | |
tree | 135af4f32aabf33802606049f95a33fc7b5e1311 /webrtc/modules/rtp_rtcp/source/rtcp_packet.h | |
parent | e997a7de1419c447d46cfc230111deffcbdfab19 (diff) | |
download | webrtc-f8385aded0943c7889d6e9b92f3c0978f3657bb2.tar.gz |
rtcp::Pli moved into own file and got a Parse function
Created rtcp::Psfb abstract class between rtcp::Pli and rtcp::RtcpPacket to hold common data for Feedback Message.
BUG=webrtc:5260
Review URL: https://codereview.webrtc.org/1446513002
Cr-Commit-Position: refs/heads/master@{#10823}
Diffstat (limited to 'webrtc/modules/rtp_rtcp/source/rtcp_packet.h')
-rw-r--r-- | webrtc/modules/rtp_rtcp/source/rtcp_packet.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_packet.h b/webrtc/modules/rtp_rtcp/source/rtcp_packet.h index 3ac66184bd..8e7e983f9a 100644 --- a/webrtc/modules/rtp_rtcp/source/rtcp_packet.h +++ b/webrtc/modules/rtp_rtcp/source/rtcp_packet.h @@ -319,57 +319,6 @@ class Sdes : public RtcpPacket { RTC_DISALLOW_COPY_AND_ASSIGN(Sdes); }; -// RFC 4585: Feedback format. -// -// Common packet format: -// -// 0 1 2 3 -// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// |V=2|P| FMT | PT | length | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | SSRC of packet sender | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | SSRC of media source | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// : Feedback Control Information (FCI) : -// : - -// Picture loss indication (PLI) (RFC 4585). -// -// FCI: no feedback control information. - -class Pli : public RtcpPacket { - public: - Pli() : RtcpPacket() { - memset(&pli_, 0, sizeof(pli_)); - } - - virtual ~Pli() {} - - void From(uint32_t ssrc) { - pli_.SenderSSRC = ssrc; - } - void To(uint32_t ssrc) { - pli_.MediaSSRC = ssrc; - } - - protected: - bool Create(uint8_t* packet, - size_t* index, - size_t max_length, - RtcpPacket::PacketReadyCallback* callback) const override; - - private: - size_t BlockLength() const { - return kCommonFbFmtLength; - } - - RTCPUtility::RTCPPacketPSFBPLI pli_; - - RTC_DISALLOW_COPY_AND_ASSIGN(Pli); -}; - // Slice loss indication (SLI) (RFC 4585). // // FCI: |