blob: 37c1de7015f21b3a85d69bf20b0330cbaccfd9c6 [file] [log] [blame]
Niels Möller213618e2018-07-24 09:29:58 +02001/*
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 Ouc2ebe212018-11-08 10:02:56 -080014#include "api/video/video_bitrate_allocator_factory.h"
Niels Möller213618e2018-07-24 09:29:58 +020015#include "api/video_codecs/video_encoder_factory.h"
16
17namespace webrtc {
18
19struct VideoStreamEncoderSettings {
Philip Eliasson49d661a2019-06-11 11:55:47 +000020 VideoStreamEncoderSettings() = default;
Niels Möller213618e2018-07-24 09:29:58 +020021
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 Ouc2ebe212018-11-08 10:02:56 -080028
29 // Ownership stays with WebrtcVideoEngine (delegated from PeerConnection).
30 VideoBitrateAllocatorFactory* bitrate_allocator_factory = nullptr;
Niels Möller213618e2018-07-24 09:29:58 +020031};
32
33} // namespace webrtc
34
35#endif // API_VIDEO_VIDEO_STREAM_ENCODER_SETTINGS_H_