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

Method TellFrame

Source/Modules/nimRecorder/PlayerNode.cpp:555–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

553}
554
555XnStatus PlayerNode::TellFrame(const XnChar* strNodeName, XnUInt32& nFrameNumber)
556{
557 PlayerNodeInfo* pPlayerNodeInfo = GetPlayerNodeInfoByName(strNodeName);
558 XN_VALIDATE_PTR(pPlayerNodeInfo, XN_STATUS_BAD_NODE_NAME);
559 if (!pPlayerNodeInfo->bValid)
560 {
561 XN_ASSERT(FALSE);
562 return XN_STATUS_BAD_NODE_NAME;
563 }
564
565 nFrameNumber = pPlayerNodeInfo->nCurFrame;
566 return XN_STATUS_OK;
567}
568
569XnUInt32 PlayerNode::GetNumFrames(const XnChar* strNodeName, XnUInt32& nFrames)
570{

Callers 3

xnTellPlayerFrameFunction · 0.45
mainFunction · 0.45
seekFrameFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected