|
MaxstARSDK
3.5.0
|
Classes | |
| enum | FlipDirection |
| enum | FocusMode |
Public Member Functions | |
| ResultCode | start (int cameraId, int width, int height) |
| void | stop () |
| void | setNewFrame (byte[] data, int length, int width, int height, ColorFormat format) |
| boolean | setFocusMode (FocusMode focusMode) |
| boolean | setFlashLightMode (boolean toggle) |
| boolean | setAutoWhiteBalanceLock (boolean toggle) |
| void | flipVideo (FlipDirection direction, boolean toggle) |
| List< String > | getParamList () |
| boolean | setParam (String paramKey, boolean paramValue) |
| boolean | setParam (String paramKey, int paramValue) |
| boolean | setParam (String paramKey, int min, int max) |
| boolean | setParam (String paramKey, String paramValue) |
| float [] | getProjectionMatrix () |
| float [] | getBackgroundPlaneProjectionMatrix () |
Static Public Member Functions | |
| static CameraDevice | getInstance () |
class for camera device handling
Definition at line 12 of file CameraDevice.java.
| void com.maxst.ar.CameraDevice.flipVideo | ( | FlipDirection | direction, |
| boolean | toggle | ||
| ) |
Flip video background
| direction | Flip direction |
| toggle | true for set, false for reset |
Definition at line 131 of file CameraDevice.java.
| float [] com.maxst.ar.CameraDevice.getBackgroundPlaneProjectionMatrix | ( | ) |
Get projection matrix for background plane rendering
Definition at line 197 of file CameraDevice.java.
| List<String> com.maxst.ar.CameraDevice.getParamList | ( | ) |
Get supported parameter key list
Definition at line 139 of file CameraDevice.java.
| float [] com.maxst.ar.CameraDevice.getProjectionMatrix | ( | ) |
Get projection matrix. This is used for augmented objects
Definition at line 188 of file CameraDevice.java.
| boolean com.maxst.ar.CameraDevice.setAutoWhiteBalanceLock | ( | boolean | toggle | ) |
Set auto white balance lock
| toggle | true : lock, false : unlock wb lock |
Definition at line 122 of file CameraDevice.java.
| boolean com.maxst.ar.CameraDevice.setFlashLightMode | ( | boolean | toggle | ) |
Set flash light mode
| toggle | true : Turn on light, false : Turn off light |
Definition at line 113 of file CameraDevice.java.
| boolean com.maxst.ar.CameraDevice.setFocusMode | ( | FocusMode | focusMode | ) |
Set camera focus mode
| focusMode | camera focus mode |
Definition at line 104 of file CameraDevice.java.
| void com.maxst.ar.CameraDevice.setNewFrame | ( | byte [] | data, |
| int | length, | ||
| int | width, | ||
| int | height, | ||
| ColorFormat | 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 87 of file CameraDevice.java.
| boolean com.maxst.ar.CameraDevice.setParam | ( | String | paramKey, |
| boolean | paramValue | ||
| ) |
Set camera parameter.
| paramKey | Parameter key |
| paramValue | Parameter value |
Definition at line 149 of file CameraDevice.java.
| boolean com.maxst.ar.CameraDevice.setParam | ( | String | paramKey, |
| int | paramValue | ||
| ) |
Set camera parameter.
| paramKey | Parameter key |
| paramValue | Parameter value |
Definition at line 159 of file CameraDevice.java.
| boolean com.maxst.ar.CameraDevice.setParam | ( | String | paramKey, |
| int | min, | ||
| int | max | ||
| ) |
Set camera parameter with range value
| paramKey | Parameter key |
| min | Parameter min value |
| max | Parameter max value |
Definition at line 170 of file CameraDevice.java.
| boolean com.maxst.ar.CameraDevice.setParam | ( | String | paramKey, |
| String | paramValue | ||
| ) |
Set camera parameter.
| paramKey | Parameter key (white-balance, etc) |
| paramValue | Parameter value |
Definition at line 180 of file CameraDevice.java.
| ResultCode com.maxst.ar.CameraDevice.start | ( | int | cameraId, |
| int | width, | ||
| int | height | ||
| ) |
Start camera preview
| cameraId | 0 is rear camera, 1 is face camera |
| width | prefer camera width |
| height | prefer camera height |
Definition at line 67 of file CameraDevice.java.
| void com.maxst.ar.CameraDevice.stop | ( | ) |
Stop camera preview
Definition at line 75 of file CameraDevice.java.
1.8.14