Erik Språng | 08127a9 | 2016-11-16 15:41:30 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2016 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 | |
Mirko Bonadei | 92ea95e | 2017-09-15 04:47:31 | [diff] [blame] | 11 | #ifndef MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODEC_INITIALIZER_H_ |
| 12 | #define MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODEC_INITIALIZER_H_ |
Erik Språng | 08127a9 | 2016-11-16 15:41:30 | [diff] [blame] | 13 | |
Erik Språng | 08127a9 | 2016-11-16 15:41:30 | [diff] [blame] | 14 | #include <vector> |
| 15 | |
Danil Chapovalov | 19f1297 | 2024-04-09 08:53:39 | [diff] [blame] | 16 | #include "api/field_trials_view.h" |
| 17 | #include "api/video_codecs/video_codec.h" |
Jonas Oreland | 6c2dae2 | 2022-09-29 08:28:24 | [diff] [blame] | 18 | #include "video/config/video_encoder_config.h" |
Erik Språng | 08127a9 | 2016-11-16 15:41:30 | [diff] [blame] | 19 | |
| 20 | namespace webrtc { |
| 21 | |
Erik Språng | 08127a9 | 2016-11-16 15:41:30 | [diff] [blame] | 22 | class VideoCodecInitializer { |
| 23 | public: |
Niels Möller | b46d1b8 | 2018-04-06 11:07:01 | [diff] [blame] | 24 | // Takes a VideoEncoderConfig and the VideoStream configuration and |
| 25 | // translates them into the old school VideoCodec type. |
Danil Chapovalov | 19f1297 | 2024-04-09 08:53:39 | [diff] [blame] | 26 | static VideoCodec SetupCodec(const FieldTrialsView& field_trials, |
| 27 | const VideoEncoderConfig& config, |
| 28 | const std::vector<VideoStream>& streams); |
Erik Språng | 08127a9 | 2016-11-16 15:41:30 | [diff] [blame] | 29 | }; |
| 30 | |
| 31 | } // namespace webrtc |
| 32 | |
Mirko Bonadei | 92ea95e | 2017-09-15 04:47:31 | [diff] [blame] | 33 | #endif // MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODEC_INITIALIZER_H_ |