12345678910111213141516171819202122232425262728293031323334353637383940 |
- #import <Foundation/Foundation.h>
- #import "RTCCodecSpecificInfo.h"
- #import "RTCEncodedImage.h"
- #import "RTCMacros.h"
- #import "RTCVideoEncoderSettings.h"
- #import "RTCVideoFrame.h"
- NS_ASSUME_NONNULL_BEGIN
- typedef void (^RTCVideoDecoderCallback)(RTC_OBJC_TYPE(RTCVideoFrame) * frame);
- RTC_OBJC_EXPORT
- @protocol RTC_OBJC_TYPE
- (RTCVideoDecoder)<NSObject>
- - (void)setCallback : (RTCVideoDecoderCallback)callback;
- - (NSInteger)startDecodeWithNumberOfCores:(int)numberOfCores;
- - (NSInteger)releaseDecoder;
- - (NSInteger)decode:(RTC_OBJC_TYPE(RTCEncodedImage) *)encodedImage
- missingFrames:(BOOL)missingFrames
- codecSpecificInfo:(nullable id<RTC_OBJC_TYPE(RTCCodecSpecificInfo)>)info
- renderTimeMs:(int64_t)renderTimeMs;
- - (NSString *)implementationName;
- @end
- NS_ASSUME_NONNULL_END
|