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 |
11 namespace media { | 11 namespace media { |
12 namespace cast { | 12 namespace cast { |
13 | 13 |
14 class RtpData; | 14 class RtpData; |
15 | 15 |
16 struct RtpParserConfig { | 16 struct RtpParserConfig { |
17 RtpParserConfig() { | 17 RtpParserConfig() { |
18 ssrc = 0; | 18 ssrc = 0; |
19 payload_type = 0; | 19 payload_type = 0; |
20 audio_channels = 0; | 20 audio_channels = 0; |
21 } | 21 } |
22 | 22 |
23 uint32 ssrc; | 23 uint32 ssrc; |
24 int payload_type; | 24 int payload_type; |
25 transport::AudioCodec audio_codec; | 25 AudioCodec audio_codec; |
26 transport::VideoCodec video_codec; | 26 VideoCodec video_codec; |
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 |
(...skipping 10 matching lines...) Expand all Loading... |
47 RtpData* data_callback_; | 47 RtpData* data_callback_; |
48 RtpParserConfig parser_config_; | 48 RtpParserConfig parser_config_; |
49 transport::FrameIdWrapHelper frame_id_wrap_helper_; | 49 transport::FrameIdWrapHelper frame_id_wrap_helper_; |
50 transport::FrameIdWrapHelper reference_frame_id_wrap_helper_; | 50 transport::FrameIdWrapHelper reference_frame_id_wrap_helper_; |
51 }; | 51 }; |
52 | 52 |
53 } // namespace cast | 53 } // namespace cast |
54 } // namespace media | 54 } // namespace media |
55 | 55 |
56 #endif // MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_RTP_PARSER_H_ | 56 #endif // MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_RTP_PARSER_H_ |
OLD | NEW |