MaxstARSDK
All Classes Files Functions Variables Enumerations Enumerator Macros
MasCameraDevice.h
Go to the documentation of this file.
1 //
2 // MasCameraDevice.h
3 // MaxstAR
4 //
5 // Created by Kimseunglee on 2017. 11. 23..
6 // Copyright © 2017년 Maxst. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import "MasTrackedImage.h"
11 #import <simd/SIMD.h>
12 
16 @interface MasCameraDevice : NSObject
17 
24 typedef NS_ENUM(int, MasFocusMode) {
27 };
28 
35 typedef NS_ENUM(int, MasFlipDirection) {
37  VERTICAL = 1,
38 };
39 
51 typedef NS_ENUM(int, MasResultCode) {
52  Success = 0,
53 
58 
60 
61  UnknownError = 1000,
62 };
63 
71 - (MasResultCode) start:(int) cameraId width:(int) width height:(int) height;
72 
76 - (void) stop;
77 
81 - (int) getWidth;
82 
86 - (int) getHeight;
87 
91 - (bool) setFocusMode:(MasFocusMode) mode;
92 
96 - (bool) setFlashLightMode:(bool) toggle;
97 
101 - (bool) setAutoWhiteBalanceLock:(bool) toggle;
102 
108 - (void) flipVideo:(MasFlipDirection) direction toggle:(bool) toggle;
109 
114 - (NSMutableArray*) getParamList;
115 
122 - (bool) setParam:(NSString*) key toggle:(bool) toggle;
123 
130 - (bool) setParam:(NSString*) key value:(int) value;
131 
139 - (bool) setParam:(NSString*) key min:(int) min max:(int) max;
140 
147 - (bool) setParam:(NSString*) key valueString:(NSString*) value;
148 
157 - (void) setNewFrame:(Byte *) data length:(int) length width:(int) width height:(int) height format:(MasColorFormat) format;
158 
163 - (matrix_float4x4) getProjectionMatrix;
164 
169 - (matrix_float4x4) getBackgroundPlaneProjectionMatrix;
170 @end
Definition: MasCameraDevice.h:56
Definition: MasCameraDevice.h:61
Definition: MasCameraDevice.h:57
MasFlipDirection
Video data flip direction HORIZONTAL Flip video horizontally VERTICAL Flip video vertically...
Definition: MasCameraDevice.h:35
Definition: MasCameraDevice.h:54
Definition: MasCameraDevice.h:37
matrix_float4x4 getBackgroundPlaneProjectionMatrix()
Get projection matrix for background plane rendering.
Definition: MasCameraDevice.h:25
Definition: MasCameraDevice.h:52
Definition: MasCameraDevice.h:59
MasFocusMode
Camera focus mode FOCUS_MODE_CONTINUOUS_AUTO Continuous focus mode. This focus mode is proper for AR...
Definition: MasCameraDevice.h:24
MasResultCode
Camera Open State Success CameraPermissionIsNotResolved CameraDevicedRestriced CameraPermissionIs...
Definition: MasCameraDevice.h:51
Definition: MasCameraDevice.h:36
NSMutableArray * getParamList()
Get supported parameter key list.
Definition: MasCameraDevice.h:26
void stop()
Stop camera preview.
class for camera device handling
Definition: MasCameraDevice.h:16
Definition: MasCameraDevice.h:55
matrix_float4x4 getProjectionMatrix()
Get projection matrix. This is used for augmented objects projection and background rendering...