|
MaxstARSDK
3.5.0
|
class for camera device handling More...
#import <MasCameraDevice.h>
Instance Methods | |
| (MasResultCode) | - start:width:height: |
| Start camera preview. More... | |
| (void) | - stop |
| Stop camera preview. | |
| (int) | - getWidth |
| (int) | - getHeight |
| (bool) | - setFocusMode: |
| (bool) | - setFlashLightMode: |
| Turn on/off flash light. | |
| (bool) | - setAutoWhiteBalanceLock: |
| Turn on/off auto white balance lock. | |
| (void) | - flipVideo:toggle: |
| Flip video. More... | |
| (NSMutableArray *) | - getParamList |
| Get supported parameter key list. More... | |
| (bool) | - setParam:toggle: |
| Set camera parameter (Android only supported now) More... | |
| (bool) | - setParam:value: |
| Set camera parameter (Android only supported now) More... | |
| (bool) | - setParam:min:max: |
| Set camera parameter (Android only supported now) More... | |
| (bool) | - setParam:valueString: |
| Set camera parameter (Android only supported now) More... | |
| (void) | - setNewFrame:length:width:height:format: |
| Set new image data for tracking and background rendering (Only enterprise license key can activate this interface) More... | |
| (matrix_float4x4) | - getProjectionMatrix |
| Get projection matrix. This is used for augmented objects projection and background rendering. More... | |
| (matrix_float4x4) | - getBackgroundPlaneProjectionMatrix |
| Get projection matrix for background plane rendering. More... | |
Protected Member Functions | |
| (typedef) | - NS_ENUM |
| (typedef) | - NS_ENUM |
| (typedef) | - NS_ENUM |
class for camera device handling
Definition at line 16 of file MasCameraDevice.h.
| - (void) flipVideo: | (MasFlipDirection) | direction | |
| toggle: | (bool) | toggle | |
Flip video.
| direction | Flip direction |
| toggle | true for set, false for reset |
Definition at line 54 of file MasCameraDevice.mm.
| - (matrix_float4x4) getBackgroundPlaneProjectionMatrix |
Get projection matrix for background plane rendering.
Definition at line 92 of file MasCameraDevice.mm.
| - (int) getHeight |
Definition at line 42 of file MasCameraDevice.mm.
| - (NSMutableArray *) getParamList |
Get supported parameter key list.
Definition at line 58 of file MasCameraDevice.mm.
| - (matrix_float4x4) getProjectionMatrix |
Get projection matrix. This is used for augmented objects projection and background rendering.
Definition at line 88 of file MasCameraDevice.mm.
| - (int) getWidth |
Definition at line 39 of file MasCameraDevice.mm.
| - (bool) setFocusMode: | (MasFocusMode) | mode |
Definition at line 45 of file MasCameraDevice.mm.
| - (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)
| data | image data bytes. |
| length | image length |
| width | image width |
| height | image height |
| format | image format |
Definition at line 85 of file MasCameraDevice.mm.
| - (bool) setParam: | (NSString*) | key | |
| min: | (int) | min | |
| max: | (int) | max | |
Set camera parameter (Android only supported now)
| key | Parameter key |
| min | Parameter min value |
| max | Parameter max value |
Definition at line 76 of file MasCameraDevice.mm.
| - (bool) setParam: | (NSString*) | key | |
| toggle: | (bool) | toggle | |
Set camera parameter (Android only supported now)
| key | Parameter key |
| toggle | Parameter value |
Definition at line 68 of file MasCameraDevice.mm.
| - (bool) setParam: | (NSString*) | key | |
| value: | (int) | value | |
Set camera parameter (Android only supported now)
| key | Parameter key |
| value | Parameter value |
Definition at line 72 of file MasCameraDevice.mm.
| - (bool) setParam: | (NSString*) | key | |
| valueString: | (NSString*) | value | |
Set camera parameter (Android only supported now)
| key | Parameter key |
| value | Parameter value |
Definition at line 80 of file MasCameraDevice.mm.
| - (MasResultCode) start: | (int) | cameraId | |
| width: | (int) | width | |
| height: | (int) | height | |
Start camera preview.
| cameraId | 0 is rear camera, 1 is face camera. camera index may depends on device. |
| width | prefer camera width |
| height | prefer camera height |
Definition at line 33 of file MasCameraDevice.mm.
1.8.14