MaxstARSDK  4.1.x
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) {
36  HORIZONTAL = 0,
37  VERTICAL = 1,
38 };
39 
51 typedef NS_ENUM(int, MasResultCode) {
52  Success = 0,
53 
54  CameraPermissionIsNotResolved = 100,
55  CameraDevicedRestriced = 101,
56  CameraPermissionIsNotGranted = 102,
57  CameraAlreadyOpened = 103,
58 
59  TrackerAlreadyStarted = 200,
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 
98 - (bool)setZoom:(float)zoomScale;
99 
104 - (int)getMaxZoomValue;
105 
109 - (bool)setFlashLightMode:(bool)toggle;
110 
114 - (bool)setAutoWhiteBalanceLock:(bool)toggle;
115 
121 - (void)flipVideo:(MasFlipDirection)direction toggle:(bool)toggle;
122 
123 - (void)setCalibrationData:(NSString *)filePath;
124 
133 - (void)setNewFrame:(Byte *)data length:(int)length width:(int)width height:(int)height format:(MasColorFormat)format;
134 
144 - (void)setNewFrameAndTimestamp:(Byte *)data length:(int)length width:(int)width height:(int)height format:(MasColorFormat)format timestamp:(unsigned long long int)timestamp;
145 
150 - (matrix_float4x4)getProjectionMatrix;
151 
156 - (matrix_float4x4)getBackgroundPlaneProjectionMatrix;
157 @end
MasFlipDirection
Video data flip direction @constant HORIZONTAL Flip video horizontally @constant VERTICAL Flip video ...
Definition: MasCameraDevice.h:35
Definition: MasCameraDevice.h:25
MasResultCode
Camera Open State @constant Success @constant CameraPermissionIsNotResolved @constant CameraDevicedRe...
Definition: MasCameraDevice.h:51
Definition: MasCameraDevice.h:26
class for camera device handling
Definition: MasCameraDevice.h:16