| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TRANSPORT_CAST_TRANSPORT_CONFIG_H_ | 5 #ifndef MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_CONFIG_H_ |
| 6 #define MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_CONFIG_H_ | 6 #define MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_CONFIG_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 kRtcpCompound, // Compound RTCP mode is described by RFC 4585. | 23 kRtcpCompound, // Compound RTCP mode is described by RFC 4585. |
| 24 kRtcpReducedSize, // Reduced-size RTCP mode is described by RFC 5506. | 24 kRtcpReducedSize, // Reduced-size RTCP mode is described by RFC 5506. |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 enum VideoCodec { kFakeSoftwareVideo, kVp8, kH264, kVideoCodecLast = kH264 }; | 27 enum VideoCodec { kFakeSoftwareVideo, kVp8, kH264, kVideoCodecLast = kH264 }; |
| 28 | 28 |
| 29 enum AudioCodec { | 29 enum AudioCodec { |
| 30 kFakeSoftwareAudio, | 30 kFakeSoftwareAudio, |
| 31 kOpus, | 31 kOpus, |
| 32 kPcm16, | 32 kPcm16, |
| 33 kExternalAudio, | 33 kAudioCodecLast = kPcm16 |
| 34 kAudioCodecLast = kExternalAudio | |
| 35 }; | 34 }; |
| 36 | 35 |
| 36 bool CanDropFramesForCodec(AudioCodec audio_codec); |
| 37 bool CanDropFramesForCodec(VideoCodec video_codec); |
| 38 |
| 37 struct RtpConfig { | 39 struct RtpConfig { |
| 38 RtpConfig(); | 40 RtpConfig(); |
| 39 ~RtpConfig(); | 41 ~RtpConfig(); |
| 40 uint32 ssrc; | 42 uint32 ssrc; |
| 41 int max_delay_ms; | 43 int max_delay_ms; |
| 42 int payload_type; | 44 int payload_type; |
| 43 std::string aes_key; // Binary string of size kAesKeySize. | 45 std::string aes_key; // Binary string of size kAesKeySize. |
| 44 std::string aes_iv_mask; // Binary string of size kAesBlockSize. | 46 std::string aes_iv_mask; // Binary string of size kAesBlockSize. |
| 45 }; | 47 }; |
| 46 | 48 |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 lhs.rtp_timestamp == rhs.rtp_timestamp && | 179 lhs.rtp_timestamp == rhs.rtp_timestamp && |
| 178 lhs.send_packet_count == rhs.send_packet_count && | 180 lhs.send_packet_count == rhs.send_packet_count && |
| 179 lhs.send_octet_count == rhs.send_octet_count; | 181 lhs.send_octet_count == rhs.send_octet_count; |
| 180 } | 182 } |
| 181 | 183 |
| 182 } // namespace transport | 184 } // namespace transport |
| 183 } // namespace cast | 185 } // namespace cast |
| 184 } // namespace media | 186 } // namespace media |
| 185 | 187 |
| 186 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_CONFIG_H_ | 188 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_CONFIG_H_ |
| OLD | NEW |