Cleanup fftw when closing RT, instead of after each time fftw is used. Speeds up fattal and luminance denoise

This commit is contained in:
heckflosse
2018-01-17 20:39:01 +01:00
parent f644d41ff2
commit 53ec11eea9
3 changed files with 9 additions and 14 deletions

View File

@@ -16,6 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with RawTherapee. If not, see <http://www.gnu.org/licenses/>.
*/
#include <fftw3.h>
#include "../rtgui/profilestorecombobox.h"
#include "rtengine.h"
#include "iccstore.h"
@@ -108,10 +109,15 @@ int init (const Settings* s, Glib::ustring baseDir, Glib::ustring userSettingsDi
void cleanup ()
{
ProcParams::cleanup ();
Color::cleanup ();
RawImageSource::cleanup ();
#ifdef RT_FFTW3F_OMP
fftwf_cleanup_threads();
#else
fftwf_cleanup();
#endif
}
StagedImageProcessor* StagedImageProcessor::create (InitialImage* initialImage)