OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 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 WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_PEERCONNECTION_OBJC_VIDEO_ENCODER_FACT
ORY_H_ |
| 12 #define WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_PEERCONNECTION_OBJC_VIDEO_ENCODER_FACT
ORY_H_ |
| 13 |
| 14 #import <Foundation/Foundation.h> |
| 15 |
| 16 #include "webrtc/media/engine/webrtcvideoencoderfactory.h" |
| 17 |
| 18 @protocol RTCVideoEncoderFactory; |
| 19 |
| 20 namespace webrtc { |
| 21 |
| 22 class ObjCVideoEncoderFactory : public cricket::WebRtcVideoEncoderFactory { |
| 23 public: |
| 24 explicit ObjCVideoEncoderFactory(id<RTCVideoEncoderFactory>); |
| 25 ~ObjCVideoEncoderFactory(); |
| 26 |
| 27 id<RTCVideoEncoderFactory> wrapped_encoder_factory() const; |
| 28 |
| 29 webrtc::VideoEncoder* CreateVideoEncoder( |
| 30 const cricket::VideoCodec& codec) override; |
| 31 const std::vector<cricket::VideoCodec>& supported_codecs() const override; |
| 32 void DestroyVideoEncoder(webrtc::VideoEncoder* encoder) override; |
| 33 |
| 34 private: |
| 35 id<RTCVideoEncoderFactory> encoder_factory_; |
| 36 mutable std::vector<cricket::VideoCodec> supported_codecs_; |
| 37 }; |
| 38 |
| 39 } // namespace webrtc |
| 40 |
| 41 #endif // WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_PEERCONNECTION_OBJC_VIDEO_ENCODER_F
ACTORY_H_ |
OLD | NEW |