OLD | NEW |
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 #include "webrtc/modules/rtp_rtcp/source/rtp_sender_video.h" | 11 #include "webrtc/modules/rtp_rtcp/source/rtp_sender_video.h" |
12 | 12 |
13 #include <stdlib.h> | 13 #include <stdlib.h> |
14 #include <string.h> | 14 #include <string.h> |
15 | 15 |
16 #include <memory> | 16 #include <memory> |
17 #include <vector> | 17 #include <vector> |
18 #include <utility> | 18 #include <utility> |
19 | 19 |
20 #include "webrtc/base/checks.h" | |
21 #include "webrtc/base/logging.h" | |
22 #include "webrtc/base/ptr_util.h" | |
23 #include "webrtc/base/trace_event.h" | |
24 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 20 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
25 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 21 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
26 #include "webrtc/modules/rtp_rtcp/source/rtp_format_video_generic.h" | 22 #include "webrtc/modules/rtp_rtcp/source/rtp_format_video_generic.h" |
27 #include "webrtc/modules/rtp_rtcp/source/rtp_format_vp8.h" | 23 #include "webrtc/modules/rtp_rtcp/source/rtp_format_vp8.h" |
28 #include "webrtc/modules/rtp_rtcp/source/rtp_format_vp9.h" | 24 #include "webrtc/modules/rtp_rtcp/source/rtp_format_vp9.h" |
29 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h" | 25 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h" |
30 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_to_send.h" | 26 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_to_send.h" |
| 27 #include "webrtc/rtc_base/checks.h" |
| 28 #include "webrtc/rtc_base/logging.h" |
| 29 #include "webrtc/rtc_base/ptr_util.h" |
| 30 #include "webrtc/rtc_base/trace_event.h" |
31 | 31 |
32 namespace webrtc { | 32 namespace webrtc { |
33 | 33 |
34 namespace { | 34 namespace { |
35 constexpr size_t kRedForFecHeaderLength = 1; | 35 constexpr size_t kRedForFecHeaderLength = 1; |
36 | 36 |
37 void BuildRedPayload(const RtpPacketToSend& media_packet, | 37 void BuildRedPayload(const RtpPacketToSend& media_packet, |
38 RtpPacketToSend* red_packet) { | 38 RtpPacketToSend* red_packet) { |
39 uint8_t* red_payload = red_packet->AllocatePayload( | 39 uint8_t* red_payload = red_packet->AllocatePayload( |
40 kRedForFecHeaderLength + media_packet.payload_size()); | 40 kRedForFecHeaderLength + media_packet.payload_size()); |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 rtc::CritScope cs(&crit_); | 447 rtc::CritScope cs(&crit_); |
448 return retransmission_settings_; | 448 return retransmission_settings_; |
449 } | 449 } |
450 | 450 |
451 void RTPSenderVideo::SetSelectiveRetransmissions(uint8_t settings) { | 451 void RTPSenderVideo::SetSelectiveRetransmissions(uint8_t settings) { |
452 rtc::CritScope cs(&crit_); | 452 rtc::CritScope cs(&crit_); |
453 retransmission_settings_ = settings; | 453 retransmission_settings_ = settings; |
454 } | 454 } |
455 | 455 |
456 } // namespace webrtc | 456 } // namespace webrtc |
OLD | NEW |