| 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 CAST_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_CONFIG_H_ | 5 #ifndef CAST_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_CONFIG_H_ |
| 6 #define CAST_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_CONFIG_H_ | 6 #define CAST_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_CONFIG_H_ |
| 7 | 7 |
| 8 #include "media/cast/cast_config.h" | 8 #include "media/cast/cast_config.h" |
| 9 #include "media/cast/rtp_common/rtp_defines.h" | 9 #include "media/cast/rtp_common/rtp_defines.h" |
| 10 | 10 |
| 11 namespace media { | 11 namespace media { |
| 12 namespace cast { | 12 namespace cast { |
| 13 | 13 |
| 14 struct RtpPacketizerConfig { | 14 struct RtpPacketizerConfig { |
| 15 RtpPacketizerConfig() { | 15 RtpPacketizerConfig(); |
| 16 ssrc = 0; | |
| 17 max_payload_length = kIpPacketSize - 28; // Default is IP-v4/UDP. | |
| 18 audio = false; | |
| 19 frequency = 8000; | |
| 20 payload_type = -1; | |
| 21 sequence_number = 0; | |
| 22 rtp_timestamp = 0; | |
| 23 } | |
| 24 | 16 |
| 25 // General. | 17 // General. |
| 26 bool audio; | 18 bool audio; |
| 27 int payload_type; | 19 int payload_type; |
| 28 uint16 max_payload_length; | 20 uint16 max_payload_length; |
| 29 uint16 sequence_number; | 21 uint16 sequence_number; |
| 30 uint32 rtp_timestamp; | 22 uint32 rtp_timestamp; |
| 31 int frequency; | 23 int frequency; |
| 32 | 24 |
| 33 // SSRC. | 25 // SSRC. |
| 34 unsigned int ssrc; | 26 unsigned int ssrc; |
| 35 | 27 |
| 36 // Video. | 28 // Video. |
| 37 VideoCodec video_codec; | 29 VideoCodec video_codec; |
| 38 | 30 |
| 39 // Audio. | 31 // Audio. |
| 40 uint8 channels; | 32 uint8 channels; |
| 41 AudioCodec audio_codec; | 33 AudioCodec audio_codec; |
| 42 }; | 34 }; |
| 43 | 35 |
| 44 } // namespace cast | 36 } // namespace cast |
| 45 } // namespace media | 37 } // namespace media |
| 46 | 38 |
| 47 #endif // CAST_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_CONFIG_H_ | 39 #endif // CAST_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_CONFIG_H_ |
| OLD | NEW |