class for camera device handling
More...
#import <MasCameraDevice.h>
|
|
(typedef) | - NS_ENUM |
| |
|
(typedef) | - NS_ENUM |
| |
|
(typedef) | - NS_ENUM |
| |
class for camera device handling
◆ flipVideo:toggle:()
| - (void) flipVideo: |
|
(MasFlipDirection) |
direction |
| toggle: |
|
(bool) |
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
◆ setFocusMode:()
| - (bool) setFocusMode: |
|
(MasFocusMode) |
mode |
|
- 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
The documentation for this class was generated from the following files: