2023-09-29 12:28:17 +03:00
|
|
|
/* This file is auto-generated, do not edit. */
|
|
|
|
#include "unix_private.h"
|
2018-01-18 22:29:49 +03:00
|
|
|
#include "cppIVRTrackedCamera_IVRTrackedCamera_001.h"
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRTrackedCamera_IVRTrackedCamera_001_HasCamera( struct cppIVRTrackedCamera_IVRTrackedCamera_001_HasCamera_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_001 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_001 *)params->linux_side;
|
|
|
|
params->_ret = (bool)iface->HasCamera( params->nDeviceIndex );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRTrackedCamera_IVRTrackedCamera_001_GetCameraFirmwareDescription( struct cppIVRTrackedCamera_IVRTrackedCamera_001_GetCameraFirmwareDescription_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_001 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_001 *)params->linux_side;
|
|
|
|
params->_ret = (bool)iface->GetCameraFirmwareDescription( params->nDeviceIndex, params->pBuffer, params->nBufferLen );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRTrackedCamera_IVRTrackedCamera_001_GetCameraFrameDimensions( struct cppIVRTrackedCamera_IVRTrackedCamera_001_GetCameraFrameDimensions_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_001 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_001 *)params->linux_side;
|
|
|
|
params->_ret = (bool)iface->GetCameraFrameDimensions( params->nDeviceIndex, params->nVideoStreamFormat, params->pWidth, params->pHeight );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRTrackedCamera_IVRTrackedCamera_001_SetCameraVideoStreamFormat( struct cppIVRTrackedCamera_IVRTrackedCamera_001_SetCameraVideoStreamFormat_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_001 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_001 *)params->linux_side;
|
|
|
|
params->_ret = (bool)iface->SetCameraVideoStreamFormat( params->nDeviceIndex, params->nVideoStreamFormat );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRTrackedCamera_IVRTrackedCamera_001_GetCameraVideoStreamFormat( struct cppIVRTrackedCamera_IVRTrackedCamera_001_GetCameraVideoStreamFormat_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_001 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_001 *)params->linux_side;
|
|
|
|
params->_ret = (uint32_t)iface->GetCameraVideoStreamFormat( params->nDeviceIndex );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRTrackedCamera_IVRTrackedCamera_001_EnableCameraForStreaming( struct cppIVRTrackedCamera_IVRTrackedCamera_001_EnableCameraForStreaming_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_001 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_001 *)params->linux_side;
|
|
|
|
params->_ret = (bool)iface->EnableCameraForStreaming( params->nDeviceIndex, params->bEnable );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRTrackedCamera_IVRTrackedCamera_001_StartVideoStream( struct cppIVRTrackedCamera_IVRTrackedCamera_001_StartVideoStream_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_001 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_001 *)params->linux_side;
|
|
|
|
params->_ret = (bool)iface->StartVideoStream( params->nDeviceIndex );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRTrackedCamera_IVRTrackedCamera_001_StopVideoStream( struct cppIVRTrackedCamera_IVRTrackedCamera_001_StopVideoStream_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_001 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_001 *)params->linux_side;
|
|
|
|
params->_ret = (bool)iface->StopVideoStream( params->nDeviceIndex );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRTrackedCamera_IVRTrackedCamera_001_IsVideoStreamActive( struct cppIVRTrackedCamera_IVRTrackedCamera_001_IsVideoStreamActive_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_001 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_001 *)params->linux_side;
|
|
|
|
params->_ret = (bool)iface->IsVideoStreamActive( params->nDeviceIndex );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRTrackedCamera_IVRTrackedCamera_001_GetVideoStreamElapsedTime( struct cppIVRTrackedCamera_IVRTrackedCamera_001_GetVideoStreamElapsedTime_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_001 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_001 *)params->linux_side;
|
|
|
|
params->_ret = (float)iface->GetVideoStreamElapsedTime( params->nDeviceIndex );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRTrackedCamera_IVRTrackedCamera_001_GetVideoStreamFrame( struct cppIVRTrackedCamera_IVRTrackedCamera_001_GetVideoStreamFrame_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_001 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_001 *)params->linux_side;
|
|
|
|
params->_ret = (const w_CameraVideoStreamFrame_t_0914 *)iface->GetVideoStreamFrame( params->nDeviceIndex );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRTrackedCamera_IVRTrackedCamera_001_ReleaseVideoStreamFrame( struct cppIVRTrackedCamera_IVRTrackedCamera_001_ReleaseVideoStreamFrame_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_001 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_001 *)params->linux_side;
|
|
|
|
u_CameraVideoStreamFrame_t_0914 u_pFrameImage;
|
|
|
|
if (params->pFrameImage) u_pFrameImage = *params->pFrameImage;
|
|
|
|
params->_ret = (bool)iface->ReleaseVideoStreamFrame( params->nDeviceIndex, params->pFrameImage ? &u_pFrameImage : nullptr );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRTrackedCamera_IVRTrackedCamera_001_SetAutoExposure( struct cppIVRTrackedCamera_IVRTrackedCamera_001_SetAutoExposure_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_001 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_001 *)params->linux_side;
|
|
|
|
params->_ret = (bool)iface->SetAutoExposure( params->nDeviceIndex, params->bEnable );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRTrackedCamera_IVRTrackedCamera_001_PauseVideoStream( struct cppIVRTrackedCamera_IVRTrackedCamera_001_PauseVideoStream_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_001 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_001 *)params->linux_side;
|
|
|
|
params->_ret = (bool)iface->PauseVideoStream( params->nDeviceIndex );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRTrackedCamera_IVRTrackedCamera_001_ResumeVideoStream( struct cppIVRTrackedCamera_IVRTrackedCamera_001_ResumeVideoStream_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_001 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_001 *)params->linux_side;
|
|
|
|
params->_ret = (bool)iface->ResumeVideoStream( params->nDeviceIndex );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRTrackedCamera_IVRTrackedCamera_001_IsVideoStreamPaused( struct cppIVRTrackedCamera_IVRTrackedCamera_001_IsVideoStreamPaused_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_001 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_001 *)params->linux_side;
|
|
|
|
params->_ret = (bool)iface->IsVideoStreamPaused( params->nDeviceIndex );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRTrackedCamera_IVRTrackedCamera_001_GetCameraDistortion( struct cppIVRTrackedCamera_IVRTrackedCamera_001_GetCameraDistortion_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_001 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_001 *)params->linux_side;
|
|
|
|
params->_ret = (bool)iface->GetCameraDistortion( params->nDeviceIndex, params->flInputU, params->flInputV, params->pflOutputU, params->pflOutputV );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRTrackedCamera_IVRTrackedCamera_001_GetCameraProjection( struct cppIVRTrackedCamera_IVRTrackedCamera_001_GetCameraProjection_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRTrackedCamera_IVRTrackedCamera_001 *iface = (struct u_IVRTrackedCamera_IVRTrackedCamera_001 *)params->linux_side;
|
|
|
|
params->_ret = (bool)iface->GetCameraProjection( params->nDeviceIndex, params->flWidthPixels, params->flHeightPixels, params->flZNear, params->flZFar, params->pProjection );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|