Go to the source code of this file.
|
XINGYING_API ErrorCode XINGYING_CALLCONV | XingYing_CopyFrame (const sFrameOfMocapData *pSrc, sFrameOfMocapData *pDst) |
|
XINGYING_API bool XINGYING_CALLCONV | XingYing_DecodeTimecode (unsigned int timecode, unsigned int timecodeSubframe, int *pOutHour, int *pOutMinute, int *pOutSecond, int *pOutFrame, int *pOutSubframe) |
|
XINGYING_API ErrorCode XINGYING_CALLCONV | XingYing_FreeDescriptions (sDataDescriptions *pDesc) |
|
XINGYING_API ErrorCode XINGYING_CALLCONV | XingYing_FreeFrame (sFrameOfMocapData *pFrame) |
|
XINGYING_API void XINGYING_CALLCONV | XingYing_GetVersion (unsigned char outVersion[4]) |
|
XINGYING_API bool XINGYING_CALLCONV | XingYing_TimecodeStringify (unsigned int timecode, unsigned int timecodeSubframe, char *outBuffer, int outBufferSize) |
|
◆ XingYing_CopyFrame()
Helper that performs a deep copy from pSrc into pDst .
Some members of pDst will be dynamically allocated. Call XingYing_FreeFrame to deallocate them.
- Parameters
-
pSrc | - the const pointer of source |
pDst | - the pointer of destination |
- Returns
- XINGYING_API ErrorCode XINGYING_CALLCONV
◆ XingYing_DecodeTimecode()
XINGYING_API bool XINGYING_CALLCONV XingYing_DecodeTimecode |
( |
unsigned int |
timecode, |
|
|
unsigned int |
timecodeSubframe, |
|
|
int * |
pOutHour, |
|
|
int * |
pOutMinute, |
|
|
int * |
pOutSecond, |
|
|
int * |
pOutFrame, |
|
|
int * |
pOutSubframe |
|
) |
| |
This function Decode the timecode.
the timecode is ...
- Parameters
-
timecode | |
timecodeSubframe | |
pOutHour | |
pOutMinute | |
pOutSecond | |
pOutFrame | |
pOutSubframe | |
- Returns
- bool
◆ XingYing_FreeDescriptions()
Deallocates pDesc and all of its members; after this call, the object is no longer valid.
- Parameters
-
- Returns
- XINGYING_API ErrorCode XINGYING_CALLCONV
◆ XingYing_FreeFrame()
Frees the dynamically allocated members of a frame copy created using NatNet_CopyFrame.
The object pointed to by pFrame itself is NOT de-allocated, only its nested members which were dynamically allocated.
Warning: Do not call this on any pFrame that was not the destination of a call to XingYing_CopyFrame.
- Parameters
-
- Returns
- XINGYING_API ErrorCode XINGYING_CALLCONV
◆ XingYing_GetVersion()
This function returns a 4-byte version number.
The format of XINGYINGLIB version is [major.minor.build.revision]
- Parameters
-
outVersion | - [major.minor.build.revision] |
- Returns
- XINGYING_API void XINGYING_CALLCONV
◆ XingYing_TimecodeStringify()
XINGYING_API bool XINGYING_CALLCONV XingYing_TimecodeStringify |
( |
unsigned int |
timecode, |
|
|
unsigned int |
timecodeSubframe, |
|
|
char * |
outBuffer, |
|
|
int |
outBufferSize |
|
) |
| |
This function Encode the timecode
- Parameters
-
timecode | |
timecodeSubframe | |
outBuffer | |
outBufferSize | |
- Returns
- bool