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 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/memory/linked_ptr.h" | 13 #include "base/memory/linked_ptr.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
16 #include "media/cast/transport/cast_transport_defines.h" | 16 #include "media/cast/transport/cast_transport_defines.h" |
17 #include "net/base/ip_endpoint.h" | 17 #include "net/base/ip_endpoint.h" |
18 | 18 |
19 namespace media { | 19 namespace media { |
20 namespace cast { | 20 namespace cast { |
21 namespace transport { | 21 namespace transport { |
22 | 22 |
23 enum RtcpMode { | 23 enum RtcpMode { |
24 kRtcpCompound, // Compound RTCP mode is described by RFC 4585. | 24 kRtcpCompound, // Compound RTCP mode is described by RFC 4585. |
25 kRtcpReducedSize, // Reduced-size RTCP mode is described by RFC 5506. | 25 kRtcpReducedSize, // Reduced-size RTCP mode is described by RFC 5506. |
26 }; | 26 }; |
27 | 27 |
28 enum VideoCodec { kFakeSoftwareVideo, kVp8, kH264, kVideoCodecLast = kH264 }; | 28 enum VideoCodec { |
| 29 kUnknownVideoCodec, |
| 30 kFakeSoftwareVideo, |
| 31 kVp8, |
| 32 kH264, |
| 33 kVideoCodecLast = kH264 |
| 34 }; |
29 | 35 |
30 enum AudioCodec { | 36 enum AudioCodec { |
31 kFakeSoftwareAudio, | 37 kUnknownAudioCodec, |
32 kOpus, | 38 kOpus, |
33 kPcm16, | 39 kPcm16, |
34 kAudioCodecLast = kPcm16 | 40 kAudioCodecLast = kPcm16 |
35 }; | 41 }; |
36 | 42 |
37 struct RtpConfig { | 43 struct RtpConfig { |
38 RtpConfig(); | 44 RtpConfig(); |
39 ~RtpConfig(); | 45 ~RtpConfig(); |
40 uint32 ssrc; | 46 uint32 ssrc; |
41 int max_delay_ms; | 47 int max_delay_ms; |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 lhs.rtp_timestamp == rhs.rtp_timestamp && | 208 lhs.rtp_timestamp == rhs.rtp_timestamp && |
203 lhs.send_packet_count == rhs.send_packet_count && | 209 lhs.send_packet_count == rhs.send_packet_count && |
204 lhs.send_octet_count == rhs.send_octet_count; | 210 lhs.send_octet_count == rhs.send_octet_count; |
205 } | 211 } |
206 | 212 |
207 } // namespace transport | 213 } // namespace transport |
208 } // namespace cast | 214 } // namespace cast |
209 } // namespace media | 215 } // namespace media |
210 | 216 |
211 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_CONFIG_H_ | 217 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_CONFIG_H_ |
OLD | NEW |