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

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

Issue 1544403002: [rtp_rtcp] rtcp::Fir cleaned and got Parse function. (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 unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/rtcp_packet/compound_packet_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 * 9 *
10 */ 10 */
(...skipping 20 matching lines...) Expand all
31 // ReportBlock report_block; 31 // ReportBlock report_block;
32 // report_block.To(234) 32 // report_block.To(234)
33 // report_block.FractionLost(10); 33 // report_block.FractionLost(10);
34 // 34 //
35 // ReceiverReport rr; 35 // ReceiverReport rr;
36 // rr.From(123); 36 // rr.From(123);
37 // rr.WithReportBlock(&report_block) 37 // rr.WithReportBlock(&report_block)
38 // 38 //
39 // Fir fir; 39 // Fir fir;
40 // fir.From(123); 40 // fir.From(123);
41 // fir.To(234) 41 // fir.WithRequestTo(234, 56);
42 // fir.WithCommandSeqNum(123);
43 // 42 //
44 // size_t length = 0; // Builds an intra frame request 43 // size_t length = 0; // Builds an intra frame request
45 // uint8_t packet[kPacketSize]; // with sequence number 123. 44 // uint8_t packet[kPacketSize]; // with sequence number 56.
46 // fir.Build(packet, &length, kPacketSize); 45 // fir.Build(packet, &length, kPacketSize);
47 // 46 //
48 // RawPacket packet = fir.Build(); // Returns a RawPacket holding 47 // RawPacket packet = fir.Build(); // Returns a RawPacket holding
49 // // the built rtcp packet. 48 // // the built rtcp packet.
50 // 49 //
51 // rr.Append(&fir) // Builds a compound RTCP packet with 50 // rr.Append(&fir) // Builds a compound RTCP packet with
52 // RawPacket packet = rr.Build(); // a receiver report, report block 51 // RawPacket packet = rr.Build(); // a receiver report, report block
53 // // and fir message. 52 // // and fir message.
54 53
55 class RtcpPacket { 54 class RtcpPacket {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 138
140 private: 139 private:
141 const size_t buffer_length_; 140 const size_t buffer_length_;
142 size_t length_; 141 size_t length_;
143 rtc::scoped_ptr<uint8_t[]> buffer_; 142 rtc::scoped_ptr<uint8_t[]> buffer_;
144 }; 143 };
145 144
146 } // namespace rtcp 145 } // namespace rtcp
147 } // namespace webrtc 146 } // namespace webrtc
148 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_H_ 147 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/rtcp_packet/compound_packet_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698