2017-10-05 16:55:38 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
2024-02-20 10:58:59 +01:00
|
|
|
#import "RTCNativeVideoDecoder.h"
|
|
|
|
|
#import "RTCNativeVideoDecoderBuilder+Native.h"
|
2018-08-30 09:30:29 +02:00
|
|
|
#import "RTCVideoDecoderVP8.h"
|
2024-09-16 11:41:17 +03:00
|
|
|
#import "sdk/objc/base/RTCMacros.h"
|
2017-10-05 16:55:38 +02:00
|
|
|
|
|
|
|
|
#include "modules/video_coding/codecs/vp8/include/vp8.h"
|
|
|
|
|
|
2024-02-20 10:58:59 +01:00
|
|
|
@interface RTC_OBJC_TYPE (RTCVideoDecoderVP8Builder)
|
|
|
|
|
: RTC_OBJC_TYPE(RTCNativeVideoDecoder) <RTC_OBJC_TYPE (RTCNativeVideoDecoderBuilder)>
|
|
|
|
|
@end
|
2017-10-05 16:55:38 +02:00
|
|
|
|
2024-02-20 10:58:59 +01:00
|
|
|
@implementation RTC_OBJC_TYPE (RTCVideoDecoderVP8Builder)
|
2017-10-05 16:55:38 +02:00
|
|
|
|
2025-01-08 05:45:56 -08:00
|
|
|
- (std::unique_ptr<webrtc::VideoDecoder>)build:
|
|
|
|
|
(const webrtc::Environment&)env {
|
2024-02-20 10:58:59 +01:00
|
|
|
return webrtc::CreateVp8Decoder(env);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
@implementation RTC_OBJC_TYPE (RTCVideoDecoderVP8)
|
|
|
|
|
|
|
|
|
|
+ (id<RTC_OBJC_TYPE(RTCVideoDecoder)>)vp8Decoder {
|
|
|
|
|
return [[RTC_OBJC_TYPE(RTCVideoDecoderVP8Builder) alloc] init];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@end
|