| 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 } |
| 16 | 24 |
| 17 // General. | 25 // General. |
| 18 bool audio; | 26 bool audio; |
| 19 int payload_type; | 27 int payload_type; |
| 20 uint16 max_payload_length; | 28 uint16 max_payload_length; |
| 21 uint16 sequence_number; | 29 uint16 sequence_number; |
| 22 uint32 rtp_timestamp; | 30 uint32 rtp_timestamp; |
| 23 int frequency; | 31 int frequency; |
| 24 | 32 |
| 25 // SSRC. | 33 // SSRC. |
| 26 unsigned int ssrc; | 34 unsigned int ssrc; |
| 27 | 35 |
| 28 // Video. | 36 // Video. |
| 29 VideoCodec video_codec; | 37 VideoCodec video_codec; |
| 30 | 38 |
| 31 // Audio. | 39 // Audio. |
| 32 uint8 channels; | 40 uint8 channels; |
| 33 AudioCodec audio_codec; | 41 AudioCodec audio_codec; |
| 34 }; | 42 }; |
| 35 | 43 |
| 36 } // namespace cast | 44 } // namespace cast |
| 37 } // namespace media | 45 } // namespace media |
| 38 | 46 |
| 39 #endif // CAST_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_CONFIG_H_ | 47 #endif // CAST_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_CONFIG_H_ |
| OLD | NEW |