Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef WEBRTC_MEDIA_ENGINE_SIMULCAST_H_ | 11 #ifndef WEBRTC_MEDIA_ENGINE_SIMULCAST_H_ |
| 12 #define WEBRTC_MEDIA_ENGINE_SIMULCAST_H_ | 12 #define WEBRTC_MEDIA_ENGINE_SIMULCAST_H_ |
| 13 | 13 |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "webrtc/base/basictypes.h" | 16 #include "webrtc/base/basictypes.h" |
| 17 #include "webrtc/base/optional.h" | |
| 17 #include "webrtc/config.h" | 18 #include "webrtc/config.h" |
| 18 | 19 |
| 19 namespace cricket { | 20 namespace cricket { |
| 20 struct StreamParams; | 21 struct StreamParams; |
| 21 | 22 |
| 22 // Config for use with screen cast when temporal layers are enabled. | 23 // Config for use with screen cast when temporal layers are enabled. |
| 23 struct ScreenshareLayerConfig { | 24 struct ScreenshareLayerConfig { |
| 24 public: | 25 public: |
| 25 ScreenshareLayerConfig(int tl0_bitrate, int tl1_bitrate); | 26 ScreenshareLayerConfig(int tl0_bitrate, int tl1_bitrate); |
| 26 | 27 |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 38 | 39 |
| 39 // TODO(pthatcher): Write unit tests just for these functions, | 40 // TODO(pthatcher): Write unit tests just for these functions, |
| 40 // independent of WebrtcVideoEngine. | 41 // independent of WebrtcVideoEngine. |
| 41 | 42 |
| 42 int GetTotalMaxBitrateBps(const std::vector<webrtc::VideoStream>& streams); | 43 int GetTotalMaxBitrateBps(const std::vector<webrtc::VideoStream>& streams); |
| 43 | 44 |
| 44 // Get the ssrcs of the SIM group from the stream params. | 45 // Get the ssrcs of the SIM group from the stream params. |
| 45 void GetSimulcastSsrcs(const StreamParams& sp, std::vector<uint32_t>* ssrcs); | 46 void GetSimulcastSsrcs(const StreamParams& sp, std::vector<uint32_t>* ssrcs); |
| 46 | 47 |
| 47 // Get simulcast settings. | 48 // Get simulcast settings. |
| 48 std::vector<webrtc::VideoStream> GetSimulcastConfig(size_t max_streams, | 49 std::vector<webrtc::VideoStream> GetSimulcastConfig( |
| 49 int width, | 50 size_t max_streams, |
| 50 int height, | 51 int width, |
| 51 int max_bitrate_bps, | 52 int height, |
| 52 int max_qp, | 53 rtc::Optional<int> max_bitrate_bps, |
| 53 int max_framerate); | 54 int max_qp, |
| 55 int max_framerate); | |
|
stefan-webrtc
2016/03/18 08:28:40
Any plan on making other parameters optional? Seem
pthatcher1
2016/03/18 16:45:16
I think it makes sense to make a lot of these thin
skvlad
2016/03/18 18:01:52
It looks like this function gets definite values f
| |
| 54 | 56 |
| 55 } // namespace cricket | 57 } // namespace cricket |
| 56 | 58 |
| 57 #endif // WEBRTC_MEDIA_ENGINE_SIMULCAST_H_ | 59 #endif // WEBRTC_MEDIA_ENGINE_SIMULCAST_H_ |
| OLD | NEW |