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

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

Issue 2080553003: Style updates for ForwardErrorCorrection and related classes (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. 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>
15 #include <vector> 14 #include <vector>
16 15
17 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h" 16 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h"
18 17
19 namespace webrtc { 18 namespace webrtc {
20 19
21 class RedPacket { 20 class RedPacket {
22 public: 21 public:
23 explicit RedPacket(size_t length); 22 explicit RedPacket(size_t length);
24 ~RedPacket(); 23 ~RedPacket();
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // assumed to delete the memory when done with the packets. 64 // assumed to delete the memory when done with the packets.
66 std::vector<RedPacket*> GetFecPackets(int red_pl_type, 65 std::vector<RedPacket*> GetFecPackets(int red_pl_type,
67 int fec_pl_type, 66 int fec_pl_type,
68 uint16_t first_seq_num, 67 uint16_t first_seq_num,
69 size_t rtp_header_length); 68 size_t rtp_header_length);
70 69
71 private: 70 private:
72 void DeletePackets(); 71 void DeletePackets();
73 int Overhead() const; 72 int Overhead() const;
74 ForwardErrorCorrection* fec_; 73 ForwardErrorCorrection* fec_;
75 std::list<ForwardErrorCorrection::Packet*> media_packets_fec_; 74 ForwardErrorCorrection::PacketList media_packets_fec_;
76 std::list<ForwardErrorCorrection::Packet*> fec_packets_; 75 ForwardErrorCorrection::PacketList fec_packets_;
77 int num_frames_; 76 int num_frames_;
78 int num_first_partition_; 77 int num_first_partition_;
79 int minimum_media_packets_fec_; 78 int minimum_media_packets_fec_;
80 FecProtectionParams params_; 79 FecProtectionParams params_;
81 FecProtectionParams new_params_; 80 FecProtectionParams new_params_;
82 }; 81 };
83 82
84 } // namespace webrtc 83 } // namespace webrtc
85 84
86 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_PRODUCER_FEC_H_ 85 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_PRODUCER_FEC_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/forward_error_correction_internal.h ('k') | webrtc/modules/rtp_rtcp/source/producer_fec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698