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

Unified Diff: webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.cc

Issue 2822153002: Remove rtcp::TransportFeedback::GetStatusVector/GetReceiveDeltas (Closed)
Patch Set: Rebase Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.cc
diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.cc b/webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.cc
index 767c55147910e6d7b9c8ec7f5a38bcabbb5f4050..ec7c6163b3e8865d0703e83200b040f914f0c4f8 100644
--- a/webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.cc
+++ b/webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.cc
@@ -376,41 +376,10 @@ uint16_t TransportFeedback::GetBaseSequence() const {
return base_seq_no_;
}
-std::vector<TransportFeedback::StatusSymbol>
-TransportFeedback::GetStatusVector() const {
- std::vector<TransportFeedback::StatusSymbol> symbols;
- uint16_t seq_no = GetBaseSequence();
- for (const auto& packet : packets_) {
- for (; seq_no != packet.sequence_number(); ++seq_no)
- symbols.push_back(StatusSymbol::kNotReceived);
- if (packet.delta_ticks() >= 0x00 && packet.delta_ticks() <= 0xff) {
- symbols.push_back(StatusSymbol::kReceivedSmallDelta);
- } else {
- symbols.push_back(StatusSymbol::kReceivedLargeDelta);
- }
- ++seq_no;
- }
- return symbols;
-}
-
-std::vector<int16_t> TransportFeedback::GetReceiveDeltas() const {
- std::vector<int16_t> deltas;
- for (const auto& packet : packets_)
- deltas.push_back(packet.delta_ticks());
- return deltas;
-}
-
int64_t TransportFeedback::GetBaseTimeUs() const {
return static_cast<int64_t>(base_time_ticks_) * kBaseScaleFactor;
}
-std::vector<int64_t> TransportFeedback::GetReceiveDeltasUs() const {
- std::vector<int64_t> us_deltas;
- for (const auto& packet : packets_)
- us_deltas.push_back(packet.delta_us());
- return us_deltas;
-}
-
// De-serialize packet.
bool TransportFeedback::Parse(const CommonHeader& packet) {
RTC_DCHECK_EQ(packet.type(), kPacketType);
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698