| OLD | NEW |
| 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 "media/cast/net/cast_transport_defines.h" | 8 #include "media/cast/net/cast_transport_defines.h" |
| 9 #include "media/cast/net/rtp/rtp_defines.h" | 9 #include "media/cast/net/rtp/rtp_defines.h" |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 size_t length, | 31 size_t length, |
| 32 RtpCastHeader* rtp_header, | 32 RtpCastHeader* rtp_header, |
| 33 const uint8** payload_data, | 33 const uint8** payload_data, |
| 34 size_t* payload_size); | 34 size_t* payload_size); |
| 35 | 35 |
| 36 static bool ParseSsrc(const uint8* packet, size_t length, uint32* ssrc); | 36 static bool ParseSsrc(const uint8* packet, size_t length, uint32* ssrc); |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 const uint32 expected_sender_ssrc_; | 39 const uint32 expected_sender_ssrc_; |
| 40 const uint8 expected_payload_type_; | 40 const uint8 expected_payload_type_; |
| 41 |
| 42 // Tracks recently-parsed RTP timestamps so that it can expand the truncated |
| 43 // values found in packets. |
| 44 RtpTimeTicks last_parsed_rtp_timestamp_; |
| 45 |
| 41 FrameIdWrapHelper frame_id_wrap_helper_; | 46 FrameIdWrapHelper frame_id_wrap_helper_; |
| 42 | 47 |
| 43 DISALLOW_COPY_AND_ASSIGN(RtpParser); | 48 DISALLOW_COPY_AND_ASSIGN(RtpParser); |
| 44 }; | 49 }; |
| 45 | 50 |
| 46 } // namespace cast | 51 } // namespace cast |
| 47 } // namespace media | 52 } // namespace media |
| 48 | 53 |
| 49 #endif // MEDIA_CAST_NET_RTP_RTP_PARSER_H_ | 54 #endif // MEDIA_CAST_NET_RTP_RTP_PARSER_H_ |
| OLD | NEW |