some utility for GPU module internal purposes

This commit is contained in:
Anatoly Baksheev
2010-11-10 17:05:36 +00:00
parent f76d393910
commit 55a722fc9d
4 changed files with 49 additions and 10 deletions

View File

@@ -129,12 +129,12 @@ namespace cv
return interpreter.str();
}
extern "C" void npp_error( int err, const char *file, const int line, const char *func)
void nppError( int err, const char *file, const int line, const char *func)
{
cv::error( cv::Exception(CV_GpuNppCallError, getNppErrorString(err), func, file, line) );
}
extern "C" void error(const char *error_string, const char *file, const int line, const char *func)
void error(const char *error_string, const char *file, const int line, const char *func)
{
cv::error( cv::Exception(CV_GpuApiCallError, error_string, func, file, line) );
}