Chromium Code Reviews

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

Issue 1710103004: webrtc::RtpPacket name freed for better RtpPacket (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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
11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_PRODUCER_FEC_H_ 11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_PRODUCER_FEC_H_
12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_PRODUCER_FEC_H_ 12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_PRODUCER_FEC_H_
13 13
14 #include <list> 14 #include <list>
15 #include <vector> 15 #include <vector>
16 16
17 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h" 17 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h"
18 18
19 namespace webrtc { 19 namespace webrtc {
20 20
21 struct RtpPacket;
22
23 class RedPacket { 21 class RedPacket {
24 public: 22 public:
25 explicit RedPacket(size_t length); 23 explicit RedPacket(size_t length);
26 ~RedPacket(); 24 ~RedPacket();
27 void CreateHeader(const uint8_t* rtp_header, size_t header_length, 25 void CreateHeader(const uint8_t* rtp_header, size_t header_length,
28 int red_pl_type, int pl_type); 26 int red_pl_type, int pl_type);
29 void SetSeqNum(int seq_num); 27 void SetSeqNum(int seq_num);
30 void AssignPayload(const uint8_t* payload, size_t length); 28 void AssignPayload(const uint8_t* payload, size_t length);
31 void ClearMarkerBit(); 29 void ClearMarkerBit();
32 uint8_t* data() const; 30 uint8_t* data() const;
(...skipping 46 matching lines...)
79 int num_frames_; 77 int num_frames_;
80 int num_first_partition_; 78 int num_first_partition_;
81 int minimum_media_packets_fec_; 79 int minimum_media_packets_fec_;
82 FecProtectionParams params_; 80 FecProtectionParams params_;
83 FecProtectionParams new_params_; 81 FecProtectionParams new_params_;
84 }; 82 };
85 83
86 } // namespace webrtc 84 } // namespace webrtc
87 85
88 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_PRODUCER_FEC_H_ 86 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_PRODUCER_FEC_H_
OLDNEW

Powered by Google App Engine