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" |
| 17 | |
| 18 | namespace webrtc { |
| 19 | |
| 20 | absl::optional<ScalabilityMode> ScalabilityModeFromString( |
| 21 | absl::string_view scalability_mode_string); |
| 22 | |
| 23 | absl::string_view ScalabilityModeToString(ScalabilityMode scalability_mode); |
| 24 | |
Niels Möller | 0595489 | 2022-05-13 13:34:37 +0200 | [diff] [blame^] | 25 | int ScalabilityModeToNumTemporalLayers(ScalabilityMode scalability_mode); |
| 26 | |
Niels Möller | 79d566b | 2022-04-29 11:03:13 +0200 | [diff] [blame] | 27 | } // namespace webrtc |
| 28 | |
| 29 | #endif // MODULES_VIDEO_CODING_SVC_SCALABILITY_MODE_UTIL_H_ |