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

Method Init

Samples/NiSampleModule/SampleDepth.cpp:48–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48XnStatus SampleDepth::Init()
49{
50 m_pDepthMap = new XnDepthPixel[SUPPORTED_X_RES * SUPPORTED_Y_RES];
51 if (m_pDepthMap == NULL)
52 {
53 return XN_STATUS_ALLOC_FAILED;
54 }
55
56 return (XN_STATUS_OK);
57}
58
59XnBool SampleDepth::IsCapabilitySupported( const XnChar* strCapabilityName )
60{

Callers 2

CreateMethod · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected