| 3570 | } |
| 3571 | |
| 3572 | static 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 | |
| 3594 | XN_C_API XnBool xnIsDataNew(XnNodeHandle hInstance) |
| 3595 | { |
no test coverage detected