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_SCALABILITY_STRUCTURE_L2T1_H_ 11 #define MODULES_VIDEO_CODING_CODECS_AV1_SCALABILITY_STRUCTURE_L2T1_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 // S1 0--0--0- 22 // | | | ... 23 // S0 0--0--0- 24 class ScalabilityStructureL2T1 : public ScalableVideoController { 25 public: 26 ~ScalabilityStructureL2T1() override; 27 28 StreamLayersConfig StreamConfig() const override; 29 FrameDependencyStructure DependencyStructure() const override; 30 31 std::vector<LayerFrameConfig> NextFrameConfig(bool restart) override; 32 absl::optional<GenericFrameInfo> OnEncodeDone( 33 LayerFrameConfig config) override; 34 35 private: 36 LayerFrameConfig KeyFrameConfig() const; 37 38 bool keyframe_ = true; 39 }; 40 41 } // namespace webrtc 42 43 #endif // MODULES_VIDEO_CODING_CODECS_AV1_SCALABILITY_STRUCTURE_L2T1_H_ 44