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 #include "webrtc/modules/video_coding/codecs/test/objc_codec_h264_test.h" |
| 12 |
| 13 #import "WebRTC/RTCVideoCodecH264.h" |
| 14 #include "webrtc/sdk/objc/Framework/Classes/PeerConnection/objc_video_decoder_fa
ctory.h" |
| 15 #include "webrtc/sdk/objc/Framework/Classes/PeerConnection/objc_video_encoder_fa
ctory.h" |
| 16 |
| 17 namespace webrtc { |
| 18 |
| 19 /** Create a wrapped factory that uses the default RTCVideoEncoder used from Obj
ective-C. */ |
| 20 ObjCVideoEncoderFactoryWrapper::ObjCVideoEncoderFactoryWrapper() |
| 21 : encoder_factory_(new ObjCVideoEncoderFactory([[RTCVideoEncoderFactoryH264
alloc] init])) {} |
| 22 |
| 23 ObjCVideoEncoderFactoryWrapper::~ObjCVideoEncoderFactoryWrapper() {} |
| 24 |
| 25 cricket::WebRtcVideoEncoderFactory* ObjCVideoEncoderFactoryWrapper::wrapped_enco
der_factory() |
| 26 const { |
| 27 return encoder_factory_; |
| 28 } |
| 29 |
| 30 /** Create a wrapped factory that uses the default RTCVideoDecoder used from Obj
ective-C. */ |
| 31 ObjCVideoDecoderFactoryWrapper::ObjCVideoDecoderFactoryWrapper() |
| 32 : decoder_factory_(new ObjCVideoDecoderFactory([[RTCVideoDecoderFactoryH264
alloc] init])) {} |
| 33 |
| 34 ObjCVideoDecoderFactoryWrapper::~ObjCVideoDecoderFactoryWrapper() {} |
| 35 |
| 36 cricket::WebRtcVideoDecoderFactory* ObjCVideoDecoderFactoryWrapper::wrapped_deco
der_factory() |
| 37 const { |
| 38 return decoder_factory_; |
| 39 } |
| 40 |
| 41 } // namespace webrtc |
OLD | NEW |