void moPS3EyeModule::stop() { moModule::stop(); if (frame != NULL) { LOGM(MO_TRACE, "release camera"); // Stop capturing PS3EyeMulticamStop(); Sleep(50); PS3EyeMulticamSaveSettings(".\\data\\cameras.xml"); PS3EyeMulticamClose(); delete [] pBuffer; cvReleaseImage(&frame); frame = NULL; if(remove("settings.xml")==-1); } }
void ofxPS3::saveCameraSettingsToXmlFile() { printf( "About to save data/settings/cameras/cameras.xml file...\n" ); PS3EyeMulticamSaveSettings( "data/settings/cameras/cameras.xml" ); }