| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 bool use_external_encoder; | 87 bool use_external_encoder; |
| 88 int width; // Incoming frames will be scaled to this size. | 88 int width; // Incoming frames will be scaled to this size. |
| 89 int height; | 89 int height; |
| 90 | 90 |
| 91 float congestion_control_back_off; | 91 float congestion_control_back_off; |
| 92 int max_bitrate; | 92 int max_bitrate; |
| 93 int min_bitrate; | 93 int min_bitrate; |
| 94 int start_bitrate; | 94 int start_bitrate; |
| 95 int max_qp; | 95 int max_qp; |
| 96 int min_qp; | 96 int min_qp; |
| 97 int max_frame_rate; | 97 int max_frame_rate; // TODO(miu): Should be double, not int. |
| 98 int max_number_of_video_buffers_used; // Max value depend on codec. | 98 int max_number_of_video_buffers_used; // Max value depend on codec. |
| 99 Codec codec; | 99 Codec codec; |
| 100 int number_of_encode_threads; | 100 int number_of_encode_threads; |
| 101 | 101 |
| 102 // The AES crypto key and initialization vector. Each of these strings | 102 // The AES crypto key and initialization vector. Each of these strings |
| 103 // contains the data in binary form, of size kAesKeySize. If they are empty | 103 // contains the data in binary form, of size kAesKeySize. If they are empty |
| 104 // strings, crypto is not being used. | 104 // strings, crypto is not being used. |
| 105 std::string aes_key; | 105 std::string aes_key; |
| 106 std::string aes_iv_mask; | 106 std::string aes_iv_mask; |
| 107 }; | 107 }; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 typedef base::Callback<void(scoped_ptr<base::SharedMemory>)> | 174 typedef base::Callback<void(scoped_ptr<base::SharedMemory>)> |
| 175 ReceiveVideoEncodeMemoryCallback; | 175 ReceiveVideoEncodeMemoryCallback; |
| 176 typedef base::Callback<void(size_t size, | 176 typedef base::Callback<void(size_t size, |
| 177 const ReceiveVideoEncodeMemoryCallback&)> | 177 const ReceiveVideoEncodeMemoryCallback&)> |
| 178 CreateVideoEncodeMemoryCallback; | 178 CreateVideoEncodeMemoryCallback; |
| 179 | 179 |
| 180 } // namespace cast | 180 } // namespace cast |
| 181 } // namespace media | 181 } // namespace media |
| 182 | 182 |
| 183 #endif // MEDIA_CAST_CAST_CONFIG_H_ | 183 #endif // MEDIA_CAST_CAST_CONFIG_H_ |
| OLD | NEW |