magjed | 509e4fe | 2016-11-18 01:34:11 -0800 | [diff] [blame] | 1 | /* |
| 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 Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 11 | #ifndef MEDIA_ENGINE_INTERNALENCODERFACTORY_H_ |
| 12 | #define MEDIA_ENGINE_INTERNALENCODERFACTORY_H_ |
magjed | 509e4fe | 2016-11-18 01:34:11 -0800 | [diff] [blame] | 13 | |
| 14 | #include <vector> |
| 15 | |
Zhi Huang | aea84f5 | 2017-11-16 18:46:27 +0000 | [diff] [blame^] | 16 | #include "media/engine/webrtcvideoencoderfactory.h" |
magjed | 509e4fe | 2016-11-18 01:34:11 -0800 | [diff] [blame] | 17 | |
Zhi Huang | aea84f5 | 2017-11-16 18:46:27 +0000 | [diff] [blame^] | 18 | namespace cricket { |
magjed | 509e4fe | 2016-11-18 01:34:11 -0800 | [diff] [blame] | 19 | |
Zhi Huang | aea84f5 | 2017-11-16 18:46:27 +0000 | [diff] [blame^] | 20 | class InternalEncoderFactory : public WebRtcVideoEncoderFactory { |
magjed | 509e4fe | 2016-11-18 01:34:11 -0800 | [diff] [blame] | 21 | public: |
Zhi Huang | aea84f5 | 2017-11-16 18:46:27 +0000 | [diff] [blame^] | 22 | InternalEncoderFactory(); |
| 23 | virtual ~InternalEncoderFactory(); |
magjed | 509e4fe | 2016-11-18 01:34:11 -0800 | [diff] [blame] | 24 | |
Zhi Huang | aea84f5 | 2017-11-16 18:46:27 +0000 | [diff] [blame^] | 25 | // WebRtcVideoEncoderFactory implementation. |
| 26 | webrtc::VideoEncoder* CreateVideoEncoder( |
| 27 | const cricket::VideoCodec& codec) override; |
| 28 | const std::vector<cricket::VideoCodec>& supported_codecs() const override; |
| 29 | void DestroyVideoEncoder(webrtc::VideoEncoder* encoder) override; |
magjed | 509e4fe | 2016-11-18 01:34:11 -0800 | [diff] [blame] | 30 | |
Zhi Huang | aea84f5 | 2017-11-16 18:46:27 +0000 | [diff] [blame^] | 31 | private: |
| 32 | std::vector<cricket::VideoCodec> supported_codecs_; |
magjed | 509e4fe | 2016-11-18 01:34:11 -0800 | [diff] [blame] | 33 | }; |
| 34 | |
Zhi Huang | aea84f5 | 2017-11-16 18:46:27 +0000 | [diff] [blame^] | 35 | } // namespace cricket |
magjed | 509e4fe | 2016-11-18 01:34:11 -0800 | [diff] [blame] | 36 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 37 | #endif // MEDIA_ENGINE_INTERNALENCODERFACTORY_H_ |