| 46 | } |
| 47 | |
| 48 | XnStatus 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 | |
| 59 | XnBool SampleDepth::IsCapabilitySupported( const XnChar* strCapabilityName ) |
| 60 | { |