blob: 468d2faf0b6c62ca1045a486b1fae74529bc7849 [file] [log] [blame]
Emircan Uysaler0a375472017-12-11 12:21:02 +05301/*
2 * Copyright (c) 2017 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
11#ifndef MEDIA_ENGINE_STEREOCODECFACTORY_H_
12#define MEDIA_ENGINE_STEREOCODECFACTORY_H_
13
14#include <memory>
15#include <vector>
16
17#include "api/video_codecs/video_decoder_factory.h"
18#include "api/video_codecs/video_encoder_factory.h"
19
20namespace webrtc {
21
22class StereoEncoderFactory : public VideoEncoderFactory {
23 public:
24 explicit StereoEncoderFactory(std::unique_ptr<VideoEncoderFactory> factory);
25
26 std::vector<SdpVideoFormat> GetSupportedFormats() const override;
27 CodecInfo QueryVideoEncoder(const SdpVideoFormat& format) const override;
28 std::unique_ptr<VideoEncoder> CreateVideoEncoder(
29 const SdpVideoFormat& format) override;
30
31 private:
32 std::unique_ptr<VideoEncoderFactory> factory_;
33};
34
35class StereoDecoderFactory : public VideoDecoderFactory {
36 public:
37 explicit StereoDecoderFactory(std::unique_ptr<VideoDecoderFactory> factory);
38
39 std::vector<SdpVideoFormat> GetSupportedFormats() const override;
40 std::unique_ptr<VideoDecoder> CreateVideoDecoder(
41 const SdpVideoFormat& format) override;
42
43 private:
44 std::unique_ptr<VideoDecoderFactory> factory_;
45};
46
47} // namespace webrtc
48
49#endif // MEDIA_ENGINE_STEREOCODECFACTORY_H_