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

Method OnNodeStateReady

Source/Modules/nimRecorder/RecorderNode.cpp:271–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271XnStatus RecorderNode::OnNodeStateReady(const XnChar* strNodeName)
272{
273 m_nConfigurationID++;
274
275 RecordedNodeInfo* pRecordedNodeInfo = GetRecordedNodeInfo(strNodeName);
276 XN_VALIDATE_PTR(pRecordedNodeInfo, XN_STATUS_BAD_NODE_NAME);
277 NodeStateReadyRecord record(m_pRecordBuffer, RECORD_MAX_SIZE, FALSE);
278 record.SetNodeID(pRecordedNodeInfo->nNodeID);
279 XnStatus nRetVal = record.Encode();
280 XN_IS_STATUS_OK(nRetVal);
281 nRetVal = WriteRecordToStream(strNodeName, record);
282 XN_IS_STATUS_OK(nRetVal);
283 return XN_STATUS_OK;
284}
285
286XnStatus RecorderNode::OnNodeNewData(const XnChar* strNodeName, XnUInt64 nTimeStamp, XnUInt32 /*nFrame*/, const void* pData, XnUInt32 nSize)
287{

Callers 1

Calls 2

SetNodeIDMethod · 0.80
EncodeMethod · 0.80

Tested by

no test coverage detected