Danil Chapovalov | b471ac79 | 2020-05-15 12:21:03 | [diff] [blame] | 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 | */ |
Danil Chapovalov | da7fe39 | 2020-10-15 13:57:17 | [diff] [blame] | 10 | #ifndef MODULES_VIDEO_CODING_SVC_SCALABLE_VIDEO_CONTROLLER_NO_LAYERING_H_ |
| 11 | #define MODULES_VIDEO_CODING_SVC_SCALABLE_VIDEO_CONTROLLER_NO_LAYERING_H_ |
Danil Chapovalov | b471ac79 | 2020-05-15 12:21:03 | [diff] [blame] | 12 | |
| 13 | #include <vector> |
| 14 | |
| 15 | #include "api/transport/rtp/dependency_descriptor.h" |
Danil Chapovalov | 347a327 | 2020-10-26 10:40:26 | [diff] [blame] | 16 | #include "api/video/video_bitrate_allocation.h" |
Danil Chapovalov | b471ac79 | 2020-05-15 12:21:03 | [diff] [blame] | 17 | #include "common_video/generic_frame_descriptor/generic_frame_info.h" |
Danil Chapovalov | da7fe39 | 2020-10-15 13:57:17 | [diff] [blame] | 18 | #include "modules/video_coding/svc/scalable_video_controller.h" |
Danil Chapovalov | b471ac79 | 2020-05-15 12:21:03 | [diff] [blame] | 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; |
Danil Chapovalov | c85baeb | 2020-10-14 16:09:58 | [diff] [blame] | 30 | GenericFrameInfo OnEncodeDone(const LayerFrameConfig& config) override; |
Danil Chapovalov | 45d2234 | 2021-02-11 13:58:29 | [diff] [blame] | 31 | void OnRatesUpdated(const VideoBitrateAllocation& bitrates) override; |
Danil Chapovalov | b471ac79 | 2020-05-15 12:21:03 | [diff] [blame] | 32 | |
| 33 | private: |
| 34 | bool start_ = true; |
Danil Chapovalov | 45d2234 | 2021-02-11 13:58:29 | [diff] [blame] | 35 | bool enabled_ = true; |
Danil Chapovalov | b471ac79 | 2020-05-15 12:21:03 | [diff] [blame] | 36 | }; |
| 37 | |
| 38 | } // namespace webrtc |
| 39 | |
Danil Chapovalov | da7fe39 | 2020-10-15 13:57:17 | [diff] [blame] | 40 | #endif // MODULES_VIDEO_CODING_SVC_SCALABLE_VIDEO_CONTROLLER_NO_LAYERING_H_ |