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

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

Issue 1583233007: [rtp_rtcp] rtcp::Rpsi moved into own file (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 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
« no previous file with comments | « webrtc/modules/rtp_rtcp/rtp_rtcp.gypi ('k') | webrtc/modules/rtp_rtcp/source/rtcp_packet.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/rtp_rtcp/source/rtcp_packet.h
diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_packet.h b/webrtc/modules/rtp_rtcp/source/rtcp_packet.h
index 949ea39fc7e05bfb111a52936141bbba2ab36a26..9184ba88e28ce623e0933fd479ab63211e1f72c7 100644
--- a/webrtc/modules/rtp_rtcp/source/rtcp_packet.h
+++ b/webrtc/modules/rtp_rtcp/source/rtcp_packet.h
@@ -250,58 +250,6 @@ class Sdes : public RtcpPacket {
RTC_DISALLOW_COPY_AND_ASSIGN(Sdes);
};
-// Reference picture selection indication (RPSI) (RFC 4585).
-//
-// FCI:
-//
-// 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
-// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-// | PB |0| Payload Type| Native RPSI bit string |
-// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-// | defined per codec ... | Padding (0) |
-// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
-class Rpsi : public RtcpPacket {
- public:
- Rpsi()
- : RtcpPacket(),
- padding_bytes_(0) {
- memset(&rpsi_, 0, sizeof(rpsi_));
- }
-
- virtual ~Rpsi() {}
-
- void From(uint32_t ssrc) {
- rpsi_.SenderSSRC = ssrc;
- }
- void To(uint32_t ssrc) {
- rpsi_.MediaSSRC = ssrc;
- }
- void WithPayloadType(uint8_t payload) {
- assert(payload <= 0x7f);
- rpsi_.PayloadType = payload;
- }
- void WithPictureId(uint64_t picture_id);
-
- protected:
- bool Create(uint8_t* packet,
- size_t* index,
- size_t max_length,
- RtcpPacket::PacketReadyCallback* callback) const override;
-
- private:
- size_t BlockLength() const {
- size_t fci_length = 2 + (rpsi_.NumberOfValidBits / 8) + padding_bytes_;
- return kCommonFbFmtLength + fci_length;
- }
-
- uint8_t padding_bytes_;
- RTCPUtility::RTCPPacketPSFBRPSI rpsi_;
-
- RTC_DISALLOW_COPY_AND_ASSIGN(Rpsi);
-};
-
// Class holding a RTCP packet.
//
// Takes a built rtcp packet.
« no previous file with comments | « webrtc/modules/rtp_rtcp/rtp_rtcp.gypi ('k') | webrtc/modules/rtp_rtcp/source/rtcp_packet.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698