Merge branch '2.4_fixFft' of https://github.com/bitwangyaoyao/opencv into 2.4

This commit is contained in:
yao 2013-02-26 20:30:42 +08:00
commit 3ff5689fe5
2 changed files with 5 additions and 0 deletions

View File

@ -54,6 +54,9 @@ 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(){}
}}
#else
#include "clAmdFft.h"
namespace cv

View File

@ -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;