mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
20 lines
805 B
Objective-C
20 lines
805 B
Objective-C
#import <CoreMedia/CoreMedia.h>
|
|
#import <CoreVideo/CoreVideo.h>
|
|
#import <AVFoundation/AVFoundation.h>
|
|
|
|
@interface TGVideoCameraGLRenderer : NSObject
|
|
|
|
@property (nonatomic, readonly) __attribute__((NSObject)) CMFormatDescriptionRef outputFormatDescription;
|
|
@property (nonatomic, assign) AVCaptureVideoOrientation orientation;
|
|
@property (nonatomic, assign) bool mirror;
|
|
@property (nonatomic, assign) CGFloat opacity;
|
|
@property (nonatomic, readonly) bool hasPreviousPixelbuffer;
|
|
|
|
- (void)prepareForInputWithFormatDescription:(CMFormatDescriptionRef)inputFormatDescription outputRetainedBufferCountHint:(size_t)outputRetainedBufferCountHint;
|
|
- (void)reset;
|
|
|
|
- (CVPixelBufferRef)copyRenderedPixelBuffer:(CVPixelBufferRef)pixelBuffer;
|
|
- (void)setPreviousPixelBuffer:(CVPixelBufferRef)previousPixelBuffer;
|
|
|
|
@end
|