Files
documents-ocr-ios/Example/Pods/GPUImage/framework/Source/GPUImageRawDataOutput.h
T
2016-09-27 10:07:35 +03:00

45 lines
1.1 KiB
Objective-C
Executable File

#import <Foundation/Foundation.h>
#import "GPUImageContext.h"
struct GPUByteColorVector {
GLubyte red;
GLubyte green;
GLubyte blue;
GLubyte alpha;
};
typedef struct GPUByteColorVector GPUByteColorVector;
@protocol GPUImageRawDataProcessor;
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
@interface GPUImageRawDataOutput : NSObject <GPUImageInput> {
CGSize imageSize;
GPUImageRotationMode inputRotation;
BOOL outputBGRA;
}
#else
@interface GPUImageRawDataOutput : NSObject <GPUImageInput> {
CGSize imageSize;
GPUImageRotationMode inputRotation;
BOOL outputBGRA;
}
#endif
@property(readonly) GLubyte *rawBytesForImage;
@property(nonatomic, copy) void(^newFrameAvailableBlock)(void);
@property(nonatomic) BOOL enabled;
// Initialization and teardown
- (id)initWithImageSize:(CGSize)newImageSize resultsInBGRAFormat:(BOOL)resultsInBGRAFormat;
// Data access
- (GPUByteColorVector)colorAtLocation:(CGPoint)locationInImage;
- (NSUInteger)bytesPerRowInOutput;
- (void)setImageSize:(CGSize)newImageSize;
- (void)lockFramebufferForReading;
- (void)unlockFramebufferAfterReading;
@end