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 "modules/video_coding/codecs/test/objc_codec_factory_helper.h" 12 13#import "sdk/objc/components/video_codec/RTCVideoDecoderFactoryH264.h" 14#import "sdk/objc/components/video_codec/RTCVideoEncoderFactoryH264.h" 15#include "sdk/objc/native/api/video_decoder_factory.h" 16#include "sdk/objc/native/api/video_encoder_factory.h" 17 18namespace webrtc { 19namespace test { 20 21std::unique_ptr<VideoEncoderFactory> CreateObjCEncoderFactory() { 22 return ObjCToNativeVideoEncoderFactory([[RTC_OBJC_TYPE(RTCVideoEncoderFactoryH264) alloc] init]); 23} 24 25std::unique_ptr<VideoDecoderFactory> CreateObjCDecoderFactory() { 26 return ObjCToNativeVideoDecoderFactory([[RTC_OBJC_TYPE(RTCVideoDecoderFactoryH264) alloc] init]); 27} 28 29} // namespace test 30} // namespace webrtc 31