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/video/rtp_video_stream_receiver.h" | 11 #include "webrtc/video/rtp_video_stream_receiver.h" |
12 | 12 |
13 #include <utility> | 13 #include <utility> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "webrtc/base/checks.h" | |
17 #include "webrtc/base/location.h" | |
18 #include "webrtc/base/logging.h" | |
19 #include "webrtc/common_types.h" | 16 #include "webrtc/common_types.h" |
20 #include "webrtc/config.h" | 17 #include "webrtc/config.h" |
21 #include "webrtc/media/base/mediaconstants.h" | 18 #include "webrtc/media/base/mediaconstants.h" |
22 #include "webrtc/modules/pacing/packet_router.h" | 19 #include "webrtc/modules/pacing/packet_router.h" |
23 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat
or.h" | 20 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat
or.h" |
24 #include "webrtc/modules/rtp_rtcp/include/receive_statistics.h" | 21 #include "webrtc/modules/rtp_rtcp/include/receive_statistics.h" |
25 #include "webrtc/modules/rtp_rtcp/include/rtp_cvo.h" | 22 #include "webrtc/modules/rtp_rtcp/include/rtp_cvo.h" |
26 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" | 23 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" |
27 #include "webrtc/modules/rtp_rtcp/include/rtp_receiver.h" | 24 #include "webrtc/modules/rtp_rtcp/include/rtp_receiver.h" |
28 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" | 25 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" |
29 #include "webrtc/modules/rtp_rtcp/include/ulpfec_receiver.h" | 26 #include "webrtc/modules/rtp_rtcp/include/ulpfec_receiver.h" |
30 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h" | 27 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h" |
31 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_received.h" | 28 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_received.h" |
32 #include "webrtc/modules/video_coding/frame_object.h" | 29 #include "webrtc/modules/video_coding/frame_object.h" |
33 #include "webrtc/modules/video_coding/h264_sprop_parameter_sets.h" | 30 #include "webrtc/modules/video_coding/h264_sprop_parameter_sets.h" |
34 #include "webrtc/modules/video_coding/h264_sps_pps_tracker.h" | 31 #include "webrtc/modules/video_coding/h264_sps_pps_tracker.h" |
35 #include "webrtc/modules/video_coding/packet_buffer.h" | 32 #include "webrtc/modules/video_coding/packet_buffer.h" |
36 #include "webrtc/modules/video_coding/video_coding_impl.h" | 33 #include "webrtc/modules/video_coding/video_coding_impl.h" |
| 34 #include "webrtc/rtc_base/checks.h" |
| 35 #include "webrtc/rtc_base/location.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 = 32; |
46 constexpr int kPacketBufferMaxSixe = 2048; | 46 constexpr int kPacketBufferMaxSixe = 2048; |
(...skipping 633 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 |