-
Notifications
You must be signed in to change notification settings - Fork 1
/
v002GlitchFileReaderPlugIn.h
48 lines (37 loc) · 1.2 KB
/
v002GlitchFileReaderPlugIn.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
// v002CoreVideoGlitchPlugIn.h
// v002CoreVideoGlitch
//
// Created by vade on 8/18/08.
// Copyright (c) 2008 __MyCompanyName__. All rights reserved.
//
#import <Quartz/Quartz.h>
@interface v002GlitchFileReaderPlugIn : QCPlugIn
{
CVPixelBufferPoolRef cvBufferPool;
CVPixelBufferRef cvImageBuffer;
NSFileHandle * fileHandle;
NSMutableData* fileData;
NSNumber* fileDataLength;
NSUInteger width, height, rowBytes;
NSLock* lock;
}
@property (assign) BOOL inputgrayScale;
//@property (assign) BOOL inputAlphaChannel;
@property (assign) NSString* inputFilePath;
@property double inputFileReadOffset;
@property NSUInteger inputComponentWidthOffset;
@property double inputWidth;
@property double inputHeight;
@property (assign) id<QCPlugInOutputImageProvider> outputImage;
/*
Declare here the Obj-C 2.0 properties to be used as input and output ports for the plug-in e.g.
@property double inputFoo;
@property(assign) NSString* outputBar;
You can access their values in the appropriate plug-in methods using self.inputFoo or self.inputBar
*/
@end
@interface v002GlitchFileReaderPlugIn (Execution)
- (void) seekToFileOffsetInBackground:(NSNumber*) offset;
- (void) returnDataOnMainThread:(NSData*) data;
@end