blob: 2a580dea0b073cfd03663014df79aab9b8961814 [file] [log] [blame]
magjeddd407022016-12-01 00:27:27 -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_DECODER_FACTORY_H_
12#define MEDIA_ENGINE_INTERNAL_DECODER_FACTORY_H_
magjeddd407022016-12-01 00:27:27 -080013
Magnus Jedvert7501b1c2017-11-09 13:43:42 +010014#include <memory>
magjeddd407022016-12-01 00:27:27 -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_decoder.h"
Magnus Jedvert7501b1c2017-11-09 13:43:42 +010019#include "api/video_codecs/video_decoder_factory.h"
Mirko Bonadei66e76792019-04-02 11:33:59 +020020#include "rtc_base/system/rtc_export.h"
magjeddd407022016-12-01 00:27:27 -080021
Magnus Jedvert7501b1c2017-11-09 13:43:42 +010022namespace webrtc {
magjeddd407022016-12-01 00:27:27 -080023
Mirko Bonadei66e76792019-04-02 11:33:59 +020024class RTC_EXPORT InternalDecoderFactory : public VideoDecoderFactory {
magjeddd407022016-12-01 00:27:27 -080025 public:
Magnus Jedvert7501b1c2017-11-09 13:43:42 +010026 std::vector<SdpVideoFormat> GetSupportedFormats() const override;
27 std::unique_ptr<VideoDecoder> CreateVideoDecoder(
28 const SdpVideoFormat& format) override;
magjeddd407022016-12-01 00:27:27 -080029};
30
Magnus Jedvert7501b1c2017-11-09 13:43:42 +010031} // namespace webrtc
magjeddd407022016-12-01 00:27:27 -080032
Steve Anton10542f22019-01-11 09:11:00 -080033#endif // MEDIA_ENGINE_INTERNAL_DECODER_FACTORY_H_