class for camera device handling
More...
#import <MasCameraDevice.h>
class for camera device handling
◆ MasFlipDirection
Video data flip direction @constant HORIZONTAL Flip video horizontally @constant VERTICAL Flip video vertically.
Enumerator |
---|
HORIZONTAL | |
VERTICAL | |
◆ MasFocusMode
Camera focus mode @constant FOCUS_MODE_CONTINUOUS_AUTO Continuous focus mode. This focus mode is proper for AR @constant FOCUS_MODE_AUTO Scingle auto focus mode.
Enumerator |
---|
FOCUS_MODE_CONTINUOUS_AUTO | |
FOCUS_MODE_AUTO | |
◆ MasResultCode
Camera Open State @constant Success @constant CameraPermissionIsNotResolved @constant CameraDevicedRestriced @constant CameraPermissionIsNotGranted @constant CameraAlreadyOpened @constant TrackerAlreadyStarted @constant 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
◆ getMaxZoomValue()
Get Camera Device Max Zoom value.
- Returns
- Max Zoom value.
◆ 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.
◆ setCalibrationData:()
- (void) setCalibrationData: |
|
(NSString *) |
filePath |
|
◆ 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 (Free, Enterprise license key can activate this interface)
- Parameters
-
data | image data bytes. |
length | image length |
width | image width |
height | image height |
format | image format |
◆ setNewFrameAndTimestamp:length:width:height:format:timestamp:()
- (void) setNewFrameAndTimestamp: |
|
(Byte *) |
data |
length: |
|
(int) |
length |
width: |
|
(int) |
width |
height: |
|
(int) |
height |
format: |
|
(MasColorFormat) |
format |
timestamp: |
|
(unsigned long long int) |
timestamp |
|
|
| |
Set new image data for tracking and background rendering (Free, Enterprise license key can activate this interface)
- Parameters
-
data | image data bytes. |
length | image length |
width | image width |
height | image height |
format | image format |
timestamp | image timestamp |
◆ setZoom:()
- (bool) setZoom: |
|
(float) |
zoomScale |
|
Set Camera Zoom Scale.
- Parameters
-
- Returns
- result Zoom.
◆ 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: