• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_CODECS_AV1_SCALABLE_VIDEO_CONTROLLER_NO_LAYERING_H_
11 #define MODULES_VIDEO_CODING_CODECS_AV1_SCALABLE_VIDEO_CONTROLLER_NO_LAYERING_H_
12 
13 #include <vector>
14 
15 #include "api/transport/rtp/dependency_descriptor.h"
16 #include "common_video/generic_frame_descriptor/generic_frame_info.h"
17 #include "modules/video_coding/codecs/av1/scalable_video_controller.h"
18 
19 namespace webrtc {
20 
21 class ScalableVideoControllerNoLayering : public ScalableVideoController {
22  public:
23   ~ScalableVideoControllerNoLayering() override;
24 
25   StreamLayersConfig StreamConfig() const override;
26   FrameDependencyStructure DependencyStructure() const override;
27 
28   std::vector<LayerFrameConfig> NextFrameConfig(bool restart) override;
29   absl::optional<GenericFrameInfo> OnEncodeDone(
30       LayerFrameConfig config) override;
31 
32  private:
33   bool start_ = true;
34 };
35 
36 }  // namespace webrtc
37 
38 #endif  // MODULES_VIDEO_CODING_CODECS_AV1_SCALABLE_VIDEO_CONTROLLER_NO_LAYERING_H_
39