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_L3T1_H_ 11 #define MODULES_VIDEO_CODING_CODECS_AV1_SCALABILITY_STRUCTURE_L3T1_H_ 12 13 #include <vector> 14 15 #include "absl/types/optional.h" 16 #include "api/transport/rtp/dependency_descriptor.h" 17 #include "common_video/generic_frame_descriptor/generic_frame_info.h" 18 #include "modules/video_coding/codecs/av1/scalable_video_controller.h" 19 20 namespace webrtc { 21 22 // S2 0-0-0- 23 // | | | 24 // S1 0-0-0-... 25 // | | | 26 // S0 0-0-0- 27 // Time-> 0 1 2 28 class ScalabilityStructureL3T1 : public ScalableVideoController { 29 public: 30 ~ScalabilityStructureL3T1() override; 31 32 StreamLayersConfig StreamConfig() const override; 33 FrameDependencyStructure DependencyStructure() const override; 34 35 std::vector<LayerFrameConfig> NextFrameConfig(bool restart) override; 36 absl::optional<GenericFrameInfo> OnEncodeDone( 37 LayerFrameConfig config) override; 38 39 private: 40 bool keyframe_ = true; 41 }; 42 43 } // namespace webrtc 44 45 #endif // MODULES_VIDEO_CODING_CODECS_AV1_SCALABILITY_STRUCTURE_L3T1_H_ 46