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 |
11 #include "webrtc/modules/rtp_rtcp/include/flexfec_sender.h" | 11 #include "webrtc/modules/rtp_rtcp/include/flexfec_sender.h" |
12 | 12 |
13 #include <utility> | 13 #include <utility> |
14 | 14 |
15 #include "webrtc/base/logging.h" | |
16 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 15 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
17 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h" | 16 #include "webrtc/modules/rtp_rtcp/source/forward_error_correction.h" |
18 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h" | 17 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h" |
| 18 #include "webrtc/rtc_base/logging.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 // Let first sequence number be in the first half of the interval. | 24 // Let first sequence number be in the first half of the interval. |
25 constexpr uint16_t kMaxInitRtpSeqNumber = 0x7fff; | 25 constexpr uint16_t kMaxInitRtpSeqNumber = 0x7fff; |
26 | 26 |
27 // See breakdown in flexfec_header_reader_writer.cc. | 27 // See breakdown in flexfec_header_reader_writer.cc. |
28 constexpr size_t kFlexfecMaxHeaderSize = 32; | 28 constexpr size_t kFlexfecMaxHeaderSize = 32; |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 } | 160 } |
161 | 161 |
162 RtpState FlexfecSender::GetRtpState() { | 162 RtpState FlexfecSender::GetRtpState() { |
163 RtpState rtp_state; | 163 RtpState rtp_state; |
164 rtp_state.sequence_number = seq_num_; | 164 rtp_state.sequence_number = seq_num_; |
165 rtp_state.start_timestamp = timestamp_offset_; | 165 rtp_state.start_timestamp = timestamp_offset_; |
166 return rtp_state; | 166 return rtp_state; |
167 } | 167 } |
168 | 168 |
169 } // namespace webrtc | 169 } // namespace webrtc |
OLD | NEW |