blob: d30335e2c53a7723b6d0b8299025de1b8da3ca23 [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
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020011#ifndef MEDIA_ENGINE_INTERNALENCODERFACTORY_H_
12#define MEDIA_ENGINE_INTERNALENCODERFACTORY_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"
magjed509e4fe2016-11-18 01:34:11 -080020
Magnus Jedvertdf4883d2017-11-17 14:44:55 +010021namespace webrtc {
magjed509e4fe2016-11-18 01:34:11 -080022
Magnus Jedvertdf4883d2017-11-17 14:44:55 +010023class InternalEncoderFactory : public VideoEncoderFactory {
magjed509e4fe2016-11-18 01:34:11 -080024 public:
Magnus Jedvertdf4883d2017-11-17 14:44:55 +010025 std::vector<SdpVideoFormat> GetSupportedFormats() const override;
magjed509e4fe2016-11-18 01:34:11 -080026
Mirta Dvornicic1ec2a162018-12-10 09:47:34 +000027 CodecInfo QueryVideoEncoder(const SdpVideoFormat& format) const override;
28
Magnus Jedvertdf4883d2017-11-17 14:44:55 +010029 std::unique_ptr<VideoEncoder> CreateVideoEncoder(
30 const SdpVideoFormat& format) override;
magjed509e4fe2016-11-18 01:34:11 -080031};
32
Magnus Jedvertdf4883d2017-11-17 14:44:55 +010033} // namespace webrtc
magjed509e4fe2016-11-18 01:34:11 -080034
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020035#endif // MEDIA_ENGINE_INTERNALENCODERFACTORY_H_