MaxstAR Native Android
|
Classes | |
enum | CameraApi |
enum | FlipDirection |
enum | FocusMode |
Public Member Functions | |
void | setCameraApi (CameraApi cameraApi) |
CameraApi | getCameraApi () |
ResultCode | start (int cameraId, int width, int height) |
ResultCode | stop () |
boolean | setNewFrame (byte[] data, int length, int width, int height, ColorFormat format) |
void | setCalibrationData (String path) |
boolean | setNewFrame (long data, int length, int width, int height, ColorFormat format) |
boolean | setNewFrameAndTimestamp (byte[] data, int length, int width, int height, ColorFormat format, long timestamp) |
boolean | setNewFrameAndTimestamp (long data, int length, int width, int height, ColorFormat format, long timestamp) |
boolean | setNewFrameAndPoseAndTimestamp (long data, int length, int width, int height, ColorFormat format, float[] pose, long timestamp) |
boolean | setNewFrameAndPoseAndTimestamp (byte[] data, int length, int width, int height, ColorFormat format, float[] pose, long timestamp) |
boolean | setFocusMode (FocusMode focusMode) |
boolean | setZoom (int zoomScale) |
int | getMaxZoomValue () |
boolean | setFlashLightMode (boolean toggle) |
boolean | setAutoWhiteBalanceLock (boolean toggle) |
void | flipVideo (FlipDirection direction, boolean toggle) |
boolean | isVideoFlipped (FlipDirection direction) |
String | getParam (String key) |
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[] | getBackgroundPlaneInfo () |
float[] | getBackgroundPlaneProjectionMatrix () |
void | setARCoreTexture () |
Static Public Member Functions | |
static CameraDevice | getInstance () |
class for camera device handling
void com.maxst.ar.CameraDevice.flipVideo | ( | FlipDirection | direction, |
boolean | toggle | ||
) |
Flip video background
direction | Flip direction |
toggle | true for set, false for reset |
float [] com.maxst.ar.CameraDevice.getBackgroundPlaneInfo | ( | ) |
Get information for background plane rendering
float [] com.maxst.ar.CameraDevice.getBackgroundPlaneProjectionMatrix | ( | ) |
Get projection matrix for background plane rendering
CameraApi com.maxst.ar.CameraDevice.getCameraApi | ( | ) |
Get used camera api value
int com.maxst.ar.CameraDevice.getMaxZoomValue | ( | ) |
Get Camera Device Max Zoom value.
String com.maxst.ar.CameraDevice.getParam | ( | String | key | ) |
Get supported parameter key
key | Parameter Key |
List<String> com.maxst.ar.CameraDevice.getParamList | ( | ) |
Get supported parameter key list
float [] com.maxst.ar.CameraDevice.getProjectionMatrix | ( | ) |
Get projection matrix. This is used for augmented objects
void com.maxst.ar.CameraDevice.setARCoreTexture | ( | ) |
Set Texutre To get the camera image
boolean com.maxst.ar.CameraDevice.setAutoWhiteBalanceLock | ( | boolean | toggle | ) |
Set auto white balance lock
toggle | true : lock, false : unlock wb lock |
void com.maxst.ar.CameraDevice.setCalibrationData | ( | String | path | ) |
Set calibration data to camera
void com.maxst.ar.CameraDevice.setCameraApi | ( | CameraApi | cameraApi | ) |
Select which camera api are used
cameraApi | camera 1 or camera 2 |
boolean com.maxst.ar.CameraDevice.setFlashLightMode | ( | boolean | toggle | ) |
Set flash light mode
toggle | true : Turn on light, false : Turn off light |
boolean com.maxst.ar.CameraDevice.setFocusMode | ( | FocusMode | focusMode | ) |
Set camera focus mode
focusMode | camera focus mode |
boolean 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 |
boolean com.maxst.ar.CameraDevice.setNewFrame | ( | long | data, |
int | length, | ||
int | width, | ||
int | height, | ||
ColorFormat | format | ||
) |
Set new image data for tracking and background rendering (Free, Enterprise license key can activate this interface)
data | image data native pointer address. |
length | image length |
width | image width |
height | image height |
format | image format |
boolean com.maxst.ar.CameraDevice.setNewFrameAndTimestamp | ( | byte[] | data, |
int | length, | ||
int | width, | ||
int | height, | ||
ColorFormat | format, | ||
long | timestamp | ||
) |
Set new image data for tracking and background rendering (Free, Enterprise license key can activate this interface)
data | image data bytes. |
length | image length |
width | image width |
height | image height |
format | image format |
timestamp | image timestamp |
boolean com.maxst.ar.CameraDevice.setNewFrameAndTimestamp | ( | long | data, |
int | length, | ||
int | width, | ||
int | height, | ||
ColorFormat | format, | ||
long | timestamp | ||
) |
Set new image data for tracking and background rendering (Free, Enterprise license key can activate this interface)
data | image data native pointer address. |
length | image length |
width | image width |
height | image height |
format | image format |
timestamp | image timestamp |
boolean com.maxst.ar.CameraDevice.setParam | ( | String | paramKey, |
boolean | paramValue | ||
) |
Set camera parameter.
paramKey | Parameter key |
paramValue | Parameter value |
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 |
boolean com.maxst.ar.CameraDevice.setParam | ( | String | paramKey, |
int | paramValue | ||
) |
Set camera parameter.
paramKey | Parameter key |
paramValue | Parameter value |
boolean com.maxst.ar.CameraDevice.setParam | ( | String | paramKey, |
String | paramValue | ||
) |
Set camera parameter.
paramKey | Parameter key (white-balance, etc) |
paramValue | Parameter value |
boolean com.maxst.ar.CameraDevice.setZoom | ( | int | zoomScale | ) |
Set Camera Zoom Scale
zoomScale | Zoom value |
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 |
ResultCode com.maxst.ar.CameraDevice.stop | ( | ) |
Stop camera preview