blob: b67f33c982dbbecc08b18774b548bf0d89fc5831 [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
14#include "api/video_codecs/video_encoder_factory.h"
15
16namespace webrtc {
17
18struct VideoStreamEncoderSettings {
19 VideoStreamEncoderSettings() = default;
20
21 // Enables the new method to estimate the cpu load from encoding, used for
22 // cpu adaptation.
23 bool experiment_cpu_load_estimator = false;
24
25 // Ownership stays with WebrtcVideoEngine (delegated from PeerConnection).
26 VideoEncoderFactory* encoder_factory = nullptr;
Niels Möller213618e2018-07-24 09:29:58 +020027};
28
29} // namespace webrtc
30
31#endif // API_VIDEO_VIDEO_STREAM_ENCODER_SETTINGS_H_