magjed | 509e4fe | 2016-11-18 09:34:11 | [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 | |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 11 | #ifndef MEDIA_ENGINE_INTERNAL_ENCODER_FACTORY_H_ |
| 12 | #define MEDIA_ENGINE_INTERNAL_ENCODER_FACTORY_H_ |
magjed | 509e4fe | 2016-11-18 09:34:11 | [diff] [blame] | 13 | |
Magnus Jedvert | df4883d | 2017-11-17 13:44:55 | [diff] [blame] | 14 | #include <memory> |
Florent Castelli | 8037fc6 | 2024-08-29 13:00:40 | [diff] [blame] | 15 | #include <optional> |
Johannes Kron | b26863e | 2021-09-15 10:56:04 | [diff] [blame] | 16 | #include <string> |
magjed | 509e4fe | 2016-11-18 09:34:11 | [diff] [blame] | 17 | #include <vector> |
| 18 | |
Danil Chapovalov | 80256a0 | 2024-04-02 08:13:22 | [diff] [blame] | 19 | #include "api/environment/environment.h" |
| 20 | #include "api/video_codecs/sdp_video_format.h" |
Magnus Jedvert | df4883d | 2017-11-17 13:44:55 | [diff] [blame] | 21 | #include "api/video_codecs/video_encoder_factory.h" |
Mirko Bonadei | 66e7679 | 2019-04-02 09:33:59 | [diff] [blame] | 22 | #include "rtc_base/system/rtc_export.h" |
magjed | 509e4fe | 2016-11-18 09:34:11 | [diff] [blame] | 23 | |
Magnus Jedvert | df4883d | 2017-11-17 13:44:55 | [diff] [blame] | 24 | namespace webrtc { |
Mirko Bonadei | 66e7679 | 2019-04-02 09:33:59 | [diff] [blame] | 25 | class RTC_EXPORT InternalEncoderFactory : public VideoEncoderFactory { |
magjed | 509e4fe | 2016-11-18 09:34:11 | [diff] [blame] | 26 | public: |
Magnus Jedvert | df4883d | 2017-11-17 13:44:55 | [diff] [blame] | 27 | std::vector<SdpVideoFormat> GetSupportedFormats() const override; |
Johannes Kron | b26863e | 2021-09-15 10:56:04 | [diff] [blame] | 28 | CodecSupport QueryCodecSupport( |
| 29 | const SdpVideoFormat& format, |
Florent Castelli | 8037fc6 | 2024-08-29 13:00:40 | [diff] [blame] | 30 | std::optional<std::string> scalability_mode) const override; |
Danil Chapovalov | 80256a0 | 2024-04-02 08:13:22 | [diff] [blame] | 31 | std::unique_ptr<VideoEncoder> Create(const Environment& env, |
| 32 | const SdpVideoFormat& format) override; |
magjed | 509e4fe | 2016-11-18 09:34:11 | [diff] [blame] | 33 | }; |
| 34 | |
Magnus Jedvert | df4883d | 2017-11-17 13:44:55 | [diff] [blame] | 35 | } // namespace webrtc |
magjed | 509e4fe | 2016-11-18 09:34:11 | [diff] [blame] | 36 | |
Steve Anton | 10542f2 | 2019-01-11 17:11:00 | [diff] [blame] | 37 | #endif // MEDIA_ENGINE_INTERNAL_ENCODER_FACTORY_H_ |