Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1258)

Side by Side Diff: media/cast/net/cast_transport_config.h

Issue 2462863002: Fix direct dependencies in //media/cast/BUILD.gn. (Closed)
Patch Set: Depend on //media rather than //media/base, etc Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/cast/common/transport_encryption_handler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_NET_CAST_TRANSPORT_CONFIG_H_ 5 #ifndef MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_
6 #define MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_ 6 #define MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 13
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "base/stl_util.h" 15 #include "base/stl_util.h"
16 #include "media/cast/cast_config.h"
16 #include "media/cast/common/rtp_time.h" 17 #include "media/cast/common/rtp_time.h"
17 #include "media/cast/net/cast_transport_defines.h" 18 #include "media/cast/net/cast_transport_defines.h"
18 19
19 namespace media { 20 namespace media {
20 namespace cast { 21 namespace cast {
21 22
22 enum Codec {
23 CODEC_UNKNOWN,
24 CODEC_AUDIO_OPUS,
25 CODEC_AUDIO_PCM16,
26 CODEC_AUDIO_AAC,
27 CODEC_AUDIO_REMOTE,
28 CODEC_VIDEO_FAKE,
29 CODEC_VIDEO_VP8,
30 CODEC_VIDEO_H264,
31 CODEC_VIDEO_REMOTE,
32 CODEC_LAST = CODEC_VIDEO_REMOTE
33 };
34
35 // Describes the content being transported over RTP streams.
36 enum class RtpPayloadType {
37 UNKNOWN = -1,
38
39 // Cast Streaming will encode raw audio frames using one of its available
40 // codec implementations, and transport encoded data in the RTP stream.
41 FIRST = 96,
42 AUDIO_OPUS = 96,
43 AUDIO_AAC = 97,
44 AUDIO_PCM16 = 98,
45
46 // Audio frame data is not modified, and should be transported reliably and
47 // in-sequence. No assumptions about the data can be made.
48 REMOTE_AUDIO = 99,
49
50 AUDIO_LAST = REMOTE_AUDIO,
51
52 // Cast Streaming will encode raw video frames using one of its available
53 // codec implementations, and transport encoded data in the RTP stream.
54 VIDEO_VP8 = 100,
55 VIDEO_H264 = 101,
56
57 // Video frame data is not modified, and should be transported reliably and
58 // in-sequence. No assumptions about the data can be made.
59 REMOTE_VIDEO = 102,
60
61 LAST = REMOTE_VIDEO
62 };
63
64 struct CastTransportRtpConfig { 23 struct CastTransportRtpConfig {
65 CastTransportRtpConfig(); 24 CastTransportRtpConfig();
66 ~CastTransportRtpConfig(); 25 ~CastTransportRtpConfig();
67 26
68 // Identifier for the RTP stream. 27 // Identifier for the RTP stream.
69 int32_t rtp_stream_id; 28 int32_t rtp_stream_id;
70 29
71 // Identifier refering to this sender. 30 // Identifier refering to this sender.
72 uint32_t ssrc; 31 uint32_t ssrc;
73 32
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 lhs.ntp_fraction == rhs.ntp_fraction && 180 lhs.ntp_fraction == rhs.ntp_fraction &&
222 lhs.rtp_timestamp == rhs.rtp_timestamp && 181 lhs.rtp_timestamp == rhs.rtp_timestamp &&
223 lhs.send_packet_count == rhs.send_packet_count && 182 lhs.send_packet_count == rhs.send_packet_count &&
224 lhs.send_octet_count == rhs.send_octet_count; 183 lhs.send_octet_count == rhs.send_octet_count;
225 } 184 }
226 185
227 } // namespace cast 186 } // namespace cast
228 } // namespace media 187 } // namespace media
229 188
230 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_ 189 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_
OLDNEW
« no previous file with comments | « media/cast/common/transport_encryption_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698