blob: 0183d4cac127cc32448e812229e9bd97ecdc482f [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"
Elad Alon370f93a2019-06-11 14:57:57 +020015#include "api/video_codecs/video_encoder.h"
Niels Möller213618e2018-07-24 09:29:58 +020016#include "api/video_codecs/video_encoder_factory.h"
17
18namespace webrtc {
19
20struct VideoStreamEncoderSettings {
Elad Alon370f93a2019-06-11 14:57:57 +020021 explicit VideoStreamEncoderSettings(
22 const VideoEncoder::Capabilities& capabilities)
23 : capabilities(capabilities) {}
Niels Möller213618e2018-07-24 09:29:58 +020024
25 // Enables the new method to estimate the cpu load from encoding, used for
26 // cpu adaptation.
27 bool experiment_cpu_load_estimator = false;
28
29 // Ownership stays with WebrtcVideoEngine (delegated from PeerConnection).
30 VideoEncoderFactory* encoder_factory = nullptr;
Jiawei Ouc2ebe212018-11-08 10:02:56 -080031
32 // Ownership stays with WebrtcVideoEngine (delegated from PeerConnection).
33 VideoBitrateAllocatorFactory* bitrate_allocator_factory = nullptr;
Elad Alon370f93a2019-06-11 14:57:57 +020034
35 // Negotiated capabilities which the VideoEncoder may expect the other
36 // side to use.
37 VideoEncoder::Capabilities capabilities;
Niels Möller213618e2018-07-24 09:29:58 +020038};
39
40} // namespace webrtc
41
42#endif // API_VIDEO_VIDEO_STREAM_ENCODER_SETTINGS_H_