Niels Möller | 213618e | 2018-07-24 09:29:58 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 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 | |
| 11 | #ifndef API_VIDEO_VIDEO_STREAM_ENCODER_SETTINGS_H_ |
| 12 | #define API_VIDEO_VIDEO_STREAM_ENCODER_SETTINGS_H_ |
| 13 | |
Jiawei Ou | c2ebe21 | 2018-11-08 10:02:56 -0800 | [diff] [blame] | 14 | #include "api/video/video_bitrate_allocator_factory.h" |
Niels Möller | 213618e | 2018-07-24 09:29:58 +0200 | [diff] [blame] | 15 | #include "api/video_codecs/video_encoder_factory.h" |
| 16 | |
| 17 | namespace webrtc { |
| 18 | |
| 19 | struct VideoStreamEncoderSettings { |
Philip Eliasson | 49d661a | 2019-06-11 11:55:47 +0000 | [diff] [blame] | 20 | VideoStreamEncoderSettings() = default; |
Niels Möller | 213618e | 2018-07-24 09:29:58 +0200 | [diff] [blame] | 21 | |
| 22 | // Enables the new method to estimate the cpu load from encoding, used for |
| 23 | // cpu adaptation. |
| 24 | bool experiment_cpu_load_estimator = false; |
| 25 | |
| 26 | // Ownership stays with WebrtcVideoEngine (delegated from PeerConnection). |
| 27 | VideoEncoderFactory* encoder_factory = nullptr; |
Jiawei Ou | c2ebe21 | 2018-11-08 10:02:56 -0800 | [diff] [blame] | 28 | |
| 29 | // Ownership stays with WebrtcVideoEngine (delegated from PeerConnection). |
| 30 | VideoBitrateAllocatorFactory* bitrate_allocator_factory = nullptr; |
Niels Möller | 213618e | 2018-07-24 09:29:58 +0200 | [diff] [blame] | 31 | }; |
| 32 | |
| 33 | } // namespace webrtc |
| 34 | |
| 35 | #endif // API_VIDEO_VIDEO_STREAM_ENCODER_SETTINGS_H_ |