blob: 25480d088fcb28b0cdfd33249a9ff6209d21ed18 [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>
Johannes Kronb26863e2021-09-15 10:56:0415#include <string>
magjed509e4fe2016-11-18 09:34:1116#include <vector>
17
Magnus Jedvertdf4883d2017-11-17 13:44:5518#include "api/video_codecs/video_encoder_factory.h"
Mirko Bonadei66e76792019-04-02 09:33:5919#include "rtc_base/system/rtc_export.h"
magjed509e4fe2016-11-18 09:34:1120
Magnus Jedvertdf4883d2017-11-17 13:44:5521namespace webrtc {
Mirko Bonadei66e76792019-04-02 09:33:5922class RTC_EXPORT InternalEncoderFactory : public VideoEncoderFactory {
magjed509e4fe2016-11-18 09:34:1123 public:
Magnus Jedvertdf4883d2017-11-17 13:44:5524 std::vector<SdpVideoFormat> GetSupportedFormats() const override;
Johannes Kronb26863e2021-09-15 10:56:0425 CodecSupport QueryCodecSupport(
26 const SdpVideoFormat& format,
27 absl::optional<std::string> scalability_mode) const override;
Magnus Jedvertdf4883d2017-11-17 13:44:5528 std::unique_ptr<VideoEncoder> CreateVideoEncoder(
29 const SdpVideoFormat& format) override;
magjed509e4fe2016-11-18 09:34:1130};
31
Magnus Jedvertdf4883d2017-11-17 13:44:5532} // namespace webrtc
magjed509e4fe2016-11-18 09:34:1133
Steve Anton10542f22019-01-11 17:11:0034#endif // MEDIA_ENGINE_INTERNAL_ENCODER_FACTORY_H_