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
3 // found in the LICENSE file.
5 #ifndef MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_RTP_PARSER_H_
6 #define MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_RTP_PARSER_H_
8 #include "media/cast/rtp_common/rtp_defines.h"
15 struct RtpParserConfig {
24 AudioCodec audio_codec;
25 VideoCodec video_codec;
31 RtpParser(RtpData* incoming_payload_callback,
32 const RtpParserConfig parser_config);
36 bool ParsePacket(const uint8* packet, size_t length,
37 RtpCastHeader* rtp_header);
40 bool ParseCommon(const uint8* packet, size_t length,
41 RtpCastHeader* rtp_header);
43 bool ParseCast(const uint8* packet, size_t length,
44 RtpCastHeader* rtp_header);
46 RtpData* data_callback_;
47 RtpParserConfig parser_config_;
53 #endif // MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_RTP_PARSER_H_