class for camera device handling
More...
#import <MasCameraDevice.h>
class for camera device handling
◆ MasFlipDirection
Video data flip direction HORIZONTAL Flip video horizontally VERTICAL Flip video vertically.
Enumerator |
---|
HORIZONTAL | |
VERTICAL | |
◆ MasFocusMode
Camera focus mode FOCUS_MODE_CONTINUOUS_AUTO Continuous focus mode. This focus mode is proper for AR FOCUS_MODE_AUTO Scingle auto focus mode.
Enumerator |
---|
FOCUS_MODE_CONTINUOUS_AUTO | |
FOCUS_MODE_AUTO | |
◆ MasResultCode
Camera Open State Success CameraPermissionIsNotResolved CameraDevicedRestriced CameraPermissionIsNotGranted CameraAlreadyOpened TrackerAlreadyStarted UnknownError.
Enumerator |
---|
Success | |
CameraPermissionIsNotResolved | |
CameraDevicedRestriced | |
CameraPermissionIsNotGranted | |
CameraAlreadyOpened | |
TrackerAlreadyStarted | |
UnknownError | |
◆ flipVideo:toggle:()
Flip video.
- Parameters
-
direction | Flip direction |
toggle | true for set, false for reset |
◆ getBackgroundPlaneProjectionMatrix()
- (matrix_float4x4) getBackgroundPlaneProjectionMatrix |
|
|
|
Get projection matrix for background plane rendering.
- Returns
- 4x4 matrix (Column major)
◆ getHeight()
- Returns
- camera preview height
◆ getParamList()
- (NSMutableArray*) getParamList |
|
|
|
Get supported parameter key list.
- Returns
- Parameter key list
◆ getProjectionMatrix()
- (matrix_float4x4) getProjectionMatrix |
|
|
|
Get projection matrix. This is used for augmented objects projection and background rendering.
- Returns
- 4x4 matrix (Column major)
◆ getWidth()
- Returns
- camera preview width
◆ setAutoWhiteBalanceLock:()
- (bool) setAutoWhiteBalanceLock: |
|
(bool) |
toggle |
|
Turn on/off auto white balance lock.
◆ setFlashLightMode:()
- (bool) setFlashLightMode: |
|
(bool) |
toggle |
|
◆ setFocusMode:()
- Returns
- true if focus setting success
◆ setNewFrame:length:width:height:format:()
- (void) setNewFrame: |
|
(Byte *) |
data |
length: |
|
(int) |
length |
width: |
|
(int) |
width |
height: |
|
(int) |
height |
format: |
|
(MasColorFormat) |
format |
|
|
| |
Set new image data for tracking and background rendering (Only enterprise license key can activate this interface)
- Parameters
-
data | image data bytes. |
length | image length |
width | image width |
height | image height |
format | image format |
◆ setParam:min:max:()
- (bool) setParam: |
|
(NSString *) |
key |
min: |
|
(int) |
min |
max: |
|
(int) |
max |
|
|
| |
Set camera parameter (Android only supported now)
- Parameters
-
key | Parameter key |
min | Parameter min value |
max | Parameter max value |
- Returns
- True if setting success
◆ setParam:toggle:()
- (bool) setParam: |
|
(NSString *) |
key |
toggle: |
|
(bool) |
toggle |
|
|
| |
Set camera parameter (Android only supported now)
- Parameters
-
key | Parameter key |
toggle | Parameter value |
- Returns
- True if setting success
◆ setParam:value:()
- (bool) setParam: |
|
(NSString *) |
key |
value: |
|
(int) |
value |
|
|
| |
Set camera parameter (Android only supported now)
- Parameters
-
key | Parameter key |
value | Parameter value |
- Returns
- True if setting success
◆ setParam:valueString:()
- (bool) setParam: |
|
(NSString *) |
key |
valueString: |
|
(NSString *) |
value |
|
|
| |
Set camera parameter (Android only supported now)
- Parameters
-
key | Parameter key |
value | Parameter value |
- Returns
- True if setting success
◆ start:width:height:()
- (MasResultCode) start: |
|
(int) |
cameraId |
width: |
|
(int) |
width |
height: |
|
(int) |
height |
|
|
| |
Start camera preview.
- Parameters
-
cameraId | 0 is rear camera, 1 is face camera. camera index may depends on device. |
width | prefer camera width |
height | prefer camera height |
- Returns
- MasResultCode
◆ stop()
The documentation for this class was generated from the following file: