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

Unified Diff: media/cast/net/cast_net_defines.h

Issue 102413014: Cast:Splitting rtcp sender (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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/cast.gyp ('k') | media/cast/net/rtcp/rtcp_builder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/net/cast_net_defines.h
diff --git a/media/cast/net/cast_net_defines.h b/media/cast/net/cast_net_defines.h
index a9f1629a91a25b01aaf9d01e02557c4fb4d53913..769a1be70c4eb25fd65ffdf53ff48dffa6d1016a 100644
--- a/media/cast/net/cast_net_defines.h
+++ b/media/cast/net/cast_net_defines.h
@@ -5,11 +5,55 @@
#ifndef MEDIA_CAST_NET_CAST_NET_DEFINES_H_
#define MEDIA_CAST_NET_CAST_NET_DEFINES_H_
+#include <list>
#include "base/basictypes.h"
namespace media {
namespace cast {
+// Rtcp defines.
+
+// Log messages form sender to receiver.
+enum RtcpSenderFrameStatus {
+ kRtcpSenderFrameStatusUnknown = 0,
+ kRtcpSenderFrameStatusDroppedByEncoder = 1,
+ kRtcpSenderFrameStatusDroppedByFlowControl = 2,
+ kRtcpSenderFrameStatusSentToNetwork = 3,
+};
+
+struct RtcpSenderFrameLogMessage {
+ RtcpSenderFrameStatus frame_status;
+ uint32 rtp_timestamp;
+};
+
+struct RtcpSenderInfo {
+ // First three members are used for lipsync.
+ // First two members are used for rtt.
+ uint32 ntp_seconds;
+ uint32 ntp_fraction;
+ uint32 rtp_timestamp;
+ uint32 send_packet_count;
+ size_t send_octet_count;
+};
+
+struct RtcpReportBlock {
+ uint32 remote_ssrc; // SSRC of sender of this report.
+ uint32 media_ssrc; // SSRC of the RTP packet sender.
+ uint8 fraction_lost;
+ uint32 cumulative_lost; // 24 bits valid.
+ uint32 extended_high_sequence_number;
+ uint32 jitter;
+ uint32 last_sr;
+ uint32 delay_since_last_sr;
+};
+
+struct RtcpDlrrReportBlock {
+ uint32 last_rr;
+ uint32 delay_since_last_rr;
+};
+
+typedef std::list<RtcpSenderFrameLogMessage> RtcpSenderLogMessage;
+
class FrameIdWrapHelper {
public:
FrameIdWrapHelper()
@@ -74,7 +118,6 @@ class FrameIdWrapHelper {
Range range_;
};
-
} // namespace cast
} // namespace media
« no previous file with comments | « media/cast/cast.gyp ('k') | media/cast/net/rtcp/rtcp_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698