Class CVRTrackedCamera
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.OpenVR.Headers
Assembly: cs.temp.dll.dll
Syntax
public class CVRTrackedCamera
Methods
AcquireVideoStreamingService(UInt32, ref UInt64)
Declaration
public EVRTrackedCameraError AcquireVideoStreamingService(uint nDeviceIndex, ref ulong pHandle)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | nDeviceIndex | |
UInt64 | pHandle |
Returns
Type | Description |
---|---|
EVRTrackedCameraError |
GetCameraErrorNameFromEnum(EVRTrackedCameraError)
Declaration
public string GetCameraErrorNameFromEnum(EVRTrackedCameraError eCameraError)
Parameters
Type | Name | Description |
---|---|---|
EVRTrackedCameraError | eCameraError |
Returns
Type | Description |
---|---|
String |
GetCameraFrameSize(UInt32, EVRTrackedCameraFrameType, ref UInt32, ref UInt32, ref UInt32)
Declaration
public EVRTrackedCameraError GetCameraFrameSize(uint nDeviceIndex, EVRTrackedCameraFrameType eFrameType, ref uint pnWidth, ref uint pnHeight, ref uint pnFrameBufferSize)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | nDeviceIndex | |
EVRTrackedCameraFrameType | eFrameType | |
UInt32 | pnWidth | |
UInt32 | pnHeight | |
UInt32 | pnFrameBufferSize |
Returns
Type | Description |
---|---|
EVRTrackedCameraError |
GetCameraIntrinsics(UInt32, UInt32, EVRTrackedCameraFrameType, ref HmdVector2_t, ref HmdVector2_t)
Declaration
public EVRTrackedCameraError GetCameraIntrinsics(uint nDeviceIndex, uint nCameraIndex, EVRTrackedCameraFrameType eFrameType, ref HmdVector2_t pFocalLength, ref HmdVector2_t pCenter)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | nDeviceIndex | |
UInt32 | nCameraIndex | |
EVRTrackedCameraFrameType | eFrameType | |
HmdVector2_t | pFocalLength | |
HmdVector2_t | pCenter |
Returns
Type | Description |
---|---|
EVRTrackedCameraError |
GetCameraProjection(UInt32, UInt32, EVRTrackedCameraFrameType, Single, Single, ref HmdMatrix44_t)
Declaration
public EVRTrackedCameraError GetCameraProjection(uint nDeviceIndex, uint nCameraIndex, EVRTrackedCameraFrameType eFrameType, float flZNear, float flZFar, ref HmdMatrix44_t pProjection)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | nDeviceIndex | |
UInt32 | nCameraIndex | |
EVRTrackedCameraFrameType | eFrameType | |
Single | flZNear | |
Single | flZFar | |
HmdMatrix44_t | pProjection |
Returns
Type | Description |
---|---|
EVRTrackedCameraError |
GetVideoStreamFrameBuffer(UInt64, EVRTrackedCameraFrameType, IntPtr, UInt32, ref CameraVideoStreamFrameHeader_t, UInt32)
Declaration
public EVRTrackedCameraError GetVideoStreamFrameBuffer(ulong hTrackedCamera, EVRTrackedCameraFrameType eFrameType, IntPtr pFrameBuffer, uint nFrameBufferSize, ref CameraVideoStreamFrameHeader_t pFrameHeader, uint nFrameHeaderSize)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | hTrackedCamera | |
EVRTrackedCameraFrameType | eFrameType | |
IntPtr | pFrameBuffer | |
UInt32 | nFrameBufferSize | |
CameraVideoStreamFrameHeader_t | pFrameHeader | |
UInt32 | nFrameHeaderSize |
Returns
Type | Description |
---|---|
EVRTrackedCameraError |
GetVideoStreamTextureD3D11(UInt64, EVRTrackedCameraFrameType, IntPtr, ref IntPtr, ref CameraVideoStreamFrameHeader_t, UInt32)
Declaration
public EVRTrackedCameraError GetVideoStreamTextureD3D11(ulong hTrackedCamera, EVRTrackedCameraFrameType eFrameType, IntPtr pD3D11DeviceOrResource, ref IntPtr ppD3D11ShaderResourceView, ref CameraVideoStreamFrameHeader_t pFrameHeader, uint nFrameHeaderSize)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | hTrackedCamera | |
EVRTrackedCameraFrameType | eFrameType | |
IntPtr | pD3D11DeviceOrResource | |
IntPtr | ppD3D11ShaderResourceView | |
CameraVideoStreamFrameHeader_t | pFrameHeader | |
UInt32 | nFrameHeaderSize |
Returns
Type | Description |
---|---|
EVRTrackedCameraError |
GetVideoStreamTextureGL(UInt64, EVRTrackedCameraFrameType, ref UInt32, ref CameraVideoStreamFrameHeader_t, UInt32)
Declaration
public EVRTrackedCameraError GetVideoStreamTextureGL(ulong hTrackedCamera, EVRTrackedCameraFrameType eFrameType, ref uint pglTextureId, ref CameraVideoStreamFrameHeader_t pFrameHeader, uint nFrameHeaderSize)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | hTrackedCamera | |
EVRTrackedCameraFrameType | eFrameType | |
UInt32 | pglTextureId | |
CameraVideoStreamFrameHeader_t | pFrameHeader | |
UInt32 | nFrameHeaderSize |
Returns
Type | Description |
---|---|
EVRTrackedCameraError |
GetVideoStreamTextureSize(UInt32, EVRTrackedCameraFrameType, ref VRTextureBounds_t, ref UInt32, ref UInt32)
Declaration
public EVRTrackedCameraError GetVideoStreamTextureSize(uint nDeviceIndex, EVRTrackedCameraFrameType eFrameType, ref VRTextureBounds_t pTextureBounds, ref uint pnWidth, ref uint pnHeight)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | nDeviceIndex | |
EVRTrackedCameraFrameType | eFrameType | |
VRTextureBounds_t | pTextureBounds | |
UInt32 | pnWidth | |
UInt32 | pnHeight |
Returns
Type | Description |
---|---|
EVRTrackedCameraError |
HasCamera(UInt32, ref Boolean)
Declaration
public EVRTrackedCameraError HasCamera(uint nDeviceIndex, ref bool pHasCamera)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | nDeviceIndex | |
Boolean | pHasCamera |
Returns
Type | Description |
---|---|
EVRTrackedCameraError |
ReleaseVideoStreamingService(UInt64)
Declaration
public EVRTrackedCameraError ReleaseVideoStreamingService(ulong hTrackedCamera)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | hTrackedCamera |
Returns
Type | Description |
---|---|
EVRTrackedCameraError |
ReleaseVideoStreamTextureGL(UInt64, UInt32)
Declaration
public EVRTrackedCameraError ReleaseVideoStreamTextureGL(ulong hTrackedCamera, uint glTextureId)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | hTrackedCamera | |
UInt32 | glTextureId |
Returns
Type | Description |
---|---|
EVRTrackedCameraError |