mirror of
https://github.com/danog/Telegram.git
synced 2025-01-07 13:40:31 +01:00
33 lines
814 B
C
33 lines
814 B
C
|
#import <Foundation/Foundation.h>
|
||
|
#import "GPUImageContext.h"
|
||
|
|
||
|
typedef struct
|
||
|
{
|
||
|
GLubyte red;
|
||
|
GLubyte green;
|
||
|
GLubyte blue;
|
||
|
GLubyte alpha;
|
||
|
} PGByteColorVector;
|
||
|
|
||
|
@protocol GPURawDataProcessor;
|
||
|
|
||
|
@interface PGPhotoEditorRawDataOutput : NSObject <GPUImageInput>
|
||
|
{
|
||
|
GPUImageRotationMode inputRotation;
|
||
|
bool outputBGRA;
|
||
|
}
|
||
|
|
||
|
@property(readonly) GLubyte *rawBytesForImage;
|
||
|
@property(nonatomic, copy) void(^newFrameAvailableBlock)(void);
|
||
|
@property(nonatomic) BOOL enabled;
|
||
|
@property (nonatomic, assign) CGSize imageSize;
|
||
|
|
||
|
- (instancetype)initWithImageSize:(CGSize)newImageSize resultsInBGRAFormat:(bool)resultsInBGRAFormat;
|
||
|
|
||
|
- (PGByteColorVector)colorAtLocation:(CGPoint)locationInImage;
|
||
|
- (NSUInteger)bytesPerRowInOutput;
|
||
|
|
||
|
- (void)lockFramebufferForReading;
|
||
|
- (void)unlockFramebufferAfterReading;
|
||
|
|
||
|
@end
|