WVR_StartCamera

WVR_EXPORT bool WVR_StartCamera(WVR_CameraInfo_t * info)

Function to start camera on HMD and get the basic camera information.

This API will get supporting and suitable frame size and camera information from DeviceService (HMD). Currently, we define only HMD devices will have camera. This API must be called by main thread.

Parameters
  • WVR_CameraInfo_t -

    comprised of camera image information

Return Value
  • true -

    starting camera is success,

  • false -

    starting camera fail

How to use

Here is an example for the function:

#include <wvr/wvr_camera.h>

WVR_CameraInfo cameraInfo;
bool ret = false;
ret = WVR_StartCamera(&cameraInfo);
if (ret == flase) {
    // start camera failed!
}
// cameraInfo will be filled with camera raw image information