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

Method HandleNodeDataBeginRecord

Source/Modules/nimRecorder/PlayerNode.cpp:1281–1304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1279}
1280
1281XnStatus PlayerNode::HandleNodeDataBeginRecord(NodeDataBeginRecord record)
1282{
1283 XN_VALIDATE_INPUT_PTR(m_pNodeNotifications);
1284 XnStatus nRetVal = record.Decode();
1285 XN_IS_STATUS_OK(nRetVal);
1286 DEBUG_LOG_RECORD(record, "NodeDataBegin");
1287 PlayerNodeInfo* pPlayerNodeInfo = GetPlayerNodeInfo(record.GetNodeID());
1288 XN_VALIDATE_PTR(pPlayerNodeInfo, XN_STATUS_CORRUPT_FILE);
1289 if (!pPlayerNodeInfo->bValid)
1290 {
1291 XN_ASSERT(FALSE);
1292 return XN_STATUS_CORRUPT_FILE;
1293 }
1294
1295 if (!pPlayerNodeInfo->bIsGenerator)
1296 {
1297 XN_ASSERT(FALSE);
1298 XN_LOG_ERROR_RETURN(XN_STATUS_CORRUPT_FILE, XN_MASK_OPEN_NI, "Got data for non-generator node '%s'", pPlayerNodeInfo->strName);
1299 }
1300
1301 m_bDataBegun = TRUE;
1302
1303 return XN_STATUS_OK;
1304}
1305
1306XnStatus PlayerNode::HandleNewDataRecord(NewDataRecordHeader record, XnBool bReadPayload)
1307{

Callers

nothing calls this directly

Calls 3

DEBUG_LOG_RECORDFunction · 0.85
DecodeMethod · 0.80
GetNodeIDMethod · 0.80

Tested by

no test coverage detected