Commit 12180bd7 authored by Vladislav Vinogradov's avatar Vladislav Vinogradov

add generic method to disable/enable all optimizations (IPP, OpenCL, Tegra)

parent 44e41baf
......@@ -727,6 +727,8 @@ CV_EXPORTS void setUseIPP(bool flag);
} // ipp
CV_EXPORTS void setOptimizations(bool enabled);
//! @endcond
//! @} core_utils
......
......@@ -1287,6 +1287,15 @@ void setUseTegra(bool flag)
#endif
void setOptimizations(bool enabled)
{
cv::ipp::setUseIPP(enabled);
cv::ocl::setUseOpenCL(enabled);
#ifdef HAVE_TEGRA_OPTIMIZATION
cv::tegra::setUseTegra(enabled);
#endif
}
} // namespace cv
/* End of file. */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment