1
0
mirror of https://github.com/danog/Telegram.git synced 2025-01-05 20:48:36 +01:00
Telegram/thirdparty/PGPhotoEditor/PGPhotoEditorRawDataOutput.h

33 lines
836 B
C
Raw Normal View History

2015-10-01 18:19:52 +02:00
#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;
}
2016-02-25 01:03:51 +01:00
@property (nonatomic, readonly) GLubyte *rawBytesForImage;
@property (nonatomic, copy) void(^newFrameAvailableBlock)(void);
@property (nonatomic, assign) bool enabled;
2015-10-01 18:19:52 +02:00
@property (nonatomic, assign) CGSize imageSize;
- (instancetype)initWithImageSize:(CGSize)newImageSize resultsInBGRAFormat:(bool)resultsInBGRAFormat;
- (PGByteColorVector)colorAtLocation:(CGPoint)locationInImage;
- (NSUInteger)bytesPerRowInOutput;
- (void)lockFramebufferForReading;
- (void)unlockFramebufferAfterReading;
@end