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

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

Issue 266373008: Cast: Fix rtcp event dedup logic in rtcp_receiver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 6 years, 7 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/rtcp/rtcp_sender_unittest.cc ('k') | media/cast/rtcp/rtcp_utility.cc » ('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_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/logging/logging_defines.h"
10 #include "media/cast/rtcp/rtcp_defines.h" 11 #include "media/cast/rtcp/rtcp_defines.h"
11 12
12 namespace media { 13 namespace media {
13 namespace cast { 14 namespace cast {
14 15
15 static const int kRtcpRpsiDataSize = 30; 16 static const int kRtcpRpsiDataSize = 30;
16 17
17 // RFC 3550 page 44, including end null. 18 // RFC 3550 page 44, including end null.
18 static const size_t kRtcpCnameSize = 256; 19 static const size_t kRtcpCnameSize = 256;
19 static const int kRtcpMaxNumberOfRembFeedbackSsrcs = 255; 20 static const int kRtcpMaxNumberOfRembFeedbackSsrcs = 255;
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 const uint8* rtcp_block_end_; 337 const uint8* rtcp_block_end_;
337 338
338 ParseState state_; 339 ParseState state_;
339 uint8 number_of_blocks_; 340 uint8 number_of_blocks_;
340 RtcpFieldTypes field_type_; 341 RtcpFieldTypes field_type_;
341 RtcpField field_; 342 RtcpField field_;
342 343
343 DISALLOW_COPY_AND_ASSIGN(RtcpParser); 344 DISALLOW_COPY_AND_ASSIGN(RtcpParser);
344 }; 345 };
345 346
347 // Converts a log event type to an integer value.
348 // NOTE: We have only allocated 4 bits to represent the type of event over the
349 // wire. Therefore, this function can only return values from 0 to 15.
350 uint8 ConvertEventTypeToWireFormat(CastLoggingEvent event);
351
352 // The inverse of |ConvertEventTypeToWireFormat()|.
353 CastLoggingEvent TranslateToLogEventFromWireFormat(uint8 event);
354
346 } // namespace cast 355 } // namespace cast
347 } // namespace media 356 } // namespace media
348 357
349 #endif // MEDIA_CAST_RTCP_RTCP_UTILITY_H_ 358 #endif // MEDIA_CAST_RTCP_RTCP_UTILITY_H_
OLDNEW
« no previous file with comments | « media/cast/rtcp/rtcp_sender_unittest.cc ('k') | media/cast/rtcp/rtcp_utility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698