Niels Möller | 79d566b | 2022-04-29 11:03:13 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2022 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
| 11 | #ifndef MODULES_VIDEO_CODING_SVC_SCALABILITY_MODE_UTIL_H_ |
| 12 | #define MODULES_VIDEO_CODING_SVC_SCALABILITY_MODE_UTIL_H_ |
| 13 | |
| 14 | #include "absl/strings/string_view.h" |
| 15 | #include "absl/types/optional.h" |
| 16 | #include "api/video_codecs/scalability_mode.h" |
Asa Persson | cde992d | 2022-05-16 22:37:34 +0200 | [diff] [blame^] | 17 | #include "api/video_codecs/video_codec.h" |
Niels Möller | 79d566b | 2022-04-29 11:03:13 +0200 | [diff] [blame] | 18 | |
| 19 | namespace webrtc { |
| 20 | |
| 21 | absl::optional<ScalabilityMode> ScalabilityModeFromString( |
| 22 | absl::string_view scalability_mode_string); |
| 23 | |
| 24 | absl::string_view ScalabilityModeToString(ScalabilityMode scalability_mode); |
| 25 | |
Asa Persson | cde992d | 2022-05-16 22:37:34 +0200 | [diff] [blame^] | 26 | InterLayerPredMode ScalabilityModeToInterLayerPredMode( |
| 27 | ScalabilityMode scalability_mode); |
| 28 | |
Asa Persson | 2698353 | 2022-05-13 16:24:22 +0200 | [diff] [blame] | 29 | int ScalabilityModeToNumSpatialLayers(ScalabilityMode scalability_mode); |
| 30 | |
Niels Möller | 0595489 | 2022-05-13 13:34:37 +0200 | [diff] [blame] | 31 | int ScalabilityModeToNumTemporalLayers(ScalabilityMode scalability_mode); |
| 32 | |
Niels Möller | 79d566b | 2022-04-29 11:03:13 +0200 | [diff] [blame] | 33 | } // namespace webrtc |
| 34 | |
| 35 | #endif // MODULES_VIDEO_CODING_SVC_SCALABILITY_MODE_UTIL_H_ |