2016-11-16 16:41:30 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#ifndef MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODEC_INITIALIZER_H_
|
|
|
|
|
#define MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODEC_INITIALIZER_H_
|
2016-11-16 16:41:30 +01:00
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
2024-04-09 10:53:39 +02:00
|
|
|
#include "api/field_trials_view.h"
|
|
|
|
|
#include "api/video_codecs/video_codec.h"
|
2022-09-29 10:28:24 +02:00
|
|
|
#include "video/config/video_encoder_config.h"
|
2016-11-16 16:41:30 +01:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
|
|
|
|
class VideoCodecInitializer {
|
|
|
|
|
public:
|
2018-04-06 13:07:01 +02:00
|
|
|
// Takes a VideoEncoderConfig and the VideoStream configuration and
|
|
|
|
|
// translates them into the old school VideoCodec type.
|
2024-04-09 10:53:39 +02:00
|
|
|
static VideoCodec SetupCodec(const FieldTrialsView& field_trials,
|
|
|
|
|
const VideoEncoderConfig& config,
|
|
|
|
|
const std::vector<VideoStream>& streams);
|
2016-11-16 16:41:30 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace webrtc
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#endif // MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODEC_INITIALIZER_H_
|