| OLD | NEW |
| 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_RTP_RECEIVER_RTP_PARSER_RTP_PARSER_H_ | 5 #ifndef MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_RTP_PARSER_H_ |
| 6 #define MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_RTP_PARSER_H_ | 6 #define MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_RTP_PARSER_H_ |
| 7 | 7 |
| 8 #include "media/cast/rtp_receiver/rtp_receiver_defines.h" | 8 #include "media/cast/rtp_receiver/rtp_receiver_defines.h" |
| 9 #include "media/cast/transport/cast_transport_defines.h" | 9 #include "media/cast/transport/cast_transport_defines.h" |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 int audio_channels; | 27 int audio_channels; |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 class RtpParser { | 30 class RtpParser { |
| 31 public: | 31 public: |
| 32 RtpParser(RtpData* incoming_payload_callback, | 32 RtpParser(RtpData* incoming_payload_callback, |
| 33 const RtpParserConfig parser_config); | 33 const RtpParserConfig parser_config); |
| 34 | 34 |
| 35 ~RtpParser(); | 35 ~RtpParser(); |
| 36 | 36 |
| 37 bool ParsePacket(const uint8* packet, size_t length, | 37 bool ParsePacket(const uint8* packet, |
| 38 size_t length, |
| 38 RtpCastHeader* rtp_header); | 39 RtpCastHeader* rtp_header); |
| 39 | 40 |
| 40 private: | 41 private: |
| 41 bool ParseCommon(const uint8* packet, size_t length, | 42 bool ParseCommon(const uint8* packet, |
| 43 size_t length, |
| 42 RtpCastHeader* rtp_header); | 44 RtpCastHeader* rtp_header); |
| 43 | 45 |
| 44 bool ParseCast(const uint8* packet, size_t length, | 46 bool ParseCast(const uint8* packet, size_t length, RtpCastHeader* rtp_header); |
| 45 RtpCastHeader* rtp_header); | |
| 46 | 47 |
| 47 RtpData* data_callback_; | 48 RtpData* data_callback_; |
| 48 RtpParserConfig parser_config_; | 49 RtpParserConfig parser_config_; |
| 49 transport::FrameIdWrapHelper frame_id_wrap_helper_; | 50 transport::FrameIdWrapHelper frame_id_wrap_helper_; |
| 50 transport::FrameIdWrapHelper reference_frame_id_wrap_helper_; | 51 transport::FrameIdWrapHelper reference_frame_id_wrap_helper_; |
| 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(RtpParser); |
| 51 }; | 54 }; |
| 52 | 55 |
| 53 } // namespace cast | 56 } // namespace cast |
| 54 } // namespace media | 57 } // namespace media |
| 55 | 58 |
| 56 #endif // MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_RTP_PARSER_H_ | 59 #endif // MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_RTP_PARSER_H_ |
| OLD | NEW |