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

Side by Side Diff: media/cast/net/rtp/rtp_parser.h

Issue 1515433002: Replace uses of raw uint32's with a type-checked RtpTimeTicks data type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Speculative workaround fix for win8_chromium_ng compile error. Created 4 years, 11 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/net/rtp/rtp_packetizer_unittest.cc ('k') | media/cast/net/rtp/rtp_parser.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_NET_RTP_RTP_PARSER_H_ 5 #ifndef MEDIA_CAST_NET_RTP_RTP_PARSER_H_
6 #define MEDIA_CAST_NET_RTP_RTP_PARSER_H_ 6 #define MEDIA_CAST_NET_RTP_RTP_PARSER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 24 matching lines...) Expand all
35 size_t length, 35 size_t length,
36 RtpCastHeader* rtp_header, 36 RtpCastHeader* rtp_header,
37 const uint8_t** payload_data, 37 const uint8_t** payload_data,
38 size_t* payload_size); 38 size_t* payload_size);
39 39
40 static bool ParseSsrc(const uint8_t* packet, size_t length, uint32_t* ssrc); 40 static bool ParseSsrc(const uint8_t* packet, size_t length, uint32_t* ssrc);
41 41
42 private: 42 private:
43 const uint32_t expected_sender_ssrc_; 43 const uint32_t expected_sender_ssrc_;
44 const uint8_t expected_payload_type_; 44 const uint8_t expected_payload_type_;
45
46 // Tracks recently-parsed RTP timestamps so that it can expand the truncated
47 // values found in packets.
48 RtpTimeTicks last_parsed_rtp_timestamp_;
49
45 FrameIdWrapHelper frame_id_wrap_helper_; 50 FrameIdWrapHelper frame_id_wrap_helper_;
46 51
47 DISALLOW_COPY_AND_ASSIGN(RtpParser); 52 DISALLOW_COPY_AND_ASSIGN(RtpParser);
48 }; 53 };
49 54
50 } // namespace cast 55 } // namespace cast
51 } // namespace media 56 } // namespace media
52 57
53 #endif // MEDIA_CAST_NET_RTP_RTP_PARSER_H_ 58 #endif // MEDIA_CAST_NET_RTP_RTP_PARSER_H_
OLDNEW
« no previous file with comments | « media/cast/net/rtp/rtp_packetizer_unittest.cc ('k') | media/cast/net/rtp/rtp_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698