OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 13 matching lines...) Expand all Loading... |
24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 */ | 26 */ |
27 | 27 |
28 #include <stdio.h> | 28 #include <stdio.h> |
29 | 29 |
30 #include "talk/media/base/streamparams.h" | 30 #include "talk/media/base/streamparams.h" |
31 #include "talk/media/webrtc/simulcast.h" | 31 #include "talk/media/webrtc/simulcast.h" |
32 #include "webrtc/base/common.h" | 32 #include "webrtc/base/common.h" |
33 #include "webrtc/base/logging.h" | 33 #include "webrtc/base/logging.h" |
34 #include "webrtc/system_wrappers/interface/field_trial.h" | 34 #include "webrtc/system_wrappers/include/field_trial.h" |
35 namespace cricket { | 35 namespace cricket { |
36 | 36 |
37 struct SimulcastFormat { | 37 struct SimulcastFormat { |
38 int width; | 38 int width; |
39 int height; | 39 int height; |
40 // The maximum number of simulcast layers can be used for | 40 // The maximum number of simulcast layers can be used for |
41 // resolutions at |widthxheigh|. | 41 // resolutions at |widthxheigh|. |
42 size_t max_layers; | 42 size_t max_layers; |
43 // The maximum bitrate for encoding stream at |widthxheight|, when we are | 43 // The maximum bitrate for encoding stream at |widthxheight|, when we are |
44 // not sending the next higher spatial stream. | 44 // not sending the next higher spatial stream. |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 return false; | 282 return false; |
283 } | 283 } |
284 | 284 |
285 config->tl0_bitrate_kbps = tl0_bitrate; | 285 config->tl0_bitrate_kbps = tl0_bitrate; |
286 config->tl1_bitrate_kbps = tl1_bitrate; | 286 config->tl1_bitrate_kbps = tl1_bitrate; |
287 | 287 |
288 return true; | 288 return true; |
289 } | 289 } |
290 | 290 |
291 } // namespace cricket | 291 } // namespace cricket |
OLD | NEW |