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

Method Initialize

Samples/NiBackRecorder/main.cpp:296–301  ·  view source on GitHub ↗

Initialization - set outdir and time of each recording

Source from the content-addressed store, hash-verified

294 }
295 // Initialization - set outdir and time of each recording
296 void Initialize(XnChar* strDirName, XnUInt32 nSeconds)
297 {
298 xnOSStrCopy(m_strDirName, strDirName, XN_FILE_MAX_PATH);
299 m_nBufferSize = nSeconds*30;
300 m_pFrames = XN_NEW_ARR(SingleFrame, m_nBufferSize);
301 }
302 // Save new data from OpenNI
303 void Update(const xn::DepthGenerator& depthGenerator, const xn::ImageGenerator& imageGenerator)
304 {

Callers 1

mainFunction · 0.45

Calls 1

xnOSStrCopyFunction · 0.50

Tested by

no test coverage detected