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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 void SignalNetworkState(NetworkState state); | 84 void SignalNetworkState(NetworkState state); |
85 | 85 |
86 // Implements RtpData. | 86 // Implements RtpData. |
87 int32_t OnReceivedPayloadData(const uint8_t* payload_data, | 87 int32_t OnReceivedPayloadData(const uint8_t* payload_data, |
88 size_t payload_size, | 88 size_t payload_size, |
89 const WebRtcRTPHeader* rtp_header) override; | 89 const WebRtcRTPHeader* rtp_header) override; |
90 bool OnRecoveredPacket(const uint8_t* packet, size_t packet_length) override; | 90 bool OnRecoveredPacket(const uint8_t* packet, size_t packet_length) override; |
91 | 91 |
92 // Implements RtpFeedback. | 92 // Implements RtpFeedback. |
93 int32_t OnInitializeDecoder(const int8_t payload_type, | 93 int32_t OnInitializeDecoder(int8_t payload_type, |
94 const char payload_name[RTP_PAYLOAD_NAME_SIZE], | 94 const char payload_name[RTP_PAYLOAD_NAME_SIZE], |
95 const int frequency, | 95 int frequency, |
96 const size_t channels, | 96 size_t channels, |
97 const uint32_t rate) override; | 97 uint32_t rate) override; |
98 void OnIncomingSSRCChanged(const uint32_t ssrc) override; | 98 void OnIncomingSSRCChanged(uint32_t ssrc) override; |
99 void OnIncomingCSRCChanged(const uint32_t CSRC, const bool added) override {} | 99 void OnIncomingCSRCChanged(uint32_t CSRC, bool added) override {} |
100 | 100 |
101 // Implements VCMFrameTypeCallback. | 101 // Implements VCMFrameTypeCallback. |
102 int32_t RequestKeyFrame() override; | 102 int32_t RequestKeyFrame() override; |
103 int32_t SliceLossIndicationRequest(const uint64_t picture_id) override; | 103 int32_t SliceLossIndicationRequest(const uint64_t picture_id) override; |
104 | 104 |
105 bool IsFecEnabled() const; | 105 bool IsFecEnabled() const; |
106 bool IsRetransmissionsEnabled() const; | 106 bool IsRetransmissionsEnabled() const; |
107 // Don't use, still experimental. | 107 // Don't use, still experimental. |
108 void RequestPacketRetransmit(const std::vector<uint16_t>& sequence_numbers); | 108 void RequestPacketRetransmit(const std::vector<uint16_t>& sequence_numbers); |
109 | 109 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 uint8_t restored_packet_[IP_PACKET_SIZE] GUARDED_BY(receive_cs_); | 149 uint8_t restored_packet_[IP_PACKET_SIZE] GUARDED_BY(receive_cs_); |
150 bool restored_packet_in_use_ GUARDED_BY(receive_cs_); | 150 bool restored_packet_in_use_ GUARDED_BY(receive_cs_); |
151 int64_t last_packet_log_ms_ GUARDED_BY(receive_cs_); | 151 int64_t last_packet_log_ms_ GUARDED_BY(receive_cs_); |
152 | 152 |
153 const std::unique_ptr<RtpRtcp> rtp_rtcp_; | 153 const std::unique_ptr<RtpRtcp> rtp_rtcp_; |
154 }; | 154 }; |
155 | 155 |
156 } // namespace webrtc | 156 } // namespace webrtc |
157 | 157 |
158 #endif // WEBRTC_VIDEO_RTP_STREAM_RECEIVER_H_ | 158 #endif // WEBRTC_VIDEO_RTP_STREAM_RECEIVER_H_ |
OLD | NEW |