blob: 79dbc46e089a4a4e227581bd06d645761b203bce [file] [log] [blame]
magjed509e4fe2016-11-18 01:34:11 -08001/*
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 09:11:00 -080011#ifndef MEDIA_ENGINE_INTERNAL_ENCODER_FACTORY_H_
12#define MEDIA_ENGINE_INTERNAL_ENCODER_FACTORY_H_
magjed509e4fe2016-11-18 01:34:11 -080013
Magnus Jedvertdf4883d2017-11-17 14:44:55 +010014#include <memory>
magjed509e4fe2016-11-18 01:34:11 -080015#include <vector>
16
Yves Gerey3e707812018-11-28 16:47:49 +010017#include "api/video_codecs/sdp_video_format.h"
18#include "api/video_codecs/video_encoder.h"
Magnus Jedvertdf4883d2017-11-17 14:44:55 +010019#include "api/video_codecs/video_encoder_factory.h"
Mirko Bonadei66e76792019-04-02 11:33:59 +020020#include "rtc_base/system/rtc_export.h"
magjed509e4fe2016-11-18 01:34:11 -080021
Magnus Jedvertdf4883d2017-11-17 14:44:55 +010022namespace webrtc {
magjed509e4fe2016-11-18 01:34:11 -080023
Mirko Bonadei66e76792019-04-02 11:33:59 +020024class RTC_EXPORT InternalEncoderFactory : public VideoEncoderFactory {
magjed509e4fe2016-11-18 01:34:11 -080025 public:
Magnus Jedvertdf4883d2017-11-17 14:44:55 +010026 std::vector<SdpVideoFormat> GetSupportedFormats() const override;
magjed509e4fe2016-11-18 01:34:11 -080027
Mirta Dvornicic1ec2a162018-12-10 09:47:34 +000028 CodecInfo QueryVideoEncoder(const SdpVideoFormat& format) const override;
29
Magnus Jedvertdf4883d2017-11-17 14:44:55 +010030 std::unique_ptr<VideoEncoder> CreateVideoEncoder(
31 const SdpVideoFormat& format) override;
magjed509e4fe2016-11-18 01:34:11 -080032};
33
Magnus Jedvertdf4883d2017-11-17 14:44:55 +010034} // namespace webrtc
magjed509e4fe2016-11-18 01:34:11 -080035
Steve Anton10542f22019-01-11 09:11:00 -080036#endif // MEDIA_ENGINE_INTERNAL_ENCODER_FACTORY_H_