blob: feb8f539959e51d08ede69a4852afa2cce53c7dc [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"
magjeddd407022016-12-01 00:27:27 -080020
Magnus Jedvert7501b1c2017-11-09 13:43:42 +010021namespace webrtc {
magjeddd407022016-12-01 00:27:27 -080022
Magnus Jedvert7501b1c2017-11-09 13:43:42 +010023class InternalDecoderFactory : public VideoDecoderFactory {
magjeddd407022016-12-01 00:27:27 -080024 public:
Magnus Jedvert7501b1c2017-11-09 13:43:42 +010025 std::vector<SdpVideoFormat> GetSupportedFormats() const override;
26 std::unique_ptr<VideoDecoder> CreateVideoDecoder(
27 const SdpVideoFormat& format) override;
magjeddd407022016-12-01 00:27:27 -080028};
29
Magnus Jedvert7501b1c2017-11-09 13:43:42 +010030} // namespace webrtc
magjeddd407022016-12-01 00:27:27 -080031
Steve Anton10542f22019-01-11 09:11:00 -080032#endif // MEDIA_ENGINE_INTERNAL_DECODER_FACTORY_H_