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

Unified Diff: media/cast/net/rtcp/rtcp_utility.h

Issue 1709863002: Add Cast PLI support on sender side. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address dcheng's comments. Created 4 years, 9 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 | « media/cast/net/rtcp/rtcp_unittest.cc ('k') | media/cast/net/rtcp/rtcp_utility.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/net/rtcp/rtcp_utility.h
diff --git a/media/cast/net/rtcp/rtcp_utility.h b/media/cast/net/rtcp/rtcp_utility.h
index 95044f3894c3d007b235c2d39f98647026ad78c6..637239785d41b75b5db9cd60a5cdf535b6bd2ddc 100644
--- a/media/cast/net/rtcp/rtcp_utility.h
+++ b/media/cast/net/rtcp/rtcp_utility.h
@@ -71,14 +71,17 @@ class RtcpParser {
return receiver_reference_time_report_;
}
+ bool has_picture_loss_indicator() const {
+ return has_picture_loss_indicator_;
+ }
+
private:
bool ParseCommonHeader(base::BigEndianReader* reader,
RtcpCommonHeader* parsed_header);
- bool ParseSR(base::BigEndianReader* reader,
- const RtcpCommonHeader& header);
- bool ParseRR(base::BigEndianReader* reader,
- const RtcpCommonHeader& header);
+ bool ParseSR(base::BigEndianReader* reader, const RtcpCommonHeader& header);
+ bool ParseRR(base::BigEndianReader* reader, const RtcpCommonHeader& header);
bool ParseReportBlock(base::BigEndianReader* reader);
+ bool ParsePli(base::BigEndianReader* reader, const RtcpCommonHeader& header);
bool ParseApplicationDefined(base::BigEndianReader* reader,
const RtcpCommonHeader& header);
bool ParseCastReceiverLogFrameItem(base::BigEndianReader* reader);
@@ -117,6 +120,9 @@ class RtcpParser {
RtpTimeTicks last_parsed_sr_rtp_timestamp_;
RtpTimeTicks last_parsed_frame_log_rtp_timestamp_;
+ // Indicates if sender received the Pli message from the receiver.
+ bool has_picture_loss_indicator_;
+
DISALLOW_COPY_AND_ASSIGN(RtcpParser);
};
« no previous file with comments | « media/cast/net/rtcp/rtcp_unittest.cc ('k') | media/cast/net/rtcp/rtcp_utility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698