| 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 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #include "webrtc/rtc_base/location.h" | 35 #include "webrtc/rtc_base/location.h" |
| 36 #include "webrtc/rtc_base/logging.h" | 36 #include "webrtc/rtc_base/logging.h" |
| 37 #include "webrtc/system_wrappers/include/field_trial.h" | 37 #include "webrtc/system_wrappers/include/field_trial.h" |
| 38 #include "webrtc/system_wrappers/include/metrics.h" | 38 #include "webrtc/system_wrappers/include/metrics.h" |
| 39 #include "webrtc/system_wrappers/include/timestamp_extrapolator.h" | 39 #include "webrtc/system_wrappers/include/timestamp_extrapolator.h" |
| 40 #include "webrtc/video/receive_statistics_proxy.h" | 40 #include "webrtc/video/receive_statistics_proxy.h" |
| 41 | 41 |
| 42 namespace webrtc { | 42 namespace webrtc { |
| 43 | 43 |
| 44 namespace { | 44 namespace { |
| 45 constexpr int kPacketBufferStartSize = 32; | 45 constexpr int kPacketBufferStartSize = 512; |
| 46 constexpr int kPacketBufferMaxSixe = 2048; | 46 constexpr int kPacketBufferMaxSixe = 2048; |
| 47 } | 47 } |
| 48 | 48 |
| 49 std::unique_ptr<RtpRtcp> CreateRtpRtcpModule( | 49 std::unique_ptr<RtpRtcp> CreateRtpRtcpModule( |
| 50 ReceiveStatistics* receive_statistics, | 50 ReceiveStatistics* receive_statistics, |
| 51 Transport* outgoing_transport, | 51 Transport* outgoing_transport, |
| 52 RtcpRttStats* rtt_stats, | 52 RtcpRttStats* rtt_stats, |
| 53 RtcpPacketTypeCounterObserver* rtcp_packet_type_counter_observer, | 53 RtcpPacketTypeCounterObserver* rtcp_packet_type_counter_observer, |
| 54 TransportSequenceNumberAllocator* transport_sequence_number_allocator) { | 54 TransportSequenceNumberAllocator* transport_sequence_number_allocator) { |
| 55 RtpRtcp::Configuration configuration; | 55 RtpRtcp::Configuration configuration; |
| (...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 return; | 680 return; |
| 681 | 681 |
| 682 if (!sprop_decoder.DecodeSprop(sprop_base64_it->second.c_str())) | 682 if (!sprop_decoder.DecodeSprop(sprop_base64_it->second.c_str())) |
| 683 return; | 683 return; |
| 684 | 684 |
| 685 tracker_.InsertSpsPpsNalus(sprop_decoder.sps_nalu(), | 685 tracker_.InsertSpsPpsNalus(sprop_decoder.sps_nalu(), |
| 686 sprop_decoder.pps_nalu()); | 686 sprop_decoder.pps_nalu()); |
| 687 } | 687 } |
| 688 | 688 |
| 689 } // namespace webrtc | 689 } // namespace webrtc |
| OLD | NEW |