Merge pull request #555 from bitwangyaoyao:2.4_fixFft

pull/549/merge
Andrey Kamaev 12 years ago committed by OpenCV Buildbot
commit dcf7a69430
  1. 4
      modules/ocl/src/fft.cpp
  2. 2
      modules/ocl/src/initialization.cpp

@ -54,6 +54,10 @@ void cv::ocl::dft(const oclMat&, oclMat&, Size, int)
{
CV_Error(CV_StsNotImplemented, "OpenCL DFT is not implemented");
}
namespace cv { namespace ocl {
void fft_teardown();
}}
void cv::ocl::fft_teardown(){}
#else
#include "clAmdFft.h"
namespace cv

@ -65,6 +65,7 @@ namespace cv
{
namespace ocl
{
extern void fft_teardown();
/*
* The binary caching system to eliminate redundant program source compilation.
* Strictly, this is not a cache because we do not implement evictions right now.
@ -877,6 +878,7 @@ namespace cv
}
void Info::release()
{
fft_teardown();
if(impl->oclplatform)
{
impl->oclplatform = 0;

Loading…
Cancel
Save