2023-09-29 11:28:17 +02:00
|
|
|
/* This file is auto-generated, do not edit. */
|
|
|
|
#include "unix_private.h"
|
2023-09-30 13:08:49 +02:00
|
|
|
|
2023-11-07 20:56:28 +01:00
|
|
|
#if 0
|
|
|
|
#pragma makedep unix
|
|
|
|
#endif
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRTrackedCamera_IVRTrackedCamera_005_GetCameraErrorNameFromEnum( void *args )
|
2018-12-14 20:20:13 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRTrackedCamera_IVRTrackedCamera_005_GetCameraErrorNameFromEnum_params *params = (struct IVRTrackedCamera_IVRTrackedCamera_005_GetCameraErrorNameFromEnum_params *)args;
|
2023-09-29 11:28:17 +02:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_005 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_005 *)params->linux_side;
|
2023-10-04 22:05:02 +02:00
|
|
|
params->_ret = iface->GetCameraErrorNameFromEnum( params->eCameraError );
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2018-12-14 20:20:13 +01:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRTrackedCamera_IVRTrackedCamera_005_HasCamera( void *args )
|
2018-12-14 20:20:13 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRTrackedCamera_IVRTrackedCamera_005_HasCamera_params *params = (struct IVRTrackedCamera_IVRTrackedCamera_005_HasCamera_params *)args;
|
2023-09-29 11:28:17 +02:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_005 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_005 *)params->linux_side;
|
2023-10-04 22:05:02 +02:00
|
|
|
params->_ret = iface->HasCamera( params->nDeviceIndex, params->pHasCamera );
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2018-12-14 20:20:13 +01:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRTrackedCamera_IVRTrackedCamera_005_GetCameraFrameSize( void *args )
|
2018-12-14 20:20:13 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRTrackedCamera_IVRTrackedCamera_005_GetCameraFrameSize_params *params = (struct IVRTrackedCamera_IVRTrackedCamera_005_GetCameraFrameSize_params *)args;
|
2023-09-29 11:28:17 +02:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_005 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_005 *)params->linux_side;
|
2023-10-04 22:05:02 +02:00
|
|
|
params->_ret = iface->GetCameraFrameSize( params->nDeviceIndex, params->eFrameType, params->pnWidth, params->pnHeight, params->pnFrameBufferSize );
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2018-12-14 20:20:13 +01:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRTrackedCamera_IVRTrackedCamera_005_GetCameraIntrinsics( void *args )
|
2018-12-14 20:20:13 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRTrackedCamera_IVRTrackedCamera_005_GetCameraIntrinsics_params *params = (struct IVRTrackedCamera_IVRTrackedCamera_005_GetCameraIntrinsics_params *)args;
|
2023-09-29 11:28:17 +02:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_005 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_005 *)params->linux_side;
|
2023-10-04 22:05:02 +02:00
|
|
|
params->_ret = iface->GetCameraIntrinsics( params->nDeviceIndex, params->nCameraIndex, params->eFrameType, params->pFocalLength, params->pCenter );
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2018-12-14 20:20:13 +01:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRTrackedCamera_IVRTrackedCamera_005_GetCameraProjection( void *args )
|
2018-12-14 20:20:13 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRTrackedCamera_IVRTrackedCamera_005_GetCameraProjection_params *params = (struct IVRTrackedCamera_IVRTrackedCamera_005_GetCameraProjection_params *)args;
|
2023-09-29 11:28:17 +02:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_005 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_005 *)params->linux_side;
|
2023-10-04 22:05:02 +02:00
|
|
|
params->_ret = iface->GetCameraProjection( params->nDeviceIndex, params->nCameraIndex, params->eFrameType, params->flZNear, params->flZFar, params->pProjection );
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2018-12-14 20:20:13 +01:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRTrackedCamera_IVRTrackedCamera_005_AcquireVideoStreamingService( void *args )
|
2018-12-14 20:20:13 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRTrackedCamera_IVRTrackedCamera_005_AcquireVideoStreamingService_params *params = (struct IVRTrackedCamera_IVRTrackedCamera_005_AcquireVideoStreamingService_params *)args;
|
2023-09-29 11:28:17 +02:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_005 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_005 *)params->linux_side;
|
2023-10-04 22:05:02 +02:00
|
|
|
params->_ret = iface->AcquireVideoStreamingService( params->nDeviceIndex, params->pHandle );
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2018-12-14 20:20:13 +01:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRTrackedCamera_IVRTrackedCamera_005_ReleaseVideoStreamingService( void *args )
|
2018-12-14 20:20:13 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRTrackedCamera_IVRTrackedCamera_005_ReleaseVideoStreamingService_params *params = (struct IVRTrackedCamera_IVRTrackedCamera_005_ReleaseVideoStreamingService_params *)args;
|
2023-09-29 11:28:17 +02:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_005 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_005 *)params->linux_side;
|
2023-10-04 22:05:02 +02:00
|
|
|
params->_ret = iface->ReleaseVideoStreamingService( params->hTrackedCamera );
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2018-12-14 20:20:13 +01:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRTrackedCamera_IVRTrackedCamera_005_GetVideoStreamFrameBuffer( void *args )
|
2018-12-14 20:20:13 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRTrackedCamera_IVRTrackedCamera_005_GetVideoStreamFrameBuffer_params *params = (struct IVRTrackedCamera_IVRTrackedCamera_005_GetVideoStreamFrameBuffer_params *)args;
|
2023-09-29 11:28:17 +02:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_005 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_005 *)params->linux_side;
|
|
|
|
u_CameraVideoStreamFrameHeader_t_1017 u_pFrameHeader;
|
|
|
|
if (params->pFrameHeader) u_pFrameHeader = *params->pFrameHeader;
|
|
|
|
uint32_t u_nFrameHeaderSize = params->nFrameHeaderSize ? sizeof(u_pFrameHeader) : 0;
|
2023-10-04 22:05:02 +02:00
|
|
|
params->_ret = iface->GetVideoStreamFrameBuffer( params->hTrackedCamera, params->eFrameType, params->pFrameBuffer, params->nFrameBufferSize, params->pFrameHeader ? &u_pFrameHeader : nullptr, u_nFrameHeaderSize );
|
2023-09-29 11:28:17 +02:00
|
|
|
if (params->pFrameHeader) *params->pFrameHeader = u_pFrameHeader;
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2018-12-14 20:20:13 +01:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRTrackedCamera_IVRTrackedCamera_005_GetVideoStreamTextureSize( void *args )
|
2018-12-14 20:20:13 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRTrackedCamera_IVRTrackedCamera_005_GetVideoStreamTextureSize_params *params = (struct IVRTrackedCamera_IVRTrackedCamera_005_GetVideoStreamTextureSize_params *)args;
|
2023-09-29 11:28:17 +02:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_005 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_005 *)params->linux_side;
|
2023-10-04 22:05:02 +02:00
|
|
|
params->_ret = iface->GetVideoStreamTextureSize( params->nDeviceIndex, params->eFrameType, params->pTextureBounds, params->pnWidth, params->pnHeight );
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2018-12-14 20:20:13 +01:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRTrackedCamera_IVRTrackedCamera_005_GetVideoStreamTextureD3D11( void *args )
|
2018-12-14 20:20:13 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRTrackedCamera_IVRTrackedCamera_005_GetVideoStreamTextureD3D11_params *params = (struct IVRTrackedCamera_IVRTrackedCamera_005_GetVideoStreamTextureD3D11_params *)args;
|
2023-09-29 11:28:17 +02:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_005 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_005 *)params->linux_side;
|
|
|
|
u_CameraVideoStreamFrameHeader_t_1017 u_pFrameHeader;
|
|
|
|
if (params->pFrameHeader) u_pFrameHeader = *params->pFrameHeader;
|
|
|
|
uint32_t u_nFrameHeaderSize = params->nFrameHeaderSize ? sizeof(u_pFrameHeader) : 0;
|
2023-10-04 22:05:02 +02:00
|
|
|
params->_ret = iface->GetVideoStreamTextureD3D11( params->hTrackedCamera, params->eFrameType, params->pD3D11DeviceOrResource, params->ppD3D11ShaderResourceView, params->pFrameHeader ? &u_pFrameHeader : nullptr, u_nFrameHeaderSize );
|
2023-09-29 11:28:17 +02:00
|
|
|
if (params->pFrameHeader) *params->pFrameHeader = u_pFrameHeader;
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2018-12-14 20:20:13 +01:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRTrackedCamera_IVRTrackedCamera_005_GetVideoStreamTextureGL( void *args )
|
2018-12-14 20:20:13 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRTrackedCamera_IVRTrackedCamera_005_GetVideoStreamTextureGL_params *params = (struct IVRTrackedCamera_IVRTrackedCamera_005_GetVideoStreamTextureGL_params *)args;
|
2023-09-29 11:28:17 +02:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_005 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_005 *)params->linux_side;
|
|
|
|
u_CameraVideoStreamFrameHeader_t_1017 u_pFrameHeader;
|
|
|
|
if (params->pFrameHeader) u_pFrameHeader = *params->pFrameHeader;
|
|
|
|
uint32_t u_nFrameHeaderSize = params->nFrameHeaderSize ? sizeof(u_pFrameHeader) : 0;
|
2023-10-04 22:05:02 +02:00
|
|
|
params->_ret = iface->GetVideoStreamTextureGL( params->hTrackedCamera, params->eFrameType, params->pglTextureId, params->pFrameHeader ? &u_pFrameHeader : nullptr, u_nFrameHeaderSize );
|
2023-09-29 11:28:17 +02:00
|
|
|
if (params->pFrameHeader) *params->pFrameHeader = u_pFrameHeader;
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2018-12-14 20:20:13 +01:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS IVRTrackedCamera_IVRTrackedCamera_005_ReleaseVideoStreamTextureGL( void *args )
|
2018-12-14 20:20:13 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVRTrackedCamera_IVRTrackedCamera_005_ReleaseVideoStreamTextureGL_params *params = (struct IVRTrackedCamera_IVRTrackedCamera_005_ReleaseVideoStreamTextureGL_params *)args;
|
2023-09-29 11:28:17 +02:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_005 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_005 *)params->linux_side;
|
2023-10-04 22:05:02 +02:00
|
|
|
params->_ret = iface->ReleaseVideoStreamTextureGL( params->hTrackedCamera, params->glTextureId );
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2018-12-14 20:20:13 +01:00
|
|
|
}
|
|
|
|
|