mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-23 03:31:09 +00:00
22 lines
881 B
Objective-C
22 lines
881 B
Objective-C
#import <CoreMedia/CoreMedia.h>
|
|
#import <CoreVideo/CoreVideo.h>
|
|
#import <AVFoundation/AVFoundation.h>
|
|
|
|
@class TGVideoCameraRendererBuffer;
|
|
|
|
@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;
|
|
|
|
- (TGVideoCameraRendererBuffer *)copyRenderedPixelBuffer:(TGVideoCameraRendererBuffer *)pixelBuffer;
|
|
- (void)setPreviousPixelBuffer:(TGVideoCameraRendererBuffer *)previousPixelBuffer;
|
|
|
|
@end
|