blob: 4b1c6763d894a944f9f319efe3fe4eb25d3f720f [file] [log] [blame]
Niels Möller79d566b2022-04-29 11:03:13 +02001/*
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
18namespace webrtc {
19
20absl::optional<ScalabilityMode> ScalabilityModeFromString(
21 absl::string_view scalability_mode_string);
22
23absl::string_view ScalabilityModeToString(ScalabilityMode scalability_mode);
24
Niels Möller05954892022-05-13 13:34:37 +020025int ScalabilityModeToNumTemporalLayers(ScalabilityMode scalability_mode);
26
Niels Möller79d566b2022-04-29 11:03:13 +020027} // namespace webrtc
28
29#endif // MODULES_VIDEO_CODING_SVC_SCALABILITY_MODE_UTIL_H_