Draft: Add working cache code for fftw
4 unresolved threads
4 unresolved threads
Compare changes
+ 156
− 15
@@ -8,17 +8,148 @@
@@ -116,23 +247,38 @@ void PrepareConvolutionKernel(float* dest, const float* source,
Since
GetFFTWCache
returns a singleton, could you just fetch theFTTWPlannerCache
pointer once and then use it in subsequent calls? Thefftwplanner_cache_
pointer accessibility is set to private, therefore, it is only deallocated in caseFTTWPlannerCache
is destroyed (when it goes out of scope)
@@ -159,11 +305,6 @@ void Convolve(float* image, const float* kernel, size_t image_width,
Out of curiosity: why do you explicitly define these two default constructors?