2020-07-14 12:34:36 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2020 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
2020-10-15 15:57:17 +02:00
|
|
|
#ifndef MODULES_VIDEO_CODING_SVC_CREATE_SCALABILITY_STRUCTURE_H_
|
|
|
|
|
#define MODULES_VIDEO_CODING_SVC_CREATE_SCALABILITY_STRUCTURE_H_
|
2020-07-14 12:34:36 +02:00
|
|
|
|
|
|
|
|
#include <memory>
|
2024-08-29 13:00:40 +00:00
|
|
|
#include <optional>
|
2020-07-14 12:34:36 +02:00
|
|
|
#include <vector>
|
|
|
|
|
|
2022-04-29 11:03:13 +02:00
|
|
|
#include "api/video_codecs/scalability_mode.h"
|
2020-10-15 15:57:17 +02:00
|
|
|
#include "modules/video_coding/svc/scalable_video_controller.h"
|
2024-09-11 16:10:45 +08:00
|
|
|
#include "rtc_base/system/rtc_export.h"
|
2020-07-14 12:34:36 +02:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
|
|
|
|
// Creates a structure by name according to
|
|
|
|
|
// https://w3c.github.io/webrtc-svc/#scalabilitymodes*
|
|
|
|
|
// Returns nullptr for unknown name.
|
2024-09-11 16:10:45 +08:00
|
|
|
std::unique_ptr<ScalableVideoController> RTC_EXPORT
|
|
|
|
|
CreateScalabilityStructure(ScalabilityMode name);
|
2020-07-14 12:34:36 +02:00
|
|
|
|
2022-04-29 11:03:13 +02:00
|
|
|
// Returns description of the scalability structure identified by 'name',
|
2021-09-06 15:41:54 +02:00
|
|
|
// Return nullopt for unknown name.
|
2024-08-29 13:00:40 +00:00
|
|
|
std::optional<ScalableVideoController::StreamLayersConfig>
|
2022-04-29 11:03:13 +02:00
|
|
|
ScalabilityStructureConfig(ScalabilityMode name);
|
2021-09-06 15:41:54 +02:00
|
|
|
|
2020-07-14 12:34:36 +02:00
|
|
|
} // namespace webrtc
|
|
|
|
|
|
2020-10-15 15:57:17 +02:00
|
|
|
#endif // MODULES_VIDEO_CODING_SVC_CREATE_SCALABILITY_STRUCTURE_H_
|