blob: 0373a88092358e5f0aab2fde3d191ef66cb13172 [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
Magnus Jedvertdf4883d2017-11-17 14:44:55 +010027 std::unique_ptr<VideoEncoder> CreateVideoEncoder(
28 const SdpVideoFormat& format) override;
magjed509e4fe2016-11-18 01:34:11 -080029};
30
Magnus Jedvertdf4883d2017-11-17 14:44:55 +010031} // namespace webrtc
magjed509e4fe2016-11-18 01:34:11 -080032
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020033#endif // MEDIA_ENGINE_INTERNALENCODERFACTORY_H_