tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

create_scalability_structure.h (1306B)


      1 /*
      2 *  Copyright (c) 2020 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 #ifndef MODULES_VIDEO_CODING_SVC_CREATE_SCALABILITY_STRUCTURE_H_
     11 #define MODULES_VIDEO_CODING_SVC_CREATE_SCALABILITY_STRUCTURE_H_
     12 
     13 #include <memory>
     14 #include <optional>
     15 
     16 #include "api/video_codecs/scalability_mode.h"
     17 #include "modules/video_coding/svc/scalable_video_controller.h"
     18 #include "rtc_base/system/rtc_export.h"
     19 
     20 namespace webrtc {
     21 
     22 // Creates a structure by name according to
     23 // https://w3c.github.io/webrtc-svc/#scalabilitymodes*
     24 // Returns nullptr for unknown name.
     25 std::unique_ptr<ScalableVideoController> RTC_EXPORT
     26 CreateScalabilityStructure(ScalabilityMode name);
     27 
     28 // Returns description of the scalability structure identified by 'name',
     29 // Return nullopt for unknown name.
     30 std::optional<ScalableVideoController::StreamLayersConfig>
     31 ScalabilityStructureConfig(ScalabilityMode name);
     32 
     33 }  // namespace webrtc
     34 
     35 #endif  // MODULES_VIDEO_CODING_SVC_CREATE_SCALABILITY_STRUCTURE_H_