MaxstAR Unity
|
class for camera device handling More...
Public Types | |
enum | FocusMode { FocusMode.FOCUS_MODE_CONTINUOUS_AUTO = 1, FocusMode.FOCUS_MODE_AUTO = 2 } |
Camera focus mode More... | |
enum | CameraType { CameraType.Rear = 0, CameraType.Face = 1 } |
Supported camera type (Mobile only) More... | |
enum | CameraResolution { CameraResolution.Resolution640x480, CameraResolution.Resolution1280x720, CameraResolution.Resolution1920x1080 } |
Supported camera resolution More... | |
enum | FlipDirection { FlipDirection.HORIZONTAL = 0, FlipDirection.VERTICAL = 1 } |
Flip video More... | |
Public Member Functions | |
ResultCode | Start () |
Start camera preview More... | |
bool | SetNewFrame (byte[] data, int length, int width, int height, ColorFormat format) |
Set external camera image to AR engine.(Free, Enterprise license key can activate this interface. Mobile only supported) More... | |
bool | SetNewFrame (ulong data, int length, int width, int height, ColorFormat format) |
Set external camera image to AR engine.(Free, Enterprise license key can activate this interface. Mobile only supported) More... | |
bool | SetNewFrameAndTimestamp (byte[] data, int length, int width, int height, ColorFormat format, ulong timestamp) |
Set external camera image and timestamp to AR engine.(Free, Enterprise license key can activate this interface. Mobile only supported) More... | |
bool | SetNewFrameAndTimestamp (ulong data, int length, int width, int height, ColorFormat format, ulong timestamp) |
Set external camera image and timestamp to AR engine.(Free, Enterprise license key can activate this interface. Mobile only supported) More... | |
bool | SetFocusMode (FocusMode focusMode) |
Set camera focus mode More... | |
bool | SetFlashLightMode (bool toggle) |
Turn on/off flash light More... | |
bool | SetAutoWhiteBalanceLock (bool toggle) |
Toggle auto white balance lock (Android only supported now) More... | |
void | FlipVideo (FlipDirection direction, bool on) |
Flip video background More... | |
bool | IsVideoFlipped (FlipDirection direction) |
bool | SetZoom (float zoomValue) |
Set Camera Zoom Scale More... | |
float | getMaxZoomValue () |
Get Camera Device Max Zoom value. More... | |
List< string > | GetParamList () |
Get parameter key list (Android only supported now) More... | |
bool | SetParam (string key, bool boolTypeValue) |
Set camera parameter (Android only supported now) More... | |
bool | SetParam (string key, int intTypeValue) |
Set camera parameter (Android only supported now) More... | |
bool | SetParam (string key, int min, int max) |
Set camera parameter (Android only supported now) More... | |
bool | SetParam (string key, string stringTypeValue) |
Set camera parameter (Android only supported now) More... | |
ResultCode | Stop () |
Stop camera preview More... | |
int | GetWidth () |
int | GetHeight () |
Matrix4x4 | GetProjectionMatrix () |
Get projection matrix More... | |
float[] | GetBackgroundPlaneInfo () |
Get background plane info More... | |
bool | IsFlipHorizontal () |
Get flip state More... | |
bool | IsFlipVertical () |
Get flip state More... | |
bool | CheckCameraMove (TrackedImage image) |
void | SetARCoreTexture () |
Static Public Member Functions | |
static CameraDevice | GetInstance () |
Get a CameraDevice instance. More... | |
class for camera device handling
|
strong |
|
strong |
|
strong |
|
strong |
void maxstAR.CameraDevice.FlipVideo | ( | FlipDirection | direction, |
bool | on | ||
) |
Flip video background
direction | Flip direction |
on | True to set. False to rest |
float [] maxstAR.CameraDevice.GetBackgroundPlaneInfo | ( | ) |
Get background plane info
int maxstAR.CameraDevice.GetHeight | ( | ) |
|
static |
Get a CameraDevice instance.
float maxstAR.CameraDevice.getMaxZoomValue | ( | ) |
Get Camera Device Max Zoom value.
List<string> maxstAR.CameraDevice.GetParamList | ( | ) |
Get parameter key list (Android only supported now)
Matrix4x4 maxstAR.CameraDevice.GetProjectionMatrix | ( | ) |
Get projection matrix
int maxstAR.CameraDevice.GetWidth | ( | ) |
bool maxstAR.CameraDevice.IsFlipHorizontal | ( | ) |
Get flip state
bool maxstAR.CameraDevice.IsFlipVertical | ( | ) |
Get flip state
bool maxstAR.CameraDevice.SetAutoWhiteBalanceLock | ( | bool | toggle | ) |
Toggle auto white balance lock (Android only supported now)
bool maxstAR.CameraDevice.SetFlashLightMode | ( | bool | toggle | ) |
Turn on/off flash light
bool maxstAR.CameraDevice.SetFocusMode | ( | FocusMode | focusMode | ) |
Set camera focus mode
focusMode |
bool maxstAR.CameraDevice.SetNewFrame | ( | byte[] | data, |
int | length, | ||
int | width, | ||
int | height, | ||
ColorFormat | format | ||
) |
Set external camera image to AR engine.(Free, Enterprise license key can activate this interface. Mobile only supported)
data | Byte array of camera image |
length | Lenght of data buffer |
width | Width of camera image |
height | Height of camera image |
format | Color format |
bool maxstAR.CameraDevice.SetNewFrame | ( | ulong | data, |
int | length, | ||
int | width, | ||
int | height, | ||
ColorFormat | format | ||
) |
Set external camera image to AR engine.(Free, Enterprise license key can activate this interface. Mobile only supported)
data | Native address of camera image |
length | Lenght of data buffer |
width | Width of camera image |
height | Height of camera image |
format | Color format |
bool maxstAR.CameraDevice.SetNewFrameAndTimestamp | ( | byte[] | data, |
int | length, | ||
int | width, | ||
int | height, | ||
ColorFormat | format, | ||
ulong | timestamp | ||
) |
Set external camera image and timestamp to AR engine.(Free, Enterprise license key can activate this interface. Mobile only supported)
data | Byte array of camera image |
length | Lenght of data buffer |
width | Width of camera image |
height | Height of camera image |
format | Color format |
timestamp | Timestamp |
bool maxstAR.CameraDevice.SetNewFrameAndTimestamp | ( | ulong | data, |
int | length, | ||
int | width, | ||
int | height, | ||
ColorFormat | format, | ||
ulong | timestamp | ||
) |
Set external camera image and timestamp to AR engine.(Free, Enterprise license key can activate this interface. Mobile only supported)
data | Native address of camera image |
length | Lenght of data buffer |
width | Width of camera image |
height | Height of camera image |
format | Color format |
timestamp | Timestamp |
bool maxstAR.CameraDevice.SetParam | ( | string | key, |
bool | boolTypeValue | ||
) |
Set camera parameter (Android only supported now)
key | Parameter key |
boolTypeValue | Parameter value |
bool maxstAR.CameraDevice.SetParam | ( | string | key, |
int | intTypeValue | ||
) |
Set camera parameter (Android only supported now)
key | Parameter key |
intTypeValue | Parameter value |
bool maxstAR.CameraDevice.SetParam | ( | string | key, |
int | min, | ||
int | max | ||
) |
Set camera parameter (Android only supported now)
key | Parameter key |
min | min value |
max | min value |
bool maxstAR.CameraDevice.SetParam | ( | string | key, |
string | stringTypeValue | ||
) |
Set camera parameter (Android only supported now)
key | Parameter key |
stringTypeValue | Parameter value |
bool maxstAR.CameraDevice.SetZoom | ( | float | zoomValue | ) |
Set Camera Zoom Scale
zoomValue | zoomScale Zoom value |
ResultCode maxstAR.CameraDevice.Start | ( | ) |
Start camera preview
ResultCode maxstAR.CameraDevice.Stop | ( | ) |
Stop camera preview