void VisionSystem::addForwardRecorder(std::string recorderString, int frameRate, bool debugPrint) { if (m_recorders.end() == m_recorders.find(recorderString)) { if (m_forwardCamera) { createRecorder(m_forwardCamera, recorderString, frameRate, debugPrint); } } }
bool xncv::VideoSource::startRecording(const std::string& fileName, ImageCompression imageCompression, DepthCompression depthCompression) { if (isFile) return false; if (isRecording()) stopRecording(); createRecorder(fixFileName(fileName)); if (imageCompression != IMG_DONT_CAPTURE) recorder->AddNodeToRecording(imgGen, imageCompression == IMG_NONE ? XN_CODEC_UNCOMPRESSED : XN_CODEC_JPEG); if (depthCompression != DEPTH_DONT_CAPTURE) recorder->AddNodeToRecording(depthGen, depthCompression == DEPTH_NONE ? XN_CODEC_UNCOMPRESSED : XN_CODEC_16Z_EMB_TABLES); return true; }