Commit a04a0514 authored by Alexander Smorkalov's avatar Alexander Smorkalov Committed by Dikay900

Turn off superres accuracy tests if video i/o is not supported.

parent a9ae0c8e
...@@ -59,4 +59,17 @@ ...@@ -59,4 +59,17 @@
#include "cvconfig.h" #include "cvconfig.h"
#include "../src/input_array_utility.hpp" #include "../src/input_array_utility.hpp"
#if defined(HAVE_XINE) || \
defined(HAVE_GSTREAMER) || \
defined(HAVE_QUICKTIME) || \
defined(HAVE_QTKIT) || \
defined(HAVE_AVFOUNDATION) || \
defined(HAVE_FFMPEG) || \
defined(HAVE_MSMF) || \
defined(HAVE_VFW)
# define BUILD_WITH_VIDEO_INPUT_SUPPORT 1
#else
# define BUILD_WITH_VIDEO_INPUT_SUPPORT 0
#endif
#endif #endif
...@@ -43,6 +43,8 @@ ...@@ -43,6 +43,8 @@
#include "test_precomp.hpp" #include "test_precomp.hpp"
#include "opencv2/ts/ocl_test.hpp" #include "opencv2/ts/ocl_test.hpp"
#if BUILD_WITH_VIDEO_INPUT_SUPPORT
class AllignedFrameSource : public cv::superres::FrameSource class AllignedFrameSource : public cv::superres::FrameSource
{ {
public: public:
...@@ -292,3 +294,5 @@ OCL_TEST_F(SuperResolution, BTVL1) ...@@ -292,3 +294,5 @@ OCL_TEST_F(SuperResolution, BTVL1)
} } // namespace cvtest::ocl } } // namespace cvtest::ocl
#endif #endif
#endif // BUILD_WITH_VIDEO_INPUT_SUPPORT
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