OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
52 // These FEC packets are then obtained by calling GetFecPackets(). | 52 // These FEC packets are then obtained by calling GetFecPackets(). |
53 // Returns true if the media packet was successfully added. | 53 // Returns true if the media packet was successfully added. |
54 bool AddRtpPacketAndGenerateFec(const RtpPacketToSend& packet); | 54 bool AddRtpPacketAndGenerateFec(const RtpPacketToSend& packet); |
55 | 55 |
56 // Returns true if there are generated FEC packets available. | 56 // Returns true if there are generated FEC packets available. |
57 bool FecAvailable() const; | 57 bool FecAvailable() const; |
58 | 58 |
59 // Returns generated FlexFEC packets. | 59 // Returns generated FlexFEC packets. |
60 std::vector<std::unique_ptr<RtpPacketToSend>> GetFecPackets(); | 60 std::vector<std::unique_ptr<RtpPacketToSend>> GetFecPackets(); |
61 | 61 |
62 // Returns the overhead, per packet, for FlexFEC. | 62 // Returns the overhead, per packet, for FlexFEC. |
danilchap
2017/05/08 16:25:05
add description for the parameter.
Can it have dif
erikvarga1
2017/05/09 11:40:03
Done.
| |
63 size_t MaxPacketOverhead() const; | 63 size_t MaxPacketOverhead( |
64 rtc::ArrayView<const RTPExtensionSizeInfo> extension_sizes) const; | |
64 | 65 |
65 private: | 66 private: |
66 // Utility. | 67 // Utility. |
67 Clock* const clock_; | 68 Clock* const clock_; |
68 Random random_; | 69 Random random_; |
69 int64_t last_generated_packet_ms_; | 70 int64_t last_generated_packet_ms_; |
70 | 71 |
71 // Config. | 72 // Config. |
72 const int payload_type_; | 73 const int payload_type_; |
73 const uint32_t timestamp_offset_; | 74 const uint32_t timestamp_offset_; |
74 const uint32_t ssrc_; | 75 const uint32_t ssrc_; |
75 const uint32_t protected_media_ssrc_; | 76 const uint32_t protected_media_ssrc_; |
76 // Sequence number of next packet to generate. | 77 // Sequence number of next packet to generate. |
77 uint16_t seq_num_; | 78 uint16_t seq_num_; |
78 | 79 |
79 // Implementation. | 80 // Implementation. |
80 UlpfecGenerator ulpfec_generator_; | 81 UlpfecGenerator ulpfec_generator_; |
81 const RtpHeaderExtensionMap rtp_header_extension_map_; | 82 const RtpHeaderExtensionMap rtp_header_extension_map_; |
82 }; | 83 }; |
83 | 84 |
84 } // namespace webrtc | 85 } // namespace webrtc |
85 | 86 |
86 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_FLEXFEC_SENDER_H_ | 87 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_FLEXFEC_SENDER_H_ |
OLD | NEW |