|
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | open ()=0 |
| Open the camera.
|
|
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | close ()=0 |
| Close the camera.
|
|
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | start (CameraMode cameraMode, CameraCallback *cb)=0 |
| Start the camera.
|
|
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | stop ()=0 |
| Stop the camera.
|
|
virtual uint32_t VUFORIA_DRIVER_CALLING_CONVENTION | getNumSupportedCameraModes ()=0 |
| Get the number of supported camera modes.
|
|
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | getSupportedCameraMode (uint32_t index, CameraMode *cameraMode)=0 |
| Get a camera mode from a certain index.
|
|
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | supportsExposureMode (ExposureMode exposureMode)=0 |
| Check whether a particular exposure mode is supported.
|
|
virtual ExposureMode VUFORIA_DRIVER_CALLING_CONVENTION | getExposureMode ()=0 |
| Get current exposure mode.
|
|
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | setExposureMode (ExposureMode exposureMode)=0 |
| Set the current exposure mode.
|
|
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | supportsExposureValue ()=0 |
| Check whether setting the exposure manually is supported.
|
|
virtual uint64_t VUFORIA_DRIVER_CALLING_CONVENTION | getExposureValueMin ()=0 |
| Get the minimum supported value for manual exposure.
|
|
virtual uint64_t VUFORIA_DRIVER_CALLING_CONVENTION | getExposureValueMax ()=0 |
| Get the maximum supported value for manual exposure.
|
|
virtual uint64_t VUFORIA_DRIVER_CALLING_CONVENTION | getExposureValue ()=0 |
| Get the current manual exposure value.
|
|
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | setExposureValue (uint64_t exposureTime)=0 |
| Set the current manual exposure value.
|
|
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | supportsFocusMode (FocusMode focusMode)=0 |
| Check whether a particular focus mode is supported.
|
|
virtual FocusMode VUFORIA_DRIVER_CALLING_CONVENTION | getFocusMode ()=0 |
| Get the current focus mode.
|
|
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | setFocusMode (FocusMode mode)=0 |
| Set the current focus mode.
|
|
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | supportsFocusValue ()=0 |
| Get whether setting manual focus distance is supported.
|
|
virtual float VUFORIA_DRIVER_CALLING_CONVENTION | getFocusValueMin ()=0 |
| Get the minimum supported value for manual focus distance.
|
|
virtual float VUFORIA_DRIVER_CALLING_CONVENTION | getFocusValueMax ()=0 |
| Get the maximum supported value for manual focus distance.
|
|
virtual float VUFORIA_DRIVER_CALLING_CONVENTION | getFocusValue ()=0 |
| Get the current manual focus distance.
|
|
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | setFocusValue (float focusValue)=0 |
| Set the current manual focus value.
|
|
virtual bool VUFORIA_DRIVER_CALLING_CONVENTION | processFramesOnThread () |
| Function called by Vuforia to determine whether it should create a separate thread to process frame data.
|
|
Interface used by Vuforia to interact with the external camera implementation.
- Note
- The sequence of events between Vuforia and the external camera implementation is as follows:
- Vuforia calls VuforiaDriver::createExternalCamera() when the driver capability includes CAMERA_IMAGE.
- The implementation creates an ExternalCamera instance and returns it to Vuforia.
- Vuforia calls ExternalCamera::open() on the returned instance.
- Vuforia discovers supported camera modes by iterating them by getting the number of modes with ExternalCamera::getNumSupportedCameraModes() and then iterates over the list with ExternalCamera::getSupportedCameraMode().
- Vuforia calls ExternalCamera::processFramesOnThread()
- Vuforia calls ExternalCamera::start(), which starts the flow of frames into the provided CameraCallback.
- On shutdown Vuforia calls -> ExternalCamera::stop() -> ExternalCamera::close() -> and finally VuforiaDriver::destroyExternalCamera().