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 #ifndef WEBRTC_VIDEO_RTP_STREAM_RECEIVER_H_ | 11 #ifndef WEBRTC_VIDEO_RTP_VIDEO_STREAM_RECEIVER_H_ |
12 #define WEBRTC_VIDEO_RTP_STREAM_RECEIVER_H_ | 12 #define WEBRTC_VIDEO_RTP_VIDEO_STREAM_RECEIVER_H_ |
13 | 13 |
14 #include <list> | 14 #include <list> |
15 #include <map> | 15 #include <map> |
16 #include <memory> | 16 #include <memory> |
17 #include <string> | 17 #include <string> |
18 #include <vector> | 18 #include <vector> |
19 | 19 |
20 #include "webrtc/base/constructormagic.h" | 20 #include "webrtc/base/constructormagic.h" |
21 #include "webrtc/base/criticalsection.h" | 21 #include "webrtc/base/criticalsection.h" |
22 #include "webrtc/modules/include/module_common_types.h" | 22 #include "webrtc/modules/include/module_common_types.h" |
(...skipping 25 matching lines...) Expand all Loading... |
48 class RTPPayloadRegistry; | 48 class RTPPayloadRegistry; |
49 class RtpReceiver; | 49 class RtpReceiver; |
50 class Transport; | 50 class Transport; |
51 class UlpfecReceiver; | 51 class UlpfecReceiver; |
52 class VCMTiming; | 52 class VCMTiming; |
53 | 53 |
54 namespace vcm { | 54 namespace vcm { |
55 class VideoReceiver; | 55 class VideoReceiver; |
56 } // namespace vcm | 56 } // namespace vcm |
57 | 57 |
58 class RtpStreamReceiver : public RtpData, | 58 class RtpVideoStreamReceiver : public RtpData, |
59 public RecoveredPacketReceiver, | 59 public RecoveredPacketReceiver, |
60 public RtpFeedback, | 60 public RtpFeedback, |
61 public VCMFrameTypeCallback, | 61 public VCMFrameTypeCallback, |
62 public VCMPacketRequestCallback, | 62 public VCMPacketRequestCallback, |
63 public video_coding::OnReceivedFrameCallback, | 63 public video_coding::OnReceivedFrameCallback, |
64 public video_coding::OnCompleteFrameCallback, | 64 public video_coding::OnCompleteFrameCallback, |
65 public CallStatsObserver { | 65 public CallStatsObserver { |
66 public: | 66 public: |
67 RtpStreamReceiver( | 67 RtpVideoStreamReceiver( |
68 Transport* transport, | 68 Transport* transport, |
69 RtcpRttStats* rtt_stats, | 69 RtcpRttStats* rtt_stats, |
70 PacketRouter* packet_router, | 70 PacketRouter* packet_router, |
71 const VideoReceiveStream::Config* config, | 71 const VideoReceiveStream::Config* config, |
72 ReceiveStatisticsProxy* receive_stats_proxy, | 72 ReceiveStatisticsProxy* receive_stats_proxy, |
73 ProcessThread* process_thread, | 73 ProcessThread* process_thread, |
74 NackSender* nack_sender, | 74 NackSender* nack_sender, |
75 KeyFrameRequestSender* keyframe_request_sender, | 75 KeyFrameRequestSender* keyframe_request_sender, |
76 video_coding::OnCompleteFrameCallback* complete_frame_callback, | 76 video_coding::OnCompleteFrameCallback* complete_frame_callback, |
77 VCMTiming* timing); | 77 VCMTiming* timing); |
78 ~RtpStreamReceiver(); | 78 ~RtpVideoStreamReceiver(); |
79 | 79 |
80 bool AddReceiveCodec(const VideoCodec& video_codec, | 80 bool AddReceiveCodec(const VideoCodec& video_codec, |
81 const std::map<std::string, std::string>& codec_params); | 81 const std::map<std::string, std::string>& codec_params); |
82 uint32_t GetRemoteSsrc() const; | 82 uint32_t GetRemoteSsrc() const; |
83 int GetCsrcs(uint32_t* csrcs) const; | 83 int GetCsrcs(uint32_t* csrcs) const; |
84 | 84 |
85 RtpReceiver* GetRtpReceiver() const; | 85 RtpReceiver* GetRtpReceiver() const; |
86 RtpRtcp* rtp_rtcp() const { return rtp_rtcp_.get(); } | 86 RtpRtcp* rtp_rtcp() const { return rtp_rtcp_.get(); } |
87 | 87 |
88 void StartReceive(); | 88 void StartReceive(); |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 // https://bugs.chromium.org/p/webrtc/issues/detail?id=6883 is resolved. | 196 // https://bugs.chromium.org/p/webrtc/issues/detail?id=6883 is resolved. |
197 // Maps a payload type to a map of out-of-band supplied codec parameters. | 197 // Maps a payload type to a map of out-of-band supplied codec parameters. |
198 std::map<uint8_t, std::map<std::string, std::string>> pt_codec_params_; | 198 std::map<uint8_t, std::map<std::string, std::string>> pt_codec_params_; |
199 int16_t last_payload_type_ = -1; | 199 int16_t last_payload_type_ = -1; |
200 | 200 |
201 bool has_received_frame_; | 201 bool has_received_frame_; |
202 }; | 202 }; |
203 | 203 |
204 } // namespace webrtc | 204 } // namespace webrtc |
205 | 205 |
206 #endif // WEBRTC_VIDEO_RTP_STREAM_RECEIVER_H_ | 206 #endif // WEBRTC_VIDEO_RTP_VIDEO_STREAM_RECEIVER_H_ |
OLD | NEW |