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

Function xnSetRecorderDestination

Source/OpenNI/XnOpenNI.cpp:3699–3710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3697}
3698
3699XN_C_API XnStatus xnSetRecorderDestination(XnNodeHandle hRecorder, XnRecordMedium destType, const XnChar *strDest)
3700{
3701 XN_VALIDATE_INPUT_PTR(hRecorder);
3702 XN_VALIDATE_INTERFACE_TYPE(hRecorder, XN_NODE_TYPE_RECORDER);
3703 XN_VALIDATE_CHANGES_ALLOWED(hRecorder);
3704 //Get recorder object
3705 xn::RecorderImpl *pRecorderImpl = dynamic_cast<xn::RecorderImpl*>(hRecorder->pPrivateData);
3706 XN_VALIDATE_PTR(pRecorderImpl, XN_STATUS_ERROR);
3707 XnStatus nRetVal = pRecorderImpl->SetDestination(destType, strDest);
3708 XN_IS_STATUS_OK(nRetVal);
3709 return XN_STATUS_OK;
3710}
3711
3712XN_C_API XnStatus XN_C_DECL xnGetRecorderDestination(XnNodeHandle hRecorder, XnRecordMedium* pDestType, XnChar* strDest, XnUInt32 nBufSize)
3713{

Calls 1

SetDestinationMethod · 0.45

Tested by

no test coverage detected