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

Function getCaptureMessage

Samples/NiViewer/Capture.cpp:473–500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471}
472
473void getCaptureMessage(char* pMessage)
474{
475 switch (g_Capture.State)
476 {
477 case SHOULD_CAPTURE:
478 {
479 XnUInt64 nNow;
480 xnOSGetTimeStamp(&nNow);
481 nNow /= 1000;
482 sprintf(pMessage, "Capturing will start in %u seconds...", g_Capture.nStartOn - (XnUInt32)nNow);
483 }
484 break;
485 case CAPTURING:
486 {
487 int nChars = sprintf(pMessage, "* Recording! Press any key or use menu to stop *\nRecorded Frames: ");
488 for (int i = 0; i < CAPTURE_NODE_COUNT; ++i)
489 {
490 if (g_Capture.nodes[i].bRecording)
491 {
492 nChars += sprintf(pMessage + nChars, "%s-%d ", g_Capture.nodes[i].pGenerator->GetName(), g_Capture.nodes[i].nCapturedFrames);
493 }
494 }
495 }
496 break;
497 default:
498 pMessage[0] = 0;
499 }
500}
501
502void getImageFileName(int num, char* csName)
503{

Callers 1

printRecordingInfoFunction · 0.85

Calls 2

GetNameMethod · 0.80
xnOSGetTimeStampFunction · 0.50

Tested by

no test coverage detected