|
|
|
@ -41,27 +41,9 @@ |
|
|
|
|
|
|
|
|
|
@interface CvAbstractCamera : NSObject |
|
|
|
|
{ |
|
|
|
|
AVCaptureSession* captureSession; |
|
|
|
|
AVCaptureConnection* videoCaptureConnection; |
|
|
|
|
AVCaptureVideoPreviewLayer *captureVideoPreviewLayer; |
|
|
|
|
|
|
|
|
|
UIDeviceOrientation currentDeviceOrientation; |
|
|
|
|
|
|
|
|
|
BOOL cameraAvailable; |
|
|
|
|
BOOL captureSessionLoaded; |
|
|
|
|
BOOL running; |
|
|
|
|
BOOL useAVCaptureVideoPreviewLayer; |
|
|
|
|
|
|
|
|
|
AVCaptureDevicePosition defaultAVCaptureDevicePosition; |
|
|
|
|
AVCaptureVideoOrientation defaultAVCaptureVideoOrientation; |
|
|
|
|
NSString *const defaultAVCaptureSessionPreset; |
|
|
|
|
|
|
|
|
|
int defaultFPS; |
|
|
|
|
|
|
|
|
|
UIView* parentView; |
|
|
|
|
|
|
|
|
|
int imageWidth; |
|
|
|
|
int imageHeight; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@property (nonatomic, strong) AVCaptureSession* captureSession; |
|
|
|
@ -121,14 +103,6 @@ |
|
|
|
|
dispatch_queue_t videoDataOutputQueue; |
|
|
|
|
CALayer *customPreviewLayer; |
|
|
|
|
|
|
|
|
|
BOOL grayscaleMode; |
|
|
|
|
|
|
|
|
|
BOOL recordVideo; |
|
|
|
|
BOOL rotateVideo; |
|
|
|
|
AVAssetWriterInput* recordAssetWriterInput; |
|
|
|
|
AVAssetWriterInputPixelBufferAdaptor* recordPixelBufferAdaptor; |
|
|
|
|
AVAssetWriter* recordAssetWriter; |
|
|
|
|
|
|
|
|
|
CMTime lastSampleTime; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|