Speed up FFT by using the right number of bands

This commit is contained in:
Alexander Kojevnikov 2010-05-28 10:47:20 +10:00
parent 0c51710a3f
commit 37964b9ce3

View File

@ -27,7 +27,8 @@ namespace Spek {
private Source source;
private string info;
private const int THRESHOLD = -92;
private const int BANDS = 1024;
// For faster FFT BANDS*2-2 should be a multiple of 2,3,5
private const int BANDS = 1025;
private ImageSurface image;
private ImageSurface palette;