SLProject  4.3.020
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SENSiOSCameraDelegate.h
Go to the documentation of this file.
1 #ifndef SENS_IOSCAMERA_DELEGATE_H
2 #define SENS_IOSCAMERA_DELEGATE_H
3 
4 #import <Foundation/Foundation.h>
5 #import <AVFoundation/AVCaptureOutput.h> // Allows us to use AVCaptureVideoDataOutputSampleBufferDelegate
6 #import <simd/matrix_types.h>
7 
8 #include <vector>
9 #include <SENSCamera.h>
10 
11 @interface SENSiOSCameraDelegate : NSObject<AVCaptureVideoDataOutputSampleBufferDelegate>
12 
13 - (BOOL)startCamera:(NSString*)deviceId
14  withWidth:(int)width
15  andHeight:(int)height
16  autoFocusState:(BOOL)autoFocusEnabled
17  videoStabilizationState:(BOOL)videoStabilizationEnabled
18  intrinsicsState:(BOOL)provideIntrinsics;
19 - (BOOL)stopCamera;
20 
22 
23 @property (nonatomic, assign) std::function<void(unsigned char*, int, int, matrix_float3x3*)> updateCB;
24 @property (nonatomic, assign) std::function<void(bool)> permissionCB;
25 
26 @end
27 
28 #endif
std::function< void(unsigned char *, int, int, matrix_float3x3 *)> updateCB
SENSCaptureProps retrieveCaptureProperties()
std::function< void(bool)> permissionCB