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

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

Issue 387933005: Cast: Refactor RTCP handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: smaller diff Created 6 years, 5 months 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 | Annotate | Revision Log
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 <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/net/cast_transport_defines.h" 16 #include "media/cast/net/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 21
22 enum RtcpMode {
23 kRtcpCompound, // Compound RTCP mode is described by RFC 4585.
24 kRtcpReducedSize, // Reduced-size RTCP mode is described by RFC 5506.
25 };
26
27 enum Codec { 22 enum Codec {
28 CODEC_UNKNOWN, 23 CODEC_UNKNOWN,
29 CODEC_AUDIO_OPUS, 24 CODEC_AUDIO_OPUS,
30 CODEC_AUDIO_PCM16, 25 CODEC_AUDIO_PCM16,
31 CODEC_VIDEO_FAKE, 26 CODEC_VIDEO_FAKE,
32 CODEC_VIDEO_VP8, 27 CODEC_VIDEO_VP8,
33 CODEC_VIDEO_H264, 28 CODEC_VIDEO_H264,
34 CODEC_LAST = CODEC_VIDEO_H264 29 CODEC_LAST = CODEC_VIDEO_H264
35 }; 30 };
36 31
37 struct CastTransportRtpConfig { 32 struct CastTransportRtpConfig {
38 CastTransportRtpConfig(); 33 CastTransportRtpConfig();
39 ~CastTransportRtpConfig(); 34 ~CastTransportRtpConfig();
40 35
41 // Identifier refering to this sender. 36 // Identifier refering to this sender.
42 uint32 ssrc; 37 uint32 ssrc;
43 38
39 // Identifier for incoming RTCP traffic.
40 uint32 feedback_ssrc;
41
42 // Identifier for this stream.
43 std::string c_name;
44
44 // RTP payload type enum: Specifies the type/encoding of frame data. 45 // RTP payload type enum: Specifies the type/encoding of frame data.
45 int rtp_payload_type; 46 int rtp_payload_type;
46 47
47 // The number of most-recent frames that must be stored in the transport 48 // The number of most-recent frames that must be stored in the transport
48 // layer, to facilitate re-transmissions. 49 // layer, to facilitate re-transmissions.
49 int stored_frames; 50 int stored_frames;
50 51
51 // The AES crypto key and initialization vector. Each of these strings 52 // The AES crypto key and initialization vector. Each of these strings
52 // contains the data in binary form, of size kAesKeySize. If they are empty 53 // contains the data in binary form, of size kAesKeySize. If they are empty
53 // strings, crypto is not being used. 54 // strings, crypto is not being used.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 lhs.ntp_fraction == rhs.ntp_fraction && 192 lhs.ntp_fraction == rhs.ntp_fraction &&
192 lhs.rtp_timestamp == rhs.rtp_timestamp && 193 lhs.rtp_timestamp == rhs.rtp_timestamp &&
193 lhs.send_packet_count == rhs.send_packet_count && 194 lhs.send_packet_count == rhs.send_packet_count &&
194 lhs.send_octet_count == rhs.send_octet_count; 195 lhs.send_octet_count == rhs.send_octet_count;
195 } 196 }
196 197
197 } // namespace cast 198 } // namespace cast
198 } // namespace media 199 } // namespace media
199 200
200 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_ 201 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698