1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #import <Foundation/Foundation.h>
- #import "RTCCodecSpecificInfo.h"
- #import "RTCEncodedImage.h"
- #import "RTCMacros.h"
- #import "RTCRtpFragmentationHeader.h"
- #import "RTCVideoEncoderQpThresholds.h"
- #import "RTCVideoEncoderSettings.h"
- #import "RTCVideoFrame.h"
- NS_ASSUME_NONNULL_BEGIN
- typedef BOOL (^RTCVideoEncoderCallback)(RTC_OBJC_TYPE(RTCEncodedImage) * frame,
- id<RTC_OBJC_TYPE(RTCCodecSpecificInfo)> info,
- RTC_OBJC_TYPE(RTCRtpFragmentationHeader) * header);
- RTC_OBJC_EXPORT
- @protocol RTC_OBJC_TYPE
- (RTCVideoEncoder)<NSObject>
- - (void)setCallback : (RTCVideoEncoderCallback)callback;
- - (NSInteger)startEncodeWithSettings:(RTC_OBJC_TYPE(RTCVideoEncoderSettings) *)settings
- numberOfCores:(int)numberOfCores;
- - (NSInteger)releaseEncoder;
- - (NSInteger)encode:(RTC_OBJC_TYPE(RTCVideoFrame) *)frame
- codecSpecificInfo:(nullable id<RTC_OBJC_TYPE(RTCCodecSpecificInfo)>)info
- frameTypes:(NSArray<NSNumber *> *)frameTypes;
- - (int)setBitrate:(uint32_t)bitrateKbit framerate:(uint32_t)framerate;
- - (NSString *)implementationName;
- - (nullable RTC_OBJC_TYPE(RTCVideoEncoderQpThresholds) *)scalingSettings;
- @end
- NS_ASSUME_NONNULL_END
|