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 20 matching lines...) Expand all Loading... |
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 | 39 |
40 // The total amount of time between a frame's capture/recording on the sender | 40 // The total amount of time between a frame's capture/recording on the sender |
41 // and its playback on the receiver (i.e., shown to a user). This is fixed as | 41 // and its playback on the receiver (i.e., shown to a user). This should be |
42 // a value large enough to give the system sufficient time to encode, | 42 // set to a value large enough to give the system sufficient time to encode, |
43 // transmit/retransmit, receive, decode, and render; given its run-time | 43 // transmit/retransmit, receive, decode, and render; given its run-time |
44 // environment (sender/receiver hardware performance, network conditions, | 44 // environment (sender/receiver hardware performance, network conditions, |
45 // etc.). | 45 // etc.). |
46 base::TimeDelta target_playout_delay; | 46 base::TimeDelta min_playout_delay; |
| 47 base::TimeDelta max_playout_delay; |
47 | 48 |
48 // RTP payload type enum: Specifies the type/encoding of frame data. | 49 // RTP payload type enum: Specifies the type/encoding of frame data. |
49 int rtp_payload_type; | 50 int rtp_payload_type; |
50 | 51 |
51 bool use_external_encoder; | 52 bool use_external_encoder; |
52 int frequency; | 53 int frequency; |
53 int channels; | 54 int channels; |
54 int bitrate; // Set to <= 0 for "auto variable bitrate" (libopus knows best). | 55 int bitrate; // Set to <= 0 for "auto variable bitrate" (libopus knows best). |
55 Codec codec; | 56 Codec codec; |
56 | 57 |
(...skipping 10 matching lines...) Expand all Loading... |
67 | 68 |
68 // Identifier referring to the sender, used by the receiver. | 69 // Identifier referring to the sender, used by the receiver. |
69 uint32 ssrc; | 70 uint32 ssrc; |
70 | 71 |
71 // The receiver's SSRC identifier. | 72 // The receiver's SSRC identifier. |
72 uint32 incoming_feedback_ssrc; // TODO(miu): Rename to receiver_ssrc. | 73 uint32 incoming_feedback_ssrc; // TODO(miu): Rename to receiver_ssrc. |
73 | 74 |
74 int rtcp_interval; | 75 int rtcp_interval; |
75 | 76 |
76 // The total amount of time between a frame's capture/recording on the sender | 77 // The total amount of time between a frame's capture/recording on the sender |
77 // and its playback on the receiver (i.e., shown to a user). This is fixed as | 78 // and its playback on the receiver (i.e., shown to a user). This should be |
78 // a value large enough to give the system sufficient time to encode, | 79 // set to a value large enough to give the system sufficient time to encode, |
79 // transmit/retransmit, receive, decode, and render; given its run-time | 80 // transmit/retransmit, receive, decode, and render; given its run-time |
80 // environment (sender/receiver hardware performance, network conditions, | 81 // environment (sender/receiver hardware performance, network conditions, |
81 // etc.). | 82 // etc.). |
82 base::TimeDelta target_playout_delay; | 83 base::TimeDelta min_playout_delay; |
| 84 base::TimeDelta max_playout_delay; |
83 | 85 |
84 // RTP payload type enum: Specifies the type/encoding of frame data. | 86 // RTP payload type enum: Specifies the type/encoding of frame data. |
85 int rtp_payload_type; | 87 int rtp_payload_type; |
86 | 88 |
87 bool use_external_encoder; | 89 bool use_external_encoder; |
88 int width; // Incoming frames will be scaled to this size. | 90 int width; // Incoming frames will be scaled to this size. |
89 int height; | 91 int height; |
90 | 92 |
91 float congestion_control_back_off; | 93 float congestion_control_back_off; |
92 int max_bitrate; | 94 int max_bitrate; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 typedef base::Callback<void(scoped_ptr<base::SharedMemory>)> | 176 typedef base::Callback<void(scoped_ptr<base::SharedMemory>)> |
175 ReceiveVideoEncodeMemoryCallback; | 177 ReceiveVideoEncodeMemoryCallback; |
176 typedef base::Callback<void(size_t size, | 178 typedef base::Callback<void(size_t size, |
177 const ReceiveVideoEncodeMemoryCallback&)> | 179 const ReceiveVideoEncodeMemoryCallback&)> |
178 CreateVideoEncodeMemoryCallback; | 180 CreateVideoEncodeMemoryCallback; |
179 | 181 |
180 } // namespace cast | 182 } // namespace cast |
181 } // namespace media | 183 } // namespace media |
182 | 184 |
183 #endif // MEDIA_CAST_CAST_CONFIG_H_ | 185 #endif // MEDIA_CAST_CAST_CONFIG_H_ |
OLD | NEW |