Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h

Issue 1290813008: Add RemoteEstimatorProxy for capturing receive times (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixed borked Rebase Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 uint16_t GetBaseSequence() const; 45 uint16_t GetBaseSequence() const;
46 std::vector<TransportFeedback::StatusSymbol> GetStatusVector() const; 46 std::vector<TransportFeedback::StatusSymbol> GetStatusVector() const;
47 std::vector<int16_t> GetReceiveDeltas() const; 47 std::vector<int16_t> GetReceiveDeltas() const;
48 48
49 // Get the reference time in microseconds, including any precision loss. 49 // Get the reference time in microseconds, including any precision loss.
50 int64_t GetBaseTimeUs() const; 50 int64_t GetBaseTimeUs() const;
51 // Convenience method for getting all deltas as microseconds. The first delta 51 // Convenience method for getting all deltas as microseconds. The first delta
52 // is relative the base time. 52 // is relative the base time.
53 std::vector<int64_t> GetReceiveDeltasUs() const; 53 std::vector<int64_t> GetReceiveDeltasUs() const;
54 54
55 uint32_t GetPacketSenderSsrc() const;
56 uint32_t GetMediaSourceSsrc() const;
55 static const int kDeltaScaleFactor = 250; // Convert to multiples of 0.25ms. 57 static const int kDeltaScaleFactor = 250; // Convert to multiples of 0.25ms.
56 static const uint8_t kFeedbackMessageType = 15; // TODO(sprang): IANA reg? 58 static const uint8_t kFeedbackMessageType = 15; // TODO(sprang): IANA reg?
57 static const uint8_t kPayloadType = 205; // RTPFB, see RFC4585. 59 static const uint8_t kPayloadType = 205; // RTPFB, see RFC4585.
58 60
59 static rtc::scoped_ptr<TransportFeedback> ParseFrom(const uint8_t* buffer, 61 static rtc::scoped_ptr<TransportFeedback> ParseFrom(const uint8_t* buffer,
60 size_t length); 62 size_t length);
61 63
62 protected: 64 protected:
63 bool Create(uint8_t* packet, 65 bool Create(uint8_t* packet,
64 size_t* position, 66 size_t* position,
(...skipping 29 matching lines...) Expand all
94 uint16_t first_symbol_cardinality_; 96 uint16_t first_symbol_cardinality_;
95 bool vec_needs_two_bit_symbols_; 97 bool vec_needs_two_bit_symbols_;
96 uint32_t size_bytes_; 98 uint32_t size_bytes_;
97 99
98 DISALLOW_COPY_AND_ASSIGN(TransportFeedback); 100 DISALLOW_COPY_AND_ASSIGN(TransportFeedback);
99 }; 101 };
100 102
101 } // namespace rtcp 103 } // namespace rtcp
102 } // namespace webrtc 104 } // namespace webrtc
103 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_TRANSPORT_FEEDBACK_H_ 105 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_TRANSPORT_FEEDBACK_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h ('k') | webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698