Sergey Silkin | 8668496 | 2018-03-28 19:32:37 +0200 | [diff] [blame] | 1 | /* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. |
| 2 | * |
| 3 | * Use of this source code is governed by a BSD-style license |
| 4 | * that can be found in the LICENSE file in the root of the source |
| 5 | * tree. An additional intellectual property rights grant can be found |
| 6 | * in the file PATENTS. All contributing project authors may |
| 7 | * be found in the AUTHORS file in the root of the source tree. |
| 8 | */ |
| 9 | |
| 10 | #ifndef MODULES_VIDEO_CODING_CODECS_VP9_SVC_CONFIG_H_ |
| 11 | #define MODULES_VIDEO_CODING_CODECS_VP9_SVC_CONFIG_H_ |
| 12 | |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 13 | #include <stddef.h> |
Jonas Olsson | a4d8737 | 2019-07-05 19:08:33 +0200 | [diff] [blame] | 14 | |
Sergey Silkin | 8668496 | 2018-03-28 19:32:37 +0200 | [diff] [blame] | 15 | #include <vector> |
| 16 | |
Niels Möller | 5b69aa6 | 2020-08-14 15:32:14 +0200 | [diff] [blame] | 17 | #include "api/video_codecs/spatial_layer.h" |
Sergey Silkin | 8668496 | 2018-03-28 19:32:37 +0200 | [diff] [blame] | 18 | |
| 19 | namespace webrtc { |
| 20 | |
| 21 | std::vector<SpatialLayer> GetSvcConfig(size_t input_width, |
| 22 | size_t input_height, |
Sergey Silkin | 1946a3f | 2018-08-22 11:42:16 +0200 | [diff] [blame] | 23 | float max_framerate_fps, |
Ilya Nikolaevskiy | 39fb817 | 2020-04-14 10:28:19 +0200 | [diff] [blame] | 24 | size_t first_active_layer, |
Sergey Silkin | 8668496 | 2018-03-28 19:32:37 +0200 | [diff] [blame] | 25 | size_t num_spatial_layers, |
Sergey Silkin | dfe8ca0 | 2018-05-14 19:31:07 +0200 | [diff] [blame] | 26 | size_t num_temporal_layers, |
| 27 | bool is_screen_sharing); |
Sergey Silkin | 8668496 | 2018-03-28 19:32:37 +0200 | [diff] [blame] | 28 | |
| 29 | } // namespace webrtc |
| 30 | |
| 31 | #endif // MODULES_VIDEO_CODING_CODECS_VP9_SVC_CONFIG_H_ |