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

Function xnUpdateDataImpl

Source/OpenNI/XnOpenNI.cpp:3572–3592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3570}
3571
3572static XnStatus xnUpdateDataImpl(XnNodeHandle hInstance)
3573{
3574 XnStatus nRetVal = XN_STATUS_OK;
3575
3576 XN_VALIDATE_INTERFACE_TYPE(hInstance, XN_NODE_TYPE_GENERATOR);
3577 XnGeneratorInterfaceContainer* pInterface = (XnGeneratorInterfaceContainer*)hInstance->pModuleInstance->pLoaded->pInterface;
3578 XnModuleNodeHandle hModuleNode = hInstance->pModuleInstance->hNode;
3579 nRetVal = pInterface->Generator.UpdateData(hModuleNode);
3580 XN_IS_STATUS_OK(nRetVal);
3581
3582 hInstance->bWasDataRead = TRUE;
3583 hInstance->bIsNewData = TRUE;
3584 xnMarkFPSFrame(hInstance->pContext, &hInstance->readFPS);
3585 xnUpdateMetaData(hInstance);
3586
3587 XnUInt64 nNow;
3588 xnOSGetHighResTimeStamp(&nNow);
3589 xnDumpFileWriteString(hInstance->pContext->pDumpDataFlow, "%llu,Update,%s,%llu\n", nNow, hInstance->pNodeInfo->strInstanceName, xnGetTimestamp(hInstance));
3590
3591 return XN_STATUS_OK;
3592}
3593
3594XN_C_API XnBool xnIsDataNew(XnNodeHandle hInstance)
3595{

Callers 2

xnUpdateTreeImplFunction · 0.85
xnMockSetDataFunction · 0.85

Calls 5

xnMarkFPSFrameFunction · 0.85
xnUpdateMetaDataFunction · 0.85
xnGetTimestampFunction · 0.85
xnOSGetHighResTimeStampFunction · 0.50
UpdateDataMethod · 0.45

Tested by

no test coverage detected