MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / xnCopyAudioMetaData

Function xnCopyAudioMetaData

Source/OpenNI/XnUtils.cpp:409–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407}
408
409XN_C_API XnStatus xnCopyAudioMetaData(XnAudioMetaData* pDestination, const XnAudioMetaData* pSource)
410{
411 XnStatus nRetVal = XN_STATUS_OK;
412
413 XN_VALIDATE_INPUT_PTR(pDestination);
414 XN_VALIDATE_INPUT_PTR(pSource);
415
416 nRetVal = xnCopyOutputMetaData(pDestination->pOutput, pSource->pOutput);
417 XN_IS_STATUS_OK(nRetVal);
418
419 // keep pointer (it will be lost in memcpy)
420 XnOutputMetaData* pOutput = pDestination->pOutput;
421 xnOSMemCopy(pDestination, pSource, sizeof(XnAudioMetaData));
422 pDestination->pOutput = pOutput;
423
424 return (XN_STATUS_OK);
425}
426
427XN_C_API XnStatus xnCopySceneMetaData(XnSceneMetaData* pDestination, const XnSceneMetaData* pSource)
428{

Callers 2

InitFromMethod · 0.85
xnGetAudioMetaDataFunction · 0.85

Calls 2

xnCopyOutputMetaDataFunction · 0.85
xnOSMemCopyFunction · 0.50

Tested by

no test coverage detected