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

Side by Side Diff: media/cast/rtcp/rtcp_defines.h

Issue 23467003: Added framer to cast. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rtcp
Patch Set: Merge Created 7 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
« no previous file with comments | « media/cast/framer/framer_unittest.cc ('k') | media/cast/rtp_common/mock_rtp_payload_feedback.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_CAST_RTCP_RTCP_DEFINES_H_ 5 #ifndef MEDIA_CAST_RTCP_RTCP_DEFINES_H_
6 #define MEDIA_CAST_RTCP_RTCP_DEFINES_H_ 6 #define MEDIA_CAST_RTCP_RTCP_DEFINES_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <vector>
12 11
13 #include "media/cast/cast_config.h" 12 #include "media/cast/cast_config.h"
14 #include "media/cast/cast_defines.h" 13 #include "media/cast/cast_defines.h"
15 14
16 namespace media { 15 namespace media {
17 namespace cast { 16 namespace cast {
18 17
19 const uint16 kRtcpCastAllPacketsLost = 0xffff; 18 const uint16 kRtcpCastAllPacketsLost = 0xffff;
20 19
20 typedef std::set<uint16> PacketIdSet;
21 typedef std::map<uint8, PacketIdSet> MissingFramesAndPacketsMap;
22
21 class RtcpCastMessage { 23 class RtcpCastMessage {
22 public: 24 public:
23 explicit RtcpCastMessage(uint32 media_ssrc); 25 explicit RtcpCastMessage(uint32 media_ssrc);
24 ~RtcpCastMessage(); 26 ~RtcpCastMessage();
25 27
26 uint32 media_ssrc_; 28 uint32 media_ssrc_;
27 uint8 ack_frame_id_; 29 uint8 ack_frame_id_;
28 std::map<uint8, std::set<uint16> > missing_frames_and_packets_; 30 MissingFramesAndPacketsMap missing_frames_and_packets_;
29 }; 31 };
30 32
31 struct RtcpSenderInfo { 33 struct RtcpSenderInfo {
32 // First three members are used for lipsync. 34 // First three members are used for lipsync.
33 // First two members are used for rtt. 35 // First two members are used for rtt.
34 uint32 ntp_seconds; 36 uint32 ntp_seconds;
35 uint32 ntp_fraction; 37 uint32 ntp_fraction;
36 uint32 rtp_timestamp; 38 uint32 rtp_timestamp;
37 uint32 send_packet_count; 39 uint32 send_packet_count;
38 uint32 send_octet_count; 40 uint32 send_octet_count;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 RtcpReceiverReferenceTimeReport rhs) { 109 RtcpReceiverReferenceTimeReport rhs) {
108 return lhs.remote_ssrc == rhs.remote_ssrc && 110 return lhs.remote_ssrc == rhs.remote_ssrc &&
109 lhs.ntp_seconds == rhs.ntp_seconds && 111 lhs.ntp_seconds == rhs.ntp_seconds &&
110 lhs.ntp_fraction == rhs.ntp_fraction; 112 lhs.ntp_fraction == rhs.ntp_fraction;
111 } 113 }
112 114
113 } // namespace cast 115 } // namespace cast
114 } // namespace media 116 } // namespace media
115 117
116 #endif // MEDIA_CAST_RTCP_RTCP_DEFINES_H_ 118 #endif // MEDIA_CAST_RTCP_RTCP_DEFINES_H_
OLDNEW
« no previous file with comments | « media/cast/framer/framer_unittest.cc ('k') | media/cast/rtp_common/mock_rtp_payload_feedback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698