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 MEDIA_CAST_CAST_CONFIG_H_ | 5 #ifndef MEDIA_CAST_CAST_CONFIG_H_ |
6 #define MEDIA_CAST_CAST_CONFIG_H_ | 6 #define MEDIA_CAST_CAST_CONFIG_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 19 matching lines...) Expand all Loading... |
30 ~AudioSenderConfig(); | 30 ~AudioSenderConfig(); |
31 | 31 |
32 // Identifier referring to the sender, used by the receiver. | 32 // Identifier referring to the sender, used by the receiver. |
33 uint32 ssrc; | 33 uint32 ssrc; |
34 | 34 |
35 // The receiver's SSRC identifier. | 35 // The receiver's SSRC identifier. |
36 uint32 incoming_feedback_ssrc; | 36 uint32 incoming_feedback_ssrc; |
37 | 37 |
38 int rtcp_interval; | 38 int rtcp_interval; |
39 std::string rtcp_c_name; | 39 std::string rtcp_c_name; |
40 RtcpMode rtcp_mode; | |
41 | 40 |
42 // The total amount of time between a frame's capture/recording on the sender | 41 // The total amount of time between a frame's capture/recording on the sender |
43 // and its playback on the receiver (i.e., shown to a user). This is fixed as | 42 // and its playback on the receiver (i.e., shown to a user). This is fixed as |
44 // a value large enough to give the system sufficient time to encode, | 43 // a value large enough to give the system sufficient time to encode, |
45 // transmit/retransmit, receive, decode, and render; given its run-time | 44 // transmit/retransmit, receive, decode, and render; given its run-time |
46 // environment (sender/receiver hardware performance, network conditions, | 45 // environment (sender/receiver hardware performance, network conditions, |
47 // etc.). | 46 // etc.). |
48 base::TimeDelta target_playout_delay; | 47 base::TimeDelta target_playout_delay; |
49 | 48 |
50 // RTP payload type enum: Specifies the type/encoding of frame data. | 49 // RTP payload type enum: Specifies the type/encoding of frame data. |
(...skipping 17 matching lines...) Expand all Loading... |
68 ~VideoSenderConfig(); | 67 ~VideoSenderConfig(); |
69 | 68 |
70 // Identifier referring to the sender, used by the receiver. | 69 // Identifier referring to the sender, used by the receiver. |
71 uint32 ssrc; | 70 uint32 ssrc; |
72 | 71 |
73 // The receiver's SSRC identifier. | 72 // The receiver's SSRC identifier. |
74 uint32 incoming_feedback_ssrc; // TODO(miu): Rename to receiver_ssrc. | 73 uint32 incoming_feedback_ssrc; // TODO(miu): Rename to receiver_ssrc. |
75 | 74 |
76 int rtcp_interval; | 75 int rtcp_interval; |
77 std::string rtcp_c_name; | 76 std::string rtcp_c_name; |
78 RtcpMode rtcp_mode; | |
79 | 77 |
80 // The total amount of time between a frame's capture/recording on the sender | 78 // The total amount of time between a frame's capture/recording on the sender |
81 // and its playback on the receiver (i.e., shown to a user). This is fixed as | 79 // and its playback on the receiver (i.e., shown to a user). This is fixed as |
82 // a value large enough to give the system sufficient time to encode, | 80 // a value large enough to give the system sufficient time to encode, |
83 // transmit/retransmit, receive, decode, and render; given its run-time | 81 // transmit/retransmit, receive, decode, and render; given its run-time |
84 // environment (sender/receiver hardware performance, network conditions, | 82 // environment (sender/receiver hardware performance, network conditions, |
85 // etc.). | 83 // etc.). |
86 base::TimeDelta target_playout_delay; | 84 base::TimeDelta target_playout_delay; |
87 | 85 |
88 // RTP payload type enum: Specifies the type/encoding of frame data. | 86 // RTP payload type enum: Specifies the type/encoding of frame data. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 121 |
124 // Mean interval (in milliseconds) between RTCP reports. | 122 // Mean interval (in milliseconds) between RTCP reports. |
125 // TODO(miu): Remove this since it's never not kDefaultRtcpIntervalMs. | 123 // TODO(miu): Remove this since it's never not kDefaultRtcpIntervalMs. |
126 int rtcp_interval; | 124 int rtcp_interval; |
127 | 125 |
128 // CNAME representing this receiver. | 126 // CNAME representing this receiver. |
129 // TODO(miu): Remove this since it should be derived elsewhere (probably in | 127 // TODO(miu): Remove this since it should be derived elsewhere (probably in |
130 // the transport layer). | 128 // the transport layer). |
131 std::string rtcp_c_name; | 129 std::string rtcp_c_name; |
132 | 130 |
133 // Determines amount of detail in RTCP reports. | |
134 // TODO(miu): Remove this since it's never anything but kRtcpReducedSize. | |
135 RtcpMode rtcp_mode; | |
136 | |
137 // The total amount of time between a frame's capture/recording on the sender | 131 // The total amount of time between a frame's capture/recording on the sender |
138 // and its playback on the receiver (i.e., shown to a user). This is fixed as | 132 // and its playback on the receiver (i.e., shown to a user). This is fixed as |
139 // a value large enough to give the system sufficient time to encode, | 133 // a value large enough to give the system sufficient time to encode, |
140 // transmit/retransmit, receive, decode, and render; given its run-time | 134 // transmit/retransmit, receive, decode, and render; given its run-time |
141 // environment (sender/receiver hardware performance, network conditions, | 135 // environment (sender/receiver hardware performance, network conditions, |
142 // etc.). | 136 // etc.). |
143 int rtp_max_delay_ms; // TODO(miu): Change to TimeDelta target_playout_delay. | 137 int rtp_max_delay_ms; // TODO(miu): Change to TimeDelta target_playout_delay. |
144 | 138 |
145 // RTP payload type enum: Specifies the type/encoding of frame data. | 139 // RTP payload type enum: Specifies the type/encoding of frame data. |
146 int rtp_payload_type; | 140 int rtp_payload_type; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 typedef base::Callback<void(scoped_ptr<base::SharedMemory>)> | 181 typedef base::Callback<void(scoped_ptr<base::SharedMemory>)> |
188 ReceiveVideoEncodeMemoryCallback; | 182 ReceiveVideoEncodeMemoryCallback; |
189 typedef base::Callback<void(size_t size, | 183 typedef base::Callback<void(size_t size, |
190 const ReceiveVideoEncodeMemoryCallback&)> | 184 const ReceiveVideoEncodeMemoryCallback&)> |
191 CreateVideoEncodeMemoryCallback; | 185 CreateVideoEncodeMemoryCallback; |
192 | 186 |
193 } // namespace cast | 187 } // namespace cast |
194 } // namespace media | 188 } // namespace media |
195 | 189 |
196 #endif // MEDIA_CAST_CAST_CONFIG_H_ | 190 #endif // MEDIA_CAST_CAST_CONFIG_H_ |
OLD | NEW |