WVR_GetCameraIntrinsic

WVR_EXPORT bool WVR_GetCameraIntrinsic(WVR_CameraPosition position, WVR_CameraIntrinsic_t * params)

Function to get camera intrinsic parameters. These parameters depends on camera hardware.

This API will return the hardware related camera parameters, this should by supported by your HMD device service.

Parameters
  • WVR_CameraPosition -

    If you have dual camera on HMD, get the left/right camera intrinsic.

  • WVR_CameraIntrinsic_t -

    Return camera intrinsic.

Return Value
  • true -

    The camera parameter is valid.

  • false -

    The camera parameter is not supported on your device.

How to use

Here is an example for the function:

#include <wvr/wvr_camera.h>

WVR_CameraIntrinsic cameraIntrinsic;
bool ret = false;
ret = WVR_GetCameraIntrinsic(WVR_CameraPosition_Right, &cameraIntrinsic);