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

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

Issue 2260803002: Generalize FEC header formatting. (pt. 4) (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Lint fix. Created 4 years, 3 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
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // Returns generated FEC packets with RED headers added. 82 // Returns generated FEC packets with RED headers added.
83 std::vector<std::unique_ptr<RedPacket>> GetFecPacketsAsRed( 83 std::vector<std::unique_ptr<RedPacket>> GetFecPacketsAsRed(
84 int red_payload_type, 84 int red_payload_type,
85 int ulpfec_payload_type, 85 int ulpfec_payload_type,
86 uint16_t first_seq_num, 86 uint16_t first_seq_num,
87 size_t rtp_header_length); 87 size_t rtp_header_length);
88 88
89 private: 89 private:
90 void DeleteMediaPackets(); 90 void DeleteMediaPackets();
91 int Overhead() const; 91 int Overhead() const;
92 ForwardErrorCorrection fec_; 92 std::unique_ptr<ForwardErrorCorrection> fec_;
93 ForwardErrorCorrection::PacketList media_packets_; 93 ForwardErrorCorrection::PacketList media_packets_;
94 std::list<ForwardErrorCorrection::Packet*> generated_fec_packets_; 94 std::list<ForwardErrorCorrection::Packet*> generated_fec_packets_;
95 int num_protected_frames_; 95 int num_protected_frames_;
96 int num_important_packets_; 96 int num_important_packets_;
97 int min_num_media_packets_; 97 int min_num_media_packets_;
98 FecProtectionParams params_; 98 FecProtectionParams params_;
99 FecProtectionParams new_params_; 99 FecProtectionParams new_params_;
100 }; 100 };
101 101
102 } // namespace webrtc 102 } // namespace webrtc
103 103
104 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_PRODUCER_FEC_H_ 104 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_PRODUCER_FEC_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/forward_error_correction_internal.cc ('k') | webrtc/modules/rtp_rtcp/source/producer_fec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698