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 |
(...skipping 28 matching lines...) Expand all Loading... |
39 void SetFeedbackSequenceNumber(uint8_t feedback_sequence); | 39 void SetFeedbackSequenceNumber(uint8_t feedback_sequence); |
40 // NOTE: This method requires increasing sequence numbers (excepting wraps). | 40 // NOTE: This method requires increasing sequence numbers (excepting wraps). |
41 bool AddReceivedPacket(uint16_t sequence_number, int64_t timestamp_us); | 41 bool AddReceivedPacket(uint16_t sequence_number, int64_t timestamp_us); |
42 | 42 |
43 enum class StatusSymbol { | 43 enum class StatusSymbol { |
44 kNotReceived, | 44 kNotReceived, |
45 kReceivedSmallDelta, | 45 kReceivedSmallDelta, |
46 kReceivedLargeDelta, | 46 kReceivedLargeDelta, |
47 }; | 47 }; |
48 | 48 |
49 uint16_t GetBaseSequence() const; | 49 virtual uint16_t GetBaseSequence() const; |
50 std::vector<TransportFeedback::StatusSymbol> GetStatusVector() const; | 50 virtual std::vector<TransportFeedback::StatusSymbol> GetStatusVector() const; |
51 std::vector<int16_t> GetReceiveDeltas() const; | 51 std::vector<int16_t> GetReceiveDeltas() const; |
52 | 52 |
53 // Get the reference time in microseconds, including any precision loss. | 53 // Get the reference time in microseconds, including any precision loss. |
54 int64_t GetBaseTimeUs() const; | 54 int64_t GetBaseTimeUs() const; |
55 // Convenience method for getting all deltas as microseconds. The first delta | 55 // Convenience method for getting all deltas as microseconds. The first delta |
56 // is relative the base time. | 56 // is relative the base time. |
57 std::vector<int64_t> GetReceiveDeltasUs() const; | 57 std::vector<int64_t> GetReceiveDeltasUs() const; |
58 | 58 |
59 bool Parse(const CommonHeader& packet); | 59 bool Parse(const CommonHeader& packet); |
60 static std::unique_ptr<TransportFeedback> ParseFrom(const uint8_t* buffer, | 60 static std::unique_ptr<TransportFeedback> ParseFrom(const uint8_t* buffer, |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 uint16_t first_symbol_cardinality_; | 110 uint16_t first_symbol_cardinality_; |
111 bool vec_needs_two_bit_symbols_; | 111 bool vec_needs_two_bit_symbols_; |
112 uint32_t size_bytes_; | 112 uint32_t size_bytes_; |
113 | 113 |
114 RTC_DISALLOW_COPY_AND_ASSIGN(TransportFeedback); | 114 RTC_DISALLOW_COPY_AND_ASSIGN(TransportFeedback); |
115 }; | 115 }; |
116 | 116 |
117 } // namespace rtcp | 117 } // namespace rtcp |
118 } // namespace webrtc | 118 } // namespace webrtc |
119 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_TRANSPORT_FEEDBACK_H_ | 119 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_TRANSPORT_FEEDBACK_H_ |
OLD | NEW |