-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathXCWH264Encoder.h
More file actions
29 lines (22 loc) · 1015 Bytes
/
XCWH264Encoder.h
File metadata and controls
29 lines (22 loc) · 1015 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#import <CoreGraphics/CoreGraphics.h>
#import <CoreVideo/CoreVideo.h>
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
typedef void (^XCWH264EncoderOutputHandler)(NSData *sampleData,
uint64_t timestampUs,
BOOL isKeyFrame,
NSString * _Nullable codec,
NSData * _Nullable decoderConfig,
CGSize dimensions);
@interface XCWH264Encoder : NSObject
- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)new NS_UNAVAILABLE;
- (instancetype)initWithOutputHandler:(XCWH264EncoderOutputHandler)outputHandler NS_DESIGNATED_INITIALIZER;
- (void)encodePixelBuffer:(CVPixelBufferRef)pixelBuffer;
- (void)requestKeyFrame;
- (void)reconfigureForStreamQualityChange;
- (void)setClientForeground:(BOOL)foreground;
- (NSDictionary *)statsRepresentation;
- (void)invalidate;
@end
NS_ASSUME_NONNULL_END