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

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

Issue 74613004: Cast: Add capabity to send Receiver and Sender log messages over RTCP. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rtcp_logging
Patch Set: Fixed nits Created 7 years, 1 month 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 // 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_UTILITY_H_ 5 #ifndef MEDIA_CAST_RTCP_RTCP_UTILITY_H_
6 #define MEDIA_CAST_RTCP_RTCP_UTILITY_H_ 6 #define MEDIA_CAST_RTCP_RTCP_UTILITY_H_
7 7
8 #include "media/cast/cast_config.h" 8 #include "media/cast/cast_config.h"
9 #include "media/cast/cast_defines.h" 9 #include "media/cast/cast_defines.h"
10 #include "media/cast/rtcp/rtcp_defines.h" 10 #include "media/cast/rtcp/rtcp_defines.h"
11 11
12 namespace media { 12 namespace media {
13 namespace cast { 13 namespace cast {
14 14
15 static const int kRtcpRpsiDataSize = 30; 15 static const int kRtcpRpsiDataSize = 30;
16 16
17 // RFC 3550 page 44, including end null. 17 // RFC 3550 page 44, including end null.
18 static const size_t kRtcpCnameSize = 256; 18 static const size_t kRtcpCnameSize = 256;
19 static const int kRtcpMaxNumberOfRembFeedbackSsrcs = 255; 19 static const int kRtcpMaxNumberOfRembFeedbackSsrcs = 255;
20 20
21 static const uint32 kRemb = ('R' << 24) + ('E' << 16) + ('M' << 8) + 'B'; 21 static const uint32 kRemb = ('R' << 24) + ('E' << 16) + ('M' << 8) + 'B';
22 static const uint32 kCast = ('C' << 24) + ('A' << 16) + ('S' << 8) + 'T'; 22 static const uint32 kCast = ('C' << 24) + ('A' << 16) + ('S' << 8) + 'T';
23 23
24 static const uint8 kSenderLogSubtype = 1;
25 static const uint8 kReceiverLogSubtype = 2;
26
27 static const size_t kRtcpMaxReceiverLogMessages = 256;
28 static const size_t kRtcpMaxNackFields = 253;
29 static const size_t kRtcpMaxCastLossFields = 100;
mikhal 2013/11/21 16:43:20 why 100?
pwestin 2013/11/22 18:50:47 I just moved this to the h file to be able to re-u
30
24 struct RtcpFieldReceiverReport { 31 struct RtcpFieldReceiverReport {
25 // RFC 3550. 32 // RFC 3550.
26 uint32 sender_ssrc; 33 uint32 sender_ssrc;
27 uint8 number_of_report_blocks; 34 uint8 number_of_report_blocks;
28 }; 35 };
29 36
30 struct RtcpFieldSenderReport { 37 struct RtcpFieldSenderReport {
31 // RFC 3550. 38 // RFC 3550.
32 uint32 sender_ssrc; 39 uint32 sender_ssrc;
33 uint8 number_of_report_blocks; 40 uint8 number_of_report_blocks;
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 RtcpFieldTypes field_type_; 319 RtcpFieldTypes field_type_;
313 RtcpField field_; 320 RtcpField field_;
314 321
315 DISALLOW_COPY_AND_ASSIGN(RtcpParser); 322 DISALLOW_COPY_AND_ASSIGN(RtcpParser);
316 }; 323 };
317 324
318 } // namespace cast 325 } // namespace cast
319 } // namespace media 326 } // namespace media
320 327
321 #endif // MEDIA_CAST_RTCP_RTCP_UTILITY_H_ 328 #endif // MEDIA_CAST_RTCP_RTCP_UTILITY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698