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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtcp_packet/sdes.h

Issue 1592763002: [rtp_rtcp] rtcp::Sdes moved into own file (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase 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 unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 *
10 */
11
12 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_SDES_H_
13 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_SDES_H_
14
15 #include <string>
16 #include <vector>
17
18 #include "webrtc/base/basictypes.h"
19 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet.h"
20 #include "webrtc/modules/rtp_rtcp/source/rtcp_utility.h"
21
22 namespace webrtc {
23 namespace rtcp {
24 // Source Description (SDES) (RFC 3550).
25 class Sdes : public RtcpPacket {
26 public:
27 Sdes() : RtcpPacket() {}
28
29 virtual ~Sdes() {}
30
31 bool WithCName(uint32_t ssrc, const std::string& cname);
32
33 struct Chunk {
34 uint32_t ssrc;
35 std::string name;
36 int null_octets;
37 };
38
39 protected:
40 bool Create(uint8_t* packet,
41 size_t* index,
42 size_t max_length,
43 RtcpPacket::PacketReadyCallback* callback) const override;
44
45 private:
46 static const int kMaxNumberOfChunks = 0x1f;
47
48 size_t BlockLength() const;
49
50 std::vector<Chunk> chunks_;
51
52 RTC_DISALLOW_COPY_AND_ASSIGN(Sdes);
53 };
54 } // namespace rtcp
55 } // namespace webrtc
56 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_SDES_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtcp_packet.cc ('k') | webrtc/modules/rtp_rtcp/source/rtcp_packet/sdes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698