void Project_sV::init() { m_preferences = new ProjectPreferences_sV(); m_frameSource = new EmptyFrameSource_sV(this); m_flowSource = 0; // leak ? new FlowSourceV3D_sV(this); m_motionBlur = new MotionBlur_sV(this); reloadFlowSource(); m_tags = new QList<Tag_sV>(); m_nodes = new NodeList_sV(); m_shutterFunctions = new ShutterFunctionList_sV(m_nodes); m_renderTask = NULL; m_v3dFailCounter = 0; /* better here ? */ int tid; for(tid=0;tid<4;tid++) { worker[tid]=0; thread[tid]=0; } }
void Project_sV::init() { m_preferences = new ProjectPreferences_sV(); m_frameSource = new EmptyFrameSource_sV(this); m_flowSource = 0; // leak ? new FlowSourceV3D_sV(this); m_motionBlur = new MotionBlur_sV(this); #if 0 QSettings settings; QString method = settings.value("preferences/flowMethod", "V3D").toString(); if ("V3D" == method) { m_flowSource = new FlowSourceV3D_sV(this); } else { m_flowSource = new FlowSourceOpenCV_sV(this); if ("OCL" == method) { qDebug() << "setting OCL"; } } #else reloadFlowSource(); #endif m_tags = new QList<Tag_sV>(); m_nodes = new NodeList_sV(); m_shutterFunctions = new ShutterFunctionList_sV(m_nodes); m_renderTask = NULL; m_v3dFailCounter = 0; /* better here ? */ int tid; for(tid=0;tid<4;tid++) { worker[tid]=0; thread[tid]=0; } }