blob: ec04f9fac5895a4e6d0044ed8f26f85c759f99a2 [file] [log] [blame]
magjed509e4fe2016-11-18 09:34:111/*
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
Steve Anton10542f22019-01-11 17:11:0011#ifndef MEDIA_ENGINE_INTERNAL_ENCODER_FACTORY_H_
12#define MEDIA_ENGINE_INTERNAL_ENCODER_FACTORY_H_
magjed509e4fe2016-11-18 09:34:1113
Magnus Jedvertdf4883d2017-11-17 13:44:5514#include <memory>
Florent Castelli8037fc62024-08-29 13:00:4015#include <optional>
Johannes Kronb26863e2021-09-15 10:56:0416#include <string>
magjed509e4fe2016-11-18 09:34:1117#include <vector>
18
Danil Chapovalov80256a02024-04-02 08:13:2219#include "api/environment/environment.h"
20#include "api/video_codecs/sdp_video_format.h"
Magnus Jedvertdf4883d2017-11-17 13:44:5521#include "api/video_codecs/video_encoder_factory.h"
Mirko Bonadei66e76792019-04-02 09:33:5922#include "rtc_base/system/rtc_export.h"
magjed509e4fe2016-11-18 09:34:1123
Magnus Jedvertdf4883d2017-11-17 13:44:5524namespace webrtc {
Mirko Bonadei66e76792019-04-02 09:33:5925class RTC_EXPORT InternalEncoderFactory : public VideoEncoderFactory {
magjed509e4fe2016-11-18 09:34:1126 public:
Magnus Jedvertdf4883d2017-11-17 13:44:5527 std::vector<SdpVideoFormat> GetSupportedFormats() const override;
Johannes Kronb26863e2021-09-15 10:56:0428 CodecSupport QueryCodecSupport(
29 const SdpVideoFormat& format,
Florent Castelli8037fc62024-08-29 13:00:4030 std::optional<std::string> scalability_mode) const override;
Danil Chapovalov80256a02024-04-02 08:13:2231 std::unique_ptr<VideoEncoder> Create(const Environment& env,
32 const SdpVideoFormat& format) override;
magjed509e4fe2016-11-18 09:34:1133};
34
Magnus Jedvertdf4883d2017-11-17 13:44:5535} // namespace webrtc
magjed509e4fe2016-11-18 09:34:1136
Steve Anton10542f22019-01-11 17:11:0037#endif // MEDIA_ENGINE_INTERNAL_ENCODER_FACTORY_H_