magjed | 509e4fe | 2016-11-18 01:34:11 -0800 | [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 09:11:00 -0800 | [diff] [blame] | 11 | #ifndef MEDIA_ENGINE_INTERNAL_ENCODER_FACTORY_H_ |
| 12 | #define MEDIA_ENGINE_INTERNAL_ENCODER_FACTORY_H_ |
magjed | 509e4fe | 2016-11-18 01:34:11 -0800 | [diff] [blame] | 13 | |
Magnus Jedvert | df4883d | 2017-11-17 14:44:55 +0100 | [diff] [blame] | 14 | #include <memory> |
magjed | 509e4fe | 2016-11-18 01:34:11 -0800 | [diff] [blame] | 15 | #include <vector> |
| 16 | |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 17 | #include "api/video_codecs/sdp_video_format.h" |
| 18 | #include "api/video_codecs/video_encoder.h" |
Magnus Jedvert | df4883d | 2017-11-17 14:44:55 +0100 | [diff] [blame] | 19 | #include "api/video_codecs/video_encoder_factory.h" |
Mirko Bonadei | 66e7679 | 2019-04-02 11:33:59 +0200 | [diff] [blame] | 20 | #include "rtc_base/system/rtc_export.h" |
magjed | 509e4fe | 2016-11-18 01:34:11 -0800 | [diff] [blame] | 21 | |
Magnus Jedvert | df4883d | 2017-11-17 14:44:55 +0100 | [diff] [blame] | 22 | namespace webrtc { |
magjed | 509e4fe | 2016-11-18 01:34:11 -0800 | [diff] [blame] | 23 | |
Mirko Bonadei | 66e7679 | 2019-04-02 11:33:59 +0200 | [diff] [blame] | 24 | class RTC_EXPORT InternalEncoderFactory : public VideoEncoderFactory { |
magjed | 509e4fe | 2016-11-18 01:34:11 -0800 | [diff] [blame] | 25 | public: |
Magnus Jedvert | df4883d | 2017-11-17 14:44:55 +0100 | [diff] [blame] | 26 | std::vector<SdpVideoFormat> GetSupportedFormats() const override; |
magjed | 509e4fe | 2016-11-18 01:34:11 -0800 | [diff] [blame] | 27 | |
Mirta Dvornicic | 1ec2a16 | 2018-12-10 09:47:34 +0000 | [diff] [blame] | 28 | CodecInfo QueryVideoEncoder(const SdpVideoFormat& format) const override; |
| 29 | |
Magnus Jedvert | df4883d | 2017-11-17 14:44:55 +0100 | [diff] [blame] | 30 | std::unique_ptr<VideoEncoder> CreateVideoEncoder( |
| 31 | const SdpVideoFormat& format) override; |
magjed | 509e4fe | 2016-11-18 01:34:11 -0800 | [diff] [blame] | 32 | }; |
| 33 | |
Magnus Jedvert | df4883d | 2017-11-17 14:44:55 +0100 | [diff] [blame] | 34 | } // namespace webrtc |
magjed | 509e4fe | 2016-11-18 01:34:11 -0800 | [diff] [blame] | 35 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 36 | #endif // MEDIA_ENGINE_INTERNAL_ENCODER_FACTORY_H_ |