1/* 2 * Copyright (c) 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#import <Foundation/Foundation.h> 12 13#import "RTCWrappedNativeVideoDecoder.h" 14#import "helpers/NSString+StdString.h" 15 16@implementation RTCWrappedNativeVideoDecoder { 17 std::unique_ptr<webrtc::VideoDecoder> _wrappedDecoder; 18} 19 20- (instancetype)initWithNativeDecoder:(std::unique_ptr<webrtc::VideoDecoder>)decoder { 21 if (self = [super init]) { 22 _wrappedDecoder = std::move(decoder); 23 } 24 25 return self; 26} 27 28- (std::unique_ptr<webrtc::VideoDecoder>)releaseWrappedDecoder { 29 return std::move(_wrappedDecoder); 30} 31 32#pragma mark - RTC_OBJC_TYPE(RTCVideoDecoder) 33 34- (void)setCallback:(RTCVideoDecoderCallback)callback { 35 RTC_NOTREACHED(); 36} 37 38- (NSInteger)startDecodeWithNumberOfCores:(int)numberOfCores { 39 RTC_NOTREACHED(); 40 return 0; 41} 42 43- (NSInteger)releaseDecoder { 44 RTC_NOTREACHED(); 45 return 0; 46} 47 48- (NSInteger)decode:(RTC_OBJC_TYPE(RTCEncodedImage) *)encodedImage 49 missingFrames:(BOOL)missingFrames 50 codecSpecificInfo:(nullable id<RTC_OBJC_TYPE(RTCCodecSpecificInfo)>)info 51 renderTimeMs:(int64_t)renderTimeMs { 52 RTC_NOTREACHED(); 53 return 0; 54} 55 56- (NSString *)implementationName { 57 RTC_NOTREACHED(); 58 return nil; 59} 60 61@end 62