xref: /aosp_15_r20/external/webrtc/modules/video_coding/svc/scalable_video_controller_no_layering.h (revision d9f758449e529ab9291ac668be2861e7a55c2422)
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_SCALABLE_VIDEO_CONTROLLER_NO_LAYERING_H_
11 #define MODULES_VIDEO_CODING_SVC_SCALABLE_VIDEO_CONTROLLER_NO_LAYERING_H_
12 
13 #include <vector>
14 
15 #include "api/transport/rtp/dependency_descriptor.h"
16 #include "api/video/video_bitrate_allocation.h"
17 #include "common_video/generic_frame_descriptor/generic_frame_info.h"
18 #include "modules/video_coding/svc/scalable_video_controller.h"
19 
20 namespace webrtc {
21 
22 class ScalableVideoControllerNoLayering : public ScalableVideoController {
23  public:
24   ~ScalableVideoControllerNoLayering() override;
25 
26   StreamLayersConfig StreamConfig() const override;
27   FrameDependencyStructure DependencyStructure() const override;
28 
29   std::vector<LayerFrameConfig> NextFrameConfig(bool restart) override;
30   GenericFrameInfo OnEncodeDone(const LayerFrameConfig& config) override;
31   void OnRatesUpdated(const VideoBitrateAllocation& bitrates) override;
32 
33  private:
34   bool start_ = true;
35   bool enabled_ = true;
36 };
37 
38 }  // namespace webrtc
39 
40 #endif  // MODULES_VIDEO_CODING_SVC_SCALABLE_VIDEO_CONTROLLER_NO_LAYERING_H_
41