-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMCaptureImageControllerBase.h
More file actions
46 lines (36 loc) · 2.19 KB
/
CMCaptureImageControllerBase.h
File metadata and controls
46 lines (36 loc) · 2.19 KB
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
#import "RequiredAppUIKit.h"
#import "CMCaptureImageModel.h"
@class CMCaptureImageControllerBase;
@protocol CMCaptureImageControllerDelegate
@optional
- (void)captureController:(CMCaptureImageControllerBase*)controller outputCaptureImage:(CMCaptureImageModel*)image sampleBuffer:(CMSampleBufferRef)sampleBuffer;
- (void)captureController:(CMCaptureImageControllerBase*)controller outputCaptureImage:(CMCaptureImageModel*)image imageBuffer:(CVImageBufferRef)imageBuffer;
@end
@interface CMCaptureImageControllerBase : NSObject
ARC_BEGIN_IVAR_DECL(CMCaptureImageControllerBase)
ARC_IVAR_DISPATCHQ(captureVideoQueue,__captureVideoQueue);
@public
ARC_IVAR_DECLAREOUTLET(id<CMCaptureImageControllerDelegate>,delegate);
ARC_IVAR_DECLAREOUTLET(CMCaptureImageModel*,outletCaptureStillModel);
ARC_IVAR_DECLAREOUTLET(CMCaptureImageModel*,outletCaptureVideoModel);
ARC_IVAR_DECLAREOUTLET(id,outletCapturePreviewView);
ARC_END_IVAR_DECL(CMCaptureImageControllerBase)
@property (ARC_PROP_OUTLET) IBOutlet id<CMCaptureImageControllerDelegate> delegate;
@property (ARC_PROP_OUTLET) IBOutlet CMCaptureImageModel* outletCaptureStillModel;
@property (ARC_PROP_OUTLET) IBOutlet CMCaptureImageModel* outletCaptureVideoModel;
@property (ARC_PROP_OUTLET) IBOutlet id outletCapturePreviewView;
@property (readonly) dispatch_queue_t captureVideoQueue;
@property (readonly) dispatch_queue_t captureSavingQueue;
@property (assign,readonly) BOOL captureSetupNeeded;
@property (assign,readonly) BOOL captureTeardownNeeded;
- (void)captureSetup;
- (void)captureTeardown;
- (IBAction)actionCaptureSnapshot:(id)sender;
- (NSString*)captureStillPictureFileName;
- (void)captureDisplayErrorOnMainQueue:(NSError *)error messageTitle:(NSString *)messageTitle;
- (BOOL)captureRequirementNilError:(NSError*)error message:(NSString*)message;
- (void)captureSnapStillPictureFromSampleBuffer:(CMSampleBufferRef)imageDataSampleBuffer;
- (void)captureWriteImageData:(NSData*)imageData imageMetadata:(id)imageMetadata;
- (void)captureOutputImageUsingDelegate:(CMCaptureImageModel*)model sampleBuffer:(CMSampleBufferRef)sampleBuffer;
- (void)captureOutputImageUsingDelegate:(CMCaptureImageModel*)model imageBuffer:(CVImageBufferRef)imageBuffer;
@end