Interface used by Vuforia to interact with the external camera implementation.
The sequence of events between Vuforia and the external camera implementation is as follows:
Public Member Functions | |
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | open ()=0 |
Open the camera. More... | |
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | close ()=0 |
Close the camera. More... | |
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | start (CameraMode cameraMode, CameraCallback *cb)=0 |
Start the camera. More... | |
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | stop ()=0 |
Stops the camera. More... | |
virtual uint32_t VUFORIA_DRIVER_CALLING_CONVENTION | getNumSupportedCameraModes ()=0 |
Get the number of supported camera modes. More... | |
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | getSupportedCameraMode (uint32_t index, CameraMode *out)=0 |
Get a camera mode from a certain index. More... | |
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | supportsExposureMode (ExposureMode parameter)=0 |
Get whether a particular exposure mode is supported. More... | |
virtual ExposureMode VUFORIA_DRIVER_CALLING_CONVENTION | getExposureMode ()=0 |
Get current exposure mode. More... | |
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | setExposureMode (ExposureMode mode)=0 |
Set the current exposure mode. More... | |
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | supportsExposureValue ()=0 |
Get whether setting the exposure manually is supported. More... | |
virtual uint64_t VUFORIA_DRIVER_CALLING_CONVENTION | getExposureValueMin ()=0 |
Get the minimum supported value for manual exposure. More... | |
virtual uint64_t VUFORIA_DRIVER_CALLING_CONVENTION | getExposureValueMax ()=0 |
Get the maximum supported value for manual exposure. More... | |
virtual uint64_t VUFORIA_DRIVER_CALLING_CONVENTION | getExposureValue ()=0 |
Get the current manual exposure value. More... | |
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | setExposureValue (uint64_t exposureTime)=0 |
Set the current manual exposure value. More... | |
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | supportsFocusMode (FocusMode parameter)=0 |
Get whether a particular focus mode is supported. More... | |
virtual FocusMode VUFORIA_DRIVER_CALLING_CONVENTION | getFocusMode ()=0 |
Get the current focus mode. More... | |
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | setFocusMode (FocusMode mode)=0 |
Set the current focus mode. More... | |
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | supportsFocusValue ()=0 |
Get whether setting manual focus distance is supported. More... | |
virtual float VUFORIA_DRIVER_CALLING_CONVENTION | getFocusValueMin ()=0 |
Get the minimum supported value for manual focus distance. More... | |
virtual float VUFORIA_DRIVER_CALLING_CONVENTION | getFocusValueMax ()=0 |
Get the maximum supported value for manual focus distance. More... | |
virtual float VUFORIA_DRIVER_CALLING_CONVENTION | getFocusValue ()=0 |
Get the current manual focus distance. More... | |
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | setFocusValue (float value)=0 |
Set the current manual focus value. More... | |
|
pure virtual |
Open the camera.
After opening the camera, the supported video modes should be available to be queried with getNumSupportedCameraModes() and getSupportedCameraMode().
|
pure virtual |
Close the camera.
|
pure virtual |
Start the camera.
cameraMode | The requested mode that the camera should deliver the frames in. |
cb | Callback that the camera frames should be delivered to. |
|
pure virtual |
Stops the camera.
|
pure virtual |
Get the number of supported camera modes.
Should return the total number of supported camera modes. Vuforia uses this number then to query the camera modes with getSupportedCameraMode(), which iterates from 0 to totalNumber - 1.
|
pure virtual |
Get a camera mode from a certain index.
index | The index of the mode to get, in the range 0..getNumSupportedCameraModes()-1. |
out | On return, will be populated with the camera mode corresponding to the requested index. |
|
pure virtual |
Get whether a particular exposure mode is supported.
|
pure virtual |
Get current exposure mode.
|
pure virtual |
Set the current exposure mode.
mode | New exposure mode. |
|
pure virtual |
Get whether setting the exposure manually is supported.
|
pure virtual |
Get the minimum supported value for manual exposure.
|
pure virtual |
Get the maximum supported value for manual exposure.
|
pure virtual |
Get the current manual exposure value.
|
pure virtual |
Set the current manual exposure value.
exposureTime | New value for manual exposure. |
|
pure virtual |
Get whether a particular focus mode is supported.
|
pure virtual |
Get the current focus mode.
|
pure virtual |
Set the current focus mode.
mode | The new focus mode. |
|
pure virtual |
Get whether setting manual focus distance is supported.
|
pure virtual |
Get the minimum supported value for manual focus distance.
|
pure virtual |
Get the maximum supported value for manual focus distance.
|
pure virtual |
Get the current manual focus distance.
|
pure virtual |
Set the current manual focus value.
value | The new value for manual focus distance in millimeters. |