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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 // The total amount of time between a frame's capture/recording on the sender | 68 // The total amount of time between a frame's capture/recording on the sender |
69 // and its playback on the receiver (i.e., shown to a user). This should be | 69 // and its playback on the receiver (i.e., shown to a user). This should be |
70 // set to a value large enough to give the system sufficient time to encode, | 70 // set to a value large enough to give the system sufficient time to encode, |
71 // transmit/retransmit, receive, decode, and render; given its run-time | 71 // transmit/retransmit, receive, decode, and render; given its run-time |
72 // environment (sender/receiver hardware performance, network conditions, | 72 // environment (sender/receiver hardware performance, network conditions, |
73 // etc.). | 73 // etc.). |
74 base::TimeDelta min_playout_delay; | 74 base::TimeDelta min_playout_delay; |
75 base::TimeDelta max_playout_delay; | 75 base::TimeDelta max_playout_delay; |
76 | 76 |
| 77 // Starting playout delay when streaming animated content. |
| 78 base::TimeDelta animated_playout_delay; |
| 79 |
77 // RTP payload type enum: Specifies the type/encoding of frame data. | 80 // RTP payload type enum: Specifies the type/encoding of frame data. |
78 int rtp_payload_type; | 81 int rtp_payload_type; |
79 | 82 |
80 bool use_external_encoder; | 83 bool use_external_encoder; |
81 int frequency; | 84 int frequency; |
82 int channels; | 85 int channels; |
83 int bitrate; // Set to <= 0 for "auto variable bitrate" (libopus knows best). | 86 int bitrate; // Set to <= 0 for "auto variable bitrate" (libopus knows best). |
84 Codec codec; | 87 Codec codec; |
85 | 88 |
86 // The AES crypto key and initialization vector. Each of these strings | 89 // The AES crypto key and initialization vector. Each of these strings |
(...skipping 15 matching lines...) Expand all Loading... |
102 | 105 |
103 // The total amount of time between a frame's capture/recording on the sender | 106 // The total amount of time between a frame's capture/recording on the sender |
104 // and its playback on the receiver (i.e., shown to a user). This should be | 107 // and its playback on the receiver (i.e., shown to a user). This should be |
105 // set to a value large enough to give the system sufficient time to encode, | 108 // set to a value large enough to give the system sufficient time to encode, |
106 // transmit/retransmit, receive, decode, and render; given its run-time | 109 // transmit/retransmit, receive, decode, and render; given its run-time |
107 // environment (sender/receiver hardware performance, network conditions, | 110 // environment (sender/receiver hardware performance, network conditions, |
108 // etc.). | 111 // etc.). |
109 base::TimeDelta min_playout_delay; | 112 base::TimeDelta min_playout_delay; |
110 base::TimeDelta max_playout_delay; | 113 base::TimeDelta max_playout_delay; |
111 | 114 |
| 115 // Starting playout delay when streaming animated content. |
| 116 base::TimeDelta animated_playout_delay; |
| 117 |
112 // RTP payload type enum: Specifies the type/encoding of frame data. | 118 // RTP payload type enum: Specifies the type/encoding of frame data. |
113 int rtp_payload_type; | 119 int rtp_payload_type; |
114 | 120 |
115 bool use_external_encoder; | 121 bool use_external_encoder; |
116 | 122 |
117 float congestion_control_back_off; | 123 float congestion_control_back_off; |
118 int max_bitrate; | 124 int max_bitrate; |
119 int min_bitrate; | 125 int min_bitrate; |
120 int start_bitrate; | 126 int start_bitrate; |
121 int max_qp; | 127 int max_qp; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 typedef base::Callback<void(scoped_ptr<base::SharedMemory>)> | 204 typedef base::Callback<void(scoped_ptr<base::SharedMemory>)> |
199 ReceiveVideoEncodeMemoryCallback; | 205 ReceiveVideoEncodeMemoryCallback; |
200 typedef base::Callback<void(size_t size, | 206 typedef base::Callback<void(size_t size, |
201 const ReceiveVideoEncodeMemoryCallback&)> | 207 const ReceiveVideoEncodeMemoryCallback&)> |
202 CreateVideoEncodeMemoryCallback; | 208 CreateVideoEncodeMemoryCallback; |
203 | 209 |
204 } // namespace cast | 210 } // namespace cast |
205 } // namespace media | 211 } // namespace media |
206 | 212 |
207 #endif // MEDIA_CAST_CAST_CONFIG_H_ | 213 #endif // MEDIA_CAST_CAST_CONFIG_H_ |
OLD | NEW |