OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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/rtcp_packet/transport_feedback.h" | 11 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" |
12 | 12 |
13 #include <algorithm> | 13 #include <algorithm> |
14 | 14 |
15 #include "webrtc/base/checks.h" | |
16 #include "webrtc/base/logging.h" | |
17 #include "webrtc/base/trace_event.h" | |
18 #include "webrtc/modules/include/module_common_types.h" | 15 #include "webrtc/modules/include/module_common_types.h" |
19 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 16 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
20 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/common_header.h" | 17 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/common_header.h" |
| 18 #include "webrtc/rtc_base/checks.h" |
| 19 #include "webrtc/rtc_base/logging.h" |
| 20 #include "webrtc/rtc_base/trace_event.h" |
21 | 21 |
22 namespace webrtc { | 22 namespace webrtc { |
23 namespace rtcp { | 23 namespace rtcp { |
24 namespace { | 24 namespace { |
25 // Header size: | 25 // Header size: |
26 // * 4 bytes Common RTCP Packet Header | 26 // * 4 bytes Common RTCP Packet Header |
27 // * 8 bytes Common Packet Format for RTCP Feedback Messages | 27 // * 8 bytes Common Packet Format for RTCP Feedback Messages |
28 // * 8 bytes FeedbackPacket header | 28 // * 8 bytes FeedbackPacket header |
29 constexpr size_t kTransportFeedbackHeaderSizeBytes = 4 + 8 + 8; | 29 constexpr size_t kTransportFeedbackHeaderSizeBytes = 4 + 8 + 8; |
30 constexpr size_t kChunkSizeBytes = 2; | 30 constexpr size_t kChunkSizeBytes = 2; |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
634 | 634 |
635 encoded_chunks_.push_back(last_chunk_->Emit()); | 635 encoded_chunks_.push_back(last_chunk_->Emit()); |
636 size_bytes_ += kChunkSizeBytes; | 636 size_bytes_ += kChunkSizeBytes; |
637 last_chunk_->Add(delta_size); | 637 last_chunk_->Add(delta_size); |
638 ++num_seq_no_; | 638 ++num_seq_no_; |
639 return true; | 639 return true; |
640 } | 640 } |
641 | 641 |
642 } // namespace rtcp | 642 } // namespace rtcp |
643 } // namespace webrtc | 643 } // namespace webrtc |
OLD | NEW |