| 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 25 matching lines...) Expand all Loading... |
| 36 // NOTE: This method requires increasing sequence numbers (excepting wraps). | 36 // NOTE: This method requires increasing sequence numbers (excepting wraps). |
| 37 bool WithReceivedPacket(uint16_t sequence_number, int64_t timestamp_us); | 37 bool WithReceivedPacket(uint16_t sequence_number, int64_t timestamp_us); |
| 38 | 38 |
| 39 enum class StatusSymbol { | 39 enum class StatusSymbol { |
| 40 kNotReceived, | 40 kNotReceived, |
| 41 kReceivedSmallDelta, | 41 kReceivedSmallDelta, |
| 42 kReceivedLargeDelta, | 42 kReceivedLargeDelta, |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 uint16_t GetBaseSequence() const; | 45 uint16_t GetBaseSequence() const; |
| 46 int32_t GetBaseTime() const; | |
| 47 std::vector<TransportFeedback::StatusSymbol> GetStatusVector() const; | 46 std::vector<TransportFeedback::StatusSymbol> GetStatusVector() const; |
| 48 std::vector<int16_t> GetReceiveDeltas() const; | 47 std::vector<int16_t> GetReceiveDeltas() const; |
| 49 | 48 |
| 50 // Get the reference time in microseconds, including any precision loss. | 49 // Get the reference time in microseconds, including any precision loss. |
| 51 int64_t GetBaseTimeUs() const; | 50 int64_t GetBaseTimeUs() const; |
| 52 // Convenience method for getting all deltas as microseconds. The first delta | 51 // Convenience method for getting all deltas as microseconds. The first delta |
| 53 // is relative the base time. | 52 // is relative the base time. |
| 54 std::vector<int64_t> GetReceiveDeltasUs() const; | 53 std::vector<int64_t> GetReceiveDeltasUs() const; |
| 55 | 54 |
| 56 static const int kDeltaScaleFactor = 250; // Convert to multiples of 0.25ms. | 55 static const int kDeltaScaleFactor = 250; // Convert to multiples of 0.25ms. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 uint16_t first_symbol_cardinality_; | 94 uint16_t first_symbol_cardinality_; |
| 96 bool vec_needs_two_bit_symbols_; | 95 bool vec_needs_two_bit_symbols_; |
| 97 uint32_t size_bytes_; | 96 uint32_t size_bytes_; |
| 98 | 97 |
| 99 DISALLOW_COPY_AND_ASSIGN(TransportFeedback); | 98 DISALLOW_COPY_AND_ASSIGN(TransportFeedback); |
| 100 }; | 99 }; |
| 101 | 100 |
| 102 } // namespace rtcp | 101 } // namespace rtcp |
| 103 } // namespace webrtc | 102 } // namespace webrtc |
| 104 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_TRANSPORT_FEEDBACK_H_ | 103 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_TRANSPORT_FEEDBACK_H_ |
| OLD | NEW |