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

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

Issue 2099243003: Use std::unique_ptr in ForwardErrorCorrection. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@flexfec-pt1a_mini-fixes-in-ULPFEC
Patch Set: Final nit from danilchap. Created 4 years, 5 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
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 <vector> 15 #include <vector>
15 16
16 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h" 17 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h"
17 18
18 namespace webrtc { 19 namespace webrtc {
19 20
20 class RedPacket { 21 class RedPacket {
21 public: 22 public:
22 explicit RedPacket(size_t length); 23 explicit RedPacket(size_t length);
23 ~RedPacket(); 24 ~RedPacket();
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 std::vector<RedPacket*> GetFecPackets(int red_pl_type, 66 std::vector<RedPacket*> GetFecPackets(int red_pl_type,
66 int fec_pl_type, 67 int fec_pl_type,
67 uint16_t first_seq_num, 68 uint16_t first_seq_num,
68 size_t rtp_header_length); 69 size_t rtp_header_length);
69 70
70 private: 71 private:
71 void DeletePackets(); 72 void DeletePackets();
72 int Overhead() const; 73 int Overhead() const;
73 ForwardErrorCorrection* fec_; 74 ForwardErrorCorrection* fec_;
74 ForwardErrorCorrection::PacketList media_packets_fec_; 75 ForwardErrorCorrection::PacketList media_packets_fec_;
75 ForwardErrorCorrection::PacketList fec_packets_; 76 std::list<ForwardErrorCorrection::Packet*> fec_packets_;
76 int num_frames_; 77 int num_frames_;
77 int num_first_partition_; 78 int num_first_partition_;
78 int minimum_media_packets_fec_; 79 int minimum_media_packets_fec_;
79 FecProtectionParams params_; 80 FecProtectionParams params_;
80 FecProtectionParams new_params_; 81 FecProtectionParams new_params_;
81 }; 82 };
82 83
83 } // namespace webrtc 84 } // namespace webrtc
84 85
85 #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
This is Rietveld 408576698