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_DECODER_FACT
ORY_H_ |
| 12 #define WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_PEERCONNECTION_OBJC_VIDEO_DECODER_FACT
ORY_H_ |
| 13 |
| 14 #include "webrtc/media/base/codec.h" |
| 15 #include "webrtc/media/engine/webrtcvideodecoderfactory.h" |
| 16 |
| 17 @protocol RTCVideoDecoderFactory; |
| 18 |
| 19 namespace webrtc { |
| 20 |
| 21 class ObjCVideoDecoderFactory : public cricket::WebRtcVideoDecoderFactory { |
| 22 public: |
| 23 explicit ObjCVideoDecoderFactory(id<RTCVideoDecoderFactory>); |
| 24 ~ObjCVideoDecoderFactory(); |
| 25 |
| 26 id<RTCVideoDecoderFactory> wrapped_decoder_factory() const; |
| 27 |
| 28 webrtc::VideoDecoder* CreateVideoDecoder( |
| 29 webrtc::VideoCodecType type) override; |
| 30 void DestroyVideoDecoder(webrtc::VideoDecoder* decoder) override; |
| 31 |
| 32 private: |
| 33 id<RTCVideoDecoderFactory> decoder_factory_; |
| 34 std::vector<cricket::VideoCodec> supported_codecs_; |
| 35 }; |
| 36 |
| 37 } // namespace webrtc |
| 38 |
| 39 #endif // WEBRTC_SDK_OBJC_FRAMEWORK_CLASSES_PEERCONNECTION_OBJC_VIDEO_DECODER_F
ACTORY_H_ |
OLD | NEW |